Skip to content

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

TypeScript

Keep crew threads quiet and let busy Captains hand CI watching to one merge thread (GST-1941) (#4176)

Garry Tan199931029e9f
diff --git a/capy/skill/gstack/captain.md b/capy/skill/gstack/captain.md
index d48c519ce..d4227c769 100644
--- a/capy/skill/gstack/captain.md
+++ b/capy/skill/gstack/captain.md
@@ -154,6 +154,13 @@ Every PR you send READY on, and the READY report itself, has:
The READY report attaches the key image (Capy message attachment), so the Captain can show it inline.
/ship does items 1-4 when `GSTACK_CAPY=1` (its `capy-pr` section). Outside Capy, the PR body is unchanged.
+**Who watches CI.** You own your PR's checks and review until READY: hold its watch yourself and fix what
+turns red (one rerun for a flake), so a check never wakes your Captain. A Captain whose PRs bring many check,
+review and merge wakes hands PR and CI watching to one merge-lane thread instead of subscribing itself, because
+every wake more than about five minutes after its last call rewrites its whole context cache at many times the
+warm price. The merge lane reports to the Captain only a landing, a decision or a blocker
+(`crew/docs/captain.md` in the gstack checkout, Roles).
+
A token cap in a brief goes to /ship as `--token-cap <n>`. Run each /ship in a fresh subagent titled
`ship #<n> at <head7> <4-char nonce>` (unique), with `GSTACK_SHIP_TASK_TITLE=<that title>` in its brief and the instruction to
take every reading (start, notes, close) from its own row of the root thread's `tasks` and start the budget with
diff --git a/capy/skill/gstack/factory.md b/capy/skill/gstack/factory.md
index b0d2350ad..2bc4b043f 100644
--- a/capy/skill/gstack/factory.md
+++ b/capy/skill/gstack/factory.md
@@ -11,7 +11,7 @@ What seven Captain crews agreed on. Your crew's CREW.md and recorded approvals d
7. **Measure before you act.** Run the real system on the merged tree you ship; a real run outranks a reviewed plan. Each number names its run, commit or uncapped query; say what you did not verify.
8. **Evals decide, and losses get reported.** Preregister bars, cap and stop rule before paying [/eval-plan]. Cheap proof (a keyless fake, a smoke) first. Controls: no-skill and placebo arms, clean decoys. Report use and pass apart; quote spend from the meter. A new part needs proof it helps or a dated test plan [ETHOS.md: 9. Earn Its Place].
9. **Flakes: one rerun, a ledger, a daily fix.** Only the policy's rerun, never for a harness or infra red; a second red is real; never loosen a test. [crew/docs/captain.md: The daily flaky pass]
-10. **Quiet.** Message on a decision, a blocker, a READY or a finished phase. A broadcast needing no reply goes in the Captain's notes; never reply just to acknowledge.
+10. **Quiet.** Messages wake the Captain cold: send READY, a blocker, done or a Captain or owner call, else end_turn; no acks or progress notes. Broadcasts go in its notes.
11. **Ask once, plainly.** One ask per decision, explained like the owner is five: your Captain's name, then a lettered line each: "A: <code> hit problem p, which happens when h. We could do 1) x, 2) y or 3) z. Recommendation x because why. A1 to take recommendation." "do it" takes every recommendation; "A2" takes option 2. Owner tasks: the exact link (in Capy: path and field), numbered steps, the reply word. Never re-ask a standing rule; check what you can yourself. [crew/docs/captain.md: The ask format]
12. **Fresh threads, closed out.** One thread per unit of work; past 500M tokens, rotate [/runaway-stopper]. Crew threads never create threads: ask your Captain (Captain to Captain across projects), or report one you made by code for crew.add. Its Captain archives only its crew's threads; threads outside every crew are the owner's, even its automation's. Size reviews to the diff; read the meter. [docs/ship-budget.md; crew/docs/captain.md: New threads join the crew]
13. **The owner's model preference.** `gstack-models resolve --role agent` picks agent models, except cross-family voices and eval subjects. [docs/model-policy.md: Your model preference]
diff --git a/changelog.d/quiet-crew-reports-and-one-merge-thread.md b/changelog.d/quiet-crew-reports-and-one-merge-thread.md
new file mode 100644
index 000000000..dfca2d979
--- /dev/null
+++ b/changelog.d/quiet-crew-reports-and-one-merge-thread.md
@@ -0,0 +1 @@
+- **Crew threads now stay quiet between READYs, and busy Captains can hand PR and CI watching to one merge thread.** gstack's factory page tells crew threads to message their Captain only for a READY, a blocker, a decision the Captain or owner must make, or done, and to end every other turn with end_turn, because each message wakes the Captain cold. The Captain guide (`crew/docs/captain.md`, Roles) and the Capy skill's `captain.md` describe the merge thread: one crew thread holds the PR watches so check, review and merge events stop waking the Captain, while every other crew thread keeps owning its own PR's checks and review until READY.
diff --git a/crew/docs/captain.md b/crew/docs/captain.md
index 77682e4cb..c99c4a9c1 100644
--- a/crew/docs/captain.md
+++ b/crew/docs/captain.md
@@ -44,6 +44,14 @@ by a daily pass; nothing is retried into green.
runs /ship, sends one READY block, stamps on call (merging the base into its pin only
as part of that stamp commit, or when the controller names a real-code conflict),
writes one report, and never merges a PR.
+- **A merge lane** (optional) is one crew thread that watches PRs and CI for the controller.
+ Every Captain wake that comes more than about five minutes after its last call rewrites the
+ Captain's whole context cache at many times the warm price, so a Captain whose PRs bring
+ many check, review and merge wakes hands that watching to a merge lane and stops
+ subscribing to PRs itself. The merge lane holds the PR watches, lands verified READYs as the
+ crew's rules allow, and reports to the Captain only a landing, a red check that needs a
+ decision or a blocker. Each other lane still owns its own PR's CI and review up to READY,
+ so CI pings wake the lane that can act on them, never the Captain.
- **The controller never commits to a lane's branch**, and a lane never pushes to another
lane's. One committer per shared tree.