Skip to content

refactor(skills): split afk, bearings, project-management and secondmate-provisioning into stubs plus references - #8250

Open
rob-mur wants to merge 5 commits into
kunchenguid:mainfrom
rob-mur:fm/up-skill-split
Open

rob-mur wants to merge 5 commits into
kunchenguid:mainfrom
rob-mur:fm/up-skill-split

Conversation

@rob-mur

@rob-mur rob-mur commented Nov 7, 2026 •

Copy link
Copy Markdown

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

  • Cut the afk, bearings, project-management and secondmate-provisioning SKILL.md files down to short stubs. Each stub routes to new references/*.md files 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.
  • In AGENTS.md section 4, two lines now replace the repeated quota-evidence and shared_quota rules and point to quota-array-dispatch. Pointers to the moved sections now use the new reference paths in AGENTS.md, bin/fm-supervise-daemon.sh comments, the process-event-sources and quiet skills, docs/architecture.md, docs/configuration.md and docs/remote-secondmates.md. Each new reference file is registered as agent-runtime in docs/documentation-audiences.json.
  • bin/fm-test-run.sh now sends changes under .agents/skills/*/references/* to the pure-contract-unit test lane, the same lane as SKILL.md. tests/fm-test-run.test.sh has 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.

  • Live validation: ✅ go - 2 of 5 scenarios driven live against the product
Scenario Result Live Evidence
A contributor edits a skill references/*.md file and fm-test-run.sh --list --changed selects the pure-contract-unit tests instead of failing on an unmapped path ✅ pass live changed-selection-head.txt (exit 0, selection listed) vs changed-selection-base-script.txt (base script exit 2 on .agents/skills/afk/references/daemon.md); fm-test-run.test.sh changed-selection subtes…
The split skill stubs and moved docs keep a valid documentation inventory, owner pointers and local links ✅ pass live documentation-audiences-test.txt: all 4 subtests ok; --check-coverage ok
Each references/*.md pointer in the changed stubs, AGENTS.md, quiet and process-event-sources points to an existing file ⏸️ untested no The prior payload did not establish a live result. The paths were only compared with the files on disk, and no agent was driven to follow them.
Greptile P2 #1: the secondmate-provisioning stub table carries the backlog-handoff trigger on creation and seeding ⏸️ untested no The prior payload did not establish a live result. The trigger row was only confirmed by reading SKILL.md and charter-and-seed.md, and no agent was driven through provisioning.
Greptile P2 #2: moved sections do not use above/below to point to another file ⏸️ untested no The prior payload did not establish a live result. The above/below wording was only checked by reading the moved reference files.
Evidence: Changed-path selection on branch head (exit 0)

Source: Changed-path selection on branch head (exit 0)

$ bin/fm-test-run.sh --list --changed --base bc9370e8
tests/fm-agy-harness.test.sh
tests/fm-arm-pretool-check.test.sh
tests/fm-ask-user-authority.test.sh
tests/fm-bearings-board.test.sh
tests/fm-brief.test.sh
tests/fm-calm-claude-mod.test.sh
tests/fm-calm-pi-extension.test.sh
tests/fm-captain-hold-lifecycle.test.sh
tests/fm-cd-pretool-check.test.sh
tests/fm-classify-decision-key.test.sh
tests/fm-commandcode-harness.test.sh
tests/fm-composer-ghost.test.sh
tests/fm-composer-lib.test.sh
tests/fm-cortex-harness.test.sh
tests/fm-crew-state.test.sh
tests/fm-devin-harness.test.sh
tests/fm-documentation-audiences.test.sh
tests/fm-dod-lib.test.sh
tests/fm-ensure-agents-md.test.sh
tests/fm-forge-detect.test.sh
tests/fm-fork-free-helpers.test.sh
tests/fm-grok-harness.test.sh
tests/fm-harness-adapter-references.test.sh
tests/fm-harness-precedence.test.sh
tests/fm-herdr-lab.test.sh
tests/fm-hermes-harness.test.sh
tests/fm-install-herdr.test.sh
tests/fm-kimi-harness.test.sh
tests/fm-kiro-harness.test.sh
tests/fm-lint-workflows.test.sh
tests/fm-lint.test.sh
tests/fm-merge-local.test.sh
tests/fm-muse-harness.test.sh
tests/fm-omp-harness.test.sh
tests/fm-operational-input.test.sh
tests/fm-pi-primary-types.test.sh
tests/fm-polytoken-harness.test.sh
tests/fm-project-mode.test.sh
tests/fm-read-repetition.test.sh
tests/fm-remote-inherit-generation.test.sh
tests/fm-rovo-harness.test.sh
tests/fm-send-popup-settle.test.sh
tests/fm-send-settle.test.sh
tests/fm-subagent-pretool-check.test.sh
tests/fm-supervision-instructions.test.sh
tests/fm-task-delivery.test.sh
tests/fm-test-isolation-proof.test.sh
tests/fm-test-linux.test.sh
tests/fm-test-run.test.sh
tests/fm-test-tap-verify.test.sh
tests/fm-timeout-lib.test.sh
tests/fm-tmux-submit-busy.test.sh
tests/fm-trace-context-lib.test.sh
tests/fm-transition-lib.test.sh
tests/fm-vendor-auth-probe.test.sh
tests/fm-afk-contract.test.sh
tests/fm-afk-inject-e2e.test.sh
tests/fm-afk-return.test.sh
tests/fm-host-mirror.test.sh
tests/fm-supervision-host-drain.test.sh
tests/fm-supervision-host-hook.test.sh
tests/fm-supervision-host-park.test.sh
tests/fm-supervision-host.test.sh
tests/fm-afk-inject-herdr-e2e.test.sh
tests/fm-afk-launch.test.sh
tests/fm-backend-autodetect-smoke.test.sh
tests/fm-backend-herdr-agent-exit-shell-e2e.test.sh
tests/fm-backend-herdr-eventwait-smoke.test.sh
tests/fm-backend-herdr-focus-flash-e2e.test.sh
tests/fm-backend-herdr-launcher-workspace-e2e.test.sh
tests/fm-backend-herdr-presentation-e2e.test.sh
tests/fm-backend-herdr-prune-safety-e2e.test.sh
tests/fm-backend-herdr-respawn-idem-e2e.test.sh
tests/fm-backend-herdr-smoke.test.sh
tests/fm-backend-herdr-stale-active-tab-e2e.test.sh
tests/fm-backend-herdr-workspace-per-home-e2e.test.sh
tests/fm-control-herdr-smoke.test.sh
tests/fm-herdr-attached-viewer-live-e2e.test.sh
tests/fm-herdr-session-cleanup-e2e.test.sh
tests/fm-backend-herdr.test.sh
tests/fm-backend-t3code.test.sh
tests/fm-backend-tmux-smoke.test.sh
tests/fm-backend.test.sh
tests/fm-claude-trust.test.sh
tests/fm-control-relaunch.test.sh
tests/fm-control.test.sh
tests/fm-git-strip-ai-trailers.test.sh
tests/fm-herdr-session-cleanup.test.sh
tests/fm-lane-capacity-integration.test.sh
tests/fm-project-capacity.test.sh
tests/fm-send-inbox.test.sh
tests/fm-send-resolve-key.test.sh
tests/fm-send-strict.test.sh
tests/fm-spawn-batch.test.sh
tests/fm-spawn-compact-adviser-disable-remote.test.sh
tests/fm-spawn-compact-adviser-disable.test.sh
tests/fm-spawn-dispatch-profile.test.sh
tests/fm-spawn-worktree-settle.test.sh
tests/fm-t3-mcp.test.sh
tests/fm-teardown-endpoint-safety.test.sh
tests/fm-tmux-agent-liveness.test.sh
tests/fm-trace-context-spawn.test.sh
tests/fm-worker-account.test.sh
tests/fm-agy-primary.test.sh
tests/fm-codex-stop-park.test.sh
tests/fm-cursor-primary.test.sh
tests/fm-daemon.test.sh
tests/fm-guard-stale-banner.test.sh
tests/fm-inactive-reconcile.test.sh
tests/fm-mail-check.test.sh
tests/fm-mail.test.sh
tests/fm-parent-channel-scan-exclusion.test.sh
tests/fm-pi-watch-extension.test.sh
tests/fm-session-lock-ancestry.test.sh
tests/fm-supervision-events.test.sh
tests/fm-task-inbox.test.sh
tests/fm-tool-update-check.test.sh
tests/fm-turnend-foreign-owner-arm-fix.test.sh
tests/fm-turnend-guard.test.sh
tests/fm-wake-daemon-lifecycle-e2e.test.sh
tests/fm-wake-drain-unread-status.test.sh
tests/fm-wake-queue.test.sh
tests/fm-watch-arm.test.sh
tests/fm-watch-checkpoint.test.sh
tests/fm-watch-inbox-meta.test.sh
tests/fm-watch-open-decisions.test.sh
tests/fm-watch-recovery-loop.test.sh
tests/fm-watch-triage-pause.test.sh
tests/fm-watch-triage-wedge-defer.test.sh
tests/fm-watch-triage.test.sh
tests/fm-watch-wedge-cap-unconfigured-parity.test.sh
tests/fm-watch-wedge-cap.test.sh
tests/fm-watcher-lock.test.sh
tests/fm-afk-pi-herdr-return-e2e.test.sh
tests/fm-agy-primary-live-e2e.test.sh
tests/fm-agy-signals-live-e2e.test.sh
tests/fm-backend-hc-liveness-live-e2e.test.sh
tests/fm-backend-rex-composer-live-e2e.test.sh
tests/fm-backend-t3code-live-e2e.test.sh
tests/fm-backend-t3code-pr-tools-live-e2e.test.sh
tests/fm-bearings-board-lavish-live-e2e.test.sh
tests/fm-calm-claude-mod-live-e2e.test.sh
tests/fm-calm-claude-mod-plugin.test.sh
tests/fm-calm-pi-queue-retention-live-e2e.test.sh
tests/fm-claude-stop-autoarm-live-e2e.test.sh
tests/fm-cmux-claude-composer-live-e2e.test.sh
tests/fm-codex-continuity-live-e2e.test.sh
tests/fm-codex-hook-layer-live-e2e.test.sh
tests/fm-commandcode-signals-live-e2e.test.sh
tests/fm-composer-codex-idle-live-e2e.test.sh
tests/fm-composer-matrix-live-e2e.test.sh
tests/fm-cortex-signals-live-e2e.test.sh
tests/fm-cursor-primary-live-e2e.test.sh
tests/fm-devin-signals-live-e2e.test.sh
tests/fm-grok-continuity-live-e2e.test.sh
tests/fm-grok-stop-live-e2e.test.sh
tests/fm-harness-adapter-instructions-live-e2e.test.sh
tests/fm-harness-liveness-drift-live-e2e.test.sh
tests/fm-herdr-pi-stale-registration-live-e2e.test.sh
tests/fm-herdr-projected-cd-live-e2e.test.sh
tests/fm-herdr-submit-confirm-live-e2e.test.sh
tests/fm-herdr-version-floor-live-e2e.test.sh
tests/fm-hermes-gateway-coexistence-live-e2e.test.sh
tests/fm-hermes-profile-safety-live-e2e.test.sh
tests/fm-hermes-signals-live-e2e.test.sh
tests/fm-host-mirror-live-e2e.test.sh
tests/fm-kimi-trust-prompt-live-e2e.test.sh
tests/fm-kiro-signals-live-e2e.test.sh
tests/fm-launch-prompt-signals-live-e2e.test.sh
tests/fm-muse-signals-live-e2e.test.sh
tests/fm-omp-primary-live-e2e.test.sh
tests/fm-opencode-primary-live-e2e.test.sh
tests/fm-pi-branch-live-e2e.test.sh
tests/fm-pi-branch-responsiveness-live-e2e.test.sh
tests/fm-pi-codex-native.test.sh
tests/fm-pi-primary-live-e2e.test.sh
tests/fm-pi-seeded-home-trust-live-e2e.test.sh
tests/fm-pi-worker-stream-live-e2e.test.sh
tests/fm-polytoken-signals-live-e2e.test.sh
tests/fm-pr-state-live-e2e.test.sh
tests/fm-quota-array-dispatch-live-e2e.test.sh
tests/fm-read-repetition-live.test.sh
tests/fm-rovo-signals-live-e2e.test.sh
tests/fm-secondmate-busy-contract-live-e2e.test.sh
tests/fm-send-inbox-doorbell-live-e2e.test.sh
tests/fm-send-secondmate-marker-herdr-e2e.test.sh
tests/fm-sessionstart-hook-live-e2e.test.sh
tests/fm-sessionstart-instruction-refresh-live-e2e.test.sh
tests/fm-supervision-host-attended-live-e2e.test.sh
tests/fm-supervision-host-live-e2e.test.sh
tests/fm-watch-wedge-cap-live.test.sh
tests/fm-worker-account-live-e2e.test.sh
tests/fm-backend-tern-smoke.test.sh
tests/fm-backend-tern.test.sh
tests/fm-backend-orca.test.sh
tests/fm-classify-corr-token.test.sh
tests/fm-usage-warner.test.sh
tests/fm-test-fixtures.test.sh
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=2

$ (base-commit bin/fm-test-run.sh) --list --changed --base bc9370e8
fm-test-run: no changed-test mapping for source path: .agents/skills/afk/references/daemon.md
exit=2
Evidence: Reference-path, backlog-handoff and above/below check

Source: Reference-path, backlog-handoff and above/below check

## Every references/*.md path named in changed skill/docs/AGENTS files resolves
ok   .agents/skills/afk/SKILL.md -> .agents/skills/afk/references/entering.md
ok   .agents/skills/afk/SKILL.md -> references/daemon.md
ok   .agents/skills/afk/SKILL.md -> references/entering.md
ok   .agents/skills/afk/SKILL.md -> references/return.md
ok   .agents/skills/afk/SKILL.md -> references/while-away.md
MISSING .agents/skills/afk/references/daemon.md -> references/entering.md
ok   .agents/skills/bearings/SKILL.md -> .agents/skills/bearings/references/digest.md
ok   .agents/skills/bearings/SKILL.md -> references/chat-contract.md
ok   .agents/skills/bearings/SKILL.md -> references/contributions.md
ok   .agents/skills/bearings/SKILL.md -> references/digest.md
ok   .agents/skills/bearings/SKILL.md -> references/lavish-board.md
MISSING .agents/skills/bearings/references/chat-contract.md -> references/digest.md
MISSING .agents/skills/bearings/references/digest.md -> references/chat-contract.md
MISSING .agents/skills/bearings/references/digest.md -> references/contributions.md
MISSING .agents/skills/process-event-sources/SKILL.md -> references/lavish-board.md
ok   .agents/skills/project-management/SKILL.md -> .agents/skills/project-management/references/remove.md
ok   .agents/skills/project-management/SKILL.md -> references/add-create-initialize.md
ok   .agents/skills/project-management/SKILL.md -> references/delivery-posture.md
ok   .agents/skills/project-management/SKILL.md -> references/remove.md
MISSING .agents/skills/quiet/SKILL.md -> references/return.md
ok   .agents/skills/secondmate-provisioning/SKILL.md -> .agents/skills/secondmate-provisioning/references/charter-and-seed.md
ok   .agents/skills/secondmate-provisioning/SKILL.md -> references/backlog-handoff.md
ok   .agents/skills/secondmate-provisioning/SKILL.md -> references/charter-and-seed.md
ok   .agents/skills/secondmate-provisioning/SKILL.md -> references/record-intake.md
ok   .agents/skills/secondmate-provisioning/SKILL.md -> references/recovery.md
ok   .agents/skills/secondmate-provisioning/SKILL.md -> references/retirement.md
MISSING .agents/skills/secondmate-provisioning/references/charter-and-seed.md -> references/backlog-handoff.md
MISSING AGENTS.md -> references/contributions.md
ok   docs/architecture.md -> .agents/skills/afk/references/daemon.md
ok   docs/architecture.md -> .agents/skills/secondmate-provisioning/references/charter-and-seed.md
ok   docs/configuration.md -> .agents/skills/secondmate-provisioning/references/charter-and-seed.md
ok   docs/remote-secondmates.md -> .agents/skills/secondmate-provisioning/references/charter-and-seed.md

## secondmate-provisioning stub rows mentioning backlog-handoff
24:| `references/backlog-handoff.md` | Moving in-scope queued items to a secondmate, including right after creating and seeding a new one, so existing in-scope main-backlog work is not left behind. |

## above/below in moved reference files
.agents/skills/afk/references/entering.md:11:     `/quiet` enters nothing there where the attended host runs, and otherwise still launches the daemon below (the quiet skill's `quiet-check` decides).
.agents/skills/afk/references/entering.md:18:     On the t3code backend there is no terminal to create, so `start` refuses and only the native path above works; a Codex captain hosted by T3 Code has no away daemon (docs/t3code-backend.md "Active limits").
.agents/skills/project-management/references/remove.md:7:Once that preflight confirms none of the above and the captain's approval is concrete, AGENTS.md hard rule 1's captain-approved project operation exception authorizes firstmate to remove the clone directly and update its registry entry to match.
.agents/skills/project-management/references/add-create-initialize.md:5:A `no-mistakes` or `no-mistakes-prod-only` project must have an `origin` remote and must complete the initialization procedure below, because a conditional policy's product-facing work runs the pipeline while its internal-only work still takes the direct PR.
.agents/skills/bearings/references/digest.md:3:For a contribution wake or linked-issue filing, go directly to `references/contributions.md`; the digest procedure below applies to Bearings invocations.
.agents/skills/bearings/references/lavish-board.md:43:- `merge.<task-id>` is the captain's explicit merge order; follow the merge ruling below.
.agents/skills/afk/references/daemon.md:5:On the harness and backend combinations that still launch the daemon, the mechanics below are unchanged.
.agents/skills/afk/references/daemon.md:66:Events selected by the routing below escalate to firstmate's context as one pre-read, single-line, batched digest.
.agents/skills/afk/references/daemon.md:100:  Status-read uncertainty follows the shared one-report-without-position-advance contract referenced under Dedupe below.
.agents/skills/afk/references/daemon.md:103:The single-line format makes submission unambiguous across harnesses; the carrier described above distinguishes it from an ordinary captain message.
.agents/skills/afk/references/daemon.md:120:- **Max-defer escape** - follow the [bounded flush and alarm contract above](#busy-guard-and-composer-guard) and the [alert setup guide](../../../../docs/wedge-alarm.md).
.agents/skills/secondmate-provisioning/references/charter-and-seed.md:36:Pass `--no-projects` in the project position to seed the project-less home described above; the same mutual-exclusion and fail-loud-on-omission rules apply.
.agents/skills/secondmate-provisioning/references/charter-and-seed.md:106:It uses the same live-home discovery and propagation helper as bootstrap, reports each item as `pushed`, `unchanged`, `skipped`, or `error`, and follows the config-reread contract above for changed or pending generations.

## each stub frontmatter + line counts
name: afk
71
name: bearings
51
name: secondmate-provisioning
59
name: project-management
49
Evidence: documentation-audiences test run

Source: documentation-audiences test run

FM_TEST_BEGIN 2026-11-09T11:21:52Z tests/fm-documentation-audiences.test.sh family=pure-contract-unit expected_gate_skip=none
ok - documentation inventory classifies every maintained prose surface exactly once
ok - classification, setup routing, and maintained-prose scope fail safely
ok - required documentation owner pointers cannot silently disappear
ok - local links resolve while dates, versions, commands, and incident prose remain semantically reviewed
FM_TEST_END 2026-11-09T11:21:54Z tests/fm-documentation-audiences.test.sh exit=0 duration_ms=2022 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=2084
FM_TEST_SUMMARY_FAMILY family=pure-contract-unit count=1 duration_ms=2022 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-documentation-audiences.test.sh duration_ms=2022
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)

FM_TEST_BEGIN 2026-11-09T11:14:57Z tests/fm-test-run.test.sh family=pure-contract-unit expected_gate_skip=none
ok - exact suite coverage: --all lists every tests/*.test.sh once
ok - family selection returns a proper subset of the suite
ok - single-script selection lists exactly that path
ok - changed-file selection stays conservative (never silent full suite)
ok - a task marker refuses execution in the primary checkout and leaves worktrees and inspection alone
ok - runner and its documentation surfaces select their curated family, not just their contract owners
ok - shell line-ending policy selects runner coverage
ok - changed inheritance sender, receiver and counter select the focused generation contract
fm-test-run: no tests selected for changes vs HEAD (map is conservative; use --all for the complete suite)
ok - changed selection covers dependents, fails closed for live unmapped source, and accepts retired unconsumed source
ok - a bin reference selects the referencing scripts, and consumers still select their curated families
ok - changed defaults to bounded automatic scheduling with serial override
ok - Windows emulation exempts only synthetic POSIX modes
ok - a plain script list defaults to bounded automatic concurrency without an automatic timeout
ok - family proofs run concurrently only within separate family phases
ok - empty changed selection emits deterministic text and JSON summaries
ok - timing markers and JSON artifact are valid
ok - aggregate exit reflects any script failure
ok - gate-skip accounting is honest and non-failing
ok - a gate skip records why it skipped
ok - a script that actually ran records no skip reason
ok - live guards are recorded as a capability class, not a bare env opt-in
ok - fail-on-gate-skip converts herdr-not-found into a hard failure
ok - exclude-family drops the named primary family after selection
ok - fm-test-run: family tern selects the tern suite and smoke test, and the lane coverage guard accepts them
ok - proven-isolated scheduling ignores parallel hints
ok - family, all, changed, and script selections ignore parallel hints
ok - portable shard union, disjointness, and coverage guard hold
ok - portable parallel lanes are fully hinted and packed within 5% of each other
ok - portable serial shards are a deterministic disjoint cover of the serial lane
ok - coverage guard bounds the unmeasured share and serial packing within twenty minutes
ok - serial packing accepts the exact budget and refuses one millisecond above it
ok - portable serial shard lanes refuse mismatched, out-of-range, and countless names
ok - --jobs refuses non-proven / stateful selections
not ok - --jobs on a proven family must be admitted, got 1:  FM_TEST_BEGIN 2026-11-09T11:17:48Z tests/fm-session-lock-ancestry.test.sh family=watcher-wake-lock expected_gate_skip=none
FM_TEST_BEGIN 2026-11-09T11:17:48Z tests/fm-supervision-events.test.sh family=watcher-wake-lock expected_gate_skip=none
ok - handle_push_transition: a blocked crew enqueues a stale wake naming its window and wakes the supervisor
ok - handle_push_transition: a rex blocked edge's wake names the backend and carries Rex's blocked kind and message
ok - handle_push_transition: enqueue failure cannot commit the Herdr dedupe marker
ok - handle_push_transition: a declared-pause crew is absorbed (no fast wake), left to the poll loop's long cadence
ok - handle_push_transition: a captain-held crew is absorbed (no fast wake), left to the poll loop's long cadence
ok - event_wait_or_sleep: herdr windows go on the event pane list, but kind=secondmate endpoints are excluded
ok - event_wait_or_sleep: herdr keeps the push wait in a mixed home; T3's wait runs only without another push backend
ok - event_wait_or_sleep: one cached capability probe owns validation across bounded waits
ok - event_wait_or_sleep: a home with no push-capable window is inert (sleeps POLL, never touches the event path)
ok - event_wait_or_sleep: consecutive event-path failures disable the fast-path and revert to pure polling (fail-closed)
# fm-supervision-events.test.sh: all assertions passed
FM_TEST_END 2026-11-09T11:17:50Z tests/fm-supervision-events.test.sh exit=0 duration_ms=1292 gate_skip=false
ok - session-lock: a version-named Claude Code session is identified from its install path and argv[0]
ok - session-lock: a harness that is pid 1 of its own namespace is examined, not skipped
ok - session-lock: ordinary script paths under a harness directory are not harness processes
ok - session-lock: ownership stops at the first non-harness gap above the contiguous run
ok - session-lock: a live version-named session holding the lock is not mistaken for a stale owner
ok - session-lock: a trusted same-session id keeps owning a recycled background chain, and nothing weaker does
ok - session-lock: a trusted id anchors the lock on the model-loop process, anything else on the outermost pid
ok - session-lock: a Windows session is identified from its published pid across the severed parent link
ok - session-lock: a published Windows pid is confirmed against the process table before it is trusted
ok - session-lock: a tagged Windows pid is never resolved against the Cygwin process table
ok - session-lock: a published identity is accepted by every gate that reads the lock
ok - session-lock: a live tagged lock holder is a live foreign owner to a second Windows session
ok - session-lock: fm-lock.sh protects valid tagged owners and reclaims dead or malformed records
ok - session-lock: a published Windows Claude pid is accepted only with its session id
ok - session-lock: a Windows /clear keeps the lock and re-keys its session id
ok - session-lock: a Windows-tagged lock stays inert off Windows
ok - session-lock: a task lease follows a live tagged lock holder and goes stale when it exits
ok - session-lock: a harness in the local process table resolves untagged when ps has no -o option
/tmp/fm-test-run.Ll9p8Z/w1/tmp/fm-session-lock-ancestry.XhqARI/claude-install/share/claude/versions/2.1.220: line 1: /tmp/fm-test-run.Ll9p8Z/w1/tmp/fm-session-lock-ancestry.XhqARI/claude-install/share/claude/versions/2.1.220: No such file or directory
not ok - the fixture hook never finished
FM_TEST_END 2026-11-09T11:18:53Z tests/fm-session-lock-ancestry.test.sh exit=1 duration_ms=64366 gate_skip=false
FM_TEST_SUMMARY total=2 failed=1 skipped_gate=0 duration_ms=64536
FM_TEST_SUMMARY_FAMILY family=watcher-wake-lock count=2 duration_ms=65658 failed=1
FM_TEST_SLOWEST rank=1 script=tests/fm-session-lock-ancestry.test.sh duration_ms=64366
FM_TEST_SLOWEST rank=2 script=tests/fm-supervision-events.test.sh duration_ms=1292
FM_TEST_END 2026-11-09T11:18:53Z tests/fm-test-run.test.sh exit=1 duration_ms=235719 gate_skip=false
FM_TEST_SUMMARY total=1 failed=1 skipped_gate=0 duration_ms=235774
FM_TEST_SUMMARY_FAMILY family=pure-contract-unit count=1 duration_ms=235719 failed=1
FM_TEST_SLOWEST rank=1 script=tests/fm-test-run.test.sh duration_ms=235719
exit=1
- Outcome: ⚠️ 1 warning across 1 run (8m28s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⚠️ **Test** - 1 warning
  • ⚠️ 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.
  • Live validation: ✅ go - 2 of 5 scenarios driven live against the product
Scenario Result Live Evidence
A contributor edits a skill references/*.md file and fm-test-run.sh --list --changed selects the pure-contract-unit tests instead of failing on an unmapped path ✅ pass live changed-selection-head.txt (exit 0, selection listed) vs changed-selection-base-script.txt (base script exit 2 on .agents/skills/afk/references/daemon.md); fm-test-run.test.sh changed-selection subtes…
The split skill stubs and moved docs keep a valid documentation inventory, owner pointers and local links ✅ pass live documentation-audiences-test.txt: all 4 subtests ok; --check-coverage ok
Each references/*.md pointer in the changed stubs, AGENTS.md, quiet and process-event-sources points to an existing file ⏸️ untested no The prior payload did not establish a live result. The paths were only compared with the files on disk, and no agent was driven to follow them.
Greptile P2 #1: the secondmate-provisioning stub table carries the backlog-handoff trigger on creation and seeding ⏸️ untested no The prior payload did not establish a live result. The trigger row was only confirmed by reading SKILL.md and charter-and-seed.md, and no agent was driven through provisioning.
Greptile P2 #2: moved sections do not use above/below to point to another file ⏸️ untested no The prior payload did not establish a live result. The above/below wording was only checked by reading the moved reference files.
  • bin/fm-test-run.sh --list --changed --base bc9370e8 on the branch head (exit 0, test selection printed)
  • Same command with the base-commit bin/fm-test-run.sh (exit 2: no changed-test mapping for source path: .agents/skills/afk/references/daemon.md); the head script was restored afterwards
  • bin/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-ancestry
  • bin/fm-test-run.sh tests/fm-session-lock-ancestry.test.sh on the head and on a git archive bc9370e8 snapshot: fails the same way on both
  • bin/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.

⚠️ **Lint** - 1 warning
  • ⚠️ linter found issues (exit code 1)
✅ **Push** - passed

✅ No issues found.

Rob Murphy added 2 commits November 7, 2026 14:44
…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.
@greptile-apps

greptile-apps Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[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

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @rob-mur. First look at #8250 tip 0dde6ea3 vs main bf05a4fc (+834/−696, 30 files).

Diff (security-clean): afk, bearings, secondmate-provisioning, and project-management become short stubs (entry + safety rules that must hold without a reference + a table of when to read each reference); procedure moves verbatim into references/ files read on demand. Supervision-host-embedded skills stay whole. AGENTS.md §4 drops the duplicated quota restatement already owned by quota-array-dispatch. Docs pointers and fm-test-run.sh reference→family mapping follow. No workflows, credentials, or installer pins. Fork CI just approved (CI 42383884849, Require no-mistakes 42383884804). Coverage + invariants SUCCESS. Unlabelled Full is our label gate. MERGEABLE. Rockets: none.

Waiting on you: raise through no-mistakes — body has no pipeline attestation. Please git push no-mistakes so attestation binds the head with every step completed and no skips. Greptile 4/5 with two non-blocking P2s (creation misses handoff trigger in the stub table; moved section directions still say "above/below").

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.

@rob-mur rob-mur changed the title perf(skills): split four large pane-invoked skills into a stub plus on-demand references refactor(skills): split afk, bearings, project-management and secondmate-provisioning into stubs plus references Nov 9, 2026
@rob-mur

rob-mur commented Nov 9, 2026

Copy link
Copy Markdown
Author

The branch now merges current main, and the PR no longer conflicts.
The merge resolved two conflicts, in process-event-sources/SKILL.md and bin/fm-test-run.sh. It keeps the changes from both sides.

The branch went through the full no-mistakes pipeline.
The PR head is 3cb8911573c9a00f3d6f0dbab26102dea0aaec60, and the attestation in the PR body binds that head.
The pipeline skipped no step.

  • Review passed with no findings.
  • Test ended on one informational finding. fm-session-lock-ancestry fails on this host, and it fails the same way on the base commit bc9370e8.
  • Document added one commit. It points two stale afk references, in quiet/SKILL.md and the bin/fm-supervise-daemon.sh header, at the moved files.
  • Lint reported that actionlint is not installed on this host, so the workflow lint did not run here.
  • Push and PR completed.

Both earlier Greptile P2 fixes are still in place. The secondmate-provisioning stub table names the backlog-handoff.md trigger for creation and seeding. Moved sections name reference paths instead of saying "above" or "below".

The CI step waits for a maintainer to approve the workflow run for this fork PR. No job has started yet.

@kunchenguid kunchenguid added the full-ci Maintainer go-ahead: run the full CI suite on this outside pull request label Nov 9, 2026
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @rob-mur, both asks are done. I read head 3cb89115 against main bc9370e8. The merge of main is clean, and the attestation binds this head with every step completed and no skips. Your base-commit check shows the one fm-session-lock-ancestry test warning is unrelated to this change. I approved the fork CI runs for this head: CI 42608924063 and Require no-mistakes 42608924052, 42608972474, 42610156365 and 42610336793. The no-mistakes check, coverage guard and repo invariants pass. Greptile is 5/5, and both earlier P2 threads are resolved.

Diff: four skills become stubs. Each keeps the rules that must hold without a reference, plus a table of when to read each references/*.md file. The rest of the text moves verbatim, apart from headers and retargeted pointers. In AGENTS.md §4, two quota rules now point to quota-array-dispatch, and I checked on main that the skill owns them. fm-test-run.sh maps the new reference paths. The diff touches no workflow, CI config, credential, installer or network files.

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 AGENTS.md's always-loaded text. That's the captain's call. VISION: every rule aligns.

I've added full-ci, so the full suite is queued on this head. If it passes, the PR goes to the captain for a decision, and nothing more is needed from you. If a lane fails in your files, I'll tell you exactly where. Rockets: none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Maintainer go-ahead: run the full CI suite on this outside pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants