Repository navigation
v1.91.245.0 fix(ship-queue): ready counts the latest run per check name and hints the dispatch route on a conflicting PR - #3460
Merged
Conversation
…s not a stamp Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tputs it must rewrite, prune the staging worktree Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tput from a file, never follow a VERSION symlink Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…, read a bounded log Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… the dispatch route on a conflicting PR; ship-policy follows #3439 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…s standalone, quote the hint branch; restore the full CHANGELOG Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…en hint, restore the CHANGELOG tests bullet Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…n a conflicting PR Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he conflict fixture carries a ship receipt, the --screen refusal is named as main prints it Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai
Bot
changed the base branch from
capy/version-gate-regenerated-release-output
to
main
October 26, 2026 09:20
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
4 tasks done
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.
What changed
Three follow-ups from GSTA-101's files, first stacked on #3451 and now based on main (v1.91.237.0 merged in after #3438 and #3451 landed):
gstack-ship-queue readycounts CI the way GitHub's rollup does.ciAtHeadcounted every check run on the commit, so a superseded run (gbrain saw a cancelledcontributor-gatebeside three later passes on the same head) read asfailed=1while GitHub showed 0 failed. The newlatestRunPerName(lib/ship-queue.ts) keeps the newest run per check, keyed by the reporting app's id plus the check name (latestcompleted_at, then highest id; a run still in progress is newest). Two apps reporting one name stay separate, a run with no name or no readablecompleted_atcounts on its own (fail closed), and commit-status contexts still count one each.docs/ship-policy.mdfollows v1.91.238.0 fix(ship): gate-diff base in single-branch clones, gstack-post release versions and receipt ids, evidence tests_ran, restamp duplicate headings and stamp prompt (GSTA-102) #3439. Thestamp-at-mergerow'snext:description now quotes the train wordinggstack-restampprints since v1.91.238.0 fix(ship): gate-diff base in single-branch clones, gstack-post release versions and receipt ids, evidence tests_ran, restamp duplicate headings and stamp prompt (GSTA-102) #3439 (commit and push only the stamp diff above (FILES), with no edit of your own), and the restampchangelogstage describesCHANGELOG_DUPLICATE_HEADINGas only a duplicate the PR introduces, measured against the base's CHANGELOG atorigin/<base>and the fork point.docs/ship-policy.md"Lane: report ready" says what GStack Minder has been applying: a conflicting PR has no merge ref so nopull_requestCI runs; dispatchfree-tests.ymlandwindows-free-tests.ymlon the branch, clear the pregate lanes with the run URLs, rerunready;--screenrefuses on such a PR for want of a merge ref (QUEUE_SCREEN_STALE_REF,<remote> has no refs/pull/<n>/merge) and its merge-the-base advice does not apply, so the lane READYs with--no-screenafter its own paid cases ran focused.readyitself prints aci-hint:line on a conflicting PR (gh pr viewalso readsmergeable,headRefNameandisCrossRepository): the dispatch procedure with--ref <branch>when there is no CI at the head (a branch name outside^[\w.][\w./-]*$prints as the literal<branch>), a coordinator-decides hint when the head is on a fork, and "were not pull_request runs (dispatched on the branch, or push-triggered), and they count" when the runs are green. Every hint ends in(advisory)and nothing parses it; no hint without a conflict or while runs are red or pending.Why
GStack Minder asked for the three as one PR after the first two rule-22 ships. The rollup fix matters because a READY that reads red on a head GitHub calls green blocks a lane for no reason; matching the rollup's rule is the smallest change that agrees with what the lane sees on GitHub, and keying on app id as well as name keeps two apps' same-named checks from hiding each other. The hint matters because the CHANGELOG-only conflict is the normal state of every READY PR once main stamps (rule 14 says never merge main), so the route to green CI belongs on the command's own output, not in a chat thread.
Approvals
ciAtHeadwith a cancelled-older-run fixture; reword ship-policy lines 471 and 520 to #3439's behaviour; record the CHANGELOG-only READY procedure and havereadyprint the hintGate edits
This strengthens. One test file changed, nothing weakened (
gstack-gate-diffhunkseb07e8515c35and23349061c2ba, both listed, no tags):test/gstack-ship-queue.test.ts: three new tests. Two runs of one check name where the older is cancelled read green in either order; a newer failure reads red; a newer in-progress or queued run reads pending; equalcompleted_atfalls back to the id; unnamed and undated runs stay separate; two apps with one name stay separate; a null conclusion reads red; a commit status never collapses with a check run of the same name. A conflicting PR with no CI refuses with the dispatch hint naming the branch; with green dispatched runs it READYs with the "counts" hint; a fork head and an odd or dash-led branch name get the safe hint; no hint without a conflict or while runs are red or pending. Three of the four original cases fail without the lib change (stash proof: 1 pass / 3 fail). The conflict fixture's PR body carries a ship receipt (shippedBody), because main's v1.91.236.0 feat(ship-queue): require a current /ship receipt before READY, train build and train merge #3438 makesreadyrefuse a bodyless PR withQUEUE_RECEIPT_MISSINGbefore CI is judged; train 11 caught that at the prefix f008280 and this is the one-line repair.Summary
Four commits plus the main merge on
capy/ready-ci-rollup-and-docs(4 files vs main, +162/−10):lib/ship-queue.ts(latestRunPerName,conflictHint,ciAtHeadreturning{line, green, none}, the widergh pr viewread),docs/ship-policy.md,CHANGELOG.md[Unreleased] (10 inserted lines, nothing removed),test/gstack-ship-queue.test.ts.Test Coverage
All new code paths have test coverage (Step 7's coverage diagram did not run in this unattended lane).
Tests ran: focused
test/gstack-ship-queue.test.ts(22),test/parity-baseline-integrity.test.ts,test/spawnsync-timeout-tripwire.test.ts,test/module-size-ratchet.test.ts,test/troubleshooting-anchors.test.ts,test/changelog-merge-damage.test.ts,test/restamp-gate-ahead-changelog.test.ts: 289 pass, 0 fail at e3f3510Tests ran: remote free tier (9177 tests, 0 failed, tree 37e8f1246c23) plus dispatched Free Tests and Windows Free Tests at the head — see the receipt
Pre-Landing Review
Four review cycles, each a specialist pass (testing, maintainability, security) beside an adversarial pass, recorded against their start tokens. Cycle 1 found a CRITICAL (the per-name key collapsed two apps' same-named checks; fixed by keying on app id), a branch-name shell-injection risk in the hint (fixed with the
^[\w.][\w./-]*$allow-list), the loss of undated runs (now standalone) and advisory wording (fixed). Cycle 2 found a dash-led branch name (allow-list tightened), an overclaiming green hint (reworded) and an empty### Testsheading (filled). Cycle 3 found only the docs naming a result code this branch does not define (reworded at 56bf2aa). Cycle 4 at 56bf2aa: both passes NO FINDINGS. Cycle 5 at e3f3510 (after the main merge and theshippedBodyrepair): both passes NO FINDINGS, converged. One accepted design point: two workflows of one app that share a job name collapse to the later run, which is the re-run case this fix exists for; gstack's job names are unique.Gate edits: 2 listed, 2 read, 0 findings — 0 kept, 0 restored, 0 open (gstack-gate-diff tags none; the test file's hunks are described under Gate edits above).
Outside review: Codex unavailable (
codex_reviewsunset,codexnot installed) — listed as missing coverage.Exploratory QA
Surfaces:
gstack-ship-queue readyagainst the gh shim with superseded, re-run, in-progress, same-timestamp, unnamed and undated check runs, two apps sharing a name, a same-named commit status, and a conflicting PR with no, green, red and pending dispatched runs, on a fork, and with odd branch names. Every reproducer lives in the test file. Live case: this PR's own head went CHANGELOG-only-conflicting when main stamped #3439, soreadyon it exercised the realci-hint:path with dispatched runs (see the READY block in the thread).Design Review
No frontend files changed — design review skipped.
Eval Results
No prompt-related files changed — evals skipped.
Greptile Review
No Greptile comments.
Verification Results
Reviews: 5 cycles, final pair at e3f3510 clean, completed and converged (review via ship), binding verified and current.
Pregate: local
PREGATE: requires-remoteexit 0 on tree 37e8f1246c23; remote gate cleared the free tier (9177 tests, 0 failed, $0.06); themacos-named-regressionsandwindows-free-shardlanes cleared from Free Tests 40300595421 and Windows Free Tests 40300599805, dispatched on the branch because main stamped #3439 after this head was pushed and GitHub stopped runningpull_requestCI on it, which is the procedure this PR documents.TODOS
No TODO items completed in this PR.
Documentation
Scope. The /document-release read-only audit ran three times: ship-20261026T065615Z-b321deb4c (b321deb), ship-20261026T070223Z-56bf2aac5 (56bf2aa) and ship-20261026T092152Z-e3f351020 at this head, after the main merge. Each checked docs/ship-policy.md's "Lane: report ready" paragraphs, the
stamp-at-mergerow, the restampchangelogstage and the CHANGELOG [Unreleased] entry againstlib/ship-queue.tsandlib/ship-queue-train-ready.ts;test/troubleshooting-anchors.test.tspasses (237).Result. Current at e3f3510. The first audit's blocker (a result code this branch did not define) went away with the main merge: main's #3438 defines
QUEUE_SCREEN_STALE_REFand prints<remote> has no refs/pull/<n>/merge(lib/ship-queue-train-ready.ts:121), which is what the paragraph now names. Thereadyrollup,ci-hint:variants, branch allow-list andgh pr viewfields all match the code.Debt. The second audit's remaining point, the
next:row and the restampchangelogstage describing #3439's behaviour before #3439 merged, closed when #3439 landed on main as v1.91.238.0 during this ship (main'sbin/gstack-restampprintswith no edit of your own). No open debt.Issues
Refs #3439
Test plan
bun run typecheck: zero errorsbun run typecheck:test: 819 known diagnostics, none newbun test test/gstack-ship-queue.test.ts test/parity-baseline-integrity.test.ts test/spawnsync-timeout-tripwire.test.ts test/module-size-ratchet.test.ts test/troubleshooting-anchors.test.ts test/changelog-merge-damage.test.ts test/restamp-gate-ahead-changelog.test.ts: 289 pass, 0 fail at e3f3510gstack-pregate run --allow-repo-commands+gstack-pregate --stage tests --remote --spend-cap 2 --timeout 2700 --allow-repo-commands: 9177 tests, 0 failed on tree 37e8f1246c23 ($0.06)pull_requestruns: the head conflicts with main on CHANGELOG.md only, rule 14)🤖 Generated with Claude Code