Skip to content

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

Merged
capy-ai[bot] merged 3 commits into
mainfrom
capy/quiet-crew-reports-and-one-merge-thread-gst-1941
Nov 8, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
capy/quiet-crew-reports-and-one-merge-thread-gst-1941

Conversation

@garrytan

@garrytan garrytan commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Takeaways

  • Quiet crews are the cheap fix: a crew thread that ends routine turns with end_turn and messages its Captain only for a READY, a blocker, a decision or done removes the wakes that do nothing. In FOUN-216's measurement, 31-43% of Captain wakes ended with no action, many right after a crew's routine progress report, which is about 20-30% of each big Captain's spend (GStack Minder: 280 of 821 wakes in 4.7 days).
  • A merge-lane thread takes CI off the Captain: PR and CI events were 20-30% of wakes for Captains that act as their own merge lane, so busy Captains now hand PR watching to one crew thread, and each lane keeps its own PR's checks and review.
  • What makes a wake expensive is coming in cold, not how much it does: any Captain wake more than 5 minutes after its last call rewrites 300-700k tokens of cache at about 19x the warm price ($2.42 against $0.125 per million tokens), as measured in FOUN-216.

What changed

Captain guide, Roles: a new optional merge lane takes PR and CI watching off a busy Captain

Captain guide, Roles: a new optional merge lane takes PR and CI watching off a busy Captain.

Before/after as text: Captain guide, Roles: a new optional merge lane takes PR and CI watching off a busy Captain
--- Before · crew/docs/captain.md § Roles at a87d92c · source text
+++ After · crew/docs/captain.md § Roles on this branch · source text
@@ ⋯ 14 unchanged ⋯ @@
   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.
  • capy/skill/gstack/factory.md, point 10 (Quiet.), first sentence rewritten in place: send READY, a blocker, done or a Captain or owner call, else end_turn; no acks or progress notes; the reason is that each message wakes the Captain cold. The page goes from 3,467 to 3,471 bytes, under its 3,475-byte test budget.
  • crew/docs/captain.md, Roles: a new merge lane bullet. A Captain whose PRs bring many check, review and merge wakes hands that watching to one crew thread, which reports only a landing, a red check that needs a decision, or a blocker. Other lanes still own their PRs' CI and review up to READY.
  • capy/skill/gstack/captain.md, section 4: Who watches CI, the lane-side version of the same rule, placed after the note that /ship writes READY items 1-4 so that note stays with its list.
  • A changelog.d fragment.

Why

Captains cost the most in a crew, and most of that cost is cold wakes, not work. Two kinds of wake are avoidable. One is a routine report from a crew thread that needs no answer, and the other is a PR or CI event on a Captain that watches its own PRs.

Blast radius

Guidance text only: no code, tooling, templates or generated files change. The focused tests that read these pages (capy-skill-wrapper, captain-skill, captain-brief, prose-voice-floor) ran on the final tree with no failures across 100 tests, and factory.md is 3,471 bytes against its 3,475-byte budget.

Summary

Crew threads were told to message on "a finished phase", which woke the Captain cold for reports nobody had to answer. Point 10 now limits messages to a READY, a blocker, done or a call the Captain or owner must make. The Captain guide adds an optional merge lane so check, review and merge events stop waking a busy Captain.

Test Coverage

No new code paths: the diff is prose only, so the coverage audit found 0 paths and wrote no tests. Tests: 1764 → 1764 (+0).

Pre-Landing Review

Two wording fixes in capy/skill/gstack/captain.md were applied in this pass: the "/ship does items 1-4" sentence had been pulled into the new CI paragraph, away from the READY list it describes, and "fix or rerun what turns red" now says one rerun for a flake. The batched specialist (testing, security, state machines, Red Team) found nothing. The native adversarial reader found six items, none blocking; they are listed under Review notes and were not fixed, because this ship allowed one fix round.

