Pilot · Control triage never hides a finding: judge errors keep it open, refutations go to "needs review" #367

Closed
opened 2026-09-25 07:59:04 +00:00 by sharang · 0 comments
Owner

Part of #338. Found while preparing the staging test (2026-09-25).

Problem

Control triage (5b) can hide real findings. For a finding that maps to controls by rule id or CWE, the LLM judge checks each mapped control. If no verdict grounds, the finding is marked false positive (compliance-agent/src/controls/triage.rs:71-72, applied at scan_triage.rs:70-73).

Two ways this goes wrong:

  • Judge error. On an LLM error the judge returns "no violation" (judge.rs:53-58, "fail closed"), so an outage of llm.breakpilot.com during a customer scan moves real findings to Fehlalarm.
  • Mismatched control text. cppcheck memory findings map to cra-ai-20, whose prose is about "SAST … in der CI/CD-Pipeline". The judge can refute that mapping, and a real overflow is then marked false positive.

Decision (2026-09-25)

  • A judge error leaves the finding open, without control refs.
  • A refutation puts the finding in a new status "needs review" ("Zu prüfen"). A person decides; the finding never disappears on its own.
  • The judge decides the mapping, never whether the finding exists.

Done when

  • A new FindingStatus value, needs review, is accepted by status validation, shown and filterable in the dashboard (DE/EN), and counted as open wherever open findings are counted (overview, CRA status, evidence pack).
  • The judge's result distinguishes error, refuted and confirmed; triage maps them to open, needs review and confirmed with refs.
  • Tests cover each outcome, including an LLM error.
Part of #338. Found while preparing the staging test (2026-09-25). ## Problem Control triage (5b) can hide real findings. For a finding that maps to controls by rule id or CWE, the LLM judge checks each mapped control. If no verdict grounds, the finding is marked **false positive** (`compliance-agent/src/controls/triage.rs:71-72`, applied at `scan_triage.rs:70-73`). Two ways this goes wrong: - **Judge error.** On an LLM error the judge returns "no violation" (`judge.rs:53-58`, "fail closed"), so an outage of `llm.breakpilot.com` during a customer scan moves real findings to *Fehlalarm*. - **Mismatched control text.** cppcheck memory findings map to cra-ai-20, whose prose is about "SAST … in der CI/CD-Pipeline". The judge can refute that mapping, and a real overflow is then marked false positive. ## Decision (2026-09-25) - A judge **error** leaves the finding open, without control refs. - A **refutation** puts the finding in a new status **"needs review"** ("Zu prüfen"). A person decides; the finding never disappears on its own. - The judge decides the mapping, never whether the finding exists. ## Done when - A new `FindingStatus` value, needs review, is accepted by status validation, shown and filterable in the dashboard (DE/EN), and counted as open wherever open findings are counted (overview, CRA status, evidence pack). - The judge's result distinguishes error, refuted and confirmed; triage maps them to open, needs review and confirmed with refs. - Tests cover each outcome, including an LLM error.
sharang added this to the Production MVP milestone 2026-09-25 07:59:04 +00:00
sharang added the bughigh labels 2026-09-25 07:59:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#367