Repository navigation
audit(#961): /merger's gh pr merge needs a Named-Set Boundary rule, not an --auto-merge gate - #967
Merged
admarble merged 2 commits intoAug 26, 2026
Conversation
Entire-Checkpoint: f6cea8e9b480
3 tasks
Entire-Checkpoint: 05b3b75cf5f2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Audit of
/merger's merge/close/push sites, following #958's deferred question of whether/mergerneeds the same--auto-mergegate/fullsolvegot.Conclusion:
/merger <issue-numbers>merging the named issues is the skill's stated purpose and the user's explicit consent — unlike/fullsolve's pre-#958 hidden side effect, gating it with--auto-mergewould defeat the skill. But two silent widen paths existed where merge ordering could pull in an unnamed issue's PR. Added a Named-Set Boundary rule instead: halt and report rather than merge beyond the invocation's arg list.AC-1: Audit — every merge/close/push site in
/merger(3 mirrors, byte-identical)gh pr merge <PR_NUMBER> --squashmerger/SKILL.md:271(clean-merge path)gh pr create --title "feat: Integrate ..."merger/SKILL.md:315(integration-branch path)gh pr closegit push origin main/mergernever pushes to main directlymerger/SKILL.md(pre-fix)merger/SKILL.md(pre-fix)Both⚠️ rows are the two out-of-named-set ambiguities this PR closes.
AC-2: Decision — Named-Set Boundary rule (implemented)
Outcome chosen: narrow rule, not a flag gate (rejected
--auto-merge-style gating as defeating/merger's core purpose; rejected a blanket y/N prompt on every merge as breaking batch use, since the stacked-PR section already has a targeted one).Added a delimited
<!-- BEGIN/END: named-set-boundary (#961) -->section tomerger/SKILL.md(all 3 mirrors) stating: never merge a PR whose issue isn't in the invocation's arg list; on an unmerged out-of-set dependency or stack predecessor, halt and report the widened command instead of silently including it. Amended both Dependency Detection and Stacked PR Detection to reference and defer to this rule.Gate test:
src/lib/__tests__/merger-named-set-boundary-skill.test.ts— asserts the boundary section text and that both amended sections reference it, across all 3 skill-root mirrors.Mutation-verified: AC-2 — replaced "Named-Set Boundary" phrase in
skills/merger/SKILL.md; 2 of 9 tests inmerger-named-set-boundary-skill.test.tsfailed (exactly the two section-reference checks for the mutated root); restored.AC-3:
/releasemerge-adjacent auditConfirmed:
/releasehas nogh pr mergesites anywhere. Its twogit push origin mainsites (Step 6, and the tag-recovery block) are core to releasing (committing the version bump, pushing the release commit) and already checkout-lock-protected since #911 (ace4a9be). Verdict: no change needed.Non-Goals (unchanged from issue)
/fullsolve(already fixed in fix(fullsolve): Phase 5.3 auto-merges the PR — the skill's own stop-list says to halt at the final summary #958).sequant merge/sequant merge --watch(already explicit, human-triggered).Sibling observation (not fixed here, filed as follow-up scope)
/merger's regression gate (Step 7) says "merge is blocked," but thegh pr mergecalls in Step 5 have already landed by then — the gate is post-hoc wording over an already-executed side effect. Out of #961's consent-gate scope per the spec's Open Question 2; left as a follow-up candidate.Test plan
npx vitest run src/lib/__tests__/merger-named-set-boundary-skill.test.ts— 9/9 passnpx vitest run src/lib/__tests__/merger-checkout-lock-skill.test.ts— 24/24 pass (regression check, unaffected)npm run build— cleannpm run lint— cleannpm run lint:skill-sync— 44/44 synced, includingmerger/SKILL.mdCloses #961