Repository navigation
v1.92.54.0 ship-queue: train land takes the shared land lock; verify proves the stamp; restamp stages its writes (#3599, #3531) - #3737
Merged
Conversation
…-red, conditional receipts) (GSTA-157 PR 1) 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>
…, readPause, wait unconfigured) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ers an invalid base policy Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ify usage before fetch, unresolved-head detail) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… 2026-10-31); CHANGELOG entry moved to changelog.d fragment Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…command), every prefix gated, generalized train land (direct/update, merge method), base-red trains, train init/doctor, watch --land (GSTA-157 PR 2) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…base, post-merge checks, output tail, caps) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…merge checks are green Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… fixes 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>
…m resolves gh.exe there) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…py/ship-queue-merge-trains (rule 19 grant, GStack Minder 2026-10-31) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d-train refusal; freeze takeover reads the notes ref; a refused lock push is not reported as a taken lock) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…r it (pre-landing review pass 2) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ed dry run refuses before the real run; settleLock names the real lock-write failure (Step 11 review) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
5 tasks done
…ref reads absent; unread verify head refuses QUEUE_PROOF_MISSING Step 11 adversarial findings on PR #3737: a freeze lock whose release push failed blocked every standalone land after its freeze cleared (freezeLockCleared shared by land and train land takeover); readLock kept a cached ref deleted on origin; verify --train --no-fetch judged the unstamped pin; the slot call now restores the worktree for an unrequested fifth file. 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>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai
Bot
changed the base branch from
capy/ship-queue-merge-trains
to
main
October 31, 2026 21:47
|
😎 This pull request was merged. |
…-land Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # lib/ship-queue-train-cli.ts # lib/ship-queue-train-gate.ts # lib/ship-queue-train-land.ts # lib/ship-queue-train-verify.ts
…read head Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-land Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/ship-queue-train.test.ts
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.
Fixes #3599 and #3531. It was stacked on #3692, which merged as v1.92.0.0; it now targets main, with one merge of main (no product change). The plan is an eng-only autoplan run, run-20261031175057, approved by GStack Minder at gate_rev 3.
What changed
train landtakes the same remote lock asland(refs/notes/gstack-land, moved into lib/ship-queue-land-lock.ts with no change to how land uses it). The lock records an owner kind, standalone or train/slot, so a same-PR land can't take over a train's lock. Once a slot has merged, the train keeps the lock in abetweenphase until its last slot lands, even through a refusal on the next slot. A freeze moves it to afreezephase that only the admitted repair train takes over while the freeze lasts. Once the freeze is cleared, the nextlandortrain landtakes over a freeze lock whose release push failed.--break-lockprints the holder and refuses a live train's lock unless--break-train-lockis also passed. A lock ref deleted on origin now reads as no lock on every clone.verify --trainrefuses with QUEUE_TRAIN_UNSTAMPED when the head's version isn't above main's, when the CHANGELOG's top section isn't that version, or when an[Unreleased]section is left over. "Merged" now requires GitHub to report MERGED. An open or unreadable PR refuses with QUEUE_PROOF_MISSING and never freezes the queue; the release-only shape takes the pre-merge path. A verify that couldn't read the PR's current head (--no-fetchor a failed fetch) also refuses with QUEUE_PROOF_MISSING instead of judging the unstamped pin.gstack-restamp --nextrunsgit add -A -- <FILES>and printsSTAGED:, or RESTAMP_NOT_STAGED. A stale staging marker no longer breaks the noop rerun: files that still match are staged, and changed ones are named on aNOTE:line. The change is in the bin; lib/restamp.ts is unchanged.git restore --staged --worktreefor a file it doesn't name.Why
train landtook no lock, so it andlandcould both read the same main and publish a combined tree neither had tested. In train 33,verify --trainsaid "may merge" for #3527's head after a bare commit dropped the stamp restamp had written but not staged, so #3527 shipped under #3526's version.Blast radius
Only the ship-queue merge path:
land,train land,verify --trainandgstack-restamp. Plain trains still merge throughverify --trainandgh pr merge, outside the lock. gbrain gets a handoff note for the new lock behavior.Proof (each test was written first and failed at base 93fc5dc)
verify --trainexited 0 ("may merge") on an unstamped slot head. This is how feat(ship): /ship and /autoplan size their review to the diff (GSTA-131) #3527 shipped under v1.91.290.0 feat(harness): gstack registers its skills in whatever agent harness it is installed into (GSTA-135) #3526's version.--no-commitmerge dropped the stamp.landstill doesn't check a freeze that no lock records (listed below; this predates the PR).Review fixes, each red-first against the commit before the fix:
verify --train --no-fetchjudged the unstamped pin.Also fixed in review, with a regression assertion but no recorded failing run before the fix: a lock ref deleted on origin now reads as no lock.
Test changes to note
A fix-check reviewer read all three: each still proves what it proved before.
Pre-Landing Review
REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=2 fixed=5 scope=frozen fix_checks=1
Gate edits: the three test changes listed above. No threshold, skip or budget changed.
Informational findings, not fixed here:
landSlotthrows, the lock stays instamping. Rerunning the slot, or--break-lock --break-train-lock, recovers. No fixture can force the throw, andlandhad the same gap before this PR.betweenlock needs--break-lock --break-train-lockafter 10 minutes.git add.landdoesn't check for an active freeze that no lock records. This predates the PR.synced.fetchedguard on its own.Paid evals: none run for this PR. The selector picks about 120 probes and 25 judges, because the ship-queue bins are derived references to every case. The train's full gate runs them.
Security read
git pushto the notes ref under an exact lease.readLockadds onegit ls-remoteof that ref.git addcovers only the paths restamp itself reported.Approvals
Source: gstack-approvals record for capy/ship-queue-train-land (display only; not an approval citation).
Fixes #3531
Fixes #3599