Skip to content

ci: merge upstream CI speedups, changed-file PR lint, and split slow suites - #124

Merged
twilwa merged 6 commits into
mainfrom
fm/plat-firstmate-upstream-sync-2
Nov 25, 2026
Merged

twilwa merged 6 commits into
mainfrom
fm/plat-firstmate-upstream-sync-2

Conversation

@twilwa

@twilwa twilwa commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Intent

The owner's words: "we should also probably run another /updatefirstmate pass worker to pick up any changes ken has made, if there are true divergences let me know and give me a digest of his fixes".

Context for reading the ask:

  • "ken's changes" are upstream firstmate, https://github.com/kunchenguid/firstmate (main). Our fork is https://github.com/twilwa/firstmate (main), which every home here runs. The last sync was feat: merge upstream firstmate main while preserving fork guarantees #117 (merge-based; 41 conflicted files resolved by hand), which merged upstream up to commit 427056c.
  • The goal is a fork main that contains all of upstream/main with our changes kept, shipped as a PR to twilwa/firstmate through the normal validated path. Nothing is offered or published upstream; upstream is read only.
  • Two things come back for the owner, in plain words: (a) a digest of what upstream changed since our last sync: the fixes and features that matter to how this fleet runs, grouped, each in a line or two, with what it changes for us; (b) the TRUE divergences: every place where our fork and upstream now disagree in substance (not mere textual conflicts): what we have, what upstream has, which side was kept and why, and any place where taking upstream's version would remove or change something the owner asked for. Anything where the right side is not obvious is a question for the owner, not a call for the worker: list it and stop on that file.
  • This pairs with item 6 of the owner's vibestack adjustments ("all": take all seven, fork-local, nothing offered upstream): classify our fork-only commits as generic or fork-specific and prepare local patch drafts for the generic ones, kept locally only.
  • After merge, the running homes are updated by the main firstmate at a calm moment, not by this task.

Upstream sync summary (merge-based)

This PR is merge-based: merge commit d5b34de6 brings upstream https://github.com/kunchenguid/firstmate main 68918448 into fork main 83c8d382 (merge base 427056c4, the upstream tip of #117). Land it as a merge commit, not squash or rebase. Nothing was published upstream.

Digest of upstream changes since the last sync

Upstream landed one commit, kunchenguid#8431. It is CI and test layout only; supervision, dispatch, backlog, review gates, secondmates, session start, skills and AGENTS.md are untouched.

  • PR lint checks only changed files (bin/fm-lint.sh --changed), upgrading to the full set when a lint-definition file or a sourced helper changes; main keeps the full gate. Taken.
  • The same upgrade applies to local lint, so the no-mistakes lint step runs the full source-aware lint (about 25 min or more on a loaded host) whenever a branch touches a sourced helper. Taken unchanged; the bin/fm-lint.sh header and CONTRIBUTING.md now say so.
  • Cached pinned ShellCheck/actionlint installs; the installers skip a pin that is already present. Taken.
  • bin/fm-ci-budget-warn.sh warns (never fails) on long lanes and lint partitions. Taken with fork thresholds (divergence 6).
  • tests/fm-captain-hold-teardown.test.sh and tests/fm-watch-triage-busy.test.sh split out of their parents. Taken; every fork change to the moved tests went with them.
  • Remote-secondmate lifecycle e2e waits on a real event instead of sleep 4. Taken.
  • 19 serial shards at a 15-minute target, two --jobs 2 lanes, a timings TSV, a singleton-overflow rule. Declined (divergences 1-3).

True divergences and resolutions

# Area Fork kept Upstream Why
1 CI layout Four-worker pool, 13 serial shards at 1200 s, 1500 s per-file bound, 50-min tier, folded guards, 21 initial jobs, current required-check names 19 shards at 900 s, two parallel lanes, 30-min tier, 30 initial jobs The sm-platform firstmate's call (not the owner's, not main's): taking upstream would reverse the CI work the owner asked for in fork PRs 50, 51 and 55. Relayed to the owner before merge so they can object.
2 Timing hints Embedded tables, fork measurements, contended pool hints tests/fm-test-ci-timings.tsv Same decision; the TSV has no pool hints.
3 Serial packing guard Strict 1200 s refusal Single-script shard may exceed 900 s The fork tier arithmetic (60 + 1200 + 1500 s) assumes the ceiling; no fork shard needs it.
4 fm-lint.sh --partition Owned N = 4, measured-duration packing, plus upstream --changed Any <k>of<n>, size packing Owned count catches matrix drift; measured packing is PR 55's.
5 Split-file hints Fork parents x upstream split shares (374540/297254, 395300/197650 ms) Raw 400000/450000 ms Raw values double-counted the moved tests and pushed every shard over 1200 s.
6 Budget-warn thresholds Lanes 2120 s, lint 1200 s 20 min for both 20 min fires on healthy fork runs (green main shards measure up to 1785 s); the lane value scales the 1400 s pool ceiling by the measured 1785/1180 ratio, below the 2940 s kill point.

Superseded fork commits

None. No fork-only commit's stable patch-id matches upstream's, and its content overlaps only 3bebf69c (both run four lint partitions).

Behaviour changes and migrations

Only CI, lint and test files plus their docs change. AGENTS.md, .agents/, .claude/, the backlog/Beads selector, holds and handoff (fork PRs 99, 100, 102), --claude-route (PR 119), the brief prompting pointer (PR 120), review and fleet ledgers, secondmate provisioning and session start are byte-identical to fork main. No running home needs a migration and branch protection needs no edit.

Full-suite evidence

Ran in a Boat --no-env sandbox (bash 5.2.21, jq 1.7, ShellCheck 0.11.0, tasks-axi 0.2.6): 339 scripts, 313 green first pass. One sync-caused failure (watcher-family schedule expectation) fixed in 9ffcad42; the other 25 passed once the sandbox's CAP_DAC_READ_SEARCH was dropped or failed identically on base 83c8d382. Herdr-lifecycle and real-Herdr tests were not run locally; CI's Behavior tests (Herdr) and Behavior tests (herdr-core) jobs cover them. The local Lint step's only findings were three ShellCheck info notes in unchanged tests/fm-daemon.test.sh, which fork CI analyzes cleanly.
The required Stock macOS Bash snapshot compatibility check got no GitHub-hosted macOS runner on several attempts; it was rerun until it ran, and passed on this head (run 45427578884, job 138898682679). It was not waived.

What Changed

  • Merges upstream kunchenguid/firstmate commit 6891844 into the fork. In CI, ShellCheck and actionlint now install into a cached $RUNNER_TEMP/fm-ci-tools, keyed on the installer scripts. Both installers skip the download when the pinned version is already in place. Lint now runs --changed on pull requests. The timing-aggregate job also downloads lint telemetry and runs the new warn-only bin/fm-ci-budget-warn.sh, which annotates any test lane at or over 2120 s and any lint partition at or over 1200 s. The fork's own review fixes split that script out and correct its budget arithmetic.
  • bin/fm-lint.sh gains a --changed mode, which can be combined with --partition. It lints only the canonical files that changed, keeping source-aware analysis. Both changed-file modes switch to the full canonical gate when a lint-definition file changes, or when a changed, deleted, or renamed file is sourced by another canonical script. tests/fm-lint.test.sh and tests/fm-ci-workflow.test.sh gain cases for this behavior and the new workflow wiring.
  • Splits fm-captain-hold-lifecycle.test.sh into a new fm-captain-hold-teardown.test.sh, with shared fixtures in tests/captain-hold-helpers.sh, and splits fm-watch-triage.test.sh into a new fm-watch-triage-busy.test.sh. The fork keeps its own bin/fm-test-run.sh packing; upstream's packing rewrite and timings TSV are not taken. The runner maps the new files into their families, and their provisional hints divide the parent hints. The other changes:
    • The remote-secondmate e2e test replaces a fixed sleep 4 with a bounded wait on the watcher log and heartbeat.
    • The isolation-proof test now expects fm-watch-triage-wedge-defer.test.sh to be scheduled first in its family.
    • CONTRIBUTING.md and the related docs (docs/fm-test-portable-shards.md, docs/scripts.md, and others) now point at the split suites and describe the new lint and budget-warning behavior.

🤖 Generated with Claude Code

Risk Assessment

⚠️ Medium: Both fix rounds check out against the code: the corrected header arithmetic (1400 × 1.513 ≈ 2118 s, rounded up to 2120 s, which is 820 s short of 2940 s), the 2120000/1200000 budgets and their boundary tests, the corrected docs, and the CI-workflow test that runs the lint step. No new defect turned up, and the test splits keep all 71 captain-hold invocations and all 129 watch-triage pass points. Risk stays medium because pull-request lint now checks only changed files (it upgrades to the full set when a lint-definition file or a sourced helper changes), the hints for the split files are provisional, and the CI-layout divergence is being handed to the owner rather than settled in code.

