A customer needs one page per target that answers "where do we stand
against the CRA Annex I requirements, and on what evidence?".
- Every control of the CRA map gets exactly one state:
not satisfied (open findings reference it; false positives and resolved
findings do not count, an accepted risk does), no violation found
(checkable in code, scanned, nothing against it), not assessed (no
completed scan yet, or no tool checks it), or not checkable in code (a
design property for the breakpilot compliance process).
- GET /api/v1/targets/{id}/compliance: the controls with the findings
against each (file:line, status), counts per state, the last scan, SBOM
and CVE counts. The evidence pack gains cra-compliance.json with the
same states.
- Dashboard: /targets/{id}/compliance ("CRA-Status"), violated controls
first, each finding linked; reachable from the target's details.
Tests: one state per control, open vs closed findings, nothing passes
before a scan, sort order; the evidence integration test (MongoDB) checks
40 controls, the violated one with its location, 19 not code-checkable.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p