Repository navigation
/ship runs in the pull request's own thread, with no helper agent (GST-3466) - #4670
Merged
Merged
Conversation
The thread that owns the pull request now runs /ship itself, one phase at a time from ship/DRIVER.md, and starts /ship's reviewers as its own subagents. The Capy skill, lane card, crew manual, lane brief template and /runaway-stopper stop telling agents to hand /ship to a subagent. Garry chose this (A1, 2026-11-22) after gstack's trial of both ways (GST-3003, #4667). Refs: GST-3466 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p1/specialist-batched#2 reader=testing Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A /ship run that meters its own thread's counter now gets the same 50M default cap the helper agent's task-row reading had, and the crew manual names the owner instead of a person, so the generic-skill test passes. Review-Finding: fc/fix-check#1 reader=fix-check Review-Finding: fc/targeted#1 reader=targeted Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
3 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.
On Capy, /ship now runs in the thread that owns the pull request, starting its reviewers as that thread's own subagents, instead of handing the whole run to a separate helper agent.
Why: a 30-run trial found no clear difference in cost or bugs caught, so the extra agent layer goes; the project owner chose this.
Nothing to do: /ship's review plan, review rounds, final sign-off and checks are unchanged.
What changed
"Make the in-thread way the default and only documented way to run /ship." Every place that told an agent to hand /ship to a helper agent, sleep, and then stop that helper now tells the thread that owns the pull request to run /ship itself, phase by phase, with its reviewers as its own subagents. The old instructions are removed, not kept beside the new ones.
The thread that owns the pull request now runs /ship itself, instead of handing it to a helper agent and sleeping.
Before/after as text: The thread that owns the pull request now runs /ship itself, instead of handing it to a helper agent and sleeping
One code change keeps /ship's spending guard: a /ship run that reads its own thread's token counter (
--reading-from own, or no reading flag on a non-tree meter) still gets the 50M default token cap that the helper agent used to get. Without it, moving /ship into the calling thread would have silently dropped the default cap.What the trial found (#4667): ten cases, three runs each way, on Claude Opus 5.5. Arm C handed /ship to one fresh helper agent (the old way); arm F ran /ship in the calling thread.
The verdict depends on a scoring ruling made after seeing data. One F run (F7t3) stopped at /ship's own round cap before the step where its two named second-model reviewers run. Counting a named reviewer only if /ship reached its step, reader fidelity is 30 of 30 and every bar passes; read literally, it is 29 of 30 and the plan's decision would keep the helper agent with one fix cycle. The results page reports both readings; the owner chose the first.
Files changed:
ship/DRIVER.md.tmpl,ship/DRIVER.md: /ship runs in the pull request's own thread, never in a subagent.ship/sections/budget-handoff.md.tmpl,ship/sections/budget-handoff.md: the token reading is the thread that runs /ship, reviewers included.capy/skill/gstack/SKILL.md,capy/skill/gstack/lane-card.md,capy/skill/gstack/captain.md: run /ship yourself, then keep the PR; no helper-agent titles or task-row metering.crew/docs/captain.md,captain/templates/brief.md: the steps before a PR is ready no longer start, sleep on, or stop a /ship helper.runaway-stopper/SKILL.md.tmpl,runaway-stopper/SKILL.md,runaway-stopper/templates/successor-brief.md: "/ship runs in the PR's own thread"; the mid-run stop hold names /ship's reviewers.docs/ship-budget.md,docs/skills.md: the same rule; the default cap is described by its flag.lib/ship-budget-cli.ts,lib/ship-budget.ts: the 50M default cap also applies to a run reading its own counter, and its note says so.test/ship-budget-meter-scope.test.ts: checks the skill has the thread read its own counter and start no /ship helper, and checks the default cap for own-counter runs.test/size-ledger/ship/ship-runs-in-the-calling-thread.json,changelog.d/ship-runs-in-the-calling-thread.md: size record and release note.Not changed:
docs/ship-policy.md(no helper-agent text in it). The--reading-from taskand--subagentbudget flags stay in code for older runs.Why
"The extra agent layer costs a whole context and buys nothing we could measure." The trial in #4667 found no clear difference in cost, bugs caught or wall time between handing /ship to a helper agent and running it in the calling thread, so agents now run /ship where the pull request lives, which is simpler to follow and to resume.
Blast radius
This touches the agent-facing instructions every thread loads (the Capy skill, its start card, the team manual, /runaway-stopper and the /ship driver) and one budget default in
lib/ship-budget-cli.ts:254. It is safe because /ship's review plan, rounds, final sign-off and checks code are unchanged, and the default-cap change only widens which observe runs get the existing 50M cap:test/ship-budget-meter-scope.test.tscovers both the instructions and the cap, and the full free suite passed in CI at 452f845 (script ran).Pre-Landing Review
The full review found 4 small items, all fixed. A follow-up check of those fixes found 2 problems that would fail a test or drop /ship's default token cap; both were fixed, and a second check of that fix came back clean. The second-model review (GPT-6.2 Sol) and an adversarial read raised 10 notes between them; none fails a test, breaks production, or loses data or secrets, so they ship as open notes below, and a follow-up PR fixes the reviewer-subscription sentence, the own-plus-tree cap scope and mid-/ship detection between reviewer batches.
Second-model review: ran (GPT-6.2 Sol); 4 notes it marked blocking were ruled below the blocking floor and listed here.
The full list of open notes, with the one deferred finding in code this PR did not change, is in the Agent notes section at the end.
Exploratory QA
Smoke probes only: the budget-meter tests passed, and a search of the tree found no remaining instruction to start a /ship helper agent. The deeper method reads did not run.
Design Review
No frontend files changed — design review skipped.
Eval Results
No eval ran in this PR. The change is to agent instructions and one budget default; the decision rests on the 60-run trial in #4667.
Review bot comments
No review bot comments.
Issues
Refs #4667
Refs fc/fix-check#1
Refs fc/targeted#1
Refs p1/red-team#1
Refs p1/red-team#2
Refs p1/specialist-batched#1
Refs p1/specialist-batched#2
Documentation
Status: current. The docs already match what shipped, so no edits were needed.
Scope: base c2b4f0d2 to head 452f845, 3 commits and 19 files, with no staged, unstaged or untracked content. The audit covered the Capy gstack skill, its start card, the team-lead notes, the team manual, the brief template, the /runaway-stopper template and successor brief, the /ship driver and budget-handoff templates, docs/ship-budget.md, docs/skills.md and README.md, and swept the whole tree for stale mentions of a /ship subagent.
Documentation health:
capy/skill/gstack/SKILL.md: current (/ship runs in the thread that owns the PR)capy/skill/gstack/captain.md: currentcapy/skill/gstack/lane-card.md: currentcrew/docs/captain.md: current (the table of duties before a PR is ready, and who owns each, matches)captain/templates/brief.md: currentrunaway-stopper/SKILL.md.tmplandtemplates/successor-brief.md: currentship/DRIVER.md.tmplandship/sections/budget-handoff.md.tmpl: currentdocs/ship-budget.md: current (the--reading-from owndefault cap matches lib/ship-budget-cli.ts)docs/skills.md: currentREADME.md: current (no change needed)Coverage debt:
--reading-from ownappears in reference docs only (docs/ship-budget.md); it has no how-to example. That is a common gap, not a critical one. No diagram drift.Tests
bun run test(free suite, CI run 44990730753 at 452f845): exit 0, 1743 test files ran, 7 skipped as not owed on this runnerbun test test/ship-budget-meter-scope.test.ts: passAgent notes
Refs GST-3466, GST-3003. Follow-up: GST-3498.
Deferred findings
Blocking findings in code this PR did not change (review scope: frozen). They stay on this PR and are not filed as issues.
ship/DRIVER.md:13A failed pass can leave unfinished readers running as the lane's own subagentsReview notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/ship-budget-cli.ts:254Default cap now meters the whole lane thread, unmeasured for large contextslib/runaway.ts:230Same as outside-voice#3lib/ship-budget-cli.ts:254--reading-from this on a root thread gets no defaultcrew/docs/captain.md:541PR notices now wake the lane mid-runtest/ship-budget-meter-scope.test.ts:127Edited test takes ~5.3s, over bun's 5s default outside the shard runnerdocs/ship-budget.md:146Task-row and --subagent guidance remain for legacy runsREVIEW_LOOP: passes=1 blocking_found=6 deferred=1 noted=12 fixed=6 scope=frozen ledgers_read=4 fix_checks=2 dispatches=3
Ruled note: crew/docs/captain.md:540:pr-watch at 452f845 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T06:05:39.562Z) at 2026-11-22T06:05:40.349Z: no automatic watch only when another thread opened the PR; land still needs every check green at the pin (approval a-646eea810a06)
Ruled note: ship/DRIVER.md:13:reader-cleanup at 452f845 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T06:05:39.562Z) at 2026-11-22T06:05:40.455Z: unfinished readers after an early stop cost spend only; the code is outside this PR (approval a-c6fb10bc3287)
Ruled note: runaway-stopper/SKILL.md:226:rotation-guard at 452f845 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T06:05:39.562Z) at 2026-11-22T06:05:40.544Z: only standing threads rotate and crew lanes do not; detection fix in the follow-up PR (approval a-91e8794210cf)
Ruled note: lib/ship-budget-cli.ts:254:default-cap-scope at 452f845 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T06:05:39.562Z) at 2026-11-22T06:05:40.628Z: no caller passes own with tree; scope fix in the follow-up PR (approval a-8cdfe284bdbc)
Ruled note: capy/skill/gstack/captain.md:171:money at 527d9a7 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T05:45:00Z) at 2026-11-22T06:12:49.511Z: fixed by the 50M default for own-counter runs in lib/ship-budget-cli.ts at 452f845, which the granted clean fix-check read; the line it names needed no edit (approval a-2cffed6b2405)
Approvals
Approved: yes (record r-ab907bfd0e18). The full approval record stays private.
Plan: approved (record r-69b98ef6a11a)
Plan check: approved (record r-69b98ef6a11a)