Skip to content

feat(bin): publish lane capacity facts with beat pressure and keyed limits - #6983

Merged
kunchenguid merged 10 commits into
kunchenguid:mainfrom
Moshik21:fm/router-p1-capacity-facts
Oct 23, 2026
Merged

kunchenguid merged 10 commits into
kunchenguid:mainfrom
Moshik21:fm/router-p1-capacity-facts

Conversation

@Moshik21

@Moshik21 Moshik21 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What Changed

  • bin/fm-capacity.sh: config/lane-capacity now takes the cap on its first line plus optional keyed lines (min-avail-gb, min-disk-gb, max-load1, pressure-file, reserve-flag, captain-idle, quota-provider). A file holding only the integer keeps its old meaning. An unknown key, a repeated single key or a malformed value makes the whole file invalid. The script reads lookout.beat 1.x pressure files and falls back to host probes when a beat is missing, stale or unreadable. New --publish writes state/lane-capacity.json with lanes, cap and limits, pressure, boots and an admission verdict. New --admit is an advisory check that exits 0 when the verdict admits and 75 with reasons on stderr when it does not.
  • bin/fm-watch.sh: while config/lane-capacity exists, the watcher runs fm-capacity.sh --publish detached at most every 30 seconds. With the file absent it costs one file test. bin/fm-test-run.sh now maps bin/fm-capacity.sh to fm-capacity.test.sh and puts that test in a portable family.
  • docs/configuration.md, docs/scripts.md and the operational-home-layout skill document the keyed file format, the published state/lane-capacity.json, and --publish / --admit. tests/fm-capacity.test.sh is extended to cover the new behavior.

Risk Assessment

✅ Low: The change is an opt-in, best-effort publisher whose publish step always exits 0 and which does nothing without config/lane-capacity, and I found no concrete wrong-result path in the parser, pressure logic, verdict or watcher wiring.

Testing

I ran the existing 17-case fm-capacity test, which passes. I then drove the real bin/fm-capacity.sh in a throwaway FM_HOME across report, --json, --publish and --admit. With no config, the report has no constrained advice, --admit exits 0 and --publish writes nothing. With a cap of 3 and two lanes plus a secondmate, the report shows one open lane, --json carries the fm-lane-capacity.v1 verdict, and --admit exits 0. At the cap, --admit exits 75 with a factual deferred: line that no longer claims a lane was not launched or a backlog item stays queued. --publish writes a private (mode 0600) file and is throttled on a second call. A keyed min-disk-gb limit plus a present reserve flag name both reasons in the report, --json and --admit (exit 75). A malformed config exits 1 with its line number, and bad flags exit 2. I did not drive the watcher publish live. It is covered only by the existing fm-capacity test case ("the watcher publishes lane facts only for an opted-in home"), which passed, but that is an automated test and not a live run.

  • Live validation: ✅ go - 6 of 7 scenarios driven live against the product
