/ship runs in the pull request's own thread, with no helper agent (GST-3466) (#4670)

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.

Refs: GST-3466
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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
Review-Finding: fc/fix-check#1 reader=fix-check
Review-Finding: fc/targeted#1 reader=targeted
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-22 09:17:44 +00:00
1 parent 0b4f0ceeec
commit 540da9b5b1
19 files changed
+82 -77

No files matched your search

+7 -4
View File
@@ -3,9 +3,10 @@
`/ship --token-cap 25M` (or `GSTACK_SHIP_TOKEN_CAP=25M`) bounds what one /ship run spends, and
long runs hand their heavy segments to fresh-context children. The helper is
`bin/gstack-ship-budget`; the skill's procedure is `ship/sections/budget-handoff.md`.
There is one default cap: an observe-mode /ship subagent that meters its own task row (`--reading-from task`,
below) and names no cap gets 50M, the line where /runaway-stopper stops a subagent, and prints
`BUDGET_DEFAULT_CAP: 50M`; `--token-cap none` turns it off. Without a cap, /ship meters usage when it can and prints it, and
There is one default cap: an observe-mode run that meters its own counter (the thread's own jam id, `--reading-from own`,
or one row of a root thread's `tasks` with `--reading-from task`, below) and names no cap gets 50M, the line where
/runaway-stopper stops a subagent, and prints `BUDGET_DEFAULT_CAP: 50M`; `--token-cap none` turns it off. A run that
reads a shared counter (`--reading-from this`, `--meter-scope tree`) gets no default. Without a cap, /ship meters usage when it can and prints it, and
nothing else changes.
## What the cap guarantees
@@ -140,7 +141,9 @@ one program measure nothing: Capy books a call after its program ends.
A jam's own counter includes its own subagents, outside voices too (measured 2026-10-30: +10.92M
across a six-reader dispatch with two ~0.35M parent calls between). `"this"` is the root thread,
whose counter also holds every sibling tree. A subagent running /ship cannot read its own jam id. When its brief names its title
whose counter also holds every sibling tree. /ship runs in the thread that owns the pull request, never in a subagent,
so on Capy it reads that thread's own jam id: a crew thread is a root thread, and its counter holds its reviewers. A
reading taken inside a subagent is different, because a subagent cannot read its own jam id. When its brief names its title
(`GSTACK_SHIP_TASK_TITLE=<title>`), it reads `cost` from its own row of the root thread's `tasks` (the row whose `title` matches; its subtree, exact)
and starts with `--reading-from task`; every later reading in the run comes from that same row, and the title carries a
nonce so a rerun at the same head can't match a finished row. Otherwise it
+2 -3
View File
@@ -1045,9 +1045,8 @@ sets the defaults that keep it from coming back.
a handoff file and a successor brief (`runaway-stopper/templates/`), then archived by its own Captain once none of
its PRs is open (R91), through `gstack-archive-check thread`. A thread
mid-/ship or mid-merge gets `DEFER:` and nothing happens until that work finishes.
- **Prevent.** One wait on all pending operations, quiet wakes, compact program returns, one /ship subagent per
PR head (metering its own row with a 50M default cap, `BUDGET_DEFAULT_CAP:`), two review rounds, and a fresh
thread per automation run.
- **Prevent.** One wait on all pending operations, quiet wakes, compact program returns, /ship run in the pull
request's own thread rather than a subagent, two review rounds, and a fresh thread per automation run.
Scanning FOUN-4, FOUN-14 and FOUN-71 as read on 2026-11-03, before R70's 2026-11-09 amendment and the 2026-11-15 halving of
its token lines (today only a thread marked standing gets `ROTATE`, past 250M; a crew thread past 500M gets `CHECK_IN`; a