feat(controls): ship the master-controls snapshot; semantic mapping capped #403

Merged
sharang merged 1 commits from feat/master-controls-snapshot into main 2026-09-25 20:28:10 +00:00
Owner

Closes #382.

  • Snapshot: compliance-agent/controls/snapshot/oscal-catalog-master-controls.json, dsms's master-controls export: 2,882 controls (739 source_code, 2,143 network), content hash 414dfe6c…. It's a one-off snapshot built in the dsms container, because the catalog route rejects service tokens (breakpilot-compliance#259, A7). The image already seeds every snapshot file into BREAKPILOT_SNAPSHOT_DIR.
  • Semantic pass, capped:
    • It runs only on findings the CRA triage left without refs, mostly PLC and pattern findings.
    • It takes at most 40 per scan, most severe first, and logs how many were skipped.
    • It judges 4 at a time.
  • Tests:
    • The shipped snapshot parses and matches its declared control count.
    • Candidate selection covers severity order, skipping mapped findings and false positives, and the cap.

Staging still has BREAKPILOT_SEMANTIC_MAPPING=false. A separate orca-platform PR turns it on.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

Closes #382. - **Snapshot:** `compliance-agent/controls/snapshot/oscal-catalog-master-controls.json`, dsms's master-controls export: 2,882 controls (739 source_code, 2,143 network), content hash `414dfe6c…`. It's a one-off snapshot built in the dsms container, because the catalog route rejects service tokens (breakpilot-compliance#259, A7). The image already seeds every snapshot file into `BREAKPILOT_SNAPSHOT_DIR`. - **Semantic pass, capped:** - It runs only on findings the CRA triage left without refs, mostly PLC and pattern findings. - It takes at most 40 per scan, most severe first, and logs how many were skipped. - It judges 4 at a time. - **Tests:** - The shipped snapshot parses and matches its declared control count. - Candidate selection covers severity order, skipping mapped findings and false positives, and the cap. Staging still has `BREAKPILOT_SEMANTIC_MAPPING=false`. A separate orca-platform PR turns it on. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-09-25 19:56:32 +00:00
feat(controls): ship the master-controls snapshot; semantic mapping capped (#382)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 6m38s
a35afc87e8
Ships dsms's master-controls catalog (2,882 code- and network-checkable
controls, one-off snapshot) in the agent image, so the semantic pass has
controls to map against in snapshot-only mode.

The semantic pass now looks only at findings the CRA triage left without
refs, takes the 40 most severe per scan and judges four at a time, so a
scan stays near today's length.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 0bd7ae560e into main 2026-09-25 20:28:10 +00:00
Sign in to join this conversation.