Scenario Result Live Evidence
With no config/lane-capacity, the report prints counts and host figures with reason=no-target, --admit exits 0, and --publish writes nothing ✅ pass live fm-capacity-live.log section 1
With a cap of 3 and two lanes plus one secondmate, the report shows 1 free lane, --json carries the v1 verdict, and --admit exits 0 ✅ pass live fm-capacity-live.log section 2
At the cap, --admit exits 75 with a factual deferral line that makes no claim about launching or queueing ✅ pass live fm-capacity-live.log section 3; the claim grep over bin/fm-capacity.sh and docs/*.md found nothing
--publish writes a 0600 lane-capacity.json with lane, cap, verdict and project facts, and a second call inside the interval is throttled ✅ pass live fm-capacity-live.log section 4
A keyed min-disk-gb limit and a present reserve flag close all lanes, and both are named in the report, --json and --admit ✅ pass live fm-capacity-live.log section 5
A malformed config reports target=invalid and exits 1 (report and --admit), and unknown or combined flags exit 2 ✅ pass live fm-capacity-live.log sections 6 and 7
The watcher publishes lane facts only for an opted-in home ⏸️ untested no The prior payload did not drive a running fm-watch.sh loop, so it established no live result for this scenario. It is covered only by the existing automated test case 'the watcher publishes lane facts…
Evidence: Existing fm-capacity test run

Source: Existing fm-capacity test run

ok - absent config/lane-capacity reports counts and no target
ok - the Constrained line is printed only when config/lane-capacity exists
ok - a target yields open lanes, full, and never a negative count
ok - cpu, memory, and disk pressure close every lane and are named
ok - unavailable probes print unknown and do not constrain
ok - a malformed target is reported, not guessed
ok - keyed config lines parse, and unknown, repeated, or malformed lines are refused
ok - a fresh beat replaces probes, and its warn level closes lanes with its reason
ok - late beats count, and stale, missing, malformed, or foreign beats fall back to probes
ok - several pressure files: worst level wins, first supplies memory, every disk counts
ok - a beat with missing fields keeps its fields aligned and limits fall back to probes
ok - the lane footprint memory rule applies only with min-avail-gb
ok - limits close lanes with named reasons, and --admit exits 0, 75, or 1
ok - publish is opt-in, private, throttled, records boots, and publishes an invalid config as invalid
ok - captain presence and quota runway publish derived words only, unknown when unreadable
ok - the watcher publishes lane facts only for an opted-in home
ok - real host probes produce a well-formed report
# all fm-capacity tests passed
Evidence: Live CLI transcript of fm-capacity.sh modes

Source: Live CLI transcript of fm-capacity.sh modes

## 1. no config: report, no Constrained line, admit 0, publish writes nothing
capacity: free_lanes=unknown reason=no-target lanes=0 target=none secondmates=0 load1=6.77 cores=8 mem_free_pct=60 disk_free_mb=100376
Lanes: 0 running, no target set (config/lane-capacity absent).
Host: load 6.77 on 8 cores, memory free 60%, disk free 100376 MB.
rc=0
admit rc=0
publish rc=0

## 2. config cap 3, two lanes + one secondmate + pr
capacity: free_lanes=1 reason=ok lanes=2 target=3 secondmates=1 load1=6.77 cores=8 mem_free_pct=60 disk_free_mb=100376
Lanes: 2 running of 3 target, 1 open.
Secondmates: 1 (hold no lane).
Host: load 6.77 on 8 cores, memory free 60%, disk free 100376 MB.
rc=0
{
  "schema": "fm-lane-capacity.v1",
  "lanes": {
    "count": 2,
    "pr_ready": 1,
    "ids": [
      "a",
      "b"
    ]
  },
  "cap": {
    "target": 3,
    "status": "ok"
  },
  "verdict": {
    "admit": true,
    "free_lanes": 1,
    "reasons": []
  },
  "limits": {
    "min_avail_gb": null,
    "min_disk_gb": null,
    "max_load1": null
  },
  "reserve": {
    "flag": "not-configured",
    "label": null
  },
  "captain": "not-configured"
}
admit rc=0

## 3. at cap -> admit 75
deferred: lane capacity of this home (/var/folders/zg/kfkfp61x11v1d1tn83t6r5x40000gn/T//fm-cap-home.pfj5cX/config/lane-capacity) does not admit another lane: full: 3 of 3 lanes
admit rc=75
capacity: free_lanes=0 reason=full lanes=3 target=3 secondmates=1 load1=6.77 cores=8 mem_free_pct=60 disk_free_mb=100376

## 4. publish
rc=0
-rw-------@ 1 konnermoshier  staff  1082 Oct 22 16:02 /var/folders/zg/kfkfp61x11v1d1tn83t6r5x40000gn/T//fm-cap-home.pfj5cX/state/lane-capacity.json
{"schema":"fm-lane-capacity.v1","home":"main","lanes":{"count":3,"pr_ready":1,"ids":["a","b","c"]},"cap":{"target":3,"status":"ok"},"verdict":{"admit":false,"free_lanes":0,"reasons":["full: 3 of 3 lanes"]},"projects":["demo"]}
## 4b. throttle
rc=0

## 5. keyed limits + reserve flag
capacity: free_lanes=0 reason=disk,reserve lanes=3 target=3 secondmates=1 load1=6.77 cores=8 mem_free_pct=60 disk_free_mb=100376
Lanes: 3 running of 3 target, 0 open.
Secondmates: 1 (hold no lane).
deferred: lane capacity of this home (/var/folders/zg/kfkfp61x11v1d1tn83t6r5x40000gn/T//fm-cap-home.pfj5cX/config/lane-capacity) does not admit another lane: disk: home 98.0 GB free, under 99999999 GB; captain reserve: reserved
admit rc=75
{"admit":false,"free_lanes":0,"reasons":["disk: home 98.0 GB free, under 99999999 GB","captain reserve: reserved"]}
{"flag":"present","label":"reserved"}

## 6. malformed config
capacity: free_lanes=unknown reason=invalid-target lanes=3 target=invalid secondmates=1 load1=6.77 cores=8 mem_free_pct=60 disk_free_mb=100376
Lanes: 3 running, target unreadable (config/lane-capacity: line 1: the first line must be the lane cap, one non-negative integer).
Secondmates: 1 (hold no lane).
Host: load 6.77 on 8 cores, memory free 60%, disk free 100376 MB.
fm-capacity: config/lane-capacity: line 1: the first line must be the lane cap, one non-negative integer
rc=1
fm-capacity: config/lane-capacity: line 1: the first line must be the lane cap, one non-negative integer
admit rc=1

## 7. usage
usage: fm-capacity.sh [--json|--publish|--admit|--help]
rc=2
usage: fm-capacity.sh [--json|--publish|--admit|--help]
rc=2

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 6 of 7 scenarios driven live against the product
Scenario Result Live Evidence
With no config/lane-capacity, the report prints counts and host figures with reason=no-target, --admit exits 0, and --publish writes nothing ✅ pass live fm-capacity-live.log section 1
With a cap of 3 and two lanes plus one secondmate, the report shows 1 free lane, --json carries the v1 verdict, and --admit exits 0 ✅ pass live fm-capacity-live.log section 2
At the cap, --admit exits 75 with a factual deferral line that makes no claim about launching or queueing ✅ pass live fm-capacity-live.log section 3; the claim grep over bin/fm-capacity.sh and docs/*.md found nothing
--publish writes a 0600 lane-capacity.json with lane, cap, verdict and project facts, and a second call inside the interval is throttled ✅ pass live fm-capacity-live.log section 4
A keyed min-disk-gb limit and a present reserve flag close all lanes, and both are named in the report, --json and --admit ✅ pass live fm-capacity-live.log section 5
A malformed config reports target=invalid and exits 1 (report and --admit), and unknown or combined flags exit 2 ✅ pass live fm-capacity-live.log sections 6 and 7
The watcher publishes lane facts only for an opted-in home ⏸️ untested no The prior payload did not drive a running fm-watch.sh loop, so it established no live result for this scenario. It is covered only by the existing automated test case 'the watcher publishes lane facts…
  • bash tests/fm-capacity.test.sh (17 ok, 0 not ok)
  • Live run of bin/fm-capacity.sh (report, --json, --publish, --admit, bad flags) against a disposable FM_HOME, with and without config/lane-capacity, at and under the cap, with keyed limits and a reserve flag, and with a malformed config
  • Checked that the --admit deferral text and docs/configuration.md no longer claim a lane was not launched or a backlog item stays queued
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Verification follow-up (2026-10-23)

Head: 5b8330d697afb5440b7248ca782f86a98b6cad42. Upstream baseline: 699999151799e09dc6c76e4672bf4f5e0ff19908.

GitHub CI passed all 19 checks at this head, including the real-Herdr job and both no-mistakes attestation events. CI run.

The local non-Herdr selection was stopped by request after 108 of 257 scripts completed: 74 passed, 7 failed, and 27 reported capability skips. fm-lint.test.sh was interrupted; the remaining 148 scripts were not started. This is partial local evidence, not a full local-suite pass. CI supplies coverage for the unfinished selection and the 16 real-Herdr suites excluded from local execution to avoid local lifecycle operations.

Five failing scripts were then run once each, serially, in a clean checkout of the upstream baseline:

Script Baseline result Classification
fm-afk-return.test.sh Same evidence-publication assertion, exit 1 Pre-existing
fm-cursor-harness.test.sh Same ancestor-detection assertion, exit 1 Pre-existing
fm-gate-refuse.test.sh Same marked-lab-home refusal, exit 1 Pre-existing
fm-gotmp.test.sh Same teardown assertion, exit 1 Pre-existing
fm-bearings-board.test.sh Passed Original failure not reproduced; cause unclassified

Two additional failures were present in the partial run: fm-harness-precedence.test.sh and fm-herdr-groups.test.sh. They were outside the five authorized baseline reruns and remain unclassified. These local results do not establish a PR-caused regression. No code changes or new tests were made for this follow-up.

108 completed local scripts, including explicit capability skips
Script Local result
tests/fm-afk-contract.test.sh pass
tests/fm-afk-inject-e2e.test.sh capability skip
tests/fm-afk-pi-herdr-return-e2e.test.sh capability skip
tests/fm-afk-return.test.sh FAIL
tests/fm-agy-harness.test.sh pass
tests/fm-agy-signals-live-e2e.test.sh capability skip
tests/fm-arm-pretool-check.test.sh pass
tests/fm-ask-user-authority.test.sh pass
tests/fm-backend-cmux-smoke.test.sh capability skip
tests/fm-backend-cmux.test.sh pass
tests/fm-backend-herdr.test.sh pass
tests/fm-backend-orca.test.sh pass
tests/fm-backend-paseo-smoke.test.sh capability skip
tests/fm-backend-paseo.test.sh pass
tests/fm-backend-rex-composer-live-e2e.test.sh capability skip
tests/fm-backend-rex-eventwait-smoke.test.sh capability skip
tests/fm-backend-rex-smoke.test.sh capability skip
tests/fm-backend-rex.test.sh pass
tests/fm-backend-tmux-smoke.test.sh capability skip
tests/fm-backend-zellij-smoke.test.sh capability skip
tests/fm-backend-zellij.test.sh pass
tests/fm-backend.test.sh pass
tests/fm-backlog-atomicity.test.sh pass
tests/fm-backlog-handoff.test.sh pass
tests/fm-backlog-read-bound.test.sh pass
tests/fm-bearings-board-lavish-live-e2e.test.sh pass
tests/fm-bearings-board-render.test.sh pass
tests/fm-bearings-board.test.sh FAIL
tests/fm-bearings-snapshot.test.sh pass
tests/fm-bootstrap-network-parallel.test.sh pass
tests/fm-bootstrap.test.sh pass
tests/fm-branch-supervision.test.sh pass
tests/fm-brief.test.sh pass
tests/fm-busy-adapter-wiring.test.sh pass
tests/fm-busy-state.test.sh pass
tests/fm-calm-claude-mod-live-e2e.test.sh capability skip
tests/fm-calm-claude-mod-plugin.test.sh pass
tests/fm-calm-claude-mod.test.sh pass
tests/fm-calm-pi-extension.test.sh pass
tests/fm-calm-pi-queue-retention-live-e2e.test.sh capability skip
tests/fm-capacity.test.sh pass
tests/fm-captain-hold-lifecycle.test.sh pass
tests/fm-cd-pretool-check.test.sh pass
tests/fm-check-unregister.test.sh pass
tests/fm-ci-workflow.test.sh pass
tests/fm-classify-corr-token.test.sh pass
tests/fm-classify-decision-key.test.sh pass
tests/fm-claude-stop-autoarm-live-e2e.test.sh capability skip
tests/fm-claude-stop-autoarm.test.sh pass
tests/fm-claude-trust.test.sh pass
tests/fm-cmux-claude-composer-live-e2e.test.sh capability skip
tests/fm-codex-continuity-live-e2e.test.sh capability skip
tests/fm-codex-hook-layer-live-e2e.test.sh pass
tests/fm-commandcode-harness.test.sh pass
tests/fm-commandcode-signals-live-e2e.test.sh capability skip
tests/fm-composer-codex-idle-live-e2e.test.sh capability skip
tests/fm-composer-ghost.test.sh pass
tests/fm-composer-lib.test.sh pass
tests/fm-composer-matrix-live-e2e.test.sh capability skip
tests/fm-contributions.test.sh pass
tests/fm-control-relaunch.test.sh pass
tests/fm-control.test.sh pass
tests/fm-crew-state.test.sh pass
tests/fm-cursor-harness.test.sh FAIL
tests/fm-cursor-primary-live-e2e.test.sh capability skip
tests/fm-cursor-primary.test.sh pass
tests/fm-daemon.test.sh pass
tests/fm-devin-harness.test.sh pass
tests/fm-devin-signals-live-e2e.test.sh capability skip
tests/fm-dispatch-resolve.test.sh pass
tests/fm-documentation-audiences.test.sh pass
tests/fm-dod-lib.test.sh pass
tests/fm-ensure-agents-md.test.sh pass
tests/fm-extension-binding.test.sh pass
tests/fm-fleet-ledger.test.sh pass
tests/fm-fleet-snapshot-view.test.sh pass
tests/fm-fleet-sync.test.sh pass
tests/fm-forge-detect.test.sh pass
tests/fm-fork-free-helpers.test.sh pass
tests/fm-gate-refuse.test.sh FAIL
tests/fm-gemini-harness.test.sh pass
tests/fm-git-push-guard.test.sh pass
tests/fm-git-strip-ai-trailers.test.sh pass
tests/fm-gitignore-config.test.sh pass
tests/fm-gotmp.test.sh FAIL
tests/fm-grok-continuity-live-e2e.test.sh capability skip
tests/fm-grok-harness.test.sh pass
tests/fm-grok-stop-live-e2e.test.sh capability skip
tests/fm-guard-stale-banner.test.sh pass
tests/fm-harness-adapter-instructions-live-e2e.test.sh capability skip
tests/fm-harness-adapter-references.test.sh pass
tests/fm-harness-liveness-drift-live-e2e.test.sh capability skip
tests/fm-harness-precedence.test.sh FAIL
tests/fm-herdr-groups.test.sh FAIL
tests/fm-herdr-lab.test.sh pass
tests/fm-herdr-pi-stale-registration-live-e2e.test.sh pass
tests/fm-herdr-session-cleanup.test.sh pass
tests/fm-herdr-submit-confirm-live-e2e.test.sh capability skip
tests/fm-herdr-version-floor-live-e2e.test.sh pass
tests/fm-home-summary-refresh.test.sh pass
tests/fm-host-mirror-live-e2e.test.sh capability skip
tests/fm-host-mirror.test.sh pass
tests/fm-inactive-reconcile.test.sh pass
tests/fm-inbox.test.sh pass
tests/fm-jev-mem-guard.test.sh pass
tests/fm-kimi-harness.test.sh pass
tests/fm-launch-prompt-signals-live-e2e.test.sh capability skip
tests/fm-lint-workflows.test.sh pass
149 local scripts incomplete or not started; coverage left to CI
  • tests/fm-lint.test.sh - interrupted, no completed local result
  • tests/fm-live-gate.test.sh - not started locally
  • tests/fm-live-lab-up-mate.test.sh - not started locally
  • tests/fm-live-lab.test.sh - not started locally
  • tests/fm-mail-check.test.sh - not started locally
  • tests/fm-mail.test.sh - not started locally
  • tests/fm-muse-harness.test.sh - not started locally
  • tests/fm-muse-signals-live-e2e.test.sh - not started locally
  • tests/fm-nm-test-contract.test.sh - not started locally
  • tests/fm-no-mistakes-required.test.sh - not started locally
  • tests/fm-omp-harness.test.sh - not started locally
  • tests/fm-omp-primary-live-e2e.test.sh - not started locally
  • tests/fm-on.test.sh - not started locally
  • tests/fm-opencode-abs-cwd-rail-live-e2e.test.sh - not started locally
  • tests/fm-opencode-primary-live-e2e.test.sh - not started locally
  • tests/fm-operational-input.test.sh - not started locally
  • tests/fm-parent-channel-scan-exclusion.test.sh - not started locally
  • tests/fm-peek-remote.test.sh - not started locally
  • tests/fm-pending-reply.test.sh - not started locally
  • tests/fm-pi-branch-extension.test.sh - not started locally
  • tests/fm-pi-branch-live-e2e.test.sh - not started locally
  • tests/fm-pi-branch-responsiveness-live-e2e.test.sh - not started locally
  • tests/fm-pi-codex-native.test.sh - not started locally
  • tests/fm-pi-primary-live-e2e.test.sh - not started locally
  • tests/fm-pi-primary-types.test.sh - not started locally
  • tests/fm-pi-seeded-home-trust-live-e2e.test.sh - not started locally
  • tests/fm-pi-watch-extension.test.sh - not started locally
  • tests/fm-pi-windows-shell-invocation.test.sh - not started locally
  • tests/fm-pipeline-spend.test.sh - not started locally
  • tests/fm-polytoken-harness.test.sh - not started locally
  • tests/fm-polytoken-signals-live-e2e.test.sh - not started locally
  • tests/fm-pr-check-security.test.sh - not started locally
  • tests/fm-pr-health.test.sh - not started locally
  • tests/fm-pr-merge.test.sh - not started locally
  • tests/fm-pr-reviewers.test.sh - not started locally
  • tests/fm-pr-state-live-e2e.test.sh - not started locally
  • tests/fm-pr-state.test.sh - not started locally
  • tests/fm-procevent-quota.test.sh - not started locally
  • tests/fm-procevent-when.test.sh - not started locally
  • tests/fm-procevent.test.sh - not started locally
  • tests/fm-project-capacity.test.sh - not started locally
  • tests/fm-project-mode.test.sh - not started locally
  • tests/fm-project-origin.test.sh - not started locally
  • tests/fm-public-followup.test.sh - not started locally
  • tests/fm-quota-array-dispatch-live-e2e.test.sh - not started locally
  • tests/fm-quota-choose.test.sh - not started locally
  • tests/fm-remote-backlog-handoff.test.sh - not started locally
  • tests/fm-remote-delta-read.test.sh - not started locally
  • tests/fm-remote-doctor.test.sh - not started locally
  • tests/fm-remote-entrypoint.test.sh - not started locally
  • tests/fm-remote-herdr-guard.test.sh - not started locally
  • tests/fm-remote-job-claim-reap.test.sh - not started locally
  • tests/fm-remote-job-claim-retention.test.sh - not started locally
  • tests/fm-remote-job-launchagent.test.sh - not started locally
  • tests/fm-remote-job-orphan-reap.test.sh - not started locally
  • tests/fm-remote-job.test.sh - not started locally
  • tests/fm-remote-reply.test.sh - not started locally
  • tests/fm-remote-secondmate-lifecycle-e2e.test.sh - not started locally
  • tests/fm-remote-secondmate-parent-binding.test.sh - not started locally
  • tests/fm-remote-secondmate-relaunch.test.sh - not started locally
  • tests/fm-remote-secondmate-trace-context.test.sh - not started locally
  • tests/fm-remote-transport-lanes.test.sh - not started locally
  • tests/fm-review-check.test.sh - not started locally
  • tests/fm-review-diff.test.sh - not started locally
  • tests/fm-rovo-harness.test.sh - not started locally
  • tests/fm-rovo-signals-live-e2e.test.sh - not started locally
  • tests/fm-secondmate-busy-contract-live-e2e.test.sh - not started locally
  • tests/fm-secondmate-harness.test.sh - not started locally
  • tests/fm-secondmate-lifecycle-e2e.test.sh - not started locally
  • tests/fm-secondmate-liveness.test.sh - not started locally
  • tests/fm-secondmate-reconcile.test.sh - not started locally
  • tests/fm-secondmate-restart.test.sh - not started locally
  • tests/fm-secondmate-safety.test.sh - not started locally
  • tests/fm-secondmate-sync.test.sh - not started locally
  • tests/fm-self-repo-role.test.sh - not started locally
  • tests/fm-send-agy-confirm.test.sh - not started locally
  • tests/fm-send-inbox-doorbell-live-e2e.test.sh - not started locally
  • tests/fm-send-inbox.test.sh - not started locally
  • tests/fm-send-popup-settle.test.sh - not started locally
  • tests/fm-send-remote-delivery.test.sh - not started locally
  • tests/fm-send-resolve-key.test.sh - not started locally
  • tests/fm-send-secondmate-marker-herdr-e2e.test.sh - not started locally
  • tests/fm-send-secondmate-marker.test.sh - not started locally
  • tests/fm-send-settle.test.sh - not started locally
  • tests/fm-send-strict.test.sh - not started locally
  • tests/fm-session-lock-ancestry.test.sh - not started locally
  • tests/fm-session-start.test.sh - not started locally
  • tests/fm-sessionstart-hook-live-e2e.test.sh - not started locally
  • tests/fm-sessionstart-instruction-refresh-live-e2e.test.sh - not started locally
  • tests/fm-sessionstart-nudge.test.sh - not started locally
  • tests/fm-shared-captain-inheritance.test.sh - not started locally
  • tests/fm-spawn-batch.test.sh - not started locally
  • tests/fm-spawn-compact-adviser-disable-remote.test.sh - not started locally
  • tests/fm-spawn-compact-adviser-disable.test.sh - not started locally
  • tests/fm-spawn-dispatch-profile.test.sh - not started locally
  • tests/fm-spawn-external-review.test.sh - not started locally
  • tests/fm-spawn-orca-worktree.test.sh - not started locally
  • tests/fm-spawn-pool-base-freshen.test.sh - not started locally
  • tests/fm-spawn-worktree-settle.test.sh - not started locally
  • tests/fm-startup-growth-check.test.sh - not started locally
  • tests/fm-startup-memory-budget.test.sh - not started locally
  • tests/fm-startup-network.test.sh - not started locally
  • tests/fm-stat-shadowing.test.sh - not started locally
  • tests/fm-stow-cascade.test.sh - not started locally
  • tests/fm-subagent-pretool-check.test.sh - not started locally
  • tests/fm-supervision-events.test.sh - not started locally
  • tests/fm-supervision-host-attended-live-e2e.test.sh - not started locally
  • tests/fm-supervision-host-live-e2e.test.sh - not started locally
  • tests/fm-supervision-host.test.sh - not started locally
  • tests/fm-supervision-instructions.test.sh - not started locally
  • tests/fm-tangle-guard.test.sh - not started locally
  • tests/fm-task-delivery.test.sh - not started locally
  • tests/fm-task-inbox.test.sh - not started locally
  • tests/fm-tasks-axi.test.sh - not started locally
  • tests/fm-teardown-endpoint-safety.test.sh - not started locally
  • tests/fm-teardown.test.sh - not started locally
  • tests/fm-test-fixture-cleanup.test.sh - not started locally
  • tests/fm-test-fixtures.test.sh - not started locally
  • tests/fm-test-isolation-proof.test.sh - not started locally
  • tests/fm-test-run.test.sh - not started locally
  • tests/fm-timeout-lib.test.sh - not started locally
  • tests/fm-tmux-agent-liveness.test.sh - not started locally
  • tests/fm-tmux-submit-busy.test.sh - not started locally
  • tests/fm-tool-update-check.test.sh - not started locally
  • tests/fm-trace-context-lib.test.sh - not started locally
  • tests/fm-trace-context-spawn.test.sh - not started locally
  • tests/fm-transition-lib.test.sh - not started locally
  • tests/fm-turnend-foreign-owner-arm-fix.test.sh - not started locally
  • tests/fm-turnend-guard.test.sh - not started locally
  • tests/fm-update.test.sh - not started locally
  • tests/fm-vendor-auth-probe.test.sh - not started locally
  • tests/fm-voice-relay.test.sh - not started locally
  • tests/fm-wake-daemon-lifecycle-e2e.test.sh - not started locally
  • tests/fm-wake-drain-open-decisions-cursor.test.sh - not started locally
  • tests/fm-wake-drain-open-decisions.test.sh - not started locally
  • tests/fm-wake-drain-outcome-backstop.test.sh - not started locally
  • tests/fm-wake-drain-unread-status.test.sh - not started locally
  • tests/fm-wake-queue.test.sh - not started locally
  • tests/fm-watch-arm.test.sh - not started locally
  • tests/fm-watch-checkpoint.test.sh - not started locally
  • tests/fm-watch-recovery-loop.test.sh - not started locally
  • tests/fm-watch-triage.test.sh - not started locally
  • tests/fm-watch-wedge-cap-live.test.sh - not started locally
  • tests/fm-watch-wedge-cap-unconfigured-parity.test.sh - not started locally
  • tests/fm-watch-wedge-cap.test.sh - not started locally
  • tests/fm-watcher-lock.test.sh - not started locally
  • tests/fm-worker-account-live-e2e.test.sh - not started locally
  • tests/fm-worker-account.test.sh - not started locally
  • tests/fm-x-mode.test.sh - not started locally
16 real-Herdr suites assigned to passing same-head CI

Passing Herdr CI job.

  • 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

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @Moshik21. This is a careful piece of work. Publishing is gated on config/lane-capacity, the document is 0600 and redacted, and the 16-case test covers the beat edge cases.

I compared head 7276432d with main fb75c1f9. This PR contains all of #6973's commits plus PR A. I'm treating the stack (#6973 → #6983 → #6984) as one family, and at most one layer lands at a time. #6973 has to land first, and then this branch should be rebased so the diff is only PR A.

Contract-class: new-default. It inherits #6973's unconfigured path, where the AGENTS.md pointer plus the unconfigured "Constrained: cpu - hold new dispatch" line means a new default dispatch hold (details on #6973). The watcher --publish arm, the keyed limits, captain-idle and quota-provider are opt-in by themselves.

VISION.md, rule by rule

  • One captain, one interface: aligns. Nothing captain-facing.
  • Authority explicit: aligns for the publishing. The inherited unconfigured hold is new-default.
  • Scripts/agents: aligns.
  • Restart a non-event: aligns. The atomic write is throttled.
  • Delegation with a spine: cannot tell. No attestation yet.
  • Fleet outlives any vendor: cannot tell. pressure-file binds to the external lookout.beat 1.x schema, which isn't defined in this repo.
  • Scope: cannot tell. It's the first step of a placement/admission router (PR C enforce later), with a published document nothing in-tree reads yet, next to the existing config/project-capacity. That's a product-scope call for Kun.

CI: I reviewed the diff first (no workflow, secret or exfiltration surface; the only network use is opt-in quota-axi, capped at 5 s). Then I approved CI 38016656724 and Require no-mistakes 38017043112.

Waiting on you, the author: the body has no no-mistakes attestation, so "PR must be raised via no-mistakes" will fail. When you have a moment, please push it through git push no-mistakes (ideally after #6973 lands and you rebase). Once it's green, it goes to Kun for a merge-or-leave and scope decision. It won't auto-merge.

@Moshik21
Moshik21 force-pushed the fm/router-p1-capacity-facts branch from 7276432 to 6de19d7 Compare October 20, 2026 19:11
@Moshik21 Moshik21 changed the title feat(bin): add fm-capacity lane report with opt-in published capacity facts feat(bin): publish lane capacity facts with beat pressure and keyed limits Oct 20, 2026
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @Moshik21 for re-raising this with a structured attestation and the ioreg stub fix.

Status: waiting on you for the rebase. Once it's mergeable and CI is green, this can land as opt-in in stack order.

@Moshik21

Copy link
Copy Markdown
Contributor Author

Please land #6973 first, then #6983, then #6984. Keep all three open; they are separate reviewed units. The first rebase is pushed through no-mistakes and its attestation check passes. The remaining two rebases are still pending.

@Moshik21
Moshik21 force-pushed the fm/router-p1-capacity-facts branch from 6de19d7 to a2d7d3c