Repository navigation
Make /ship's preflight honor the repo's CI rerun time limit and name the install command in a fresh worktree (GST-3360) - #4608
Merged
capy-ai[bot] merged 4 commits intoNov 21, 2026
Conversation
…the install command in a fresh worktree (GST-3360) Preflight's test step and finish now bound each CI-run reuse by the base policy's ci_record_timeout_s, as accept did, and preflight prints CI_RECORD_TIMEOUT. A checkout whose package.json declares packages but has no node_modules stops with DEPS_MISSING and the lockfile's install command. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…eflight's package check (GST-3360) Review-Finding: p1/specialist-batched#1 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…flight's package check (GST-3360) Review-Finding: p3/outside-voice#1 reader=outside-voice Review-Finding: p3/outside-voice#2 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…y (GST-3360) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 21, 2026
- Habits from nine teams, written into gstack. (#4585) - Three more habits from teams that run evals. (#4602) - The /ship conductor trial plan gives its real-problem judge one more attempt on fresh labels after it missed its agreement bar twice, and stops the trial incomplete if it misses again (GST-3003). (#4611) - The /ship conductor trial plan now stops a trial only at the final remote-gate refusal, gives both arms the same note that the brief overrides team rules, and counts every report the no-gstack arm returns (GST-3003). (#4609) - The /ship conductor trial plan now ends a trial at the remote gate when its case base isn't main, gives the no-gstack arm a test runner, and audits every trial for exposure to the plan (GST-3003). (#4605) - The /ship conductor trial plan now runs an uncounted pilot in every arm before its counted trials and takes one planned look at half the cases (GST-3003). (#4587) - gstack's own use on Capy can be counted, and is kept out of real-use numbers. (#4576) - Free Tests shards finish closer together. (#4578) - The weekly test-time recording can land again on its own. (#4581) - The job-log tree.json step's recommended sleep is long enough for real runners. (#4589) - Pull requests no longer wait on the Trunk flaky-test upload, and the quick tier's flaky passes now reach Trunk. (#4579) - Windows Setup E2E finishes sooner on install changes. (#4575) - Skills no longer stop on Codex when they clean up temp files. (#4612) - /review on Codex with OpenAI models no longer holds back a review that ran its adversarial pass. (#4622) - Crew threads on Capy now check in at 500M own tokens, standing threads rotate at 250M and any subagent past 50M gets a look, half the old lines, because Capy's token counts read about half what they did before 2026-11-15. (#4582) - gstack no longer offers to add a `## Skill routing` section to your project's CLAUDE.md. (#4629) - The README and docs no longer say gstack makes your agent fix more bugs. (#4598) - `/eval-plan` now writes eval plans that waste less money. (#4591) - /cso checks every folder above a source file before it looks at the file, so it never looks through a symlinked folder. (#4592) - Plan reviews no longer read a /design-review audit summary as the branch's design doc. (#4623) - Node's built-in test files now run with `node --test` in repos that use vitest or jest. (#4626) - A quarantined test that the runner skipped now fails the run instead of passing it. (#4590) - A flaky free test is fixed: the spawnSync overflow check no longer fails about once an hour on CI. (#4613) - Free Tests runs its shards on 16-core runners. (#4600) - /office-hours asks for ground truth first. (#4468) - Every startup session ends with a dated test. (#4468) - /plan-tune's dream cycle now logs each send of your typed answers to Anthropic. (#4621) - Landing a ready PR no longer depends on a hand-copied gate decision, and the ready note, release PR and squash message say the right thing. (#4596) - /ship no longer asks for a fresh review because of a stacked parent that main already had. (#4580) - Results PRs with large captured agent sessions can be reviewed. (#4574) - /ship no longer stalls on review notes a reviewer already cleared, counts review rounds the way the review policy reads them, and keeps security findings out of the PR body. (#4595) - /ship's review readers are now told never to stop processes they didn't start. (#4607) - /ship's review no longer stops when Capy's own drive sync database grows past 100 MB. (#4606) - /ship's preflight now honors your repository's time limit for rerunning CI-skipped tests, and tells you when a fresh worktree needs its packages installed. (#4608) - The slowest free test file is now six files. (#4588) - Step 11.5 keeps a reviewed head current across base-only merges. (#4577) - On a Capy install, only the owner's opt-in sends telemetry. (#4597) - New page: working across agent systems. (#4583) 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.
/ship's preflight now stops its rerun of CI-skipped test files at the repository's own
ci_record_timeout_slimit instead of a fixed 600 s, and prints the limit it used.In a fresh worktree with no installed packages, preflight stops with the exact install command instead of failing later with missing tools.
Why: several /ship runs on one machine hit both problems (one repository sets 900 s; each new worktree needed
bun install). Nothing to do.What changed
Four of the five new preflight tests are red on main (the Plug'n'Play row is green there only because main has no install check at all); all five are green on this branch.
Before/after as text: Four of the five new preflight tests are red on main; all five are green on this branch.
A repository that raised
ci_record_timeout_sto 900 s still saw preflight cut its rerun of CI-skipped files at 600 s, because only accept read the setting. Preflight and finish now read the same base-branch value, and preflight prints it asCI_RECORD_TIMEOUT:.A second /ship run in a fresh worktree had no
node_modules, so typecheck exited 127 and tests could not resolve imports. Preflight's test step now stops first withSTOP: DEPS_MISSINGand the install command for the lockfile it finds (bun install --frozen-lockfile,pnpm install --frozen-lockfile,yarn install --frozen-lockfileornpm ci, including fornpm-shrinkwrap.json). It never runs the install. A Yarn Plug'n'Play checkout (.pnp.cjs,.pnp.loader.mjsor Yarn Classic's.pnp.js) counts as installed, since it never createsnode_modules.Why
"Each new worktree needed bun install" and "preflight kept the 600 s default" came from several /ship runs on one machine. Now the limit a repository sets is the limit preflight uses, and a missing install is named once, up front.
Blast radius
The record-ci limit change reaches accept, finish and preflight through one default in
carryLane(lib/ship-bin-common.ts), still read only from the base branch, so a branch cannot raise its own limit (file:line read; tests ran). The install check runs only inside preflight's test step, after the merge step and never in--simulate, and the shared test fixture declares no packages, so existing preflight tests cannot trip it (walked path; CI free suite green at a3c31bf).Test Coverage
Coverage: 7 of 11 traced paths covered (Step 7 audit, audit-only). Gaps left as proposals: the pnpm and bun.lockb command branches, the full-mode stop hint, and a root path containing a quote.
Tests: 4 new cases written first (all failed on main), plus Plug'n'Play, Yarn Classic and shrinkwrap rows added in review.
Tests ran: free 1730 files (CI run 44897389490).
Pre-Landing Review
Three blockers found and fixed: a Yarn Plug'n'Play checkout was stopped forever (fixed in b059f76), and so was a Yarn Classic Plug'n'Play checkout, while an
npm-shrinkwrap.jsonproject was told to runbun install(both fixed in 8a579e7). Each fix has a test row that fails without it. A second pass on the fixed range found nothing. One wording item was left open:STOP: DEPS_MISSINGhas no troubleshooting entry yet.Second-model review: completed (2 findings, both fixed).
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/ship-preflight.ts:211lib/ship-preflight.ts:211:deps-over-stoplib/ship-policy.ts:106lib/ship-policy.ts:106:stale-doclib/ship-release.ts:636lib/ship-release.ts:636:repeat-policy-lookuplib/ship-preflight.ts:241lib/ship-preflight.ts:241:line-caplib/ship-preflight.ts:215lib/ship-preflight.ts:215:empty-node-modulesExploratory QA
Functional QA of
gstack-ship-preflight --tests-onlywith the repository's own test fixture: the success run passed, the Plug'n'Play stop was reproduced twice before the fix and passed after it, and every probe was rerun on the final code (pass). Not probed: the full-mode stop hint and the pnpm, bun.lockb and no-lockfile command branches.Scope Drift
Scope Check: CLEAN
Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). This is a bug fix with tests written first.
TODOS
No TODO items completed in this PR.
Documentation
Status: current — no doc edits needed; the branch's own doc changes match the code.
Scope: base baef51f..a3c31bf (4 commits, 8 files), no staged/unstaged/untracked content. Audited docs/pregate.md, docs/ship-policy.md, docs/troubleshooting.md, ship/sections/tests.md.tmpl and the changelog fragment against lib/ship-bin-common.ts, lib/ship-policy.ts, lib/ship-preflight.ts and lib/ship-release.ts.
Documentation health:
ci_record_timeout_srow matches code)Coverage debt:
STOP: DEPS_MISSING(new preflight stop) has no troubleshooting entry (critical gap; consider/document-generate).CI_RECORD_TIMEOUT:in preflight is reference-only (pregate.md, ship-policy.md).Diagram drift: none.
Tests
bun --no-env-file test test/ship-preflight-carry-bound-and-deps.test.ts: all 5 cases green at a3c31bf (4 of the 5 are red on main)bun run typecheck: no errorsbun run test), run 44897389490 at a3c31bf: green, 1730 filesAgent notes
Refs GST-3360, HARN-120 (relayed by HARN-1, 2026-11-21). Fixes items 2 (carry bound) and 3 (worktree deps). Item 4 (receipt depth=light on harness-evals#522) is not changed here.
Approvals
No approvals recorded for branch ship-preflight-ci-rerun-limit-and-install-check.
Plan: exempt: bug fix (R65)
Plan check: exempt bug fix
REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=5 fixed=3 scope=frozen fix_checks=1 dispatches=8
Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)