Demonstration plan, phase D3: on staging BREAKPILOT_BASE_URL points at api-dev.breakpilot.ai, which answers 401 until the dsms migration (M-MIG-9, parked). Control mapping was gated on that URL, so demo scans produce findings with no control references — the one thing a CRA prospect looks for.
The catalog loader already snapshotted the bytes it fetched and fell back to them when the backend was down. This promotes the snapshot to a real source:
OscalControlsProvider takes Option<String> for the base URL; with None it serves snapshots only, and has_snapshots() decides whether control triage runs at all.
The agent image ships compliance-agent/controls/snapshot/oscal-catalog-cra.json — CRA Annex I, 8 groups / 40 controls, generated by breakpilot-compliance's own build_cra_catalog(), so it is byte-identical to what ?framework=cra serves. The entrypoint copies it into BREAKPILOT_SNAPSHOT_DIR only if that file is absent, so a snapshot fetched from a live backend (or a mounted volume) always wins.
scripts/refresh-oscal-snapshot.sh regenerates the committed snapshots from a backend when one is reachable.
A test asserts the shipped file parses and still carries 40 controls, so a bad refresh cannot silently disable mapping.
master-controls is DB-derived (~3k controls) and is not shipped, so the semantic pass stays a no-op offline; staging should set BREAKPILOT_SEMANTIC_MAPPING=false and drop BREAKPILOT_BASE_URL (separate orca-platform change). Deterministic LUT triage and the grounded surface checks then run against the CRA catalog and findings carry control_refs.
Demonstration plan, phase D3: on staging `BREAKPILOT_BASE_URL` points at `api-dev.breakpilot.ai`, which answers 401 until the dsms migration (M-MIG-9, parked). Control mapping was gated on that URL, so demo scans produce findings with **no control references** — the one thing a CRA prospect looks for.
The catalog loader already snapshotted the bytes it fetched and fell back to them when the backend was down. This promotes the snapshot to a real source:
- `OscalControlsProvider` takes `Option<String>` for the base URL; with `None` it serves snapshots only, and `has_snapshots()` decides whether control triage runs at all.
- The agent image ships `compliance-agent/controls/snapshot/oscal-catalog-cra.json` — CRA Annex I, 8 groups / 40 controls, generated by breakpilot-compliance's own `build_cra_catalog()`, so it is byte-identical to what `?framework=cra` serves. The entrypoint copies it into `BREAKPILOT_SNAPSHOT_DIR` only if that file is absent, so a snapshot fetched from a live backend (or a mounted volume) always wins.
- `scripts/refresh-oscal-snapshot.sh` regenerates the committed snapshots from a backend when one is reachable.
- A test asserts the shipped file parses and still carries 40 controls, so a bad refresh cannot silently disable mapping.
`master-controls` is DB-derived (~3k controls) and is not shipped, so the semantic pass stays a no-op offline; staging should set `BREAKPILOT_SEMANTIC_MAPPING=false` and drop `BREAKPILOT_BASE_URL` (separate orca-platform change). Deterministic LUT triage and the grounded surface checks then run against the CRA catalog and findings carry `control_refs`.
Verified locally: `cargo fmt --all --check`, `cargo clippy -p compliance-agent -- -D warnings`, `cargo test -p compliance-agent --lib` (314 passed).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Control mapping was gated on BREAKPILOT_BASE_URL, so on staging (where
breakpilot-compliance is not reachable until the dsms migration) every
finding came back without control_refs. The catalog loader already
snapshots fetched bytes and falls back to them offline; this makes the
snapshot a first-class source:
- the provider takes an optional base URL and serves snapshots alone,
- the agent image ships compliance-agent/controls/snapshot (CRA Annex I,
40 controls, built by breakpilot-compliance's build_cra_catalog) and
the entrypoint seeds it into BREAKPILOT_SNAPSHOT_DIR if absent, so a
snapshot refreshed from a live backend always wins,
- scripts/refresh-oscal-snapshot.sh regenerates the committed files.
master-controls stays DB-derived and unshipped, so the semantic pass is
still a no-op offline; run those environments with
BREAKPILOT_SEMANTIC_MAPPING=false.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang
merged commit 728f3ab3bc into main2026-09-14 07:53:19 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Demonstration plan, phase D3: on staging
BREAKPILOT_BASE_URLpoints atapi-dev.breakpilot.ai, which answers 401 until the dsms migration (M-MIG-9, parked). Control mapping was gated on that URL, so demo scans produce findings with no control references — the one thing a CRA prospect looks for.The catalog loader already snapshotted the bytes it fetched and fell back to them when the backend was down. This promotes the snapshot to a real source:
OscalControlsProvidertakesOption<String>for the base URL; withNoneit serves snapshots only, andhas_snapshots()decides whether control triage runs at all.compliance-agent/controls/snapshot/oscal-catalog-cra.json— CRA Annex I, 8 groups / 40 controls, generated by breakpilot-compliance's ownbuild_cra_catalog(), so it is byte-identical to what?framework=craserves. The entrypoint copies it intoBREAKPILOT_SNAPSHOT_DIRonly if that file is absent, so a snapshot fetched from a live backend (or a mounted volume) always wins.scripts/refresh-oscal-snapshot.shregenerates the committed snapshots from a backend when one is reachable.master-controlsis DB-derived (~3k controls) and is not shipped, so the semantic pass stays a no-op offline; staging should setBREAKPILOT_SEMANTIC_MAPPING=falseand dropBREAKPILOT_BASE_URL(separate orca-platform change). Deterministic LUT triage and the grounded surface checks then run against the CRA catalog and findings carrycontrol_refs.Verified locally:
cargo fmt --all --check,cargo clippy -p compliance-agent -- -D warnings,cargo test -p compliance-agent --lib(314 passed).🤖 Generated with Claude Code
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB