Controls · Derive checks from breakpilot-compliance controls (design) #383

Open
opened 2026-09-25 07:59:10 +00:00 by sharang · 1 comment
Owner

Part of #338. Design first, then split into stories.

Today

Checks exist independently: semgrep, cppcheck, gitleaks, syft/osv and the PLC lint. Their findings are mapped to controls afterwards through our hand-written map (control-map/data/cra_control_map.json) and confirmed by the LLM judge. No check is derived from a control. The nearest is the grounded surface check, whose keyword lists are hand-coded in surface.rs.

Goal

Derive checks from the breakpilot-compliance (dsms) controls:

  1. Gate: use dsms's verification_method / evidence-type so that only controls marked as code-verifiable get automated checks. The rest are shown as a breakpilot lane.
  2. Surfaces: derive the grounded surface keywords, per language including C/C++, from the control text instead of hard-coding them.
  3. Rule candidates: a control proposes semgrep rule candidates. A person reviews them into the rule pack with tests, so no LLM decides coverage.
  4. Retrieval: use the unused ControlsProvider::controls() query API (oscal_provider.rs:175-192) to retrieve controls for a finding or a code region.

Done when

A design note in docs/ agreed with the breakpilot-compliance side, and follow-up stories filed.

Part of #338. Design first, then split into stories. ## Today Checks exist independently: semgrep, cppcheck, gitleaks, syft/osv and the PLC lint. Their findings are mapped to controls afterwards through our hand-written map (`control-map/data/cra_control_map.json`) and confirmed by the LLM judge. No check is derived from a control. The nearest is the grounded surface check, whose keyword lists are hand-coded in `surface.rs`. ## Goal Derive checks from the breakpilot-compliance (dsms) controls: 1. **Gate:** use dsms's `verification_method` / `evidence-type` so that only controls marked as code-verifiable get automated checks. The rest are shown as a breakpilot lane. 2. **Surfaces:** derive the grounded surface keywords, per language including C/C++, from the control text instead of hard-coding them. 3. **Rule candidates:** a control proposes semgrep rule candidates. A person reviews them into the rule pack with tests, so no LLM decides coverage. 4. **Retrieval:** use the unused `ControlsProvider::controls()` query API (`oscal_provider.rs:175-192`) to retrieve controls for a finding or a code region. ## Done when A design note in `docs/` agreed with the breakpilot-compliance side, and follow-up stories filed.
sharang added this to the Production MVP milestone 2026-09-25 07:59:10 +00:00
sharang added the enhancementepic labels 2026-09-25 07:59:10 +00:00
Author
Owner

The draft (PR #400) is posted for the breakpilot-compliance side as Benjamin_Boenisch/breakpilot-compliance#259, with the six asks A1–A6. The follow-up stories get filed once they have agreed.

The draft (PR #400) is posted for the breakpilot-compliance side as Benjamin_Boenisch/breakpilot-compliance#259, with the six asks A1–A6. The follow-up stories get filed once they have agreed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#383