You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e4199ec
Browse filesBrowse the repository at this point in the historyBrowse files
P-037 Phase B / B1-F2-F4-R2: close the carve-out invariant generically
11f08d5 fixed the concrete dump.rs omission but left the CLASS of defect
open: nothing derived expected INSTRUMENT_CARVE_OUTS from production_diff_
gate.rust's own mutable_items/mutable_files/unit (plus the extractor's
unit), so a future widening -- e.g. adding src/render.rs to mutable_items
without a matching carve-out -- would recreate the identical instrument/
treatment collision under a new filename and escape both the recorded-unit
cross-check and a selftest that only knows today's three files by name.
_record_closure_problems() now derives the expected Rust treatment set
directly from the epoch record already in hand (no new runtime import of
either diff-gate module -- their mutable_items/mutable_files/unit are
already present in what epoch_record() reads) plus the extractor's own
whole-unit carve-out, deliberately EXCLUDING production_diff_gate.rust.
controls (tests/ is a different concept: production-gate churn, never
Phase-B treatment provenance), and requires the derived set to equal
INSTRUMENT_CARVE_OUTS exactly -- catching both a missing carve-out and an
unjustified excess one, only once both recorded units are already
confirmed correct (avoiding cascading noise from a bogus prefix).
Hostile selftest, against a deep copy of the real committed epoch record:
injecting a hypothetical src/render.rs mutable_items entry with no carve-
out is refused; removing dump.rs's own entry (making its carve-out newly
excess) is refused too. The real, current epoch record closes cleanly.
Zero production semantics. Both diff gates report IDENTICAL against
3ac13fd; ruff, mypy, and the full test suite are clean. Touches exactly
scripts/p037_evidence_b.py.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AN6xHbpovxrmZ4AMjS7WQA
0 commit comments