|
C2 sub-task (i): sandbox re-verified faithful; fidelity-checker scope false-positive fixed
Re-ran the HARDENED fidelity check against office1-netbox (the VR1 IPAM apex, DOCFIX-195) -- read-only dump via the consolidated sandbox token + an SSH tunnel. Result: exit 0, "upstream draft + EXACTLY the planned delta (D-115/D-117/D-118)." C2 sub-task (i) is CLOSED; the sandbox is proven faithful. The hardened checker false-failed on 10.10.0.0/16 and 172.30.0.0/16 being unscoped -- but those two role-container /16s are unscoped BY DESIGN (d115-office-carve.py), matching the 27 unscoped role containers already in the upstream apex. A full cross-check of all 44 delta prefixes against their intended scope was 44/44 (every DC prefix on the correct DC site; no wrong-target binding). Fix (netbox/sandbox-fidelity-check.py): assert scope == INTENDED per delta prefix (EXPECTED_PREFIX_SCOPE; DC half generated by _dc_prefix_scopes so the CIDR set and scope map cannot drift). Strictly stronger than the old "has a scope?" test -- still catches a dropped scope, and now catches a WRONG-TARGET binding (a DC0 prefix bound to vr1-dc1, the D-117 near-miss). NOT fixed by exempting the two CIDRs. Harness moved to dump format (scope_site), T1 sets each prefix's scope from the checker's own map, +T9 (wrong-target fails) +T10 (legit-unscoped passes). 10->12. Gauntlet ALL GREEN (58); repo-lint 0 fail. SEC-009: the sandbox NetBox token had been MISSED by the consolidation (lived only at /root/netbox-secrets/api.token on office1-netbox); now consolidated to ~/vr1-office1-creds/vr1-netbox-sandbox.env (0600), copied off the VM without printing. Ledger addendum recorded. No NetBox state changed -- dump and check are read-only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015WgVrZE2ryY9aXP7JiBuwj |
|---|
|
|
| docs/changelog-20260715-fidelity-check-scope-correctness.md 0 → 100644 |
|---|
| docs/security-ledger.md |
|---|
| docs/session-ledger.md |
|---|
| netbox/sandbox-fidelity-check.py |
|---|
| tests/sandbox-fidelity-check/run-tests.sh |
|---|