fix patch governance-sync feat/governance-sync-2026-07-31 #5 / 10
aaronrene · 33 days ago · Jul 31, 2026 · Diff

fix(governance-sync): require compound slice IDs in pr_matches_row

PR #55 closeout dogfood: title 'queue PLS post-land sync' still matched open PLS-a via bare prefix PLS (and via English hyphenation Post-land ↔ post-land). When a phase label has a compound slice ID (PLS-a, GSW-FIX), only that compound (or the full label) may match — never the bare prefix. Compound pattern requires UPPERCASE/digit head so Post-land is excluded. Regression tests cover PR #55 title.

sha256:ec8b33d011d4fcd0ca97b627555809c1226a0f5b80c6060cf1fee30a6face9de sha
+8 ~1 −2 symbols
sha256:043caeb5c46ab4abb45428f38d13c2491c66f7334a5145b32276cb3b5c1f01d7 snapshot
+8
symbols added
~1
symbol modified
−2
symbols removed
0
dead code introduced
Semantic Changes 11 symbols
~ tests/unit/test_governance_drift.py .py 5 symbols added, 2 symbols removed
test_detect_drift_d3_ignores_generic_overlap_with_open_row function function test_detect_drift_d3_ignores_generic_overlap_with_open_row L78–87
test_pr_match_accepts_slice_identifying_token function function test_pr_match_accepts_slice_identifying_token L58–63
+ _GSW_CLOSEOUT_TITLE variable variable _GSW_CLOSEOUT_TITLE L49–51
+ test_detect_drift_d3_ignores_mention_of_queued_slice function function test_detect_drift_d3_ignores_mention_of_queued_slice L101–120
+ test_pr_match_accepts_compound_slice_id function function test_pr_match_accepts_compound_slice_id L72–78
+ test_pr_match_accepts_non_compound_slice_token function function test_pr_match_accepts_non_compound_slice_token L81–86
+ test_pr_match_rejects_bare_prefix_when_compound_id_exists function function test_pr_match_rejects_bare_prefix_when_compound_id_exists L61–69
~ tools/governance_hygiene/parse.py .py 3 symbols added, 1 symbol modified
+ _COMPOUND_SLICE_RE variable variable _COMPOUND_SLICE_RE L118–118
+ _compound_slice_ids function function _compound_slice_ids L121–131
+ _word_bounded function function _word_bounded L134–135

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:ec8b33d011d4fcd0ca97b627555809c1226a0f5b80c6060cf1fee30a6face9de --body "your comment"