Skip to content

v1.91.253.0 feat(captain): /captain skill (also /crew), crew templates and docs/captain.md for running a crew from one controller - #3473

Merged
capy-ai[bot] merged 8 commits into
mainfrom
gsta-109-captain-skill
Oct 26, 2026
Merged

capy-ai[bot] merged 8 commits into
mainfrom
gsta-109-captain-skill

Conversation

@garrytan

@garrytan garrytan commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3473,
  "head": "1c9cc178133de1bca44c3d8e5fe6af86db09e2b8",
  "version": "1.91.248.0",
  "base": "main",
  "gate": {
    "pregate.json/remote_gate": {
      "pass": 18935,
      "fail": 0,
      "skip": 0
    },
    "free-tests.yml/macos-named-regressions": {
      "pass": 5,
      "fail": 0,
      "skip": 0
    },
    "windows-free-tests.yml/windows-free-shard": {
      "pass": 664,
      "fail": 0,
      "skip": 0
    }
  },
  "spend_usd": 0.12,
  "session_kind": "unattended",
  "pregate": "requires-remote cleared @a4f4114247e0 (1 checks, current for 1c9cc178133d)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/40346182735",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/40346182462",
    "pregate.json/remote_gate: remote-gate tree=a4f4114247e0 tests=18935"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  }
}

What changed

The README power-tools table gains /captain (also /crew): one controller merges, lanes send READY blocks, trains, digest, approvals, daily flaky pass

Before → after: the README power-tools table at main vs this branch. One new row registers the skill and links the team guide.

docs/skills.md gains the /captain deep dive: the READY contract, the train loop, the three approval shapes and the daily flaky pass

Before → after: docs/skills.md had no section; the branch adds the /captain deep dive that summarises the whole operating model in one screen.

Text version
  • README power tools: new row /captain Crew Controller linking docs/captain.md.
  • docs/skills.md: new table row and a ## /captain section (usage, the rules, the templates, the guide link).

Why

Several Capy Captain crews run the same operating model (one controller merges, lanes stop at a READY block, merge trains with per-slot stamps, approvals in fixed shapes, a daily flaky pass), but it lived only in one crew's private drive notes. A team that wants gstack plus Capy as its harness had nothing to copy. This PR ships the model generically as a gstack skill (/captain, also /crew), nine copy-paste templates and a setup guide, with every repo-specific name a parameter.

What the skill teaches. The one rule (controller merges, lanes never); the READY contract as a field table with a refusal list (full head SHA, base, CI counts, pregate, gate evidence, SHIP_RECEIPT at the pin, screen choice with justification, receipt path, logged flaky cases; a green PR page or a cheap tier is never merge evidence); merge trains (build, verdict, slot call, lane stamps on call with a commit that holds only tool output, verify, gh pr merge --match-head-commit, verify again, prune); the red-train rules (in-run flaky rerun once, bisect on the red cases, exactly one unchanged rebuild, one infra re-dispatch); the tree rule, gate-ahead and the severe race as options; the backstop, the freeze and the post-merge babysit; the digest shape (Needs you / New / In progress with ages); the three approval shapes (A per-thread record, B plan ask with before → after and a "do it" reply, C merge ask with captioned before/after images); the daily flaky-fix pass (ledger format, sources, red-before-green fix PRs, one named infra rerun allowance, never thresholds, trials or kinds); reports and wave PRs. Where two crews' protocols differ, both ship as options for the crew rules file.

