Controls · Keep the catalog's severity and evidence type; per-binding check text for the judge #381

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

Part of #338. Found while tracing where the controls come from (2026-09-25).

Problem

The CRA catalog from breakpilot-compliance (compliance-agent/controls/snapshot/oscal-catalog-cra.json) is used only as the prose for the LLM judge. build_specs hardcodes severity: Medium and default_cwe: None (compliance-agent/src/controls/scan_triage.rs:108-109) and drops the catalog's severity and evidence-type.

The judge also weighs a tool finding against the control's generic prose. For example, a buffer overflow is weighed against cra-ai-20's "SAST … in der CI/CD-Pipeline".

Done when

  • The catalog's severity, evidence-type and annex-anchor are carried into the control specs and shown on the CRA status page.
  • Each binding in the control map can carry its own check text ("unbounded copy → memory safety"), which the judge reads in place of the generic prose.
  • The control map's 40 ids are checked against the snapshot (content hash, ids present), in a test.
  • Upstream note for breakpilot-compliance: the catalog's titles and prose use ASCII transliterations ("Passwoerter", "Schluessel"). Fix at the source; the refresh script copies it verbatim.
Part of #338. Found while tracing where the controls come from (2026-09-25). ## Problem The CRA catalog from breakpilot-compliance (`compliance-agent/controls/snapshot/oscal-catalog-cra.json`) is used only as the prose for the LLM judge. `build_specs` hardcodes `severity: Medium` and `default_cwe: None` (`compliance-agent/src/controls/scan_triage.rs:108-109`) and drops the catalog's `severity` and `evidence-type`. The judge also weighs a tool finding against the control's generic prose. For example, a buffer overflow is weighed against cra-ai-20's "SAST … in der CI/CD-Pipeline". ## Done when - The catalog's `severity`, `evidence-type` and `annex-anchor` are carried into the control specs and shown on the CRA status page. - Each binding in the control map can carry its own check text ("unbounded copy → memory safety"), which the judge reads in place of the generic prose. - The control map's 40 ids are checked against the snapshot (content hash, ids present), in a test. - Upstream note for breakpilot-compliance: the catalog's titles and prose use ASCII transliterations ("Passwoerter", "Schluessel"). Fix at the source; the refresh script copies it verbatim.
sharang added this to the Production MVP milestone 2026-09-25 07:59:09 +00:00
sharang added the enhancement label 2026-09-25 07:59:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#381