Skip to content

Explain which rules worker threads read automatically - #4397

Closed
szsunyuan wants to merge 1 commit into
garrytan:mainfrom
szsunyuan:docs/clarify-captain-rule-sharing
Closed

szsunyuan wants to merge 1 commit into
garrytan:mainfrom
szsunyuan:docs/clarify-captain-rule-sharing

Conversation

@szsunyuan

Copy link
Copy Markdown
Contributor

Refs #4296

Why (in your own words)

Capy crew threads do not automatically read the Captain's drive-root AGENTS.md. The guide and copyable template say they do, so owner words recorded only there may not reach lanes. This correction points lane-facing rules and the owner words lanes need to cite to CREW.md and its existing standing-approvals table. The drive remains shared; instruction loading is not an access boundary. No approval authority changes and no rules are copied automatically.

Live evidence

Capy's published Captain contract, fetched on 2026-11-15, says:

AGENTS.md
The Captain's own rules, such as which models to use and what needs your approval. Crew threads don't read it.
CREW.md
Rules that every crew thread reads on every turn, such as "open PRs as drafts".

On main 0326b144af36, the guide instead says drive-root AGENTS.md and CREW.md apply to every crew thread and need no relaying. The template says “every thread in the crew reads it.” The corrected introduction and drive-layout paragraph distinguish automatically loaded instructions from shared-drive access and identify where lane-citable owner words belong. This is a factual comparison with official documentation, not a live Capy or model-behavior test.

Final focused compatibility checks, Bun 1.4.2, umask 022, LC_ALL=C:

36 pass, 0 fail, 430 assertions across 5 files
Captain skill/brief, parity, context-budget ratchet, skill-size budget

These checks pass on the final wording; they check compatibility, links and budgets, not host injection. No prose sentence-pin test was added.

Full local acceptance failed: bun run test exited 1 with 36,530 pass, 204 skip, 135 fail across 1,675 files; all 17 shards completed. This ran on the original uncommitted two-file patch against 0326b144af36 (patch SHA-256 c73b1ffa4c4104d678d4b7f541d92da0451a3955a8ab76e6b4aa796a9b0bd247). Since then, only the automatic-reading/shared-access wording was clarified and the branch changelog fragment added. The full suite was not rerun on the final wording. The contributor chose to push and open the PR manually for CI with these failures and gaps disclosed; that does not make local acceptance green.

Same-base controls used matching runtimes and independent copies of installed dependencies/artifacts, not a clean build. Across the original 134 attributed failure entries, 117 reproduce on both sides, seven recover on both in isolation, and ten remain unrun in browse/test/headless-gpu-and-reap.test.ts and browse/test/xvfb.test.ts, whose fixtures disable Chromium sandboxing. No bypass was used. The permitted controls showed no branch-only failing-case or complete-file count differences. The seven recoveries do not prove their original full-suite failure occurred on main. Whole-file app-profile controls timed out on both sides; matching focused failures do not make those whole-file runs complete. Both sides reproduce an ELF-as-JavaScript module-load error. The original real-home guard writer remains unattributed. These are qualified baseline comparisons, not blanket pre-existing-failure or passing-acceptance claims. Complete logs and failure inventories are retained locally.

Scope

Liveness proof (required for external contributors)

image

Checklist

Capy crew threads do not automatically read the Captain's drive-root
AGENTS.md. Correct the setup guide and template, and point lane-facing
rules and the owner words lanes need to cite at CREW.md's existing
standing-approvals table. Distinguish instruction loading from access
to the shared drive without changing approval authority.

Refs garrytan#4296

Co-Authored-By: Claude Code <noreply@anthropic.com>
@trunk-io

trunk-io Bot commented Nov 16, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@capy-ai

capy-ai Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Thank you. You're right that a crew thread reads the Captain's CREW.md, not its drive-root AGENTS.md, so the guide and template promise something that doesn't happen. It's a small, plainly correct fix, so we're taking it. Because crew/docs/captain.md and the AGENTS.md template are read by agents, it will be rebuilt on current main with you credited rather than merged directly, and this PR will be closed with a link when that lands.

@capy-ai

capy-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Thank you for this. We're picking up the idea. A maintainer agent working through a batch of fixes (our tracking thread GSTA-803) will first reproduce the problem on current main. If it reproduces, the agent rebuilds the fix on main with you credited as co-author, because we don't merge outside branches directly, and we'll close this PR with a link when it lands. If it no longer reproduces, we'll close this and say what changed.

@capy-ai

capy-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Thank you! This was rebuilt on current main in #4686 (merged as 113deea) with you credited as co-author: the guide and the AGENTS.md template now say worker threads read CREW.md, not the coordinator's AGENTS.md. Closing this PR.

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