Gate edits: none detected (0 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

Outside review: not planned (the review plan skipped the outside voice for this class).

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL crew/docs/captain.md:51 Merge lane 'lands verified READYs' sits beside 'a lane never merges a PR' and the Direct land section that gives landing to the controller; say whether the merge lane only watches or is an explicit landing exception.
  • INFORMATIONAL crew/docs/captain.md:51 No recovery path when the merge lane thread dies while it holds every PR watch (Captain no longer subscribes).
  • INFORMATIONAL capy/skill/gstack/captain.md:161 Capy skill paragraph does not say the merge lane lands, and its report list differs from crew/docs/captain.md.
  • INFORMATIONAL capy/README.md:178 capy/README.md still carries the old quiet-rule wording that factory.md rule 10 replaced.
  • INFORMATIONAL capy/skill/gstack/factory.md:14 Rule 10 omits answering a direct Captain request; 'a Captain or owner call' is ambiguous. factory.md has 4 bytes of budget left.
  • INFORMATIONAL capy/skill/gstack/captain.md:158 'one rerun for a flake' omits the ledger entry and the never-rerun-INFRA/harness limits that factory.md rule 9 and AGENTS.md carry.

Exploratory QA

Functional smoke on the changed pages, report-only. Captures 001-002 ran on c3e001d and were superseded by the review fix; captures 003-004 reran the same commands on the fixed tree: the four focused test files ran 100 tests with no failures and factory.md measured 3,471 bytes. No browser surface.

Design Review

No frontend files changed, so design review was skipped.

Eval Results

No paid evals ran. The selector found no quality judge for these files; its unknown-dependency fallback for crew/docs/captain.md keeps the behavior probes as scheduled release coverage, not PR passes.

Scope Drift

Scope Check: CLEAN. Intent: quiet crew reports and an optional merge lane in the Captain guidance. Delivered: four guidance files and a changelog fragment, nothing else.

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches).

Verification Results

No plan verification items, so nothing was executed for this section.

TODOS

No TODO items completed in this PR.

Documentation

Scope: the branch diff against a87d92c, which changes four docs (capy/skill/gstack/captain.md, capy/skill/gstack/factory.md, crew/docs/captain.md and changelog.d/quiet-crew-reports-and-one-merge-thread.md), plus the worktree, which has no staged, unstaged or untracked changes.

Result: current. The tightened Quiet rule in factory.md, the new CI-watching paragraph in captain.md, the new optional merge-lane role in crew/docs/captain.md and the changelog fragment describe the same behavior, and the captain.md pointer to crew/docs/captain.md (Roles) resolves. A search of Markdown files found no other docs that need the same update. No files were edited.

Debt: none found.

Test plan

  • bun run test: carried from CI run 42518447851/1 at 213453e (tree 39c481d6), 1,645 test files, exit 0; the pregate passed on the final tree.
  • bun test test/capy-skill-wrapper.test.ts test/captain-skill.test.ts test/captain-brief.test.ts test/prose-voice-floor.test.ts on the final tree: 100 tests, no failures.
Agent notes
  • Lane GSTA-418 for issue GST-1941, under GStack Minder (GSTA-36). FOUN-216 numbers are relayed as measured in that report (reports/FOUN-216.md in FOUN-32's drive); this lane did not rerun them.
  • Checks on the same doc text (first pushed as 5be6144 on Keep crew threads quiet and let busy Captains hand CI watching to a merge lane (GST-1941) #4175, which this replaces because its branch name failed the plain-words check): bun test capy-skill-wrapper, captain-skill, prose-voice-floor, parity-suite, context-budget-ratchet, catalog-budget, context-bill, inventory: 209 tests, no failures. Whole-tree search found no test pinning the old point 10 wording.
  • GSTA-409 re-fits its point 10 clause on top of this one-line change.
  • /ship ran at c3e001d (the brief pinned 64ae75d; c3e001d only rewords the changelog fragment) and pushed one review-fix commit, 213453e.

Approvals

No approvals recorded for branch capy/quiet-crew-reports-and-one-merge-thread-gst-1941.

Plan: exempt: guidance text only, no new functionality; the Captain's brief waived /autoplan.

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=2 scope=frozen ledgers_read=2 dispatches=1
Gate edits: none detected (0 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

{
  "schema_version": 1,
  "pr": 4176,
  "head": "213453e73016f41aeeda8b1af00161d3bec38451",
  "version": "1.98.0.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 1645,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 42518447851,
      "attempt": 1,
      "tree": "39c481d62d99d5717393b349831036bcd4dc6ae0"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "39c481d62d99d5717393b349831036bcd4dc6ae0",
  "product_patch_id": "c7f790aa9278b6cdbe1ba2329e0ca619cda6241a",
  "gstack_version": "1.98.0.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 8,
    "rules": "66e5174161eecc2c",
    "base": "a87d92c5e20cc09c274f18c0d723de8de81603ce",
    "registry": "a87d92c5e20cc09c274f18c0d723de8de81603ce",
    "gate_scan": {
      "tagged": 0,
      "head": "213453e73016f41aeeda8b1af00161d3bec38451"
    },
    "reasons": [
      "runtime=8"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "pass @39c481d62d99 (8 checks, current for 213453e73016)",
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, crew/docs/, capy/, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md against a87d92c5"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 2,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 2,
    "dispatches": {
      "specialist": 1
    }
  }
}

Open in Capy

garrytan and others added 2 commits November 8, 2026 19:46
… merge thread (GST-1941)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… merge thread (GST-1941)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

…tain guide

Review-Finding: capy/skill/gstack/captain.md:162:completeness reader=core
Review-Finding: capy/skill/gstack/captain.md:157:completeness reader=core
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 1999310 into main Nov 8, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant