From 573fed073bec6f6bc8065406bec34df2d8543e5d Mon Sep 17 00:00:00 2001 From: Shay Date: Tue, 26 May 2026 18:15:16 -0700 Subject: [PATCH] fix(INV-02): allowlist test_issue_300_versor_margin.py (#316) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The issue #300 regression test calls normalize_to_versor() directly to verify its closure contract — identical justification to test_versor_closure.py. Without the allowlist entry, INV-02 fails in CI on every PR rebased on top of the #312 fix. Co-authored-by: Claude Opus 4.7 --- tests/test_architectural_invariants.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_architectural_invariants.py b/tests/test_architectural_invariants.py index 8b03cc98..f64ac169 100644 --- a/tests/test_architectural_invariants.py +++ b/tests/test_architectural_invariants.py @@ -222,6 +222,11 @@ class TestINV02GateOnlyNormalization: os.path.join("ingest", "gate.py"), os.path.join("tests", "test_architectural_invariants.py"), os.path.join("tests", "test_versor_closure.py"), + # test_issue_300_versor_margin.py: regression test for the + # gate-boundary margin bug; calls normalize_to_versor() + # explicitly to verify the function's own closure contract. + # Same justification as test_versor_closure.py. + os.path.join("tests", "test_issue_300_versor_margin.py"), # evals/lab/ is research-only, never imported by runtime. # Lab probes need construction-time normalization to build # experimental rotors / embeddings; this does not weaken