Repository navigation
docs: route conditional AGENTS.md detail to its owners - #1
Merged
Merged
Conversation
AGENTS.md is loaded on every turn of every fleet session, so conditional and reference detail there is paid for whether or not the session hits the situation it describes. Continue the reduction started in kunchenguid#5872 by applying the knowledge-placement decision tree to the sections it left behind. Section 4's quota-array selection procedure, section 11's brief-authoring contract, section 10's captain-hold procedure, and section 7's steering mechanics all had a stated owner elsewhere; each is now a trigger or a one-line cross-reference inline, with the substance in exactly one place. Brief authoring moves into a new agent-only crewmate-briefs skill, loaded at the one situation it applies to. Every safety boundary stays inline: the five hard rules, the project-write prohibition, merge authority, unlanded-work protection, the crewmate-never-addresses-the-captain rule, the worktree-isolation assertion, the mandatory captain address, and the captain-instruction precedence block are untouched. Section 9's translation table stays inline because it governs every captain-facing message; its rows are grouped rather than dropped. AGENTS.md: 426 -> 367 lines, 6845 -> 6234 words.
bijnadutch
added a commit
that referenced
this pull request
Oct 30, 2026
Keep the fork's compact AGENTS.md routing (#1) while taking upstream's new rules: the firstmate-self-repo role gate, base-branch and project-capacity dispatch, the GitLab no-pipeline merge exception, and the trimmed captain-hold-lifecycle trigger, which keeps the fork's filing trigger.
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.
Why
AGENTS.mdis loaded on every turn of every fleet session, so conditional and reference detail there is paid for whether or not the session ever hits the situation that line describes. Several sections still restated contracts that already had a stated owner elsewhere, which is both a token cost and a drift hazard.This continues the reduction started in kunchenguid#5872 by applying the
firstmate-coding-guidelinesdecision tree to the sections that commit left behind.Size
main, post-kunchenguid#5872)kunchenguid#5872 had already cut the file from 644 to 426 lines, and it already completed the restructuring of section 2's state-file tree and section 3's digest walkthrough. This change is the next layer on top of that, not a second pass at the same sections.
Moved from -> to
Each fact was verified present in the receiving owner before the inline copy was deleted.
AGENTS.mdquota-axidata-only.agents/skills/quota-array-dispatch/SKILL.md, which already stated all of itbin/fm-supervision-instructions.shas the rendererbin/fm-session-start.shheader, which already owns that stageFM_PENDING_REPLY_EXISTING_CORRresend command, multi-line legalitybin/fm-send.shandbin/fm-task-inbox-lib.shheaderslocal-onlywork in the main home"check:wake line;bin/fm-inbox.shheader owns the mechanicscaptain-hold-lifecycle, whose trigger is widened to cover filing, holding, answering or completing a task held for the captain.agents/skills/crewmate-briefs/SKILL.mdRemaining reductions are sentence-level merges of clauses that state one rule, not deletions.
New skill
crewmate-briefs(metadata.internal=true,user-invocable: false) owns brief authoring, loaded before scaffolding, filling or regenerating any ship, scout or charter brief. Its trigger is declared in its description, added toagent-skill-trigger-index, and registered asagent-runtimeindocs/documentation-audiences.json.One new skill rather than several: a skill nothing loads is dead weight, and brief authoring is a single nameable situation.
Judgment calls
Section 9's translation table stays inline, tightened rather than moved. It governs every captain-facing message, so a skill trigger would fire on nearly every turn and move the token cost rather than remove it. Its eleven rows are grouped into five lines with every individual mapping preserved.
Section 8's wake-type dispatch stays inline for the same reason: wake-handling turns are the most common turn type in a firstmate session, so relocating that dispatch would be a net loss.
Section 7's mid-task captain-ask rule stays inline, because kunchenguid#5872 deliberately kept it there: it fires when the captain speaks mid-task, a turn on which no brief-authoring skill loads.
crewmate-briefscross-references it rather than restating it.The 300-350 line target was released. 367 lines with every boundary intact is the accepted answer; the task ranked boundary integrity above the number.
Safety boundaries
All stay inline and intact: the five hard rules, the project-write prohibition, merge authority, unlanded-work protection, the crewmate-never-addresses-the-captain rule, the worktree-isolation assertion, the captain-instruction precedence block, and the mandatory captain address.
No section was renumbered. All fourteen external
AGENTS.md section Nreferences were checked; the two that went stale were repointed at their new owners rather than duplicated:bin/fm-bootstrap.shnow namesquota-array-dispatchas the procedure owner under section 4's intake boundarytests/fm-brief.test.shnow names thecrewmate-briefsskillVerification
bin/fm-doc-audience-check.sh: ok, 117 surfaces, 676 local linksbin/fm-lint.sh: clean with pinned ShellCheck 0.11.0 and actionlint 1.7.12tests/fm-documentation-audiences.test.sh,tests/fm-brief.test.sh,tests/fm-session-start.test.sh,tests/fm-bootstrap.test.sh: greentests/fm-captain-hold-lifecycle.test.shfails on the development machine at the assertionrefusal must be explicit. This reproduces identically against the base commit and is unrelated to this change: the locally installedtasks-axiis 0.2.5, below this repo'sFM_TASKS_AXI_MIN=0.2.6, sobin/fm-teardown.shrefuses with a version error instead of the expected string and that test has no capability gate for the version floor. Tracked separately.🤖 Generated with Claude Code