← Back to Pull requests

Match local ClamAV file allowlists #35

Closed
unknown closed this pull request without merging on Nov 29, 2026 05:18 UTC
View on GitHub
unknown unknown commented on Nov 29, 2026 04:58 UTC
Author

Summary

  • Load eligible local .fp and .sfp digests with the generation's functionality level and ignore entries.

  • Apply allowlist decisions to the file map and its descendants. Continue scanning unrelated siblings and charging traversal limits.

  • Compare body, whole-file, logical, section, heuristic, and limit findings with pinned ClamAV 1.4.3.
  • Refs #10

    Coverage

    Regular scanner misses still return an incomplete result. SHA entries reserved for Authenticode require certificate support. The official database coverage gate remains in place. A timeout under AlertExceedsMax can return a timeout error when its allowlist scope is uncertain.

    Verification

  • Rust formatting, strict Clippy, native tests, documentation tests, and build.

  • Full Linux suite with pinned Debian clamav-daemon 1.4.3+dfsg-1.

  • The new sibling regression passes on Barnacle and stock. It fails on the baseline Barnacle revision.
  • Independent review

  • Kept mixed-generation scan-limit verdicts independent of extended detection logging.

  • Enforced allowlist suppression at the traversal boundary for custom matcher results and documented the precomputed digest contract.
  • Greptile finding and stock evidence

    The nested TAR fixture checks the first limit event inside an allowlisted branch and outside it. Pinned clamd reports no alert when the first event is allowlisted. Reversing the members reports Heuristics.Limits.Exceeded.MaxFiles. Barnacle has the same alert behavior and preserves its incomplete-coverage result on a miss.

    Stock sets the scan-wide limit flag before trying to report the alert. The paired test covers both orders. ClamAV 1.4.3 limit guard

    Diff: 220 lines (+165 / -55) across 2 files Reviewer: greptile-apps[bot] Review duration: 19m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 220 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.323
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #35"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.8% (MEDIUM) · Higher = larger blast radius
    36.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.9% · Safe to merge
    15.9%