From 76ef82b939daf9dafa91e78d27036c89c2f1958d Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Fri, 25 Sep 2026 22:27:41 +0200 Subject: [PATCH] docs(design): ask A1 is met, each master control carries its verification method Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p --- docs/design/derive-checks-from-controls.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/design/derive-checks-from-controls.md b/docs/design/derive-checks-from-controls.md index b755e58..fa9d1a1 100644 --- a/docs/design/derive-checks-from-controls.md +++ b/docs/design/derive-checks-from-controls.md @@ -75,10 +75,11 @@ Controls outside our lane stay "not checkable in code" on our side and are evide dsms. **Already in place:** -- The master-controls export (breakpilot PR #129) contains only `source_code` and `network` controls, grouped by method (2,143 network and 739 source_code), so dsms already applies the gate. +- The master-controls export (breakpilot PR #129) contains only `source_code` and `network` controls, so dsms already applies the gate. +- Every master control carries its method as a `verification-method` prop, and the export also groups by it. The snapshot shipped in #382 has 2,143 `network` and 739 `source_code` controls. - CRA controls carry `evidence-type`. -**The gap is ours:** `OscalDocument::to_controls()` flattens the groups and loses the method. We keep it per control (story 1). **Ask A1** is therefore only to keep that grouping stable. +**The gap is ours:** `OscalDocument::to_controls()` reads `evidence-type` but drops `verification-method`. We keep it per control (story 1). **Ask A1 is met**; nothing to ask. ### 2. What each control asks, in terms a check can use @@ -143,7 +144,7 @@ findings by CWE (`_CWE_TO_REQ`), and two mappings of the same finding will drift | # | Ask | Why | | --- | --- | --- | -| A1 | Keep the master-controls export grouped by verification method (as today) | the gate (1) | +| A1 | ~~Verification method per master control~~: **met**, each control carries `verification-method` | the gate (1) | | A2 | `test_procedure` / `requirements` of master controls as raw catalog parts (objectives stay ours) | check texts and surface terms (2), rule candidates (3) | | A3 | Keep control ids stable and the content hash per catalog | our map is keyed on them | | A4 | Umlauts in the catalog's titles and prose ("Passwörter", not "Passwoerter") | shown to customers verbatim | @@ -153,7 +154,7 @@ findings by CWE (`_CWE_TO_REQ`), and two mappings of the same finding will drift ## What we build (stories, once agreed) -1. **Gate by method:** keep the method from the export's groups and the CRA evidence type per control; controls outside our lane are "evidenced in dsms" on the CRA status. +1. **Gate by method:** keep each master control's `verification-method` and each CRA control's evidence type; controls outside our lane are "evidenced in dsms" on the CRA status. 2. **Derived check texts and surface terms:** for CRA, from the linked measures (available now); for master controls, from A2's material. Reviewed and versioned in the control map; `surface.rs` reads its terms from there. 3. **Rule-candidate pipeline:** LLM draft, deterministic test gate, review; one candidate per uncovered control; nightly fixture per accepted rule. 4. **Judge answer and pre-filter:** counter-evidence spans and failure mode; deterministic term pre-filter in 5c.