← Về thư mục
scripts/test_check_policy_anchor_protocol.py
- CheckPolicyAnchorProtocolGoldenPathTest · class · L82-L85 — class CheckPolicyAnchorProtocolGoldenPathTest(unittest.TestCase)
- test_good_protocol_passes · method · L83-L85 — def test_good_protocol_passes(self) -> None
- CheckPolicyAnchorProtocolMutationTests · class · L88-L224 — class CheckPolicyAnchorProtocolMutationTests(unittest.TestCase)
- test_missing_invariant_reference_fails · method · L89-L95 — def test_missing_invariant_reference_fails(self) -> None
- test_missing_concern_resolution_fails · method · L97-L103 — def test_missing_concern_resolution_fails(self) -> None
- test_missing_g10_table_row_fails · method · L105-L115 — def test_missing_g10_table_row_fails(self) -> None: # Drop row 4 — the load-bearing full-anchor-disclosure row
- test_missing_auto_promotion_forbiddance_fails · method · L117-L132 — def test_missing_auto_promotion_forbiddance_fails(self) -> None: # Strip every mention of both forbiddance keywords so the validator # has nothing to anchor on; replace with neutral filler text.
- test_partial_auto_promotion_token_loss_still_fails · method · L134-L148 — def test_partial_auto_promotion_token_loss_still_fails(self) -> None: # Codex round-2 P2 #3: dropping the load-bearing MUST NOT sentence # while keeping the "auto-promotion" heading should still fail. The # protocol's invariant is the prohibition itself; the heading word # alone is insufficient.
- test_partial_keyword_loss_still_fails · method · L150-L160 — def test_partial_keyword_loss_still_fails(self) -> None: # Inverse mutation: keep the prohibition sentence but drop the # "auto-promotion" anchor heading. The lint should still fail # because both tokens are load-bearing.
- test_concern_number_boundary_matching · method · L162-L174 — def test_concern_number_boundary_matching(self) -> None: # Codex round-5 P2 #3 closure: removing
concern #1 from a doc that # still mentions concern #10 and concern #11 should still fail. # Previous substring-membership check would let the document pass.
- test_missing_dedup_pointer_fails · method · L176-L182 — def test_missing_dedup_pointer_fails(self) -> None
- test_missing_anchor_slug_fails · method · L184-L199 — def test_missing_anchor_slug_fails(self) -> None: # Codex round-6 P2 #2 closure: dropping slug from the # Anchor inventory line must fail even if the slug name # appears elsewhere (e.g., in a per-anchor render section).
- test_missing_anchor_inventory_line_fails · method · L201-L210 — def test_missing_anchor_inventory_line_fails(self) -> None
- test_extra_anchor_in_inventory_fails · method · L212-L224 — def test_extra_anchor_in_inventory_fails(self) -> None: # Codex round-7 P3 #2 closure: inventory advertising a slug # outside the canonical closed enum (e.g.,
cope) must fail. # Previously the lint only checked presence, not extras.
- CheckPolicyAnchorProtocolInvariantTest · class · L227-L232 — class CheckPolicyAnchorProtocolInvariantTest(unittest.TestCase)
- test_invariant_names_count · method · L228-L229 — def test_invariant_names_count(self) -> None
- test_concern_count · method · L231-L232 — def test_concern_count(self) -> None