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

fix(governance-sync): pr_matches_row requires slice-identifying tokens

Live GSW land-b closeout dogfood: PR #54 title ('GSW land-b docs sync + muse code add staging fix') fragment-matched the freshly queued open row 'PLS-a Post-land main sync freeze' on boilerplate words (land/sync/post/main), which would have stamped PLS-a/PLS-b DONE and left next_regen zero_open_rows. Same defect class as the land-a land_queue_conflict hyphen-fragment fix. pr_matches_row now matches only the full phase label or word-bounded, non-generic tokens (len>=3). Regression tests added; targeted suites 209 green.

sha256:73f19df17422c6f84441ee9ff3b3185bab4596a59d943d47963370bf8b24c57e sha
+11 ~3 symbols
sha256:6c5e29d46da6882b28246f04cd6bd84853c65272a0985e8c9411e177429952b3 snapshot
+11
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes 14 symbols
~ tests/unit/test_governance_drift.py .py 10 symbols added, 2 symbols modified
+ _GSW_LAND_B_TITLE variable variable _GSW_LAND_B_TITLE L48–48
+ _row function function _row L44–45
+ QueueRow import import QueueRow L9–9
+ pr_matches_row import import pr_matches_row L8–8
+ replace import import replace L5–5
+ 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
+ test_pr_match_full_label_substring_still_matches function function test_pr_match_full_label_substring_still_matches L71–75
+ test_pr_match_rejects_generic_fragment_overlap function function test_pr_match_rejects_generic_fragment_overlap L51–55
+ test_pr_match_requires_word_boundary function function test_pr_match_requires_word_boundary L66–68
~ tools/governance_hygiene/parse.py .py 1 symbol added, 1 symbol modified
+ _GENERIC_PHASE_TOKENS variable variable _GENERIC_PHASE_TOKENS L91–112

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:73f19df17422c6f84441ee9ff3b3185bab4596a59d943d47963370bf8b24c57e --body "your comment"