Repository navigation
Conversation
…n-demand references After compaction Claude Code re-attaches the most recent invocation of each invoked skill, up to 20,000 characters each. afk, bearings, secondmate-provisioning and project-management carried 27 KB, 33 KB, 32 KB and 9.5 KB of procedure that most turns never need. Each SKILL.md is now a short stub that keeps the entry rules, the safety rules that must hold without a reference, and a table saying when to read each reference. The sections moved verbatim into references/ files read with cat, and every moved heading keeps its anchor owner. Links in docs and the daemon header follow the moved sections. Skills the supervision host prompt embeds are left whole.
…e test lane, retarget pointers AGENTS.md section 4 drops the shared-quota paragraph and the quota-uncertainty restatement that quota-array-dispatch already owns, keeping the load trigger and the safety rules. A reference file under a skill selects the same test family as its SKILL.md. The bearings, board-wake and quiet pointers name the new reference files.
[Medium impact] The PR appears safe to merge; no new actionable issues remain. Reviews (3) · Last reviewed commit: "no-mistakes(document): Retarget two stal..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thank you @rob-mur. First look at #8250 tip Diff (security-clean): Waiting on you: raise through no-mistakes — body has no pipeline attestation. Please Contract-class: restore. VISION already requires lean agent context and that crossing the always-loaded ceiling "must prune or move content behind a trigger." These four skills had grown past that; stubs keep the always-needed rules and move the rest verbatim. Same rules, leaner load — not a new always-on authority surface, and not opt-in. VISION (rule by rule): One captain aligns (less compaction re-attach noise) · Authority aligns (safety stays in stub) · Token efficiency / always-loaded ceiling align · Restart aligns (skills stay introspectable on disk) · Delegation aligns (full procedure when the stub table says to read it) · Scope aligns · Peace of mind aligns. |
# Conflicts: # .agents/skills/process-event-sources/SKILL.md # bin/fm-test-run.sh
|
The branch now merges current The branch went through the full no-mistakes pipeline.
Both earlier Greptile P2 fixes are still in place. The The CI step waits for a maintainer to approve the workflow run for this fork PR. No job has started yet. |
|
Speaking as Kun's firstmate: thank you @rob-mur, both asks are done. I read head Diff: four skills become stubs. Each keeps the rules that must hold without a reference, plus a table of when to read each Contract-class: new-default. This corrects my Nov 7 "restore" call. Nothing on the default path was broken. The default instruction path now loads these four skills as stubs and reads their procedures on demand, and the change edits I've added |
Intent
Rework #8250 (split four large skills - afk, bearings, secondmate-provisioning, project-management - into short SKILL.md stubs plus references/*.md, trim duplicated quota rules in AGENTS.md section 4, map references to the test lane in bin/fm-test-run.sh, retarget pointers). Kun's firstmate asked for three things: (1) resolve the merge conflicts with upstream main - done in a plain merge commit (process-event-sources SKILL.md and bin/fm-test-run.sh were combined, no rebase, no force push); (2) re-raise through no-mistakes so the pipeline attestation binds the head, with every step completed and none skipped; (3) keep Greptile's two P2s fixed: the secondmate-provisioning stub table must carry the backlog-handoff trigger on creation and seeding, and moved sections must not say above or below across files. The captain said: fixing review findings on PRs in my forks - you should always fix, do not leave PRs you do not think are ready. This is a pure documentation and skill restructuring with the one test-lane mapping change; no behavior change is intended. Fix every pipeline or review finding.
What Changed
afk,bearings,project-managementandsecondmate-provisioningSKILL.mdfiles down to short stubs. Each stub routes to newreferences/*.mdfiles that now hold the moved sections: afk daemon/entering/while-away/return, bearings chat-contract/contributions/digest/lavish-board, project-management add-create-initialize/delivery-posture/remove, and secondmate-provisioning backlog-handoff/charter-and-seed/record-intake/recovery/retirement. In the secondmate-provisioning stub table, the creation and seeding rows now also point to backlog-handoff. Moved text no longer says "above" or "below" to refer to sections that are now in a different file.AGENTS.mdsection 4, two lines now replace the repeated quota-evidence andshared_quotarules and point toquota-array-dispatch. Pointers to the moved sections now use the new reference paths inAGENTS.md,bin/fm-supervise-daemon.shcomments, theprocess-event-sourcesandquietskills,docs/architecture.md,docs/configuration.mdanddocs/remote-secondmates.md. Each new reference file is registered asagent-runtimeindocs/documentation-audiences.json.bin/fm-test-run.shnow sends changes under.agents/skills/*/references/*to thepure-contract-unittest lane, the same lane asSKILL.md.tests/fm-test-run.test.shhas a new case that checks a change to a reference file selects that coverage.🤖 Generated with Claude Code
Risk Assessment
✅ Low: This change only restructures documentation and skills, plus one widened case arm in the test-lane mapping. Every removed SKILL.md line can be found again in the new references or stubs, with relative-link depth adjusted. Cross-references and anchors are retargeted, and both Greptile P2 fixes are present.
Testing
I ran the real test runner CLI on this branch's diff. It now maps the new skill references/* files to the pure-contract-unit lane, and the base script fails closed on the same files. The targeted fm-test-run and documentation-audiences tests pass. They cover the new mapping, the doc inventory, owner pointers and local links. I also read the files to check the reference pointers, the backlog-handoff trigger and the above/below wording. Those checks were not driven live, so they are marked untested. The only failure is fm-session-lock-ancestry ("fixture hook never finished"). It fails the same way on the base commit and uses none of the changed files.
fm-test-run.sh --list --changedselects the pure-contract-unit tests instead of failing on an unmapped path--check-coverageokEvidence: Changed-path selection on branch head (exit 0)
Source: Changed-path selection on branch head (exit 0)
Evidence: Changed-path selection with base-commit script fails closed on references/*
Source: Changed-path selection with base-commit script fails closed on references/*
fm-test-run: no changed-test mapping for source path: .agents/skills/afk/references/daemon.md exit=2Evidence: Reference-path, backlog-handoff and above/below check
Source: Reference-path, backlog-handoff and above/below check
Evidence: documentation-audiences test run
Source: documentation-audiences test run
Evidence: fm-test-run.test.sh run (changed-selection subtest ok; unrelated session-lock failure)
Source: fm-test-run.test.sh run (changed-selection subtest ok; unrelated session-lock failure)
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
tests/fm-session-lock-ancestry.test.sh- tests/fm-session-lock-ancestry.test.sh fails on this host with 'the fixture hook never finished', so the --jobs subtest of tests/fm-test-run.test.sh also fails. It fails the same way on a snapshot of the base commit bc9370e and uses none of the files this change touches (environmental or pre-existing, not caused by this change). Remote CI should confirm.fm-test-run.sh --list --changedselects the pure-contract-unit tests instead of failing on an unmapped path--check-coverageokbin/fm-test-run.sh --list --changed --base bc9370e8on the branch head (exit 0, test selection printed)Same command with the base-commitbin/fm-test-run.sh(exit 2:no changed-test mapping for source path: .agents/skills/afk/references/daemon.md); the head script was restored afterwardsbin/fm-test-run.sh tests/fm-test-run.test.sh: the changed-selection subtest, including the new skill-reference case, passes; an unrelated --jobs subtest fails because of fm-session-lock-ancestrybin/fm-test-run.sh tests/fm-session-lock-ancestry.test.shon the head and on agit archive bc9370e8snapshot: fails the same way on bothbin/fm-test-run.sh tests/fm-documentation-audiences.test.sh(inventory, owner pointers, local links all pass)bin/fm-test-run.sh --check-coverage(ok)Manual check of every references/*.md pointer in the changed markdown, the backlog-handoff row in the secondmate-provisioning stub, and every above/below word in the moved reference files✅ **Document** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.