Templates (captain/templates/): CREW.md (parameters, a standing-approvals table, and 23 one-line rules that each point at the rule's home in gstack), AGENTS.md, NOTES.md, DIGEST.md, flaky-ledger.md, report.md, READY.md, slot-call.md, plan-ask.md, merge-ask.md, automation-flaky-pass.md.

Docs and registration: docs/captain.md (roles, drive layout, the rule-to-home map, lane discipline, outside contributions, READY and the lane's /ship sequence, trains, approvals, digest, flaky pass, owner device, lessons loop, setup steps); rows in README, AGENTS.md, docs/skills.md, docs/PROJECT_STRUCTURE.md; a root-router rule; lib/doctor-components.ts; the context-budget and catalog-budget ratchets moved by the new skill (and CLAUDE.md's copy of the catalog ceiling); a CHANGELOG entry under [Unreleased]. test/captain-skill.test.ts pins the contract, the template set, the generic wording (no crew codes, names or repository literals) and the registration points.

gstack holds the rules, the crew file points at them. Every rule a running crew carries was mapped to a canonical home in gstack (the table in docs/captain.md → "CREW.md: the lanes' contract"). Rules that had no home got one in docs/captain.md: lane discipline (validation, file ownership, one routing path, keep going, guards before paid work, plain-language decisions), contributions from outside the crew (untrusted diffs, porting with authorship kept), stale READYs after a contract change, standing spend as a shape-A approval, and the lane's side of flaky reruns next to the daily pass. Rules that already had a home point at it: session start → docs/capy-install.md; remote pregate → docs/pregate.md; READY, stamps, the CHANGELOG position, CHANGELOG-only conflicts and /ship before READY → docs/ship-policy.md; the gate's flaky rerun → docs/TESTING_INTERNALS.md; approvals → capy/skill/gstack/captain.md.

Gaps (a rule whose home is not yet written in gstack): rule 23, review convergence (scope frozen after pass 1, delta-only later passes, a three-pass cap, the blocking floor), is pointed at the /ship and /review skills, where GSTA-113 is placing it; this PR does not duplicate its text. Rule 17 (entry-point and isolation conventions for new files) is a repository rule, not a crew rule: it points at the repository's own AGENTS.md through the REPO_CONVENTIONS parameter.

Not in scope: ship-queue code, the retro scorecard, edits to other skills' templates. No alias mechanism exists in the generator, so /crew is a trigger and a router phrase, not a second skill directory.

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-10-26 Codify the Captain operating model into gstack as the /captain skill, templates and docs/captain.md so gstack plus Capy is the recommended harness (phase 1) “Do it and also improve it: fix the issues all the captains have seen in this Capy project” (Garry, 2026-10-26 (via GStack Minder)) approved phase 1: the /captain skill, captain/templates, docs/captain.md, registration; generic wording; READY through a train, no merge by this lane none

Source: gstack-approvals record for gsta-109-captain-skill (display only; not an approval citation).

Evidence

  • bun run gen:skill-docs clean (regenerated output committed); bun run typecheck 0 errors; bun run typecheck:test no new diagnostics.
  • Skill guards green: parity suite, skill-md size guard, skill size budget, catalog budget (ratcheted 1,197 → 1,251 for the new skill), context-budget ratchet, archaeology lint, skill validation, env-host fence conformance, gen-skill-docs, agents digest, doctor components, proactive core set, instruction facts, and the new test/captain-skill.test.ts (7 tests).
  • bun run test:quick locally: every failure is environmental on this machine (Playwright Chromium not downloaded, CSO not built, codex host render absent, the machine's forced git identity in the retro-metrics fixture); none touches this diff. The remote free tier runs in /ship's pregate before READY.
  • No paid case was added: the e2e harness has no cheap "skill loads and follows its first step" pattern; every case is a per-skill fixture with paid-case, kind and shard-duration registration.
  • /ship at head 1c9cc178133de1bca44c3d8e5fe6af86db09e2b8 (tree a4f4114247e0): pregate preflight PREGATE: warn tree=a4f4114247e0 head=1c9cc178133d checks=6 (regen 2 entries fresh, secrets 1920 added lines clean, literals, timing and guards pass; the one warn is PREGATE_STRAYS for the intended new top-level captain/ directory). Remote free tier on one Ubicloud VM: PREGATE_REMOTE: tree=a4f4114247e0d37ab02ce7c0f7e468080fa92ef2 tests=18935 failed=0 spent=0.12 (eu-central-h1, attempt 1 of 6, VM destroyed). The macOS and Windows lane obligations were cleared with this head's own green runs (Free Tests run 40346182735, Windows Free Tests run 40346182462); every CI check at this head is green (Workflow Lint, Quality gate, Skill Docs Freshness, Version Gate, Free Tests, E2E Evals, Windows Free Tests).
  • Review loop (crew rule 23): 1 pass at this head, whole diff vs origin/main, six specialists (testing, maintainability, security, performance, state-machines, simplification advisory) plus a native adversarial pass; 0 blocking findings under the floor (a finding blocks only if it would fail a test, break production, or lose data or secrets). Pass 2 was not run: nothing changed after pass 1, so its range-diff is empty, which is the loop's exit. Earlier heads of this branch (30caa1f, 02ac865, 1bd130f) had their own passes; the 10 fixable findings from those passes landed in 02ac865 and 1bd130f.
  • Named notes shipped with this PR (none blocking): (1) test/captain-skill.test.ts:64: the "rule n names its home" regex [^]*?Home: spans into later rules, so a rule missing its Home: still passes while any later rule has one; (2) test/captain-skill.test.ts:89: the link check drops #fragments, so a renamed heading breaks the rule-to-home pointers silently (all 11 anchors resolve at this head); (3) test/gate-list.test.ts:152: the alias loop does not include do it, and no test drives --owner-reply "do it" through answerGate (probed at this head: every answered row gets owner_reply_parsed:true); (4) rule 23's home (captain/templates/CREW.md:124, docs/captain.md:99) points at the /ship and /review convergence policy, which GSTA-113 is still placing there, so today the pointer lands on the three-cycle cap without the floor; (5) parameter lists diverge: CREW.md has 15 parameters, captain/SKILL.md.tmpl:67-78 lists 10, docs/captain.md:63-66 names 12, the test loop pins 7; (6) captain/templates/CREW.md:48: REPO_CONVENTIONS is defined for rule 17 (new-file section) but rule 2 reuses it to name the validation file; (7) captain/templates/merge-ask.md:9 (and shape C in the skill and docs/captain.md): before/after images via the host's public PR asset tool without the "public repositories only, through gstack-pr-shots" qualifier that capy/skill/gstack/captain.md:119 carries; (8) docs/captain.md:154: "bash scripts/install.sh --for ship from the project directory" names a path that exists only as capy/skill/gstack/scripts/install.sh beside the Capy skill; (9) docs/captain.md:10: "every file named below has a copy-paste template" overstates it (skills/<name>/SKILL.md and plans/ have none); (10) simplification advisories: the 23-row rule table in docs/captain.md:75-99 duplicates CREW.md's pointers; captain/SKILL.md.tmpl:88-92 carries a third enumeration of the rules; TRAIN_MAX/FULL_GATE_CHECK/FILL_HOURS mirror .gstack/ship-policy.json's train block; captain/templates/READY.md:26 restates the pin a third time; the standing-approvals table in CREW.md is a third slot for the owner's words next to AGENTS.md's; rules 6/14/15/19/22 each state a piece of the stamp-commit rule.
  • Deferred (pre-existing or neighbouring code, not changed here; for follow-up issues): lib/gate-list.ts:130 tokenizer does not strip ./!, so do it. is refused with GATE_REPLY_UNPARSED (same as rec. today); five pre-existing untested owner-reply matrix cells (all, approve all, accept all, take all recommendations, as-is × --owner-reply); capy/skill/gstack/captain.md:60 links docs/ship-policy.md#approval-classes, an anchor that does not exist (also absent at base). Earlier deferred item: touchfiles-data.ts, filed as eval:select: map captain/templates/*.md in test/helpers/touchfiles-data.ts so a templates-only PR does not fall back to the full gate #3477.
  • Earlier-pass notes still standing (unchanged by this head): the read-write drive makes "standing approvals cited, never re-asked" spoofable by a prompt-injected lane (INVESTIGATE); deployment approvals through the owner's device have no BASE/train-head check; "do it … no further ask" can read as a waiver of the always-fresh-ask list; backstop/freeze prose assumes every adopting repo has an evals-main-backstop.yml; test/fixtures/context-budget.json alwaysOnTotal 7458 vs captured 7591 (~3.2% headroom).

Pre-Landing Review

Pass 1 at 1c9cc17: 6 specialists dispatched, 25 findings before dedup (performance: none), 17 unique after dedup: 1 CRITICAL-labelled untested state-matrix cell in the diff (do it × --owner-reply, behaviour verified by probe, test gap), 9 INFORMATIONAL in-diff notes, 7 deferred pre-existing items, plus 7 simplification advisories; every item has a disposition under the crew's blocking floor (named above). Core checklist: no defect. State matrix: 1 machine, 18 cells, 12 tested, 6 untested (all listed). Focused suites at this head: 45 pass, 0 fail (captain-skill, captain-brief, gate-list, catalog-budget, context-budget-ratchet, doctor-components).

Gate edits: none detected (7 listed, 4 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none). The four read hunks (test/captain-brief.test.ts import and order line, test/catalog-budget.test.ts ratchet 1,197 → 1,251 with its measurement in the hunk, test/fixtures/context-budget.json captain row) are additions or measured ratchet moves, not relaxations.

Outside review: unavailable (no Codex harness in this Capy session); adversarial coverage is the native Claude pass only, 5 INFORMATIONAL findings, 3 shared with the specialists.

Exploratory QA

Functional smoke at 1c9cc17 (.gstack/qa-reports/ship-1c9cc17/functional, 300 s budget, 4 probes, verdict pass): focused suites 35 pass 0 fail; the generated root router line equals the template's (SKILL.md:217 == SKILL.md.tmpl:93) and is the only router bullet naming captain/crew; parseReply accepts do it, Do it and rec as mode rec and refuses free text with GATE_REPLY_UNPARSED; every Home: pointer in CREW.md resolves to a heading or file in gstack, and the doctor Bash twin's requires() prints claude for captain and fails for an unknown name. Not run: auth, timeout, retry, idempotency and concurrency contracts (no such surface in this diff); no agent-driven run of the skill prose.

Documentation

Status: current — the release documentation matches the candidate at 1c9cc17 (base 5755601); no edits were needed and nothing blocks.

Audited scope. The gsta-109-captain-skill branch, 37 files over 7 commits since the merge-base, with the reading concentrated on the delta since the previous audit at 02ac865: captain/templates/CREW.md restructured into 23 one-line pointer rules plus a parameter table and a standing-approval table; docs/captain.md gained the rule-to-home map, Lane discipline, Contributions from outside the crew, the stale-READY rule, standing spend, the lane's side of flaky reruns and train build --repair; captain/SKILL.md(.tmpl) aligned the SHIP_RECEIPT width and the repair-train wording; test/captain-skill.test.ts pins 23 rules with homes and the map rows; the CHANGELOG line now reads 23 pointer rules. Every home and anchor the pointers name was resolved in the checkout, the tool claims were checked against lib/ship-queue-train*.ts, lib/ship-receipt.ts and lib/gate-list.ts, generated outputs were regenerated in a scratch copy and found byte-identical, and the four focused test files pass (25/25). The working tree is clean; no staged, unstaged or new-file bytes were in the candidate.

Documentation health:
README.md Current (/captain skills row and docs-table row match the skill and docs/captain.md)
AGENTS.md Current (/captain row; #validation-discipline is the home rule 2 points at)
CLAUDE.md Current (catalog budget 1,251 matches test/catalog-budget.test.ts)
CONTRIBUTING.md Current (catalog budget 1,251; remote-gate command matches pregate.md#remote-gate)
CHANGELOG.md Current (Unreleased entry names 23 pointer rules, the parameters and the standing-approval table; not polished in read-only mode)
docs/captain.md Current (23-row map resolves to existing anchors; Lane discipline and Contributions sections present; --repair, FLAKY N, verdict states and receipt width match the code)
docs/skills.md Current (/captain section and index row; #ship and #captain anchors exist)
docs/CONTRIBUTOR_REFERENCE.md Current (catalog budget 1,251)
docs/PROJECT_STRUCTURE.md Current (captain/ entry in the tree)
docs/capy-install.md Current (#session-start and #working-under-a-captain are the homes rule 1 and the intro point at)
docs/ship-policy.md Current (explicit anchors stamp-at-merge, run-a-merge-train, ship-before-ready exist; train build --repair at :540)
docs/pregate.md Current (#remote-gate anchor at :322)
docs/unattended.md Current (#owner-brief at :399)
docs/TESTING_INTERNALS.md Current (#flaky-reruns at :462)
autoplan/DRIVER.md Current (do it alias matches lib/gate-list.ts)
capy/skill/gstack/captain.md Current for this candidate (lane side points at /captain and docs/captain.md; a pre-existing link to ship-policy.md#approval-classes at :60 has no anchor, outside this diff)
captain/templates/CREW.md Current (every rule names a home that exists; parameters match the names docs/captain.md:63-66 lists)
captain/templates/README/report/slot-call/plan-ask/merge-ask Current (sha12 width, STAMP_VERSION, do it as the test pins)
captain/SKILL.md, SKILL.md, gstack/llms.txt, agents-digest/gstack-AGENTS.md, bin/gstack-doctor-components.sh Current (regenerated in a scratch copy, byte-identical to the checkout)
TODOS.md Skipped (file does not exist)

Documentation coverage:
/captain (also /crew) reference ✅ AGENTS.md, README, docs/skills.md, llms.txt how-to ✅ docs/captain.md tutorial ✅ docs/captain.md "Setting it up on Capy" explanation ✅ docs/captain.md "The model in one paragraph"
CREW.md pointers + parameters (GUARD_CHECKS, REMOTE_PREGATE, REPO_CONVENTIONS, REVIEW_SCOPE, CONTRACT_DATE) reference ✅ CREW.md, docs/captain.md map how-to ✅ docs/captain.md:62-71 tutorial ❌ explanation ✅ ("a rule that exists only in a crew's file is a gap in gstack")
train build --repair reference ✅ ship-policy.md:540, docs/captain.md:194, captain/SKILL.md how-to ✅ ship-policy.md tutorial ❌ explanation ✅ docs/captain.md (freeze)
do it as an alias of rec reference ✅ autoplan/DRIVER.md, capy/skill/gstack/captain.md, lib/gate-list.ts how-to ✅ tutorial ❌ explanation ❌
Review convergence (rule 23: pass cap, delta-only later passes, blocking floor) reference ⚠️ pointer only (CREW.md:124, docs/captain.md:99 → /ship and /review skills, which hold the 3-cycle cap and fix-range repeats but no blocking floor; docs/skills.md#ship does not describe it) how-to ❌ tutorial ❌ explanation ❌

Coverage debt: the blocking floor and the delta-only later-pass rule that rule 23 describes have no home in gstack yet; the pointer lands on the skills' cycle cap. Common gap, not critical: the rule is stated in one line in CREW.md. Pre-existing debt outside this candidate: capy/skill/gstack/captain.md:60 links docs/ship-policy.md#approval-classes, which has no anchor.

Diagram drift: none. No ASCII or Mermaid diagrams in the touched docs; the docs/PROJECT_STRUCTURE.md tree gained captain/ and matches the checkout.

Open in Capy

garrytan and others added 3 commits October 26, 2026 14:00
…aptain.md for running a crew from one controller

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

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

trunk-io Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits October 26, 2026 14:15
…uence, owner device and lessons loop in docs/captain.md; owner-brief closes with the do-it reply

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tches the tool's lines, slot-2 and freeze wording, mergeChangelogs named, parameter lists and doc numbers aligned

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan and others added 2 commits October 26, 2026 14:51
…e-race wording across skill, CREW.md and docs; router routes on phrases; receipt head width as printed

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ry crew rule gets a canonical home in gstack (lane discipline, outside contributions, stale READYs, standing spend, the lane side of flaky reruns in docs/captain.md; the rule-to-home map)

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

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 112/112 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 7m12s · cost $32.98 known + 54 of 136 trial(s) cost unknown

125 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $32.98 rule/judge cost | reconcile exit: 0

Profile: pr / mode full-fallback; selected behaviors: 112, judges: 24. Deferred to scheduled/release coverage: 139 behaviors and 2 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Full gate restored by:

  • captain/templates/AGENTS.md (real unknown dependency): register captain/templates/AGENTS.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • captain/templates/CREW.md (real unknown dependency): register captain/templates/CREW.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • captain/templates/DIGEST.md (real unknown dependency): register captain/templates/DIGEST.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • captain/templates/NOTES.md (real unknown dependency): register captain/templates/NOTES.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • captain/templates/READY.md (real unknown dependency): register captain/templates/READY.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • captain/templates/automation-flaky-pass.md (real unknown dependency): register captain/templates/automation-flaky-pass.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • captain/templates/flaky-ledger.md (real unknown dependency): register captain/templates/flaky-ledger.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • captain/templates/merge-ask.md (real unknown dependency): register captain/templates/merge-ask.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • captain/templates/plan-ask.md (real unknown dependency): register captain/templates/plan-ask.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • captain/templates/report.md (real unknown dependency): register captain/templates/report.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • captain/templates/slot-call.md (real unknown dependency): register captain/templates/slot-call.md under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers

Derived dependents (scripts/pr-dependencies.ts):

  • bin/gstack-doctor-components.sh: 250 case(s), 24 judge(s)
  • lib/captain-brief.ts: 250 case(s), 24 judge(s)
  • lib/doctor-components.ts: 250 case(s), 24 judge(s)
  • lib/gate-list.ts: 250 case(s), 24 judge(s)
  • scripts/resolvers/autoplan-driver.ts: 250 case(s), 24 judge(s)
Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 1/1 0 1 0 ✅ $0.98
e2e-review-army/skill-e2e-review-army--review-army-json-findings 1/1 0 1 0 ✅ $0.07
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.08
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 1/1 0 1 0 ✅ $0.83
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.04
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $1.01
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $0.75
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $0.91
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $0.72
e2e-cso/skill-e2e-cso 1/1 0 1 0 ✅ $0.4
e2e/skill-e2e-ship-skip 1/1 0 1 0 ✅ $0.24
e2e/skill-e2e-shared-libs--shared-libs-read-only 1/1 0 1 0 ✅ $0.27
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $0.34
e2e-review-army/skill-e2e-review-army--review-army-migration-safety 1/1 0 1 0 ✅ $0.35
e2e/skill-e2e-shared-libs--shared-libs-unsupported-git 1/1 0 1 0 ✅ $0.22
e2e/skill-e2e-shared-libs--shared-libs-review-lifecycle 1/1 0 1 0 ✅ $0.93
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.08
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.09
e2e-deploy/skill-e2e-deploy--canary-workflow 1/1 0 1 0 ✅ $0.11
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.18
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.07
e2e-review-army/skill-e2e-review-army--review-army-delivery-audit 1/1 0 1 0 ✅ $0.13
e2e-design/skill-e2e-design--design-review-detector-shim 1/1 0 1 0 ✅ $0.13
e2e-safety-pair-agent/skill-e2e-safety-pair-agent 1/1 0 1 0 ✅ $0.1
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.08
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.12
e2e-deploy/skill-e2e-deploy--land-and-deploy-review-gate 1/1 0 1 0 ✅ $0.32
e2e-deploy/skill-e2e-deploy--benchmark-workflow 1/1 0 1 0 ✅ $0.23
e2e/skill-e2e-shared-libs-paths--shared-libs-review-index-flags 1/1 0 1 0 ✅ $0.96
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $0.36
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $0.77
e2e-review-army/skill-e2e-review-army--review-army-perf-n-plus-one 1/1 0 1 0 ✅ $0.35
e2e-triage/skill-e2e-triage 1/1 0 1 0 ✅ $0.11
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 0 5 0 ✅ $0.42
e2e-browse/skill-e2e-bws 6/6 0 6 0 ✅ $0.29
e2e-review-attribution/skill-e2e-review-attribution 3/3 0 3 0 ✅ $0.27
e2e-safety-ship-evidence/skill-e2e-safety-ship-evidence 1/1 0 1 0 ✅ $0.13
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.17
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.19
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 0 4 0 ✅ $0.28
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.14
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.15
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $0.71
e2e-retro/skill-e2e-retro 1/1 0 1 0 ✅ $0.33
e2e-qa-workflow/skill-e2e-qa-workflow--qa-only-no-fix 1/1 0 1 0 ✅ $0.56
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $0.97
e2e-review-army/skill-e2e-review-army--review-army-quality-score 1/1 0 1 0 ✅ $0.1
e2e-qa-workflow/skill-e2e-qa-workflow--qa-quick 1/1 0 1 0 ✅ $0.51
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $0.64
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $1.41
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.21
e2e/skill-e2e-shared-libs-paths--shared-libs-review-prior-coverage 1/1 0 1 0 ✅ $0.91
e2e-deploy/skill-e2e-deploy--land-and-deploy-workflow 1/1 0 1 0 ✅ $0.61
e2e-review/skill-e2e-review 2/2 0 2 0 ✅ $0.3
e2e/skill-e2e-shared-libs--shared-libs-review-revalidation 1/1 0 1 0 ✅ $1.99
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.33
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $0.43
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $0.36
e2e-deploy/skill-e2e-deploy--land-and-deploy-first-run 1/1 0 1 0 ✅ $0.35
e2e-design/skill-e2e-design--design-review-plugin-handoff 1/1 0 1 0 ✅ $0.15
e2e-design/skill-e2e-design--design-review-detector-shim-dom 1/1 0 1 0 ✅ $0.23
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.26
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.32
llm-judge/skill-llm-eval 24/24 0 24 0 ✅ $1.44
e2e-skillify/skill-e2e-skillify 3/3 0 3 0 ✅ $0.83
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $0.68
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $0.91
e2e-failure-routing/skill-e2e-failure-routing 4/4 0 4 0 ✅ $0.42
e2e-safety-codex-consult/skill-e2e-safety-codex-consult 1/1 0 1 0 ✅ $0.28
e2e/skill-e2e-workflow 4/4 0 4 0 ✅ $0.89
e2e/skill-e2e-shared-libs-paths--shared-libs-review-path-eligibility 1/1 0 1 0 ✅ $1.48
Fail-closed reconciliation
ll-e2e-design.test.ts#design-review-detector-shim-dom
  slice 13  passed             40s  test/skill-e2e-design.test.ts#design-review-plugin-handoff
  slice 14  passed             45s  test/skill-e2e-safety-ship-evidence.test.ts
  slice 14  passed             48s  test/skill-e2e-review-attribution.test.ts
  slice 14  passed             51s  test/skill-e2e-office-hours-auto-mode.test.ts
  slice 14  passed             50s  test/skill-e2e-bws.test.ts
  slice 14  passed             51s  test/skill-e2e-third-party-actions.test.ts
  slice 14  passed             36s  test/skill-e2e-plan-tune.test.ts
  slice 14  passed             22s  test/skill-e2e-triage.test.ts
  slice 14  passed             37s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-timeout-unsettled
  slice 14  passed             29s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-marker
  slice 14  passed             36s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 14  passed             25s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 14  passed             28s  test/skill-e2e-session-intelligence.test.ts
  slice 15  passed             25s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 15  passed             23s  test/skill-e2e-design.test.ts#design-review-detector-shim
  slice 15  passed             23s  test/skill-e2e-deploy.test.ts#canary-workflow
  slice 15  passed             26s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 15  passed             14s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 15  passed             27s  test/skill-e2e-review-army.test.ts#review-army-delivery-audit
  slice 15  passed             29s  test/skill-e2e-investigate-owned-completion.test.ts
  slice 15  passed             23s  test/skill-e2e-safety-pair-agent.test.ts
  slice 15  passed             22s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 15  passed             17s  test/skill-e2e-learnings.test.ts
  slice 15  passed             17s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 125 executed, 0 reused; 125 passed, 0 failed, 0 manual accepted (unscored; no score-cache credit) (125 attempt records from 71 collectors; every record counts)
[test:paid] deselected testcases, zero credit (312):
[test:paid]    298  sibling case of a case shard (its own shard runs it)
[test:paid]      8  periodic-tier case (this lane runs gate)
[test:paid]      6  Bun hook placeholder of a skipped describe block (not a test)
[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 112/112 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 7m12s · cost $32.98 known + 54 of 136 trial(s) cost unknown
[test:paid] exercised-path map (shadow, non-blocking): 6 MAP_GAP line(s) over 105 executed case(s) with recorded commands
  MAP_GAP document-release bin/gstack-banned-terms: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report bin/gstack-plan-reality: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report browse/dist/browse: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP shared-libs-review-revalidation bin/gstack-approval-classes: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP test-audit-report-only design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
[test:paid] report: every planned shard accounted and passed

Sliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry.

Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit 7fec27a024365473cf514a3d80a243cf6b1b06f8.

…s and docs/captain.md for running a crew from one controller (#3473)

Merge origin/main (8663c3d) into the pin 1c9cc17; CHANGELOG resolved by mergeChangelogs (additive). gstack-restamp --next --base main --pr 3473 --expect-base 8663c3d --expect-order 3473: STAMP_VERSION 1.91.253.0; FILES: CHANGELOG.md VERSION agents-digest/gstack-AGENTS.md package.json.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title feat(captain): /captain skill (also /crew), crew templates and docs/captain.md for running a crew from one controller v1.91.253.0 feat(captain): /captain skill (also /crew), crew templates and docs/captain.md for running a crew from one controller Oct 26, 2026
@capy-ai
capy-ai Bot merged commit 4d48d39 into main Oct 26, 2026
62 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