Repository navigation
Install /captain only on Capy machines (GST-1833) - #4143
Merged
Merged
Conversation
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>
|
😎 This pull request was merged. |
6 tasks done
Review-Finding: p1/specialist-batched#2 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan
added a commit
that referenced
this pull request
Nov 7, 2026
Review-Finding: docs/designs/GSTACK_ON_CAPY.md:89:documentation reader=core 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>
2 tasks done
capy-ai Bot
added a commit
that referenced
this pull request
Nov 7, 2026
…, and how Phase 2 will switch crew steps (GST-1833) (#4144) * Record what a lighter gate for crew-only pull requests would have saved, and the switch for Phase 2 (GST-1833) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * Add changelog entry for the crew gate cost note (GST-1833) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * Say that the Capy-machine check the design note cites comes from #4143 Review-Finding: docs/designs/GSTACK_ON_CAPY.md:89:documentation reader=core 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>
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.
/captainis now installed only on Capy machines. This starts gathering gstack's crew tools under acrew/folder that loads only on Capy, so people who install gstack from the README get the product without the machinery our crews use, and Capy users still get all of it.What changed
Off Capy, gstack-relink no longer links /captain; other skills link as before.
Before/after as text: Off Capy, gstack-relink no longer links /captain; other skills link as before
gstack-relinkregister/captainonly on a Capy machine. A Capy machine is one whereCAPY_MACHINE_CONFIGis set or~/.capy/systemexists, the same testgstack-capy-install's bun shim and the update channel already use.gstack_on_capyandGSTACK_CREW_SKILLSlive inbin/gstack-install-registry.shbeside the retired-skill list, andGSTACK_UNREGISTERED_SKILLS(retired skills, plus the crew skills off Capy) now feeds the same no-entry path retired skills take. Off Capy,/captaingets no entry on any host and an entry an earlier install made is removed; a user's owncaptainskill is left alone. On Capy nothing changes.lib/harness-register.tsfilters throughunregisteredSkills()inscripts/discover-skills.ts(CREW_SKILLS,onCapyMachine), for both the Claude render and the generated host renders.crew/README.md, a short "gstack on Capy" README section and a note in the skills guide say what Capy users get on top (Captains, the merge queue, receipts, spend caps) and how it loads.Why
The crew tools should be an optional layer that loads only for Capy users, with minimal impact on everyone else. People who install gstack from the README no longer get a
/captainskill they cannot use, and Capy machines keep it.Blast radius
Only who gets the
/captainentry: no command, path or other skill moves. The one known gap is the root router, which still lists/captainoff Capy (see Review notes); a smoke run ofgstack-relinkoff Capy confirmed the skill entry is gone and the other skills link as before (script ran).Approvals
Approved: yes (record r-99e90e0c8eb1). The full approval record stays private: this repository is public or its visibility is unknown.
Plan: approved (record r-dade9f38e7ca)
Plan check: approved (record r-dade9f38e7ca)
Summary
Off a Capy machine,
./setupandgstack-relinknow leave/captainout on every host and remove an entry an earlier install made, and the agent harness registrar does the same. A test checks the shell and TypeScript lists agree, the Capy test, relink on and off Capy, and both harness renders. The README,crew/README.mdand the skills guide say the crew tools are Capy-only.Test Coverage
Coverage audit (Step 7, audit-only under the tooling freeze): 5 of 8 changed paths tested before the review; the three gaps were all in
sourceSkills(lib/harness-register.ts): the crew filter on the Claude render, thegstack-prefix strip and the host-render filter.Tests: 1751 → 1751 test files (+0 new files); two tests added to
test/crew-skills-on-capy.test.tsin review cover all three gaps (dots and Hermes renders, off and on Capy). Removing the prefix strip makes the new off-Capy test fail.Test value: 0 tests written by the audit, 0 rejected by the authoring gate, 1 existing test extended, 0 paths weakly covered.
Pre-Landing Review
Pre-Landing Review: 2 issues — 1 auto-fixed, 1 asked (0 fixed, 1 skipped), 0 deferred, 0 noted
REVIEW_LOOP: passes=2 blocking_found=0 deferred=0 noted=0 fixed=1 scope=frozen ledgers_read=3 dispatches=8
Gate edits: none detected (1 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 run (the review plan skips the outside voice for code-class changes with no numeric claims). The native adversarial reviewer ran on the final code tree.
lib/harness-register.ts:237had no test (testing). Added two tests.SKILL.md:220off Capy the root router still says "invoke /captain" while the skill has no entry. Raised by the red-team checklist and the adversarial reviewer and confirmed by a smoke run. Below the blocking floor (no test fails, nothing is lost; an agent's invoke finds no skill). Fixing it means re-rendering the router on every non-Capy install, which costs install time this PR keeps unchanged, so it is left for the owner with the planned Phase 2 router change.Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
SKILL.md:220Off Capy the router still says invoke /captain while the skill has no entry (same defect as p1/specialist-batched#1). setup builds _DISABLED_CSV from the user's list only; gstack-relink re-renders the router only for the user's list; the Codex .agents render has the same gap.lib/harness-register.ts:237sourceSkills decides crew skills from process.env and os.homedir(), not the opts.env/opts.home register() is given.scripts/discover-skills.ts:33onCapyMachine uses fs.existsSync (true for a plain file) while bash gstack_on_capy uses -d; they disagree only if ~/.capy/system is a regular file.bin/gstack-install-registry.sh:361A Capy machine without CAPY_MACHINE_CONFIG or $HOME/.capy/system (sudo, container, paired device) is read as non-Capy and loses /captain without a note. Product call on which machines count.setup:1446Non-Claude host loops call _remove_disabled_host_entry, which removes any symlink named gstack-captain without checking it resolves into gstack; now runs automatically off Capy. A symlink only; its target is untouched.test/crew-skills-on-capy.test.ts:1No test covers the router line off Capy or setup's non-Claude host removal path under the crew rule.Exploratory QA
Smoke probes (report-only, run by the parent):
gstack-relinkin a fixture off Capy with the committed root router copied in: captain entry absent, router still names /captain (the skipped finding above). Before/after capture above: main links captain off Capy, this branch does not. The new test file passes on and off Capy (9 pass). QA's exploratory method files were not read for this run, so no wider charters ran.Design Review
No frontend files changed — design review skipped.
Eval Results
No prompt-related files changed — evals skipped.
Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches).
Verification Results
No Step 8.1 obligations (no plan file bound).
TODOS
No TODO items completed in this PR.
Documentation
Status: updated. One factual edit, no blockers.
Scope: base 5f9b7ef..eb1e616, 3 commits and 9 files. Nothing was staged, unstaged or untracked. The change makes
/captain(the crew skills) register only on Capy machines.Documentation health:
/captainrow and the "gstack on Capy" section match the code./captaintable row and section now say it is Capy-only and link to crew/README.md.Coverage debt:
CAPY_MACHINE_CONFIG/~/.capy/systemgating is reference-only (crew/README.md). docs/captain.md has no note that/captaininstalls only on Capy. There is no diagram drift.Test plan
bun test test/crew-skills-on-capy.test.ts: 9 pass, 0 failbun run typecheckandbun run typecheck:test(812 known diagnostics, none new)Fresh install, non-Capy vs main
Clean user with no
~/.capyand noCAPY_MACHINE_CONFIG,git clone --depth 1then./setup --no-browser, main (5f9b7ef) and this branch at 440ca71, 10 runs each with the order reversed for the second five. The later commits add a test and a docs line only.crew/README.md).captain. The state root holds the same files; onlyinstalls.tsvdiffers by 3 bytes, the shorter branch path it records.~/.capy/system), this branch installs the same 63 skills as main,captainincluded.Agent notes
GST-1833 Phase 1, PR 1 of 2 (gate and skeleton; the leaf move follows, stacked as #4145). Approved by Garry in FOUN-32, 2026-11-07. Does not touch the release path. The router and llms.txt still mention
/captain; the physical move ofcaptain/intocrew/needs the skill generator to discovercrew/*and comes with Phase 2.Fresh-install harness:
/srv/fresh-install.shas userplainwithenv -i, cloning bare repos whose branch is named main (a differently named branch makes setup treat the clone as a contributor checkout). Raw rows: ~/.capy/work/fresh-pr3.tsv and fresh-pr3-rev.tsv on GSTA-401's machine./ship run ship-4143 (GSTA-401 /ship subagent): gstack: ok 1.98.0.0 for=ship