Skip to content

fix(meta-mode): land through a named merge gate in Shipping - #61

Merged
3metaJun merged 4 commits into
mainfrom
fix/shipping-merge-gate
Nov 20, 2026
Merged

3metaJun merged 4 commits into
mainfrom
fix/shipping-merge-gate

Conversation

@3metaJun

@3metaJun 3metaJun commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Shipping step 5 says to land with gh pr merge --squash (or origin pr merge) and to arm --auto for merge-when-ready. Some setups name their own merge gate: a command that checks fresh CI on the merge with the current base and pins the head before merging, used where branch protection is unavailable. Following step 5 literally bypasses that gate, and --auto lands the PR later with no gate at all.

When the user's or the repository's instructions name a merge gate command, Shipping now (1) disarms any auto-merge already armed on the PRs it will land as its first action, or stops and reports; (2) lands the bottom PR only through the gate and never arms --auto; (3) when the gate refuses because checks are still running, waits on pr checks --watch (not step 8's merge watch), re-checks the verdict, and runs the gate again. Step 1 defers the choice of merge command to step 5. Without a named gate the steps are unchanged. Babysit already refuses to merge and routes to Shipping, so it is not touched.

Upstream: pstack at cursor/plugins aaeb0ea changed only step 5's watcher wording in its shipping.md (mstack's step 8) and rewrote babysit.md; neither overlaps this edit. The baseline digest for shipping.md is recorded with skill-baseline.mjs --write against the pinned sources (pstack 4dd1d05, mattpocock/skills 49dd158).

Verification: npm test (724 tests, 723 pass, 1 skipped, 0 fail).

Review

Round Reviewer Score Outcome
1 GPT-6.2 Sol (high) 7.5/10 Fixed: an already armed auto-merge bypassed the gate; no retry after a gate refused for running checks; step 1 also chose the merge command.
2 GPT-6.2 Sol (high) 8/10 Fixed: disarming came after preparation; the retry waited on the merge watch, which never ends once auto-merge is off.
3 GPT-6.2 Sol (high) 8.5/10 Fixed after the round (cap reached, not re-reviewed): disarm moved to the start of step 1, before verification. Out of scope (pre-existing): without a gate, a ship request whose checks turn green later has no path back to step 5.

Agent: Claude Opus 5.5 via Claude Code

🤖 Generated with Claude Code

3metaJun and others added 4 commits November 20, 2026 16:51
Shipping step 5 told agents to run `gh pr merge --squash` or arm `--auto`.
Where the user or repository names a merge gate command (a script that
checks fresh CI on the merge with the current base before merging), that
bypassed it, and merge-when-ready lands the PR later without any gate.
Step 5 now lands through such a command when one is named and never arms
`--auto` then; otherwise it is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, not the merge

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gate

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@3metaJun
3metaJun merged commit 98c42a6 into main Nov 20, 2026
1 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant