Repository navigation
v1.91.328.0 ship-queue: screen only when the selector restores every case; unscreened PRs fill train seats (GSTA-165 1a) - #3619
Merged
Conversation
…elines and the careful mask awk Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…hubs, READY and summary previews) 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>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ened PRs fill train seats (GSTA-165 1a) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… bun.lock) Two assertions in test/ship-queue-train-logic.test.ts: a diff the paid selector cannot select recommends --screen with the full gate selection, and a diff that mixes a skill template with bun.lock recommends --screen. GSTA-165 1a, from /ship Steps 7-8. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
CHANGELOG [Unreleased]: name the two added tests and list the deferred CREW.md rule 22 text and train-record attribution field. TODOS.md: both deferrals as P1 under Ship. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai
Bot
changed the base branch from
garrytan/gsta150-narrow-screen
to
main
October 29, 2026 21:58
|
😎 This pull request was merged. |
…en-recommend Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md # lib/ship-queue-train-ready.ts
…be859b slot 1, merge main 959c8a6) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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
gstack-ship-queue readyrecommends--screenonly when the selector restores every case or cannot select; unscreened PRs now fill train seats instead of waiting for their own train.Before/after as text: ready recommends --screen only when the selector restores every case or cannot select; unscreened PRs now fill train seats instead of waiting for their own train
Why
Garry asked on 2026-10-29 for "much faster PRs the checks and reviews seem maybe excessive and costly", and plan GSTA-165 was approved with "do it". Almost every PR paid for a solo screen (16 to 19 a day at about $32 each), yet of 41 full screens between Oct 20 and 29 the 3 that caught a real bug were all diffs the selector can't narrow. Those still screen, every other PR rides the train gate's full census, and the queue saves about $2,300 a week at current volume.
Blast radius
The change touches the READY recommendation (
lib/ship-queue-train-ready.ts), train slot order (lib/ship-queue-train.tsorderSlots) and the replay model (lib/gate-cost-history.tspickTrain). It is safe because no threshold, trial count, case or workflow changes,--orderstill overrides the seating, and the train gate still runs every case on the merged tree before anything lands (read indocs/ship-policy.mdand pinned by the focused lane, 90 tests, script ran). Stacked on #3587, which touches the same function, so #3587 merges first.Approvals
No approvals recorded for branch garrytan/gsta165-screen-recommend.
Plan GSTA-165, autoplan run autoplan-20261029161318, APPROVED (Garry's "do it", relayed by GStack Minder 2026-10-29). Scope cut to 1a by GStack Minder, 2026-10-29. Not yet recorded with
gstack-approvalsfor this branch.Summary
Lanes were told to screen whenever a diff touched a skill's own cases, which is nearly every PR, so screens cost more than the train gates that rerun the same cases hours later.
readynow recommends--screenonly for selector full-fallback diffs or diffs it cannot select, and a train seats unscreened PRs in the seats a screened PR leaves instead of holding them for a train of their own. This run adds two tests that pin the diffs that still screen, the CHANGELOG lines for them and the deferrals, and two P1 follow-ups in TODOS.md.Not in this change
screen_policy: ownroute in evals.yml (GSTA-149's file). Deferred.captain/templates/CREW.mdrule 22 text on when a lane picks--screen(with the READY template,captain/SKILL.md.tmplanddocs/recommended-harness.mdstep 5 framing that the docs audit flagged). Deferred as a P1 TODO.Test Coverage
Tests: 1518 → 1518 (+0 new test files; +1 test and +1 assertion in test/ship-queue-train-logic.test.ts)
Coverage: 77% value-weighted (85% including 1 weakly covered path)
Test value: 1 test written, 0 rejected by the authoring gate, 1 existing test extended, 1 path weakly covered (weak = ★, gate-failing or unrated).
The weak path is the selector-throws test, unrated because Step 7's rating dispatch did not run (budget stop), so the coverage gate was skipped this run. Remaining proposed test:
ready --pr Nunderscreen_selection: gstack-paidprints the three SCREEN lines and READY_SCREEN_CHOICE_REQUIRED [→E2E] (protects the screenSelection wiring; declined because the wiring is unchanged and the selector is unit-tested). Mutation check on the written test: settingeveryCase = falsein the catch turns it red.Tests ran: focused 90
Tests ran: tripwires 104
Pre-Landing Review
Pre-Landing Review: 4 issues — 0 auto-fixed, 0 asked, 0 deferred, 4 noted. Core checklist, four specialists (testing, maintainability, simplification, state-machines) and the red team found nothing; the adversarial pass found 4 informational items, none at the blocking floor.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=4 fixed=0 scope=frozen dispatches=5
Gate edits: 6 listed, 6 read, 0 findings
Outside review: openai/gpt-6.1-sol, no findings, "Recommendation: approve". Adversarial (anthropic/claude-opus-5-5): 4 informational, "Recommendation: merge as-is".
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/ship-queue-train-ready.ts:94changed-file list comes from git diff without checking ok; an empty or failed diff makes the selector select every case but label mode pr, so the recommendation is --no-screen (same as before the change, fails open)lib/ship-queue-train-ready.ts:69a missing coverage field maps to mode unknown and recommends --no-screen; profile pr always returns coverage todaylib/ship-queue-train.ts:116unscreened PRs now share trains with screened ones; at the replay's default red rates one unscreened defect reds and bisects a train carrying screened PRs; no simulateArrivalTrains rerun under the new mix is shownlib/ship-queue-train-ready.ts:70dependents-mode diffs now recommend --no-screen; evidence is 3 of 41 catches with no negative control for dependents-mode catchesExploratory QA
Not run. This is a library and docs change with no browser, API or job surface of its own; its behaviour is exercised by the focused lane (90 tests) and the Step 9 smoke probe, which ran
gstackPaidSelectionon this PR's own changed files and gotno-screen("selector mode pr").Design Review
No frontend files changed — design review skipped.
Eval Results
No prompt-related files changed — evals skipped. The paid selection for this PR comes from
gstack-ship-queue ready's screen recommendation after the receipt.Greptile Review
Greptile is not configured for this repository; Step 10 skipped.
Plan Completion
Step 8 (plan GSTA-165 D1 plus v2-additions, 16 items): 11 DONE, 1 CHANGED (the selector's full-fallback mode replaces a hand-kept SHARED_RUNTIME list, per v2 item 3), 1 PARTIAL (no focused own-case command; needs 1b), 3 NOT DONE. Since that report, the mixed-diff test (skill template plus
bun.lockrecommends--screen) was built in this PR. Deferred: thecaptain/templates/CREW.mdrule 22 text and the train-record attribution field (v2 item 6), both P1 in TODOS.md. 1b is out of scope by decision.Verification Results
No separate Step 8.1 verification list was recorded for this invocation. The Step 9 smoke probe passed (this PR's own diff recommends
--no-screen, selector mode pr).TODOS
No TODO items completed in this PR. Added two P1 items under Ship (CREW.md rule 22 screen text; train-record red attribution).
Documentation
Status: current. No documentation edits were needed, and there are no blockers.
Scope: the diff from b1dd0dc to 5348c15 plus the working tree (lib/ship-queue-train-ready.ts, lib/ship-queue-train.ts, lib/gate-cost-history.ts, docs/ship-policy.md, the uncommitted CHANGELOG.md and TODOS.md, and tests). I also grepped docs/, captain/, README.md, AGENTS.md, CLAUDE.md and CONTRIBUTING.md for screen, train-order and HELD wording.
Documentation health
--screen|--no-screen) are unaffected.Coverage debt: the focused paid run of a --no-screen PR's own cases (GSTA-165 1b) and the train-record red attribution (GSTA-165 v2 item 6) are deferred. Diagram drift: none, because no diagrams cover screen or train order.
Test plan
bun test test/gate-cost.test.ts test/ship-queue-train-logic.test.ts test/ship-queue-train.test.ts(focused, through gstack-evidence): 90 pass, 0 failbun test test/*tripwire*.test.ts test/*ratchet*.test.ts test/egress-receipt-wiring.test.ts test/env-host-fence-conformance.test.ts test/free-fixtures.test.ts(tripwires): 104 pass, 0 fail across 14 filesbun run typecheck: exit 0bun run gen:skill-docs: fresh, no diffgstack-pregate --allow-repo-commands(local, tree 83618813d334): preflight 6/6 pass (regen, secrets, strays, literals, timing, guards); tests requires-remotegstack-pregate --stage tests --remote --spend-cap 2 --timeout 2700 --allow-repo-commands(Ubicloud, tree 83618813d334): 13876 tests, 0 failed, $0.06gstack-pregate clear; pregate verdict: requires-remote clearedgstack-pregate sealed: no sealed policy on this repo🤖 Generated with Claude Code