Testing

All work used disposable temp dirs and a throwaway clone; no Herdr or harness primary was needed because the change touches no runtime fleet surface. The budget warning, lint selection and posture, installer cache reuse, workflow step bodies, and runner partition and selection all behaved as intended. The split suites mostly passed. Captain-hold lifecycle passed 43/43 and watch-triage-busy passed 41/41. Captain-hold teardown passed 28 of 29; its one failure came from the host's mise node shim breaking under the fixture HOME, in a test whose body is unchanged from the base. The parent watch-triage suite reached 78 of 89 with no failures before the 30-minute cap on a heavily loaded host (load about 12 on 12 cores) stopped it. A rerun for the remaining teardown and watch-triage tests could not finish inside the turn budget. tests/fm-ci-workflow.test.sh could not run because ruby is not installed. The change has no visual UI, so there are no screenshots; the evidence is CLI transcripts and logs.

  • Live validation: ✅ go - 10 of 14 scenarios driven live against the product
Scenario Result Live Evidence
CI budget warning fires only at or above the fork budgets (lane 2120 s, lint 1200 s); real aggregate from hand-set lane durations and real lint telemetry with edited wall_seconds ✅ pass live budget-warn-transcript.txt
Budget warning never fails the job on missing or broken inputs, rejects bad usage, and stays silent on fully real healthy timings ✅ pass live budget-warn-transcript.txt, budget-warn-edge.txt, budget-warn-real-inputs.txt
fm-lint lints only changed files for a non-sourced edit, and upgrades to the full canonical set when a sourced helper is edited or renamed or a lint-definition file changes (disposable clone, --list-f… ✅ pass live lint-changed-selection.txt
fm-lint analysis posture: local default drops source following; --changed keeps full source-aware analysis; empty partition is a successful no-op ✅ pass live lint-changed-run.txt
Pinned installers reuse a cached destination without downloading, and re-download and re-verify when the cached binary is stale ✅ pass live installer-cache-reuse.txt
CI lint step passes --changed only on pull requests, and the timing-aggregate budget step runs after lint (step bodies extracted from ci.yml and executed under bash) ✅ pass live ci-workflow-steps.txt
Test runner partitions the split suites completely: coverage proof, families, 13 serial shards under the 1200 s ceiling, changed-path selection for the new budget script ✅ pass live runner-partition.txt, runner-changed-selection.txt
Split suite tests/fm-watch-triage-busy.test.sh runs green on its own ✅ pass live watch-triage-split.log (FM_TEST_END ... exit=0, 41/41 ok)
Split suite tests/fm-captain-hold-lifecycle.test.sh runs green after the teardown tests moved out ✅ pass live captain-hold-lifecycle.log (43/43 ok, exit=0)
Split suite tests/fm-captain-hold-teardown.test.sh: the 28 moved tests other than the user-config archive test pass in the new file with tests/captain-hold-helpers.sh ✅ pass live captain-hold-split.log
captain-hold teardown: 'archived answer in a user-configured archive satisfies the gate' test ⏸️ untested no It failed with 'could not create the user-config origin', right after 'mise ERROR node is not a valid shim'. The test sets HOME to a fixture dir, and this host's tasks-axi runs through a mise node shi…
Parent tests/fm-watch-triage.test.sh runs green after the busy tests moved out ⏸️ untested no Driven live and 78 of 89 tests passed with no failures. The 30-minute background cap stopped it on a host at about 2.8x its hint under load. A rerun did not fit the remaining turn budget, so the remai…
tests/fm-ci-workflow.test.sh (YAML semantic checks for the cache, --changed and budget steps) ⏸️ untested no ruby is not on PATH and there is no repository-local copy, so this suite cannot run here. I covered its claims by running the extracted step bodies (see the CI step scenario). Install ruby or rely on…
GitHub-side behaviour: event expression evaluation, actions/cache restore keyed by installer hash, lint telemetry artifact download into the aggregate job, annotation rendering ⏸️ untested no This needs a real GitHub Actions run on twilwa/firstmate, which belongs to the outer CI phase and is outside this test phase's authority. Locally I checked only the step bodies and parsed structure.
Evidence: Budget warn: lane and lint thresholds, annotations, missing/broken inputs, usage errors

Source: Budget warn: lane and lint thresholds, annotations, missing/broken inputs, usage errors

$ env GITHUB_ACTIONS=true bin/fm-ci-budget-warn.sh /tmp/fm-budget.KoCdTf/aggregate.json /tmp/fm-budget.KoCdTf/lintagg
::warning title=CI budget::lane portable-serial-3of13 command time was 36.7 minutes, above the 35.3-minute healthy lane budget
fm-ci-budget-warn: warning: lane portable-serial-3of13 command time was 36.7 minutes, above the 35.3-minute healthy lane budget
::warning title=CI budget::lane portable-serial-5of13 command time was 35.3 minutes, above the 35.3-minute healthy lane budget
fm-ci-budget-warn: warning: lane portable-serial-5of13 command time was 35.3 minutes, above the 35.3-minute healthy lane budget
::warning title=CI budget::lint partition 1of4 command time was 20.8 minutes, above the 20.0-minute healthy lint budget
fm-ci-budget-warn: warning: lint partition 1of4 command time was 20.8 minutes, above the 20.0-minute healthy lint budget
::warning title=CI budget::lint partition 3of4 command time was 20.0 minutes, above the 20.0-minute healthy lint budget
fm-ci-budget-warn: warning: lint partition 3of4 command time was 20.0 minutes, above the 20.0-minute healthy lint budget
[exit=0]

$ env -u GITHUB_ACTIONS bin/fm-ci-budget-warn.sh /tmp/fm-budget.KoCdTf/aggregate.json /tmp/fm-budget.KoCdTf/lintagg
fm-ci-budget-warn: warning: lane portable-serial-3of13 command time was 36.7 minutes, above the 35.3-minute healthy lane budget
fm-ci-budget-warn: warning: lane portable-serial-5of13 command time was 35.3 minutes, above the 35.3-minute healthy lane budget
fm-ci-budget-warn: warning: lint partition 1of4 command time was 20.8 minutes, above the 20.0-minute healthy lint budget
fm-ci-budget-warn: warning: lint partition 3of4 command time was 20.0 minutes, above the 20.0-minute healthy lint budget
[exit=0]

$ env GITHUB_ACTIONS=true bin/fm-ci-budget-warn.sh /tmp/fm-budget.KoCdTf/missing.json /tmp/fm-budget.KoCdTf/lintagg
::warning title=CI budget::no aggregate timing JSON at /tmp/fm-budget.KoCdTf/missing.json; skipped the lane budget check
fm-ci-budget-warn: warning: no aggregate timing JSON at /tmp/fm-budget.KoCdTf/missing.json; skipped the lane budget check
[exit=0]

$ env GITHUB_ACTIONS=true bin/fm-ci-budget-warn.sh /tmp/fm-budget.KoCdTf/broken.json
::warning title=CI budget::could not parse /tmp/fm-budget.KoCdTf/broken.json; skipped the lane budget check
fm-ci-budget-warn: warning: could not parse /tmp/fm-budget.KoCdTf/broken.json; skipped the lane budget check
[exit=0]

$ bin/fm-ci-budget-warn.sh
fm-ci-budget-warn: need an aggregate timing JSON (see --help)
[exit=2]

$ bin/fm-ci-budget-warn.sh --bogus
fm-ci-budget-warn: unknown argument: --bogus
[exit=2]

$ bin/fm-ci-budget-warn.sh /tmp/fm-budget.KoCdTf/aggregate.json /tmp/fm-budget.KoCdTf/lintagg extra
fm-ci-budget-warn: unexpected argument: extra
[exit=2]
Evidence: Budget warn: empty-partition telemetry and nonexistent lint dir

Source: Budget warn: empty-partition telemetry and nonexistent lint dir

$ FM_LINT_JOBS=1 bin/fm-lint.sh --changed --partition 2of4 --telemetry <dir>/partition-2.tsv   (empty partition)
fm-lint.sh: ShellCheck 0.11.0 (pinned 0.11.0)
fm-lint.sh: full ShellCheck extended analysis enabled
fm-lint.sh: no lint targets in this partition
fm-lint.sh: telemetry directory does not exist: /tmp/fm-budget.KoCdTf/empty
[exit=2]
partition-2.roots.tsv
partition-2.tsv
partition	2of4
wall_seconds	5

$ GITHUB_ACTIONS=true bin/fm-ci-budget-warn.sh <aggregate> <nonexistent-lint-dir>
::warning title=CI budget::lane portable-serial-3of13 command time was 36.7 minutes, above the 35.3-minute healthy lane budget
fm-ci-budget-warn: warning: lane portable-serial-3of13 command time was 36.7 minutes, above the 35.3-minute healthy lane budget
::warning title=CI budget::lane portable-serial-5of13 command time was 35.3 minutes, above the 35.3-minute healthy lane budget
fm-ci-budget-warn: warning: lane portable-serial-5of13 command time was 35.3 minutes, above the 35.3-minute healthy lane budget
[exit=0]
Evidence: Budget warn on fully real suite timings and lint telemetry (silent, exit 0)

Source: Budget warn on fully real suite timings and lint telemetry (silent, exit 0)

$ bin/fm-test-run.sh --aggregate-json agg-real.json watch-triage-split.json captain-hold-split.json
FM_TEST_AGGREGATE lanes=2 total=2 failed=1 skipped_gate=0 critical_path_duration_ms=1473452
[exit=0]
$ GITHUB_ACTIONS=true bin/fm-ci-budget-warn.sh agg-real.json <real lint telemetry dir from the changed-mode partition runs>
[exit=0] (no output = all real lanes and partitions under budget)
Evidence: fm-lint changed-file selection and full-set upgrade across branch states

Source: fm-lint changed-file selection and full-set upgrade across branch states

## A: comment-only edit of a non-sourced script (bin/fm-ci-budget-warn.sh)
$ bin/fm-lint.sh --list-files
bin/fm-ci-budget-warn.sh
[exit=0, 1 files listed]

$ bin/fm-lint.sh --changed --list-files
bin/fm-ci-budget-warn.sh
[exit=0, 1 files listed]

$ bin/fm-lint.sh --changed --partition 1of4 --list-files
bin/fm-ci-budget-warn.sh
[exit=0, 1 files listed]

## B: edit of a sourced test helper (tests/watch-triage-helpers.sh)
$ bin/fm-lint.sh --list-files
fm-lint.sh: a sourced helper changed; using full canonical lint
bin/fm-afk-contract.sh
bin/fm-afk-launch.sh
bin/fm-afk-return.sh
bin/fm-afk-start.sh
bin/fm-agent-process-lib.sh
bin/fm-agy-trust.sh
bin/fm-approval-failover.sh
bin/fm-arm-pretool-check.sh
bin/fm-backend-hometag-lib.sh
bin/fm-backend.sh
bin/fm-backlog-handoff.sh
bin/fm-backlog-receive.sh
bin/fm-backlog-transition-lib.sh
bin/fm-bearings-board.sh
bin/fm-bearings-snapshot.sh
bin/fm-bootstrap.sh
bin/fm-branch-outcome.sh
bin/fm-branch-prompt.sh
bin/fm-branch-report.sh
bin/fm-brief-heading-lib.sh
bin/fm-brief.sh
bin/fm-busy-event.sh
bin/fm-busy-lib.sh
bin/fm-calendar-lib.sh
bin/fm-capacity.sh
bin/fm-captain-hold.sh
bin/fm-cd-pretool-check.sh
bin/fm-check-lib.sh
bin/fm-check-register.sh
bin/fm-check-unregister.sh
bin/fm-ci-budget-warn.sh
bin/fm-classify-lib.sh
bin/fm-claude-account-quota.sh
bin/fm-claude-stop-autoarm.sh
bin/fm-claude-trust.sh
bin/fm-codex-stop-park.sh
bin/fm-composer-lib.sh
bin/fm-config-inherit-lib.sh
bin/fm-config-push.sh
bin/fm-contributions.sh
bin/fm-control-lib.sh
bin/fm-control.sh
bin/fm-cortex-plugin.sh
bin/fm-credential-source-lib.sh
bin/fm-crew-state.sh
bin/fm-cursor-lib.sh
bin/fm-decision-hold.sh
bin/fm-devin-config.sh
bin/fm-dispatch-resolve.sh
bin/fm-doc-audience-check.sh
bin/fm-dod-lib.sh
bin/fm-ensure-agents-md.sh
bin/fm-env-lib.sh
bin/fm-exclude-tools-lib.sh
bin/fm-extension.sh
bin/fm-external-review-lib.sh
bin/fm-ff-lib.sh
bin/fm-fleet-ledger.sh
bin/fm-fleet-snapshot.sh
bin/fm-fleet-sync.sh
bin/fm-fleet-view.sh
bin/fm-forge-detect.sh
bin/fm-gate-refuse-lib.sh
bin/fm-gemini-lib.sh
bin/fm-git-push-guard.sh
bin/fm-git-strip-ai-trailers.sh
bin/fm-guard.sh
bin/fm-harness.sh
bin/fm-hc-ci-cleanup.sh
bin/fm-hc-lab.sh
bin/fm-herdr-ci-cleanup.sh
bin/fm-herdr-groups.sh
bin/fm-herdr-lab.sh
bin/fm-herdr-session-cleanup.sh
bin/fm-hermes-hook.sh
bin/fm-hermes-lib.sh
bin/fm-hermes-process-lib.sh
bin/fm-hold-reason-lib.sh
bin/fm-home-seed.sh
bin/fm-home-summary-refresh.sh
bin/fm-hook-host-lib.sh
bin/fm-host-mirror.sh
bin/fm-inactive-reconcile.sh
bin/fm-inbox.sh
bin/fm-install-actionlint.sh
bin/fm-install-hc.sh
bin/fm-install-herdr.sh
bin/fm-install-shellcheck.sh
bin/fm-install-treehouse.sh
bin/fm-jev-mem-guard.sh
bin/fm-kimi-delivery-lib.sh
bin/fm-kimi-trust-lib.sh
bin/fm-kimi-turnend-hook.sh
bin/fm-lab-home.sh
bin/fm-landed-lib.sh
bin/fm-lane-vitals-lib.sh
bin/fm-launch-mise-env-lib.sh
bin/fm-lavish-url.sh
bin/fm-lease-lib.sh
bin/fm-lease.sh
bin/fm-line-cap-lib.sh
bin/fm-lint-workflows.sh
bin/fm-lint.sh
bin/fm-live-lab.sh
bin/fm-local-handoff-lib.sh
bin/fm-local-handoff.sh
bin/fm-lock-lib.sh
bin/fm-lock.sh
bin/fm-mail-check.sh
bin/fm-mail.sh
bin/fm-marker-lib.sh
bin/fm-merge-authority-lib.sh
bin/fm-merge-local.sh
bin/fm-merge-outcome-lib.sh
bin/fm-nm-respond.sh
bin/fm-nm-run-lib.sh
bin/fm-omp-process-lib.sh
bin/fm-omp-profile-lib.sh
bin/fm-on.sh
bin/fm-operational-input.sh
bin/fm-osc7501.sh
bin/fm-pane-question-lib.sh
bin/fm-parent-channel-lib.sh
bin/fm-park.sh
bin/fm-path-lib.sh
bin/fm-peek.sh
bin/fm-pending-reply-lib.sh
bin/fm-pipeline-spend.sh
bin/fm-polytoken-lib.sh
bin/fm-pr-check.sh
bin/fm-pr-health.sh
bin/fm-pr-lib.sh
bin/fm-pr-merge.sh
bin/fm-pr-poll.sh
bin/fm-pr-review-snapshot.sh
bin/fm-pr-review.sh
bin/fm-pr-reviewers.sh
bin/fm-pr-risk.sh
bin/fm-pr-state.sh
bin/fm-primary-scope-lib.sh
bin/fm-procevent-lavish.sh
bin/fm-procevent-lib.sh
bin/fm-procevent-quota.sh
bin/fm-procevent-remote-reply.sh
bin/fm-procevent-when.sh
bin/fm-procevent.sh
bin/fm-project-capacity-lib.sh
bin/fm-project-mode.sh
bin/fm-project-origin-lib.sh
bin/fm-promote.sh
bin/fm-public-followup-collect.sh
bin/fm-public-followup-emit.sh
bin/fm-public-followup-lib.sh
bin/fm-public-followup.sh
bin/fm-push-transition-lib.sh
bin/fm-quota-axi-lib.sh
bin/fm-quota-choose.sh
bin/fm-record-export.sh
bin/fm-record-hygiene-lib.sh
bin/fm-remote-delta-read.sh
bin/fm-remote-doctor.sh
bin/fm-remote-entrypoint.sh
bin/fm-remote-file.sh
bin/fm-remote-herdr-guard.sh
bin/fm-remote-herdr-identity-lib.sh
bin/fm-remote-herdr-owner-lib.sh
bin/fm-remote-home-provision.sh
bin/fm-remote-home-seed.sh
bin/fm-remote-inherit-push.sh
bin/fm-remote-inherit.sh
bin/fm-remote-job-lib.sh
bin/fm-remote-job-reap-orphans.sh
bin/fm-remote-job-worker.sh
bin/fm-remote-readiness-lib.sh
bin/fm-remote-secondmate-control.sh
bin/fm-remote-secondmate-relaunch.sh
bin/fm-review-check.sh
bin/fm-review-diff.sh
bin/fm-rex-marks.sh
bin/fm-role-lib.sh
bin/fm-role.sh
bin/fm-secondmate-charter-lib.sh
bin/fm-secondmate-liveness-lib.sh
bin/fm-secondmate-nudge-lib.sh
bin/fm-secondmate-parent-lib.sh
bin/fm-secondmate-reconcile.sh
bin/fm-secondmate-registry-lib.sh
bin/fm-secondmate-report.sh
bin/fm-secondmate-restart-lib.sh
bin/fm-secondmate-restart.sh
bin/fm-secondmate-sleep-lib.sh
bin/fm-secondmate-sleep.sh
bin/fm-send.sh
bin/fm-session-lock-lib.sh
bin/fm-session-start.sh
bin/fm-sessionstart-agy.sh
bin/fm-sessionstart-cursor.sh
bin/fm-sessionstart-nudge.sh
bin/fm-sessionstart-run.sh
bin/fm-spawn.sh
bin/fm-startup-growth-check.sh
bin/fm-startup-memory-budget-lib.sh
bin/fm-startup-memory-budget.sh
bin/fm-startup-network.sh
bin/fm-stow-cascade.sh
bin/fm-stow-guard.sh
bin/fm-subagent-pretool-check.sh
bin/fm-supervise-daemon.sh
bin/fm-supervision-engine-lib.sh
bin/fm-supervision-handoff.sh
bin/fm-supervision-host.sh
bin/fm-supervision-instructions.sh
bin/fm-supervision-lib.sh
bin/fm-supervisor-target-lib.sh
bin/fm-t3-answer.sh
bin/fm-t3code-codex-env.sh
bin/fm-tangle-lib.sh
bin/fm-task-budget-lib.sh
bin/fm-task-inbox-lib.sh
bin/fm-tasks-axi-lib.sh
bin/fm-tasks-axi.sh
bin/fm-teardown-procevent-lib.sh
bin/fm-teardown.sh
bin/fm-test-isolation-proof.sh
bin/fm-test-linux.sh
bin/fm-test-run.sh
bin/fm-test-tap-verify.sh
bin/fm-timeout-lib.sh
bin/fm-timing-lib.sh
bin/fm-tmux-lib.sh
bin/fm-tool-update-check.sh
bin/fm-trace-context-lib.sh
bin/fm-transition-lib.sh
bin/fm-turnend-guard-agy.sh
bin/fm-turnend-guard-cursor.sh
bin/fm-turnend-guard-grok.sh
bin/fm-turnend-guard.sh
bin/fm-update.sh
bin/fm-usage-warner.sh
bin/fm-vendor-auth-probe.sh
bin/fm-wake-drain.sh
bin/fm-wake-grant.sh
bin/fm-wake-lib.sh
bin/fm-warm-compact-lib.sh
bin/fm-watch-arm.sh
bin/fm-watch-checkpoint.sh
bin/fm-watch-key-lib.sh
bin/fm-watch.sh
bin/fm-worker-account-lib.sh
bin/fm-x-dismiss.sh
bin/fm-x-followup.sh
bin/fm-x-lib.sh
bin/fm-x-link.sh
bin/fm-x-poll.sh
bin/fm-x-reply.sh
bin/backends/cmux.sh
bin/backends/hc.sh
bin/backends/herdr.sh
bin/backends/orca.sh
bin/backends/paseo.sh
bin/backends/rex.sh
bin/backends/t3code.sh
bin/backends/tern.sh
bin/backends/tmux.sh
bin/backends/zellij.sh
tests/captain-hold-helpers.sh
tests/cmux-test-safety.sh
tests/fixtures.sh
tests/fm-afk-contract.test.sh
tests/fm-afk-inject-e2e.test.sh
tests/fm-afk-inject-herdr-e2e.test.sh
tests/fm-afk-launch.test.sh
tests/fm-afk-pi-herdr-return-e2e.test.sh
tests/fm-afk-return.test.sh
tests/fm-agents-md-size.test.sh
tests/fm-agy-harness.test.sh
tests/fm-agy-primary-live-e2e.test.sh
tests/fm-agy-primary.test.sh
tests/fm-agy-signals-live-e2e.test.sh
tests/fm-approval-failover.test.sh
tests/fm-arm-pretool-check.test.sh
tests/fm-ask-user-authority.test.sh
tests/fm-assertions.test.sh
tests/fm-backend-autodetect-smoke.test.sh
tests/fm-backend-cmux-smoke.test.sh
tests/fm-backend-cmux.test.sh
tests/fm-backend-hc-appdetect-smoke.test.sh
tests/fm-backend-hc-liveness-live-e2e.test.sh
tests/fm-backend-hc-smoke.test.sh
tests/fm-backend-hc.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-back

... [86463 bytes truncated] ...

/fm-host-mirror.test.sh
tests/fm-inactive-reconcile.test.sh
tests/fm-inbox.test.sh
tests/fm-install-herdr.test.sh
tests/fm-jev-mem-guard.test.sh
tests/fm-kimi-delivery-live-e2e.test.sh
tests/fm-kimi-harness.test.sh
tests/fm-kimi-trust-prompt-live-e2e.test.sh
tests/fm-kiro-harness.test.sh
tests/fm-kiro-signals-live-e2e.test.sh
tests/fm-lane-capacity-integration.test.sh
tests/fm-lane-vitals.test.sh
tests/fm-launch-mise-env.test.sh
tests/fm-launch-prompt-signals-live-e2e.test.sh
tests/fm-lavish-url.test.sh
tests/fm-lint-feedback.test.sh
tests/fm-lint-workflows.test.sh
tests/fm-lint.test.sh
tests/fm-live-gate.test.sh
tests/fm-live-lab-isolation.test.sh
tests/fm-live-lab-up-mate.test.sh
tests/fm-live-lab.test.sh
tests/fm-local-handoff.test.sh
tests/fm-mail-check.test.sh
tests/fm-mail.test.sh
tests/fm-merge-local.test.sh
tests/fm-muse-harness.test.sh
tests/fm-muse-signals-live-e2e.test.sh
tests/fm-nm-respond.test.sh
tests/fm-nm-test-contract.test.sh
tests/fm-no-mistakes-required.test.sh
tests/fm-omp-harness.test.sh
tests/fm-omp-primary-live-e2e.test.sh
tests/fm-on.test.sh
tests/fm-opencode-abs-cwd-rail-live-e2e.test.sh
tests/fm-opencode-primary-live-e2e.test.sh
tests/fm-operational-input.test.sh
tests/fm-osc7501.test.sh
tests/fm-pane-question-detector.test.sh
tests/fm-parent-channel-scan-exclusion.test.sh
tests/fm-park.test.sh
tests/fm-peek-remote.test.sh
tests/fm-pending-reply.test.sh
tests/fm-pi-branch-extension.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-compaction-live-e2e.test.sh
tests/fm-pi-primary-live-e2e.test.sh
tests/fm-pi-primary-types.test.sh
tests/fm-pi-seeded-home-trust-live-e2e.test.sh
tests/fm-pi-watch-extension.test.sh
tests/fm-pi-windows-shell-invocation.test.sh
tests/fm-pi-worker-stream-live-e2e.test.sh
tests/fm-pi-worktree-trust-live-e2e.test.sh
tests/fm-pipeline-spend.test.sh
tests/fm-polytoken-harness.test.sh
tests/fm-polytoken-signals-live-e2e.test.sh
tests/fm-pr-check-security.test.sh
tests/fm-pr-health.test.sh
tests/fm-pr-merge.test.sh
tests/fm-pr-review.test.sh
tests/fm-pr-reviewers.test.sh
tests/fm-pr-state-live-e2e.test.sh
tests/fm-pr-state.test.sh
tests/fm-procevent-extension-errors.test.sh
tests/fm-procevent-quota.test.sh
tests/fm-procevent-retire-task.test.sh
tests/fm-procevent-when.test.sh
tests/fm-procevent.test.sh
tests/fm-project-capacity.test.sh
tests/fm-project-mode.test.sh
tests/fm-project-origin.test.sh
tests/fm-public-followup.test.sh
tests/fm-quota-array-dispatch-live-e2e.test.sh
tests/fm-quota-choose.test.sh
tests/fm-read-repetition-live.test.sh
tests/fm-read-repetition.test.sh
tests/fm-record-export-remote-home.test.sh
tests/fm-record-export.test.sh
tests/fm-remote-backlog-handoff.test.sh
tests/fm-remote-delta-read.test.sh
tests/fm-remote-doctor.test.sh
tests/fm-remote-entrypoint.test.sh
tests/fm-remote-herdr-guard.test.sh
tests/fm-remote-herdr-identity.test.sh
tests/fm-remote-inherit-generation.test.sh
tests/fm-remote-job-claim-reap.test.sh
tests/fm-remote-job-claim-retention.test.sh
tests/fm-remote-job-launchagent.test.sh
tests/fm-remote-job-orphan-reap.test.sh
tests/fm-remote-job-process-start.test.sh
tests/fm-remote-job.test.sh
tests/fm-remote-reply.test.sh
tests/fm-remote-secondmate-lifecycle-e2e.test.sh
tests/fm-remote-secondmate-omp.test.sh
tests/fm-remote-secondmate-parent-binding.test.sh
tests/fm-remote-secondmate-relaunch.test.sh
tests/fm-remote-secondmate-trace-context.test.sh
tests/fm-remote-transport-lanes.test.sh
tests/fm-review-check.test.sh
tests/fm-review-diff.test.sh
tests/fm-rovo-harness.test.sh
tests/fm-rovo-signals-live-e2e.test.sh
tests/fm-secondmate-busy-contract-live-e2e.test.sh
tests/fm-secondmate-harness.test.sh
tests/fm-secondmate-lifecycle-e2e.test.sh
tests/fm-secondmate-liveness.test.sh
tests/fm-secondmate-reconcile.test.sh
tests/fm-secondmate-restart.test.sh
tests/fm-secondmate-safety.test.sh
tests/fm-secondmate-sleep.test.sh
tests/fm-secondmate-sync.test.sh
tests/fm-self-repo-role.test.sh
tests/fm-send-agy-confirm.test.sh
tests/fm-send-inbox-doorbell-live-e2e.test.sh
tests/fm-send-inbox.test.sh
tests/fm-send-kiro-confirm.test.sh
tests/fm-send-popup-settle.test.sh
tests/fm-send-remote-delivery.test.sh
tests/fm-send-resolve-key.test.sh
tests/fm-send-secondmate-marker-herdr-e2e.test.sh
tests/fm-send-secondmate-marker.test.sh
tests/fm-send-settle.test.sh
tests/fm-send-strict.test.sh
tests/fm-session-lock-ancestry.test.sh
tests/fm-session-lock-ps-denied.test.sh
tests/fm-session-lock-windows-consumers.test.sh
tests/fm-session-start.test.sh
tests/fm-sessionstart-hook-live-e2e.test.sh
tests/fm-sessionstart-instruction-refresh-live-e2e.test.sh
tests/fm-sessionstart-nudge.test.sh
tests/fm-shared-captain-inheritance.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-external-review.test.sh
tests/fm-spawn-herdr-lease.test.sh
tests/fm-spawn-manual-pr-text.test.sh
tests/fm-spawn-orca-worktree.test.sh
tests/fm-spawn-pool-base-freshen.test.sh
tests/fm-spawn-worktree-settle.test.sh
tests/fm-startup-growth-check.test.sh
tests/fm-startup-memory-budget.test.sh
tests/fm-startup-network.test.sh
tests/fm-stat-shadowing.test.sh
tests/fm-stow-cascade.test.sh
tests/fm-stow-guard.test.sh
tests/fm-subagent-pretool-check.test.sh
tests/fm-supervision-events.test.sh
tests/fm-supervision-host-attended-live-e2e.test.sh
tests/fm-supervision-host-drain.test.sh
tests/fm-supervision-host-herdr-live-e2e.test.sh
tests/fm-supervision-host-hook.test.sh
tests/fm-supervision-host-live-e2e.test.sh
tests/fm-supervision-host-park.test.sh
tests/fm-supervision-host.test.sh
tests/fm-supervision-instructions.test.sh
tests/fm-t3-mcp.test.sh
tests/fm-tangle-guard.test.sh
tests/fm-task-budget.test.sh
tests/fm-task-delivery.test.sh
tests/fm-task-inbox.test.sh
tests/fm-tasks-axi.test.sh
tests/fm-teardown-endpoint-safety.test.sh
tests/fm-teardown-procevent.test.sh
tests/fm-teardown.test.sh
tests/fm-test-fixture-cleanup.test.sh
tests/fm-test-fixtures.test.sh
tests/fm-test-isolation-proof.test.sh
tests/fm-test-linux.test.sh
tests/fm-test-remote.test.sh
tests/fm-test-run.test.sh
tests/fm-test-tap-verify.test.sh
tests/fm-timeout-lib.test.sh
tests/fm-tmux-agent-liveness.test.sh
tests/fm-tmux-submit-busy.test.sh
tests/fm-tool-update-check.test.sh
tests/fm-trace-context-lib.test.sh
tests/fm-trace-context-spawn.test.sh
tests/fm-transition-lib.test.sh
tests/fm-treehouse-clone-custody.test.sh
tests/fm-turnend-foreign-owner-arm-fix.test.sh
tests/fm-turnend-guard.test.sh
tests/fm-update.test.sh
tests/fm-usage-warner.test.sh
tests/fm-vendor-auth-probe.test.sh
tests/fm-voice-relay.test.sh
tests/fm-wake-daemon-lifecycle-e2e.test.sh
tests/fm-wake-drain-open-decisions-cursor.test.sh
tests/fm-wake-drain-open-decisions.test.sh
tests/fm-wake-drain-outcome-backstop.test.sh
tests/fm-wake-drain-unread-status.test.sh
tests/fm-wake-queue.test.sh
tests/fm-warm-compact-herdr-live-e2e.test.sh
tests/fm-warm-compact.test.sh
tests/fm-watch-arm.test.sh
tests/fm-watch-beacon.test.sh
tests/fm-watch-checkpoint.test.sh
tests/fm-watch-inbox-meta.test.sh
tests/fm-watch-inbox-progress.test.sh
tests/fm-watch-open-decisions.test.sh
tests/fm-watch-recovery-loop.test.sh
tests/fm-watch-triage-busy.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-live.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-worker-account-live-e2e.test.sh
tests/fm-worker-account.test.sh
tests/fm-x-mode.test.sh
tests/git-config-helpers.sh
tests/hc-fake-fixture.sh
tests/hc-test-safety.sh
tests/herdr-client-pair-fixture.sh
tests/herdr-test-safety.sh
tests/lib.sh
tests/remote-herdr-fixture.sh
tests/rex-fake-fixture.sh
tests/rex-test-safety.sh
tests/secondmate-helpers.sh
tests/secondmate-persist-helpers.sh
tests/supervision-host-helpers.sh
tests/t3-fake-lib.sh
tests/tern-test-safety.sh
tests/wake-helpers.sh
tests/watch-triage-helpers.sh
tests/zellij-test-safety.sh
[exit=0, 651 files listed]
Evidence: fm-lint real runs: local no-source vs --changed source-aware vs partitioned

Source: fm-lint real runs: local no-source vs --changed source-aware vs partitioned

$ FM_LINT_JOBS=1 bin/fm-lint.sh 
fm-lint.sh: ShellCheck 0.11.0 (pinned 0.11.0)
fm-lint.sh: local changed-file mode; ShellCheck source following disabled
fm-lint-workflows.sh: actionlint 1.7.12 (pinned 1.7.12)
fm-lint-workflows.sh: 4 workflow files valid
[exit=0]

$ FM_LINT_JOBS=1 bin/fm-lint.sh --changed
fm-lint.sh: ShellCheck 0.11.0 (pinned 0.11.0)
fm-lint.sh: full ShellCheck extended analysis enabled
fm-lint-workflows.sh: actionlint 1.7.12 (pinned 1.7.12)
fm-lint-workflows.sh: 4 workflow files valid
[exit=0]

$ FM_LINT_JOBS=1 bin/fm-lint.sh --changed --partition 1of4 --telemetry /tmp/fm-budget.KoCdTf/p1.tsv
fm-lint.sh: ShellCheck 0.11.0 (pinned 0.11.0)
fm-lint.sh: full ShellCheck extended analysis enabled
fm-lint: begin bin/fm-ci-budget-warn.sh (shard 0, full mode)
fm-lint: end bin/fm-ci-budget-warn.sh reason=ok rc=0 duration_ms=117 rss_kib=unavailable
fm-lint-workflows.sh: actionlint 1.7.12 (pinned 1.7.12)
fm-lint-workflows.sh: 4 workflow files valid
[exit=0]

$ FM_LINT_JOBS=1 bin/fm-lint.sh --changed --partition 2of4
fm-lint.sh: ShellCheck 0.11.0 (pinned 0.11.0)
fm-lint.sh: full ShellCheck extended analysis enabled
fm-lint.sh: no lint targets in this partition
fm-lint-workflows.sh: actionlint 1.7.12 (pinned 1.7.12)
fm-lint-workflows.sh: 4 workflow files valid
[exit=0]
Evidence: Pinned installers: cache hit skips download; stale binary re-downloads and verifies

Source: Pinned installers: cache hit skips download; stale binary re-downloads and verifies

## 1. cache hit: destination already holds the pinned versions (simulates restored actions/cache)
$ env RUNNER_TEMP=/tmp/fm-inst.PmxyXa bin/fm-install-shellcheck.sh /tmp/fm-inst.PmxyXa/cached
fm-install-shellcheck.sh: ShellCheck 0.11.0 already at /tmp/fm-inst.PmxyXa/cached
ShellCheck - shell script analysis tool
version: 0.11.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
[exit=0]

$ env RUNNER_TEMP=/tmp/fm-inst.PmxyXa bin/fm-install-actionlint.sh /tmp/fm-inst.PmxyXa/cached
fm-install-actionlint.sh: actionlint 1.7.12 already at /tmp/fm-inst.PmxyXa/cached
1.7.12
installed by downloading from release page
built with go1.26.1 compiler for linux/amd64
[exit=0]

## 2. stale binary at destination (old pin restored): installer must re-download and re-verify
$ env RUNNER_TEMP=/tmp/fm-inst.PmxyXa bin/fm-install-shellcheck.sh /tmp/fm-inst.PmxyXa/stale
ShellCheck - shell script analysis tool
version: 0.11.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
[exit=0]

$ env RUNNER_TEMP=/tmp/fm-inst.PmxyXa bin/fm-install-actionlint.sh /tmp/fm-inst.PmxyXa/stale
1.7.12
installed by downloading from release page
built with go1.26.1 compiler for linux/amd64
[exit=0]

$ /tmp/fm-inst.PmxyXa/stale/shellcheck --version
ShellCheck - shell script analysis tool
version: 0.11.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
[exit=0]

$ /tmp/fm-inst.PmxyXa/stale/actionlint -version
1.7.12
installed by downloading from release page
built with go1.26.1 compiler for linux/amd64
[exit=0]

## 3. second run against the now-fresh destination is a no-download hit
$ env RUNNER_TEMP=/tmp/fm-inst.PmxyXa bin/fm-install-shellcheck.sh /tmp/fm-inst.PmxyXa/stale
fm-install-shellcheck.sh: ShellCheck 0.11.0 already at /tmp/fm-inst.PmxyXa/stale
ShellCheck - shell script analysis tool
version: 0.11.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
[exit=0]
Evidence: CI workflow step bodies executed from ci.yml (lint --changed wiring, budget step, tool cache keys)

Source: CI workflow step bodies executed from ci.yml (lint --changed wiring, budget step, tool cache keys)

lint step env: {'FM_LINT_REQUIRE_BOUNDS': '1', 'FM_LINT_JOBS': '1', 'FM_LINT_CHANGED': "${{ github.event_name == 'pull_request' && '1' || '0' }}"}
event=pull_request: FM_LINT_CHANGED -> '1'
event=push: FM_LINT_CHANGED -> '0'
lint step body with FM_LINT_CHANGED=1: exit=0 argv: --partition 2of4 --telemetry /tmp/fm-ci-step.671yn9ma/tmp/fm-lint/partition-2.tsv --changed 
lint step body with FM_LINT_CHANGED=0: exit=0 argv: --partition 2of4 --telemetry /tmp/fm-ci-step.671yn9ma/tmp/fm-lint/partition-2.tsv 
timing-aggregate needs: ['lint', 'tests-portable-pool', 'tests-portable-serial', 'tests-herdr', 'tests-hc']
budget step if: always()  continue-on-error: None
budget step body: exit=0
::warning title=CI budget::lane portable-serial-3of13 command time was 36.7 minutes, above the 35.3-minute healthy lane budget
::warning title=CI budget::lane portable-serial-5of13 command time was 35.3 minutes, above the 35.3-minute healthy lane budget
::warning title=CI budget::lint partition 1of4 command time was 20.8 minutes, above the 20.0-minute healthy lint budget
::warning title=CI budget::lint partition 3of4 command time was 20.0 minutes, above the 20.0-minute healthy lint budget

lint cache: {'path': '${{ runner.temp }}/fm-ci-tools', 'key': "fm-ci-tools-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('bin/fm-install-shellcheck.sh', 'bin/fm-install-actionlint.sh') }}"}
tests-portable-pool cache: {'path': '${{ runner.temp }}/fm-ci-tools', 'key': "fm-ci-tools-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('bin/fm-install-shellcheck.sh', 'bin/fm-install-actionlint.sh') }}"}
tests-portable-serial cache: {'path': '${{ runner.temp }}/fm-ci-tools', 'key': "fm-ci-tools-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('bin/fm-install-shellcheck.sh', 'bin/fm-install-actionlint.sh') }}"}
Evidence: Runner coverage, families, and 13-shard placement for split suites

Source: Runner coverage, families, and 13-shard placement for split suites

$ bin/fm-test-run.sh --check-coverage
FM_TEST_COVERAGE ok total=366 pool=26 pool_hint_ms=2444177 pool_modeled_ms=611805 pool_workers=4 pool_unhinted=0 pool_budget_ms=1400000 pool_timeout_min=50 serial=324 serial_shards=13 serial_unhinted=30 serial_max_ms=1179723 serial_budget_ms=1200000 herdr=16
[exit=0]
tests/fm-captain-hold-teardown.test.sh -> family pure-contract-unit
tests/fm-captain-hold-lifecycle.test.sh -> family pure-contract-unit
tests/fm-watch-triage-busy.test.sh -> family watcher-wake-lock
tests/fm-watch-triage.test.sh -> family watcher-wake-lock

Serial shard where each split suite lands (13 shards) and the shard estimate:
shard 1of13 est=1179723ms tests/fm-captain-hold-backend-compat.test.sh 
shard 2of13 est=1179712ms tests/fm-watch-triage-wedge-defer.test.sh 
shard 3of13 est=1179711ms tests/fm-watch-triage-pause.test.sh 
shard 4of13 est=1179690ms tests/fm-watch-triage-busy.test.sh 
shard 5of13 est=1179690ms 
shard 6of13 est=1179688ms 
shard 7of13 est=1179688ms 
shard 8of13 est=1179712ms 
shard 9of13 est=1179700ms tests/fm-watch-triage.test.sh 
shard 10of13 est=1179723ms tests/fm-captain-hold-lifecycle.test.sh 
shard 11of13 est=1179689ms 
shard 12of13 est=1179688ms 
shard 13of13 est=1179723ms tests/fm-captain-hold-teardown.test.sh 

$ bin/fm-test-run.sh --list-scheduled --family watcher-wake-lock | head -6
tests/fm-watch-triage-wedge-defer.test.sh
tests/fm-watch-triage-pause.test.sh
tests/fm-watch-wedge-cap.test.sh
tests/fm-watch-triage.test.sh
tests/fm-watch-arm.test.sh
tests/fm-watch-triage-busy.test.sh

$ bin/fm-test-run.sh --changed --list on a diff touching bin/fm-ci-budget-warn.sh is covered via families_for_changed_path (see clone run)
Evidence: Changed-path test selection for bin/fm-ci-budget-warn.sh

Source: Changed-path test selection for bin/fm-ci-budget-warn.sh

# clone branch whose only change vs origin/main is bin/fm-ci-budget-warn.sh
bin/fm-ci-budget-warn.sh
$ bin/fm-test-run.sh --changed --base origin/main --list
tests/fm-ci-workflow.test.sh
tests/fm-test-run.test.sh
[exit=0]
Evidence: captain-hold teardown (28/29, one mise env failure) log

Source: captain-hold teardown (28/29, one mise env failure) log

FM_TEST_BEGIN 2026-11-24T13:20:08Z tests/fm-captain-hold-teardown.test.sh family=pure-contract-unit expected_gate_skip=none
ok - new, active, and released holds publish origins after backend success with and without deferral
Terminated
Terminated
Terminated
Terminated
ok - failed and interrupted origin moves cannot inherit active, expired, replayed, or completed calls
ok - historical self-inventories name a workable repair that preserves sibling entries
ok - completion and verification compare backend identities for entries and current or stored origins
ok - complete refuses the origin as its own captain-call inventory
ok - complete refuses an entry held for another origin and flags one with none recorded
ok - both body-decoding paths work without the allow_nonref default
ok - cleanup preserves every byte of a retained body's non-ASCII characters
ok - cleanup leaves a captain-held work item open with its deliverable, and only an answer closes it
ok - release and scout report retention distinguish deliveries from rejected merge answers
ok - an interrupted cleanup keeps the captain call recoverable and session start retains it
ok - an answer before cleanup replay preserves the retained report
ok - an answer before cleanup replay notes the retained Gerrit change
ok - an unusable pending-close record names its reason instead of a bare refusal
ok - an unsupported relocated report does not wedge the captain's answer
ok - cleanup retains captain calls in the configured backlog
ok - cleanup keeps a captain-held Gerrit task open and records its change URL
ok - merge approval releases before zero-retention cleanup records completion
ok - the PR merge entrypoint refuses a captain-held task before merging
ok - the local merge entrypoint refuses a captain-held task before merging
ok - the PR merge entrypoint separates an unreadable authority record from an absent one
ok - the local merge entrypoint separates an unreadable authority record from an absent one
ok - merge entrypoints reject unsafe identities and absent state before locking
ok - merge entrypoints refuse a replacement incarnation after waiting for cleanup
ok - merge entrypoints own task state before forced cleanup can retire it
ok - a released merge passes the guarded entrypoint and remains recently landed
ok - cleanup refuses a ship row when its captain hold cannot be read
ok - an answered captain call archived by Done retention still satisfies the completion gate
mise ERROR node is not a valid shim. This likely means you uninstalled a tool and the shim does not point to anything. Run `mise use <TOOL>` to reinstall the tool.
mise ERROR Version: 2026.11.0 linux-x64 (2026-11-03)
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
not ok - could not create the user-config origin
FM_TEST_END 2026-11-24T13:44:41Z tests/fm-captain-hold-teardown.test.sh exit=1 duration_ms=1473323 gate_skip=false
FM_TEST_BEGIN 2026-11-24T13:44:41Z tests/fm-captain-hold-lifecycle.test.sh family=pure-contract-unit expected_gate_skip=none
ok - marked hold reasons round-trip through public reads, fleet, startup, and return without changing other fields
ok - report-only unresolved captain call is reproduced and completion refuses before loss
ok - the completion gate attests captain-held inventory and transfers open status decisions
ok - answer records the captain's words, closes idempotently, and releases routed work
ok - release frees held work with the captain's words recorded and the body preserved
ok - a captain hold is released only in an attended session: away refuses, quiet and no record release
ok - a release waiting on the task lock rechecks the away posture under the lock
ok - captain holds become visible only after their hold-set timestamp is durable
ok - an interrupted answer preserves its hold age until close retry
ok - a deferred captain call leaves the live Captain's Call until its date and stays answerable
ok - a keyed defer records the answer, dates the hold, and never restarts the call's age
ok - direct and keyed defer writes refuse past and same-day dates without mutation, then accept tomorrow
Evidence: Host node/mise shim behavior under an alternate HOME

Source: Host node/mise shim behavior under an alternate HOME

$ command -v tasks-axi node
~/.local/bin/tasks-axi
~/.local/bin/node
$ HOME=<empty fixture home> node --version
mise by @jdx – installing 1 tool
mise █████████████░░░ 0/1 · 3.0s
  [email protected]  extracting  3.0s
mise [email protected] v26.13.1
mise [email protected] 11.20.0
mise ✓ [email protected]  4.5s  node-v26.13.1-linux-x64.tar.gz
mise ████████████████ 1/1 · installed 1 tool in 4.5s
v26.13.1
[exit=0]
$ node --version (operator HOME)
v26.13.0
[exit=0]
  • Outcome: ⚠️ 1 info across 1 run (42m34s)

Pipeline

Updates from git push no-mistakes

... (3 earlier update rounds omitted to keep the PR body within GitHub's 65536-char limit; full history is in the run log.)

⚠️ **Review** - 1 warning

🔧 Fix applied.
3 issues (2 warnings, 1 info) still open:

  • ⚠️ bin/fm-ci-budget-warn.sh:32 - Upstream calibrated its 20-minute budget warning (BUDGET_MS=1200000) for its own 15-minute packing target (PORTABLE_SERIAL_MAX_WEIGHT_MS=900000). The merge takes the warning but keeps the fork's packing ceilings, which sit at or above that threshold: PORTABLE_SERIAL_MAX_WEIGHT_MS=1200000 (bin/fm-test-run.sh:272) and PORTABLE_POOL_MAX_WEIGHT_MS=1400000 (bin/fm-test-run.sh:262). bin/fm-test-run.sh --estimate-ms --lane portable-serial-Kof13 currently models every one of the 13 serial shards at 1179688–1179723 ms, which is 98.3% of the warning threshold. So 'warn when a lane exceeds the healthy 20-minute budget' will fire on ordinary runs, and any pool packing the runner accepts between 1.2M and 1.4M ms will warn by design. The warning stops being a regression signal and becomes routine noise. The merge commit does not list this as a divergence. The other places that carry the same 20-minute assumption: .github/workflows/ci.yml:560 (step name), docs/fm-test-portable-shards.md:148, docs/scripts.md:55. The fix is an owner choice: set a fork-specific threshold above the fork's packing ceilings, or accept the noise knowingly.
  • ⚠️ .github/workflows/ci.yml:248 - The intent says: 'Anything where the right side is not obvious is a question for the owner, not a call for the worker: list it and stop on that file.' On the core of upstream ci: pack every job to ~15 min from measured timings, warn at 20 min, faster lint kunchenguid/firstmate#8431 the merge kept the fork's side: the fork stays at 13 serial shards with a 1200 s packing budget and a single four-worker pool (fm-test-run.sh:242,272; ci.yml serial matrix 1..13). It does not take upstream's 19 serial shards at a 900 s / ~15-minute target, its two --jobs 2 parallel lanes, the committed tests/fm-test-ci-timings.tsv hint store, or the singleton-overflow packing rule. Those were the main purpose of upstream's commit ('pack every job to ~15 min'), and the choice changes CI wall time and runner count for every fork PR. The merge commit records the decision but nothing shows the owner approved it. Confirm with the owner that the fork's CI layout should win over upstream's 15-minute packing before merging.
  • ℹ️ bin/fm-ci-budget-warn.sh:20 - Round 1's fix added a budget derivation to the header, and one step of its arithmetic is off. The header says '1400 s x 1.513 = 2119 s'. 1400 × 1.513 is 2118.2, and the unrounded factor 1785/1180 ≈ 1.5127 gives about 2117.8. Rounding up to 2120 s still holds, so the threshold and the tests are unaffected; only the stated intermediate value is wrong. Fix: write '≈ 2118 s, rounded up to 2120 s'. No sibling sites: docs/fm-test-portable-shards.md:148-149 quotes only the final 2120 s and the measured 1785/1510 s, which match the header.

🔧 Fix applied.
1 warning still open:

  • ⚠️ .github/workflows/ci.yml:248 - The intent says: 'Anything where the right side is not obvious is a question for the owner, not a call for the worker: list it and stop on that file.' On the core of upstream ci: pack every job to ~15 min from measured timings, warn at 20 min, faster lint kunchenguid/firstmate#8431 the merge kept the fork's side: the fork stays at 13 serial shards with a 1200 s packing budget and a single four-worker pool (fm-test-run.sh:242,272; ci.yml serial matrix 1..13). It does not take upstream's 19 serial shards at a 900 s / ~15-minute target, its two --jobs 2 parallel lanes, the committed tests/fm-test-ci-timings.tsv hint store, or the singleton-overflow packing rule. Those were the main purpose of upstream's commit ('pack every job to ~15 min'), and the choice changes CI wall time and runner count for every fork PR. The merge commit records the decision but nothing shows the owner approved it. Confirm with the owner that the fork's CI layout should win over upstream's 15-minute packing before merging.
⚠️ **Test** - 1 info
  • ℹ️ tests/fm-captain-hold-teardown.test.sh:2187 - On this host, the user-config archive test in the split teardown suite fails because tasks-axi runs through a mise node shim, and that shim breaks ('node is not a valid shim') when the test overrides HOME with a fixture dir. The test body is unchanged from the base, so this is host-environmental and not caused by the merge. CI or a host whose node does not depend on HOME should pass it.
  • Live validation: ✅ go - 10 of 14 scenarios driven live against the product
Scenario Result Live Evidence
CI budget warning fires only at or above the fork budgets (lane 2120 s, lint 1200 s); real aggregate from hand-set lane durations and real lint telemetry with edited wall_seconds ✅ pass live budget-warn-transcript.txt
Budget warning never fails the job on missing or broken inputs, rejects bad usage, and stays silent on fully real healthy timings ✅ pass live budget-warn-transcript.txt, budget-warn-edge.txt, budget-warn-real-inputs.txt
fm-lint lints only changed files for a non-sourced edit, and upgrades to the full canonical set when a sourced helper is edited or renamed or a lint-definition file changes (disposable clone, --list-f… ✅ pass live lint-changed-selection.txt
fm-lint analysis posture: local default drops source following; --changed keeps full source-aware analysis; empty partition is a successful no-op ✅ pass live lint-changed-run.txt
Pinned installers reuse a cached destination without downloading, and re-download and re-verify when the cached binary is stale ✅ pass live installer-cache-reuse.txt
CI lint step passes --changed only on pull requests, and the timing-aggregate budget step runs after lint (step bodies extracted from ci.yml and executed under bash) ✅ pass live ci-workflow-steps.txt
Test runner partitions the split suites completely: coverage proof, families, 13 serial shards under the 1200 s ceiling, changed-path selection for the new budget script ✅ pass live runner-partition.txt, runner-changed-selection.txt
Split suite tests/fm-watch-triage-busy.test.sh runs green on its own ✅ pass live watch-triage-split.log (FM_TEST_END ... exit=0, 41/41 ok)
Split suite tests/fm-captain-hold-lifecycle.test.sh runs green after the teardown tests moved out ✅ pass live captain-hold-lifecycle.log (43/43 ok, exit=0)
Split suite tests/fm-captain-hold-teardown.test.sh: the 28 moved tests other than the user-config archive test pass in the new file with tests/captain-hold-helpers.sh ✅ pass live captain-hold-split.log
captain-hold teardown: 'archived answer in a user-configured archive satisfies the gate' test ⏸️ untested no It failed with 'could not create the user-config origin', right after 'mise ERROR node is not a valid shim'. The test sets HOME to a fixture dir, and this host's tasks-axi runs through a mise node shi…
Parent tests/fm-watch-triage.test.sh runs green after the busy tests moved out ⏸️ untested no Driven live and 78 of 89 tests passed with no failures. The 30-minute background cap stopped it on a host at about 2.8x its hint under load. A rerun did not fit the remaining turn budget, so the remai…
tests/fm-ci-workflow.test.sh (YAML semantic checks for the cache, --changed and budget steps) ⏸️ untested no ruby is not on PATH and there is no repository-local copy, so this suite cannot run here. I covered its claims by running the extracted step bodies (see the CI step scenario). Install ruby or rely on…
GitHub-side behaviour: event expression evaluation, actions/cache restore keyed by installer hash, lint telemetry artifact download into the aggregate job, annotation rendering ⏸️ untested no This needs a real GitHub Actions run on twilwa/firstmate, which belongs to the outer CI phase and is outside this test phase's authority. Locally I checked only the step bodies and parsed structure.
  • bin/fm-ci-budget-warn.sh &lt;aggregate&gt; &lt;lint-dir&gt; with GITHUB_ACTIONS=true and unset, against an aggregate built by real bin/fm-test-run.sh --aggregate-json from lanes with hand-set durations of 2200000, 2120000, 2119999, 1785000 and 1400000 ms, and real fm-lint.sh --telemetry TSVs with wall_seconds edited to 1250, 1200, 1199.9 and 1021, plus a .roots.tsv sidecar
  • bin/fm-ci-budget-warn.sh edge cases: missing aggregate, unparseable aggregate, nonexistent lint dir, no args, unknown flag, extra positional
  • bin/fm-ci-budget-warn.sh on a fully real aggregate (real suite timing JSON) plus real lint telemetry: no warnings, exit 0
  • bin/fm-lint.sh --list-files / --changed --list-files / --changed --partition 1of4 --list-files in a disposable clone across five branch states: non-sourced edit, sourced helper edit, sourced helper rename, lint-definition (installer) edit, and the main branch
  • Real bin/fm-lint.sh runs with FM_LINT_JOBS=1: local default (source following disabled), --changed (full extended analysis), --changed --partition 1of4 --telemetry, --changed --partition 2of4 (empty partition no-op)
  • bin/fm-install-shellcheck.sh / bin/fm-install-actionlint.sh into a temp destination that already holds the pinned binaries (cache hit) and into one holding stale fake versions (real re-download and checksum verification from GitHub releases), then a second run
  • Executed the real Lint canonical partition and budget-warn run: bodies extracted from .github/workflows/ci.yml under bash, with FM_LINT_CHANGED=1/0, a stub fm-lint.sh recording argv, and a job-shaped RUNNER_TEMP
  • bin/fm-test-run.sh --check-coverage, --list --family, --estimate-ms --lane portable-serial-Kof13 for all 13 shards, --list-scheduled --family watcher-wake-lock
  • bin/fm-test-run.sh --changed --base origin/main --list in a clone whose only change is bin/fm-ci-budget-warn.sh
  • bin/fm-test-run.sh tests/fm-watch-triage-busy.test.sh tests/fm-watch-triage.test.sh --jobs 1 --json ...
  • bin/fm-test-run.sh tests/fm-captain-hold-teardown.test.sh tests/fm-captain-hold-lifecycle.test.sh --jobs 1 --json ..., then bin/fm-test-run.sh tests/fm-captain-hold-lifecycle.test.sh on its own, then a time-capped teardown rerun
  • HOME=&lt;empty dir&gt; node --version vs operator HOME, to diagnose the teardown failure
⚠️ **Document** - 1 info
  • ℹ️ tests/fm-procevent.test.sh:2445 - A few comments in test files that came from upstream still point at the parent watch-triage suite for cases that moved to tests/fm-watch-triage-busy.test.sh. tests/fm-procevent.test.sh:2445 says 'tests/fm-watch-triage.test.sh proves delivery', and procevent delivery is now in the busy suite. The opening paragraph of tests/fm-watch-triage.test.sh (lines 10-13) still lists the heartbeat backstop and afk coherence, but its own line 17 says those cases live in the busy suite. Upstream did not update them either, so I left them alone: editing them would add fork-only changes to upstream test files for comment-only gains. The project docs have been repointed. Fix these upstream-side or in a later sync if wanted.
⚠️ **Lint** - 1 warning
  • ⚠️ linter found issues (exit code 1)
✅ **Push** - passed

✅ No issues found.

kunchenguid and others added 6 commits November 24, 2026 01:26
Upstream adds one commit since the last sync (427056c): kunchenguid#8431, which
repacks CI to 19 serial shards at a 15-minute target, two --jobs 2
parallel lanes and a committed timings TSV, and adds PR changed-file
lint, cached pinned tool installs, a 20-minute budget warning and two
test-file splits.

Keep the fork's CI layout (one four-worker pool, 13 serial shards at
the 1200 s packing budget, 1500 s per-file bound and 50-minute portable
tier, folded guard jobs, embedded hint tables, measured lint packing and
today's required-check names). Take upstream's layout-independent parts:
fm-lint.sh --changed on pull requests with its full-set upgrades, the
actions/cache of pinned ShellCheck/actionlint with installers that skip
a present pin, bin/fm-ci-budget-warn.sh in the timing aggregate, and
the captain-hold-teardown and watch-triage-busy splits placed in the
serial lane. The TSV hint store and the singleton-overflow packing rule
are not adopted.

The split files carry the fork's test changes into their new homes:
run_pr_merge's expected-head pin and public_show in
captain-hold-helpers.sh, the busy and exit-picker wedge-cap fixtures and
the FM_WATCH_TRACE export in fm-watch-triage-busy.test.sh. Their hints
divide the fork's measured parents by upstream's provisional shares.
…he split hints

Splitting tests/fm-watch-triage.test.sh into it and fm-watch-triage-busy
drops its hint to 395300 ms, so fm-watch-triage-wedge-defer (526980 ms)
is now the family's longest member and leads --list-scheduled.
@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Sorry @twilwa, your pull request is larger than the review limit of 150,000 diff characters

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T15:45:58.278545Z a91b196 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@twilwa

twilwa commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Review disposition for head a91b196: no review findings to address. The size-limit notice is informational and the Codex review reported no findings. No-mistakes run 01M86SW7FGQ12PY31TF0K2ETXC completed on this head with claude-opus-5-5; all required checks are green, including the macOS Bash snapshot job on its rerun.

@twilwa
twilwa merged commit 7a31641 into main Nov 25, 2026
181 of 188 checks passed
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.

2 participants