Repository navigation
v1.92.25.0 fix(ship): Step 3 stops by name on an unfinished merge, cherry-pick or revert (GST-732) - #3785
Merged
Conversation
…GST-732, failing first) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… name before any git merge (GST-732) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…wording (GST-732) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…top) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ile stops Step 3; unresolved conflicts with none in progress stop by name) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… /ship Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…not an operation in progress) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…ton fits its cap on current main (GST-732) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 1, 2026
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
gstack-ship-preflight's Step 3 now checks for an unfinished git operation before it does anything else. An in-progress merge, cherry-pick or revert stops by name (STOP: an unfinished cherry-pick is in progress (CHERRY_PICK_HEAD): …), with any conflicted files listed. Conflicted files with no operation in progress, as after a conflictedgit stash pop, stop with those files named. Neither case runsgit merge. The check looks for the operation's state file (git rev-parse --git-path MERGE_HEAD), so a branch or tag that happens to be namedMERGE_HEAD,CHERRY_PICK_HEADorREVERT_HEADdoesn't trip it. The ship skill's Step 3 also names theMERGE: up to dateoutcome #3774 added. Repositories onqueue_mode: stamp-at-merge(gstack itself) still skip Step 3's merge as before.Why
GST-732 collects the two follow-ups from GST-691 (#3774). That PR stopped the preflight from running
git mergewhen the base is already in HEAD. Its review left one gap: a resolved but uncommitted merge, cherry-pick or revert still fell through togit merge. On a Capy shared machine the shared-tree guard refusesgit merge, so the agent saw only the guard's refusal and no cause. The second follow-up was the docs line forMERGE: up to date.Proof, failing first.
test/ship-preflight-base-ancestor.test.ts:git mergeruns. On main 066ceb0 the merge case printed the oldSTOP: merge conflicts in src/a.ts…, and the resolved cases reached the guard's refusal.REVERT_HEADorCHERRY_PICK_HEADis not an operation, and a conflicted stash pop stops with its files named. This was added after review. On the branch before that fix, the named refs stopped preflight (exit 3).REVERT_HEADfrom the list makes the test fail (mutation check).Blast radius
merge()inlib/ship-preflight.ts, called once from the preflight's Step 3. It adds no network calls, environment reads, permission changes, workflow edits or dependencies.git mergeinstead of after it fails. Every other path is unchanged, includingMERGE: up to date, a real merge of a moved base, and conflicts from that merge.git amand a hand-committed multi-commit cherry-pick leave no*_HEADfile, so they still reachgit merge(noted below).Approvals
None needed. This is a bug fix assigned by GStack Minder (GSTA-36) under GST-522, with proof first.
Pre-Landing Review
Pre-Landing Review: 8 issues — 5 fixed, 0 deferred, 3 noted
Gate edits: none detected
Review notes
--git-pathprobe that fails now counts as "not pending". The cap's fix-check found nothing.git amor sequencer state, and conflict paths shown repo-root-relative.test/parity-suite.test.ts(skeleton 61428 > 61420). Step 3's note now readsup to dateif nothing new` (10 bytes shorter). One fix-check found nothing, and the docs re-audit found the docs current.test/ship-preflight.test.tsfail on main and on this branch alike, because the fixture inherits the parent's install verdict (INSTALL_UNVERIFIED). The focused lane runs with theGSTACK_*launch variables unset (22/0). CI does not set them.bun run eval:selectmakeslib/ship-preflight.tsa reference for 260 gate cases (85 shards). That is the whole gate, so the paid cases are left to the train'sgstack/full-gate, as for v1.92.13.0 fix: /ship's preflight skips git merge when the base is already in HEAD (GST-691) #3774.Documentation
Status: current. No documentation edits were needed.
Scope: re-audit of commit 74be8b0 on branch gst-732-preflight-unfinished-op against base 066ceb0. The commit shortened the Step 3 MERGE note in ship/SKILL.md.tmpl and regenerated ship/SKILL.md, the four ship goldens and the size-ledger entry. Nothing is staged, unstaged or untracked.
Documentation health:
Coverage debt: none. Diagram drift: none.
The first audit (a732-1) also found the docs current. Its coverage debt still applies: the new Step 3 STOP lines have no
docs/troubleshooting.mdentry.