Skip to content

ci: rebalance portable test groups and enforce a packing budget - #6192

Merged
kunchenguid merged 3 commits into
mainfrom
fm/fm-ci-portable-group-budget-r1
Sep 30, 2026
Merged

kunchenguid merged 3 commits into
mainfrom
fm/fm-ci-portable-group-budget-r1

Conversation

@kunchenguid

@kunchenguid kunchenguid commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Intent

but we should separately figure out how to avoid the timeout - get an astra crewmate on this

Context: the "Behavior portable serial 5" CI group keeps hitting its 30-minute job limit on main and on PRs. Example: PR #6154 job 109724497867 - 13 test files passed, tests/fm-supervision-host.test.sh alone took 1034 s, then tests/fm-wake-daemon-lifecycle-e2e.test.sh was cut off. Main runs 36664663190 (failure) and 36658498535 (cancelled) failed on serial 5 alone. The goal is to make the portable behavior groups reliably finish within their limit with real margin, fixing the cause - how tests are distributed across groups and why individual files are so slow - rather than raising the timeout, adding retries, or skipping tests. Reproduce from CI timing data first, and coordinate with the existing slow-test work behind PR #6179 so the two do not collide (fold it in if that is cleaner).

What Changed

  • Refresh portable timing hints from five Ubuntu CI runs, rebalance parallel groups and derived serial shards, and increase the unmeasured-script fallback weight.
  • Make the coverage guard report and enforce a 20-minute modeled serial-shard budget, with exact-boundary regression coverage; leave execution timeouts unchanged.
  • Shorten unrelated home-summary waits in two session-start fixtures and document timing provenance, the post-fix: reduce supervision exit latency and stabilize host tests #6179 host baseline, and packing limitations.

Risk Assessment

✅ Low: The change is bounded to evidence-based redistribution, a modeled packing guard, and shorter unrelated fixture waits while preserving coverage and production timeout bounds.

Testing

Coverage and focused executable scenarios passed, including exact-budget acceptance, over-budget refusal, both endpoint bounds, digest continuation, and descendant cleanup. The initial runner-suite invocation exceeded the tool deadline; focused checks completed successfully. CLI transcripts, emitted digests, and reproducible selection drivers were retained. Real CI margin was not simulated or claimed.

  • Live validation: ✅ go - 5 of 6 scenarios driven live against the product
Scenario Result Live Evidence
Inspect portable groups and retain a complete, disjoint nine-shard serial partition ✅ pass live coverage-round2.log; packing-boundary-round2.log
Accept modeled serial packing exactly at the twenty-minute budget ✅ pass live packing-boundary-round2.log: weight=1200000 exit=0, serial_max_ms=1200000
Refuse modeled serial packing one millisecond above budget ✅ pass live packing-boundary-round2.log: weight=1200001 exit=1 with explicit 1200001ms versus 1200000ms diagnostic
Bound a hung endpoint at 2s while shortening only unrelated summary waiting ✅ pass live endpoint-round2.log; endpoint-2s-digest.log
Reject padded-zero endpoint timeout and preserve the 10s fallback and cleanup ✅ pass live endpoint-round2.log; endpoint-fallback-10s-digest.log
Complete every portable Ubuntu CI group with measured timeout margin ⏸️ untested no The recorded human decision explicitly reserves this proof for the PR's outer CI phase and prohibits local simulation. Local executable packing checks cannot establish Ubuntu job headroom; the outer e…
Evidence: Current executable coverage and modeled packing

Source: Current executable coverage and modeled packing

FM_TEST_COVERAGE ok total=241 parallel=24 parallel_max_ms=665545 parallel_imbalance_ms=2 parallel_unhinted=0 serial=201 serial_shards=9 serial_unhinted=0 serial_max_ms=1074843 serial_budget_ms=1200000 herdr=16
Evidence: Partition checks and exact-budget boundary responses

Source: Partition checks and exact-budget boundary responses

ok - portable shard union, disjointness, and coverage guard hold
ok - portable parallel lanes are fully hinted and packed within 5% of each other
ok - portable serial shards are a deterministic disjoint cover of the serial lane
ok - coverage guard bounds the unmeasured share and serial packing within twenty minutes
weight=1200000 exit=0
FM_TEST_COVERAGE ok total=241 parallel=24 parallel_max_ms=665545 parallel_imbalance_ms=2 parallel_unhinted=0 serial=201 serial_shards=9 serial_unhinted=0 serial_max_ms=1200000 serial_budget_ms=1200000 herdr=16
weight=1200001 exit=1
fm-test-run: coverage guard: largest portable serial shard packs 1200001ms above the 1200000ms target
fm-test-run: refresh CI hints and rebalance or add shards; do not raise the job timeout: docs/fm-test-portable-shards.md
ok - serial packing accepts the exact budget and refuses one millisecond above it
ok - portable serial shard lanes refuse mismatched, out-of-range, and countless names
Evidence: Endpoint scenarios and zero remaining hung descendants

Source: Endpoint scenarios and zero remaining hung descendants

Terminated: 15
remaining hung descendant processes=0
ok - a hung per-task endpoint read hits its configured bound, reports the task, and leaves nothing stuck
2s case elapsed_seconds=14
Terminated: 15
remaining hung descendant processes=0
ok - a padded-zero per-read bound falls back to the 10s default instead of removing the bound
fallback 10s case elapsed_seconds=21
Evidence: Real session-start digest after the 2s endpoint timeout

Source: Real session-start digest after the 2s endpoint timeout


================================================================================
SESSION START - ~/.no-mistakes/worktrees/52b07e9083e7/01M3RD9Y2FAPQ5GERNDZP7YJPP/.test-tmp-round2/fm-session-start-tests.ly3BxI/endpoint-hang/home
================================================================================

LOCK
--------------------------------------------------------------------------------
lock acquired: harness pid 45132

BOOTSTRAP
--------------------------------------------------------------------------------
MISSING: tasks-axi (install: npm install -g tasks-axi)
MISSING: quota-axi (install: npm install -g quota-axi)

WAKE QUEUE
--------------------------------------------------------------------------------
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  2 task(s) in flight, but no watcher has a fresh beacon (last beat: never, grace 300s).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  This is a supervision warning only; the guarded operation WILL still run.
●  watcher supervision needs Stop-owned automatic recovery; inspect the hook registration and startup status before ending the turn.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
================================================================================
SUPERVISION OPERATING INSTRUCTIONS - primary harness: claude
================================================================================
Current state:
- Lock: held by this session; this session owns normal supervision unless away mode says otherwise.
- Away/quiet mode: inactive.
- X mode: inactive; use the default watcher cadence.
- Supervision host: on; it takes away-posture wakes and, where the dialog mirror is verified, eligible attended wakes itself, and hands the rest to you (protocol at the end of this block).
- Ordinary wake: the Stop-owned auto-arm (bin/fm-claude-stop-autoarm.sh) already owns watcher continuity; drain and handle the wake, and do not arm another cycle yourself.

Mode: Claude Stop-hook-owned supervision.

When this session owns supervision and away mode is not active:
1. Drain first with `bin/fm-wake-drain.sh`.
   After handling all emitted wakes and reconciling open decisions and unread status lines, run the exact `--ack-through` command printed as `WAKE_ACK_REQUIRED`; until then the work remains durable for idempotent re-handling after interruption.
2. Routine watcher arm and re-arm are owned by the Stop `asyncRewake` hook (`bin/fm-claude-stop-autoarm.sh`), never by you.
   Every turn end while supervision is needed launches or attaches one home-scoped watcher cycle with no model command and no model tokens.
   An actionable close wakes you through the hook's exit-2 rewake, delivered as a `Stop hook feedback` message.
3. On a `Stop hook feedback` wake (`signal:`, `stale:`, `check:`, or `heartbeat`), run `bin/fm-wake-drain.sh` first and handle the wake.
   Do not run `bin/fm-watch-arm.sh` after an ordinary wake; the next turn end re-arms automatically when supervision is still needed.
   Do not invent a wake from an attach-status line alone; drain and act only on real wake records, the drain's `OPEN DECISIONS` and `UNREAD STATUS` entries, or a real watcher reason line.
4. On the one `Stop hook feedback` automatic-mechanism failure notice (`firstmate watcher auto-arm FAILED ...`), drain, inspect the automatic mechanism failure, and do not turn the notice into a repeating manual-arm loop.
5. If the Stop hook does not claim the home or reports an exhausted failure, inspect its registration and watcher startup path before ending blind.
   Keep the Stop-owned automatic mechanism as the only Claude arm owner.
6. Treat `watcher: started ...` and `watcher: attached ...` inside automatic arm output as proof that one live cycle exists.
   On attach, the arm follows verified identity-matched successors instead of exiting when the first cycle ends.
7. The durable wake queue preserves actionable events between a rewake and the next Stop-launched arm, while the bounded turn-end guard prevents a blind Stop when recovery did not start.
   No PreToolUse hook denies fleet commands based on watcher status.
   [`watcher-continuity.md`](../watcher-continuity.md) owns the exact session-lock recovery boundary.
8. The turn-end guard (`bin/fm-turnend-guard.sh --claude`) remains the final backstop.
   It requires the PID-strict live-watcher and fresh-beacon predicate at the Stop boundary, except for the Claude-specific foreign-live-owner safe exit owned by [`turnend-guard.md`](../turnend-guard.md#guard-predicates); that document also owns the distinct model-aware mid-turn pull-guard rules.
   Otherwise, it allows the stop when a watcher is healthy or an open auto-arm generation claim owns recovery, while fresh failure epochs advance the bounded one-time attended fail-open progression described there.
9. Waiting on the hook-owned cycle is silent: do not send idle progress while the watcher is parked.

The watcher itself remains `bin/fm-watch.sh`, and `bin/fm-watch-arm.sh` remains the verified arm wrapper that the Stop hook foregrounds on a home that opted out of the [supervision host](../supervision-host.md) (`config/supervision-host-off`).
Re-arm attaches to an existing healthy cycle when one is already present and follows its verified successor chain.
See [`watcher-continuity.md`](../watcher-continuity.md) for the arm-layer successor and clean-close failure contract and the Claude ownership model.

Supervision host: on for this home (`config/supervision-host-off` turns it off; [`supervision-host.md`](../supervision-host.md) owns the design).
The Stop hook runs the supervision host in the arm's place, and everything above still holds with these additions:
1. Attended (no away record, including a quiet-mode record; see [Postures](../supervision-host.md#postures)): a headless supervision session takes the wakes the supervision branch may take and never wakes you for a routine outcome, so fewer wakes reach you; check wakes, decision wakes, and whatever it cannot take still reach you exactly as above.
   `supervision-host: branch-outcome: ...` means it handled a wake and recorded captain outcomes for you: run `bin/fm-wake-drain.sh`, process each entry of its `BRANCH OUTCOMES` section as firstmate from the task's current state, because each entry says how long ago it was recorded (tell the captain, land or merge what is ready, answer or escalate a decision, or act on a blocker; your reply covers only entries still open, as if a settled one, such as a PR since merged, had never been listed), then run the `mark-processed` acknowledgement it prints; every drain presents them again until you do.
   `supervision-host: the supervision session could not take this wake ...` means the wake is yours: handle it as above.
   A failing turn may include a `supervision-host:` health note about repeated engine errors: tell the captain when it matters and handle the handed-back wake as usual; during cooldown later attended closes reach you unchanged.
   Routine outcomes never wake you; your next drain lists only visible routine outcomes under `BRANCH OUTCOMES, ROUTINE` for awareness, with nothing to acknowledge. Silent rows do not appear there, but remain available through `bin/fm-branch-outcome.sh list`.
2. Away (an away record exists and no daemon runs): the host hands each wake to a headless away session that runs the supervision branch's contract under the record, and you are parked.
   Only a wake the host hands back reaches you, as `Stop hook feedback` carrying the close plus one `supervision-host: <why>` line.
   That wake is automatic supervision, not the captain's return: drain and handle it under the away posture, and never run the return from it.
   After the return, a `supervision-host:` line naming the captain's return during a turn means that turn has visible outcomes missing from the return brief, whether the wake was handled or handed back: relay every following `supervision-host: outcome ...` line to the captain (the rows also remain in `bin/fm-branch-outcome.sh list`), then drain and handle any queued wake before acknowledging.
   Each such visible outcome is also a queued `check: supervision-host outcome <n> ... was recorded after the captain returned` wake, which the drain presents until acknowledged: relay each outcome once, whichever arrives first, and acknowledge its `BRANCH OUTCOMES` entry too when it has one. Silent outcomes remain in the store but do not generate a handoff line or check wake.
3. `supervision-host: cycle boundary ...` means the host ended its park at its bound: run `bin/fm-wake-drain.sh`, handle whatever it presents, run its printed acknowledgement (an empty queue prints `--ack-through 0`), and end the turn; the next park starts at that turn end.
4. A guarded command that exits 6 naming the branch actor's lease means the supervision session is handling that task right now: leave the lease alone and retry after it releases, which it does when its turn ends.
5. Captain outcomes the away session records stay in the outcome store until the return drain presents them; the return brief (`bin/fm-afk-return.sh`) counts them and points you to the `BRANCH OUTCOMES` section for processing and acknowledgement ([Captain outcomes](../supervision-host.md#captain-outcomes)).
6. `/afk` writes only the record here (`bin/fm-afk-launch.sh start-native` refuses the away daemon on this home); for `/quiet`, follow the [quiet skill](../../.agents/skills/quiet/SKILL.md).


================================================================================
READ-ONCE CONTRACT
================================================================================
Everything below is printed in full for this session start: every state/*.meta,
a compact data/backlog.md listing, a bounded tail of every state/*.status,
data/projects.md, data/secondmates.md, data/captain.md, data/captain-shared.md,
and data/learnings.md.
Do NOT re-read any of them after reading this digest, and do NOT bulk-read
data/backlog.md or state/*.status: re-reading everything defeats the entire
point of this command.

Go to a source directly only when:
  - this digest flagged it ABSENT (then rebuild or create it per AGENTS.md),
  - its contents looked unparseable or corrupt,
  - an individual full status log is needed for older wake-event history, or a
    status line was capped and its tail matters (each task's full log path is
    printed with its tail),
  - a full task body is needed (bin/fm-tasks-axi.sh show <id> --full, or data/backlog.md),
  - the backlog listing disclosed omitted queued items and this turn needs them,
  - the NETWORK CHECKS section reported its checks still IN PROGRESS and this
    turn needs their verdict (bin/fm-startup-network.sh report),
  - or a STARTUP TRUNCATED banner named the stage that would have printed it, in
    which case that stage's sources were never emitted and must be reconciled.

================================================================================
FLEET STATE
================================================================================

data/backlog.md
--------------------------------------------------------------------------------
ABSENT

Work under way (state/*.meta)
--------------------------------------------------------------------------------

--- task-a-slow ---
window=sess:p-slow
kind=ship
backend=herdr
endpoint: error (backend=herdr window=sess:p-slow - the endpoint read died or hit its 2s bound; the digest continued past it)
status tail: (no status file yet: ~/.no-mistakes/worktrees/52b07e9083e7/01M3RD9Y2FAPQ5GERNDZP7YJPP/.test-tmp-round2/fm-session-start-tests.ly3BxI/endpoint-hang/home/state/task-a-slow.status)

--- task-z-live ---
window=sess:p-live
kind=ship
backend=herdr
endpoint: alive (backend=herdr window=sess:p-live)
status tail: (no status file yet: ~/.no-mistakes/worktrees/52b07e9083e7/01M3RD9Y2FAPQ5GERNDZP7YJPP/.test-tmp-round2/fm-session-start-tests.ly3BxI/endpoint-hang/home/state/task-z-live.status)

Orphan status logs (state/*.status without matching .meta)
--------------------------------------------------------------------------------
(none)

AFK
--------------------------------------------------------------------------------
absent

================================================================================
NETWORK CHECKS
================================================================================
not started - no deferred network checks have run for this home yet.

================================================================================
CONTEXT
================================================================================

data/projects.md
--------------------------------------------------------------------------------
ABSENT

data/secondmates.md
--------------------------------------------------------------------------------
ABSENT

data/captain.md
--------------------------------------------------------------------------------
ABSENT

data/captain-shared.md (shared, main-authoritative, read-only in secondmate homes)
--------------------------------------------------------------------------------
ABSENT

data/learnings.md
--------------------------------------------------------------------------------
ABSENT

================================================================================
NEXT STEP
================================================================================
Follow the supervision operating instructions block above for harness 'claude'.
This script never starts supervision itself.

The digest above is complete for this session start. The READ-ONCE CONTRACT
section near the top of it governs what may still be read from disk.
Evidence: Real session-start digest after invalid-value fallback to 10s

Source: Real session-start digest after invalid-value fallback to 10s


================================================================================
SESSION START - ~/.no-mistakes/worktrees/52b07e9083e7/01M3RD9Y2FAPQ5GERNDZP7YJPP/.test-tmp-round2/fm-session-start-tests.ly3BxI/endpoint-padded-zero/home
================================================================================

LOCK
--------------------------------------------------------------------------------
lock acquired: harness pid 82541

BOOTSTRAP
--------------------------------------------------------------------------------
MISSING: tasks-axi (install: npm install -g tasks-axi)
MISSING: quota-axi (install: npm install -g quota-axi)

WAKE QUEUE
--------------------------------------------------------------------------------
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  2 task(s) in flight, but no watcher has a fresh beacon (last beat: never, grace 300s).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  This is a supervision warning only; the guarded operation WILL still run.
●  watcher supervision needs Stop-owned automatic recovery; inspect the hook registration and startup status before ending the turn.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
================================================================================
SUPERVISION OPERATING INSTRUCTIONS - primary harness: claude
================================================================================
Current state:
- Lock: held by this session; this session owns normal supervision unless away mode says otherwise.
- Away/quiet mode: inactive.
- X mode: inactive; use the default watcher cadence.
- Supervision host: on; it takes away-posture wakes and, where the dialog mirror is verified, eligible attended wakes itself, and hands the rest to you (protocol at the end of this block).
- Ordinary wake: the Stop-owned auto-arm (bin/fm-claude-stop-autoarm.sh) already owns watcher continuity; drain and handle the wake, and do not arm another cycle yourself.

Mode: Claude Stop-hook-owned supervision.

When this session owns supervision and away mode is not active:
1. Drain first with `bin/fm-wake-drain.sh`.
   After handling all emitted wakes and reconciling open decisions and unread status lines, run the exact `--ack-through` command printed as `WAKE_ACK_REQUIRED`; until then the work remains durable for idempotent re-handling after interruption.
2. Routine watcher arm and re-arm are owned by the Stop `asyncRewake` hook (`bin/fm-claude-stop-autoarm.sh`), never by you.
   Every turn end while supervision is needed launches or attaches one home-scoped watcher cycle with no model command and no model tokens.
   An actionable close wakes you through the hook's exit-2 rewake, delivered as a `Stop hook feedback` message.
3. On a `Stop hook feedback` wake (`signal:`, `stale:`, `check:`, or `heartbeat`), run `bin/fm-wake-drain.sh` first and handle the wake.
   Do not run `bin/fm-watch-arm.sh` after an ordinary wake; the next turn end re-arms automatically when supervision is still needed.
   Do not invent a wake from an attach-status line alone; drain and act only on real wake records, the drain's `OPEN DECISIONS` and `UNREAD STATUS` entries, or a real watcher reason line.
4. On the one `Stop hook feedback` automatic-mechanism failure notice (`firstmate watcher auto-arm FAILED ...`), drain, inspect the automatic mechanism failure, and do not turn the notice into a repeating manual-arm loop.
5. If the Stop hook does not claim the home or reports an exhausted failure, inspect its registration and watcher startup path before ending blind.
   Keep the Stop-owned automatic mechanism as the only Claude arm owner.
6. Treat `watcher: started ...` and `watcher: attached ...` inside automatic arm output as proof that one live cycle exists.
   On attach, the arm follows verified identity-matched successors instead of exiting when the first cycle ends.
7. The durable wake queue preserves actionable events between a rewake and the next Stop-launched arm, while the bounded turn-end guard prevents a blind Stop when recovery did not start.
   No PreToolUse hook denies fleet commands based on watcher status.
   [`watcher-continuity.md`](../watcher-continuity.md) owns the exact session-lock recovery boundary.
8. The turn-end guard (`bin/fm-turnend-guard.sh --claude`) remains the final backstop.
   It requires the PID-strict live-watcher and fresh-beacon predicate at the Stop boundary, except for the Claude-specific foreign-live-owner safe exit owned by [`turnend-guard.md`](../turnend-guard.md#guard-predicates); that document also owns the distinct model-aware mid-turn pull-guard rules.
   Otherwise, it allows the stop when a watcher is healthy or an open auto-arm generation claim owns recovery, while fresh failure epochs advance the bounded one-time attended fail-open progression described there.
9. Waiting on the hook-owned cycle is silent: do not send idle progress while the watcher is parked.

The watcher itself remains `bin/fm-watch.sh`, and `bin/fm-watch-arm.sh` remains the verified arm wrapper that the Stop hook foregrounds on a home that opted out of the [supervision host](../supervision-host.md) (`config/supervision-host-off`).
Re-arm attaches to an existing healthy cycle when one is already present and follows its verified successor chain.
See [`watcher-continuity.md`](../watcher-continuity.md) for the arm-layer successor and clean-close failure contract and the Claude ownership model.

Supervision host: on for this home (`config/supervision-host-off` turns it off; [`supervision-host.md`](../supervision-host.md) owns the design).
The Stop hook runs the supervision host in the arm's place, and everything above still holds with these additions:
1. Attended (no away record, including a quiet-mode record; see [Postures](../supervision-host.md#postures)): a headless supervision session takes the wakes the supervision branch may take and never wakes you for a routine outcome, so fewer wakes reach you; check wakes, decision wakes, and whatever it cannot take still reach you exactly as above.
   `supervision-host: branch-outcome: ...` means it handled a wake and recorded captain outcomes for you: run `bin/fm-wake-drain.sh`, process each entry of its `BRANCH OUTCOMES` section as firstmate from the task's current state, because each entry says how long ago it was recorded (tell the captain, land or merge what is ready, answer or escalate a decision, or act on a blocker; your reply covers only entries still open, as if a settled one, such as a PR since merged, had never been listed), then run the `mark-processed` acknowledgement it prints; every drain presents them again until you do.
   `supervision-host: the supervision session could not take this wake ...` means the wake is yours: handle it as above.
   A failing turn may include a `supervision-host:` health note about repeated engine errors: tell the captain when it matters and handle the handed-back wake as usual; during cooldown later attended closes reach you unchanged.
   Routine outcomes never wake you; your next drain lists only visible routine outcomes under `BRANCH OUTCOMES, ROUTINE` for awareness, with nothing to acknowledge. Silent rows do not appear there, but remain available through `bin/fm-branch-outcome.sh list`.
2. Away (an away record exists and no daemon runs): the host hands each wake to a headless away session that runs the supervision branch's contract under the record, and you are parked.
   Only a wake the host hands back reaches you, as `Stop hook feedback` carrying the close plus one `supervision-host: <why>` line.
   That wake is automatic supervision, not the captain's return: drain and handle it under the away posture, and never run the return from it.
   After the return, a `supervision-host:` line naming the captain's return during a turn means that turn has visible outcomes missing from the return brief, whether the wake was handled or handed back: relay every following `supervision-host: outcome ...` line to the captain (the rows also remain in `bin/fm-branch-outcome.sh list`), then drain and handle any queued wake before acknowledging.
   Each such visible outcome is also a queued `check: supervision-host outcome <n> ... was recorded after the captain returned` wake, which the drain presents until acknowledged: relay each outcome once, whichever arrives first, and acknowledge its `BRANCH OUTCOMES` entry too when it has one. Silent outcomes remain in the store but do not generate a handoff line or check wake.
3. `supervision-host: cycle boundary ...` means the host ended its park at its bound: run `bin/fm-wake-drain.sh`, handle whatever it presents, run its printed acknowledgement (an empty queue prints `--ack-through 0`), and end the turn; the next park starts at that turn end.
4. A guarded command that exits 6 naming the branch actor's lease means the supervision session is handling that task right now: leave the lease alone and retry after it releases, which it does when its turn ends.
5. Captain outcomes the away session records stay in the outcome store until the return drain presents them; the return brief (`bin/fm-afk-return.sh`) counts them and points you to the `BRANCH OUTCOMES` section for processing and acknowledgement ([Captain outcomes](../supervision-host.md#captain-outcomes)).
6. `/afk` writes only the record here (`bin/fm-afk-launch.sh start-native` refuses the away daemon on this home); for `/quiet`, follow the [quiet skill](../../.agents/skills/quiet/SKILL.md).


================================================================================
READ-ONCE CONTRACT
================================================================================
Everything below is printed in full for this session start: every state/*.meta,
a compact data/backlog.md listing, a bounded tail of every state/*.status,
data/projects.md, data/secondmates.md, data/captain.md, data/captain-shared.md,
and data/learnings.md.
Do NOT re-read any of them after reading this digest, and do NOT bulk-read
data/backlog.md or state/*.status: re-reading everything defeats the entire
point of this command.

Go to a source directly only when:
  - this digest flagged it ABSENT (then rebuild or create it per AGENTS.md),
  - its contents looked unparseable or corrupt,
  - an individual full status log is needed for older wake-event history, or a
    status line was capped and its tail matters (each task's full log path is
    printed with its tail),
  - a full task body is needed (bin/fm-tasks-axi.sh show <id> --full, or data/backlog.md),
  - the backlog listing disclosed omitted queued items and this turn needs them,
  - the NETWORK CHECKS section reported its checks still IN PROGRESS and this
    turn needs their verdict (bin/fm-startup-network.sh report),
  - or a STARTUP TRUNCATED banner named the stage that would have printed it, in
    which case that stage's sources were never emitted and must be reconciled.

================================================================================
FLEET STATE
================================================================================

data/backlog.md
--------------------------------------------------------------------------------
ABSENT

Work under way (state/*.meta)
--------------------------------------------------------------------------------

--- task-a-slow ---
window=sess:p-slow
kind=ship
backend=herdr
endpoint: error (backend=herdr window=sess:p-slow - the endpoint read died or hit its 10s bound; the digest continued past it)
status tail: (no status file yet: ~/.no-mistakes/worktrees/52b07e9083e7/01M3RD9Y2FAPQ5GERNDZP7YJPP/.test-tmp-round2/fm-session-start-tests.ly3BxI/endpoint-padded-zero/home/state/task-a-slow.status)

--- task-z-live ---
window=sess:p-live
kind=ship
backend=herdr
endpoint: alive (backend=herdr window=sess:p-live)
status tail: (no status file yet: ~/.no-mistakes/worktrees/52b07e9083e7/01M3RD9Y2FAPQ5GERNDZP7YJPP/.test-tmp-round2/fm-session-start-tests.ly3BxI/endpoint-padded-zero/home/state/task-z-live.status)

Orphan status logs (state/*.status without matching .meta)
--------------------------------------------------------------------------------
(none)

AFK
--------------------------------------------------------------------------------
absent

================================================================================
NETWORK CHECKS
================================================================================
not started - no deferred network checks have run for this home yet.

================================================================================
CONTEXT
================================================================================

data/projects.md
--------------------------------------------------------------------------------
ABSENT

data/secondmates.md
--------------------------------------------------------------------------------
ABSENT

data/captain.md
--------------------------------------------------------------------------------
ABSENT

data/captain-shared.md (shared, main-authoritative, read-only in secondmate homes)
--------------------------------------------------------------------------------
ABSENT

data/learnings.md
--------------------------------------------------------------------------------
ABSENT

================================================================================
NEXT STEP
================================================================================
Follow the supervision operating instructions block above for harness 'claude'.
This script never starts supervision itself.

The digest above is complete for this session start. The READ-ONCE CONTRACT
section near the top of it governs what may still be read from disk.
Evidence: Initial runner-suite invocation before tool deadline

Source: Initial runner-suite invocation before tool deadline

FM_TEST_BEGIN 2026-09-30T06:10:11Z tests/fm-test-run.test.sh family=pure-contract-unit expected_gate_skip=none
ok - exact suite coverage: --all lists every tests/*.test.sh once
ok - family selection returns a proper subset of the suite
ok - single-script selection lists exactly that path
ok - changed-file selection stays conservative (never silent full suite)
ok - a task marker refuses execution in the primary checkout and leaves worktrees and inspection alone
ok - runner and its documentation surfaces select their curated family, not just their contract owners
ok - shell line-ending policy selects runner coverage
fm-test-run: no tests selected for changes vs HEAD (map is conservative; use --all for the complete suite)
ok - changed selection covers dependents, fails closed for live unmapped source, and accepts retired unconsumed source
ok - a bin reference selects the referencing scripts, and consumers still select their curated families
ok - changed defaults to bounded automatic scheduling with serial override
ok - Windows emulation exempts only synthetic POSIX modes
ok - a plain script list defaults to bounded automatic concurrency without an automatic timeout
ok - family proofs run concurrently only within separate family phases
ok - empty changed selection emits deterministic text and JSON summaries
ok - timing markers and JSON artifact are valid
ok - aggregate exit reflects any script failure
ok - gate-skip accounting is honest and non-failing
ok - a gate skip records why it skipped
ok - a script that actually ran records no skip reason
ok - live guards are recorded as a capability class, not a bare env opt-in
ok - fail-on-gate-skip converts herdr-not-found into a hard failure
ok - exclude-family drops the named primary family after selection
ok - proven-isolated scheduling ignores parallel hints
ok - family, all, changed, and script selections ignore parallel hints
ok - portable shard union, disjointness, and coverage guard hold
ok - portable parallel lanes are fully hinted and packed within 5% of each other
- Outcome: 🔧 1 issue found → auto-fixed ✅ across 2 runs (38m34s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

🔧 **Test** - 1 issue found → auto-fixed ✅
  • ⚠️ live validation verdict: inconclusive (2 of 5 scenarios were driven live against the product); untested: Reject modeled packing one millisecond above budget, Shorten unrelated fixture waiting while preserving endpoint timeout and cleanup assertions, Complete every portable Ubuntu CI group with real timeout margin
  • Live validation: ⚠️ inconclusive - 2 of 5 scenarios driven live against the product
Scenario Result Live Evidence
Check portable grouping without losing or duplicating tests ✅ pass live coverage.log; targeted executable partition checks
Attempt an incorrect shard count or concurrent serial execution ✅ pass live refusals.log
Reject modeled packing one millisecond above budget ⏸️ untested no The prior payload did not establish a live result: fault injection into an isolated runner copy produced the expected budget diagnostic and exit 1, but this was fixture-based validation. No live attem…
Shorten unrelated fixture waiting while preserving endpoint timeout and cleanup assertions ⏸️ untested no The prior payload did not establish a live result: both existing fixtures passed using production scripts with simulated endpoint dependencies. Their digests retained the real 2s and fallback 10s boun…
Complete every portable Ubuntu CI group with real timeout margin ⏸️ untested no Local executable checks and targeted fixtures cannot establish Ubuntu job wall times. This phase is explicitly prohibited from executing CI or broad portable groups; the outer executor must run the re…
  • bash bin/fm-test-run.sh --check-coverage
  • Executed six existing runner checks through a disposable focused harness: partition coverage, parallel balance, serial partition, modeled budget, lane refusals, and scheduled ordering.
  • Executed test_endpoint_read_hang_is_bounded_and_reported and test_endpoint_bound_rejects_padded_zero through a disposable focused harness, retaining emitted digests.
  • Injected a 1200001ms timing hint into an isolated runner copy and executed --check-coverage.
  • bash bin/fm-test-run.sh --lane portable-serial-1of8 --list
  • bash bin/fm-test-run.sh --lane portable-serial-1of9 --jobs 2
  • The initial focused-check command exceeded its 240-second execution allowance; re-running with a longer allowance completed successfully. Removed all disposable worktree files.

🔧 Fix applied.
✅ Re-checked - no issues remain.

  • Live validation: ✅ go - 5 of 6 scenarios driven live against the product
Scenario Result Live Evidence
Inspect portable groups and retain a complete, disjoint nine-shard serial partition ✅ pass live coverage-round2.log; packing-boundary-round2.log
Accept modeled serial packing exactly at the twenty-minute budget ✅ pass live packing-boundary-round2.log: weight=1200000 exit=0, serial_max_ms=1200000
Refuse modeled serial packing one millisecond above budget ✅ pass live packing-boundary-round2.log: weight=1200001 exit=1 with explicit 1200001ms versus 1200000ms diagnostic
Bound a hung endpoint at 2s while shortening only unrelated summary waiting ✅ pass live endpoint-round2.log; endpoint-2s-digest.log
Reject padded-zero endpoint timeout and preserve the 10s fallback and cleanup ✅ pass live endpoint-round2.log; endpoint-fallback-10s-digest.log
Complete every portable Ubuntu CI group with measured timeout margin ⏸️ untested no The recorded human decision explicitly reserves this proof for the PR's outer CI phase and prohibits local simulation. Local executable packing checks cannot establish Ubuntu job headroom; the outer e…
  • bin/fm-test-run.sh --check-coverage
  • TMPDIR=&#34;$PWD/.test-tmp-round2&#34; bin/fm-test-run.sh tests/fm-test-run.test.sh --json &lt;evidence&gt;/runner-round2.json: interrupted by the tool's 240-second limit; no assertion failure before interruption.
  • TMPDIR=&#34;$PWD/.test-tmp-round2&#34; bash tests/.round2-runner-selected.sh: exercised partition coverage, parallel balance, serial partition determinism, budget coverage, exact-budget acceptance, one-millisecond excess refusal, and invalid shard refusal using existing test functions.
  • TMPDIR=&#34;$PWD/.test-tmp-round2&#34; EVIDENCE=&lt;evidence&gt; bash tests/.round2-endpoints-selected.sh: drove both changed endpoint-timeout cases through real session-start processes, retaining their assertions and capturing emitted digests.
  • Removed disposable fixtures and selection drivers; confirmed clean worktree.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Actual portable CI timing proof

Run https://github.com/kunchenguid/firstmate/actions/runs/36678260462 passed on head 049a21dc2e4910f3bb323447afe6d648ba93047d, attempt 1. All 11 portable groups passed without a timeout, retry, new skip, or timeout-policy change. The worst job was serial 2 at 20m38s, leaving 9m22s of the unchanged 30-minute cap. Other serial jobs finished in 13m59s-17m35s; the parallel jobs took 8m24s and 9m48s.

Important variance: the unchanged supervision-host suite measured 1054.411s here, versus the version-matched 789.123s input requested from the merged host fix. That made serial 2 exceed its 15m53s model and the approximate 20-minute target (20m15s of scripts, 20m38s including setup), but it still retained 9m22s of job headroom. This result is not a guarantee of future runtime or a P95 claim. The session-start suite improved to 229.041s, versus 331.548-363.574s in the five baseline runs, with its real 2s/10s endpoint bounds and cleanup assertions preserved.

The whole workflow took 45m04s because hosted jobs waited for runners (the last portable job started 28m59s after workflow creation). The figures below measure each job from its actual start, not queue time. Rebalancing kept the same nine serial runners and two parallel runners.

Per-group before / after

Baseline columns A-E, chronological:

Each cell is script sum / total job wall (m:ss). C is cancelled, so its script sum is partial; F is a completed failing job, not a timeout. Failed and unfinished script invocations never set healthy hints. All available artifact records were checked against their job logs.

Group A B C D E This PR Margin
P1 12:18/12:39 12:35/12:52 12:28/12:51 10:49/11:06 8:49/9:08 7:53/8:24 21:36
P2 8:56/9:05 6:53/7:08 9:21/9:32 7:28/7:44 9:18/9:29 9:35/9:48 20:12
S1 16:56/17:19 17:20/17:41 15:56/16:15 18:03/18:26 16:15/16:36 17:13/17:35 12:25
S2 11:45/12:02 14:44/15:05 15:46/16:09 14:27/14:55 14:26/14:48 20:15/20:38 9:22
S3 12:11/12:35 12:25/12:42 9:25/9:41 10:41/11:00 12:52/13:14 13:53/14:13 15:47
S4 12:21/12:39 12:24/12:50 14:00/14:25 12:28/12:49 10:53/11:11 13:37/13:59 16:01
S5 24:11/24:38 29:25/30:15 C 29:51/30:15 C 21:53/22:15 F 25:18/25:36 15:33/15:54 14:06
S6 14:20/14:43 14:53/15:15 13:33/13:53 14:50/15:12 14:01/14:30 14:14/14:36 15:24
S7 9:48/10:03 10:09/10:32 12:06/12:25 9:50/10:07 11:57/12:17 13:42/14:02 15:58
S8 12:35/12:59 14:30/14:57 13:40/13:59 14:24/14:47 13:10/13:30 13:42/14:06 15:54
S9 16:41/17:00 17:18/17:36 16:41/17:00 15:27/15:56 17:32/17:53 15:26/15:47 14:13

Per-file measurements

Names expand to tests/fm-<name>.test.sh. Values are seconds (rounded to 0.1); P/S mean parallel/serial. Baseline cells include the original group so membership changes remain visible. -- means not reached, unfinished means a begin without an end, and F marks a failed invocation. Existing capability skips retain their tiny portable-runner duration; they are not live-integration measurements. The Group column is this PR placement.

All 225 portable files, five baseline runs and this PR
File Group A B C D E This PR
pr-merge P1 P1:288.8 P1:300.2 P1:289.1 P1:251.6 P1:204.7 208.4
lint P1 P1:247.4 P1:240.6 P1:252.5 P1:213.9 P1:171.1 176.8
backend-herdr P1 P2:34.6 P2:31.1 P2:36.3 P2:29.3 P2:35.1 31.4
x-mode P1 P2:28.3 P2:21.7 P2:29.9 P2:25.3 P2:28.1 25.1
cd-pretool-check P1 P1:15.9 P1:16.8 P1:16.7 P1:14.0 P1:10.9 10.9
composer-lib P1 P1:8.9 P1:9.5 P1:9.4 P1:7.5 P1:6.5 6.5
pi-primary-types P1 P1:4.3 P1:3.5 P1:5.1 P1:4.0 P1:5.4 4.8
send-popup-settle P1 P2:4.8 P2:4.0 P2:6.3 P2:4.9 P2:6.6 3.8
review-diff P1 P1:3.8 P1:4.1 P1:4.1 P1:3.3 P1:2.7 3.0
send-settle P1 P2:2.0 P2:1.4 P2:2.2 P2:1.7 P2:2.3 1.4
ensure-agents-md P1 P2:0.8 P2:0.6 P2:0.9 P2:0.7 P2:0.9 0.6
supervision-instructions P1 P2:0.6 P2:0.5 P2:0.8 P2:0.6 P2:0.8 0.5
transition-lib P1 P2:0.1 P2:0.1 P2:0.1 P2:0.1 P2:0.1 0.1
captain-hold-lifecycle P2 P2:330.5 P2:246.0 P2:343.7 P2:272.1 P2:342.6 294.1
test-run P2 P1:146.9 P1:156.8 P1:148.9 P1:134.9 P1:110.0 145.2
crew-state P2 P2:77.6 P2:64.5 P2:81.3 P2:64.6 P2:82.1 67.5
arm-pretool-check P2 P2:32.7 P2:22.4 P2:33.8 P2:26.4 P2:32.8 28.3
herdr-lab P2 P2:17.4 P2:15.5 P2:17.8 P2:16.2 P2:18.3 16.0
brief P2 P1:9.8 P1:10.6 P1:10.0 P1:8.8 P1:7.0 8.1
grok-harness P2 P1:7.2 P1:7.7 P1:7.6 P1:7.1 P1:6.2 6.5
send-strict P2 P2:3.7 P2:2.8 P2:4.6 P2:3.6 P2:4.8 3.2
tmux-submit-busy P2 P1:2.4 P1:2.5 P1:2.5 P1:2.3 P1:2.6 2.2
spawn-batch P2 P2:2.7 P2:2.1 P2:2.9 P2:2.2 P2:3.0 2.2
composer-ghost P2 P1:2.1 P1:2.3 P1:2.2 P1:1.8 P1:1.6 1.7
watch-triage S1 S1:1008.0 S1:1032.3 S1:944.4 S1:1074.8 S1:967.1 1032.7
supervision-host S2 S5:720.7 S5:1065.3 S5:1033.8 S5:688.2 S5:789.1 1054.4
teardown-endpoint-safety S2 S6:36.8 S6:40.8 S6:40.8 S6:40.9 S6:35.5 41.1
task-delivery S2 S2:25.6 S2:32.8 S8:32.0 S2:32.8 S2:32.0 32.5
procevent-when S2 S4:25.7 S4:25.1 S9:24.2 S4:24.9 S4:21.6 25.1
rovo-harness S2 S9:15.5 S9:15.5 S4:15.7 S9:14.4 S9:15.7 15.6
remote-doctor S2 S4:14.5 S4:13.7 S3:10.6 S4:13.7 S4:11.1 13.7
timeout-lib S2 S4:10.8 S4:10.7 S2:10.7 S4:10.7 S4:10.6 10.7
wake-drain-open-decisions S2 S3:6.6 S3:8.4 S9:8.4 S3:6.0 S3:8.8 8.3
turnend-foreign-owner-arm-fix S2 S7:3.8 S7:3.3 S6:4.9 S7:4.2 S7:5.6 5.0
devin-harness S2 S5:3.4 S5:3.7 S5:3.6 S5:3.2 S5:3.4 3.6
operational-input S2 S8:1.4 S8:2.4 -- S8:2.4 S8:2.2 2.4
calm-pi-queue-retention-live-e2e S2 S3:1.3 S3:1.2 S3:0.7 S3:0.9 S3:1.3 1.2
subagent-pretool-check S2 S5:0.8 -- S7:1.0 S5:0.8 S5:0.9 1.0
check-unregister S2 S2:0.3 S2:0.5 S9:0.4 S2:0.5 S2:0.4 0.4
send-secondmate-marker-herdr-e2e S2 S1:0.1 S1:0.1 S7:0.1 S1:0.1 S1:0.0 0.1
agy-signals-live-e2e S2 S4:0.1 S4:0.1 S8:0.1 S4:0.1 S4:0.0 0.1
calm-claude-mod-live-e2e S2 S5:0.0 -- S9:0.0 S5:0.0 S5:0.0 0.0
launch-prompt-signals-live-e2e S2 S3:0.0 S3:0.0 S3:0.0 S3:0.0 S3:0.1 0.0
supervision-host-live-e2e S2 S3:0.1 S3:0.1 S2:0.0 S3:0.1 S3:0.1 0.0
public-followup S3 S9:368.4 S9:365.0 S9:371.4 S9:305.4 S9:381.6 329.5
control-relaunch S3 S7:76.3 S7:89.0 S7:103.6 S7:84.0 S7:114.1 93.0
pi-branch-extension S3 S4:77.2 S4:76.2 S4:76.9 S4:75.9 S4:60.5 69.2
secondmate-safety S3 S6:66.4 S6:69.3 S6:69.4 S6:68.5 S6:64.6 61.8
kimi-harness S3 S8:53.2 S8:58.9 S2:58.4 S8:58.9 S8:53.7 55.5
vendor-auth-probe S3 S3:43.3 S3:43.2 S3:42.9 S3:43.0 S3:43.3 43.1
bootstrap S3 S5:41.8 S5:51.0 S5:48.5 S5:40.1 S5:45.6 43.1
home-summary-refresh S3 S2:31.5 S2:37.1 S2:36.7 S2:36.6 S2:36.7 35.0
send-remote-delivery S3 S9:27.1 S9:31.1 S9:32.0 S9:27.3 S9:31.4 26.6
fleet-snapshot-view S3 S2:16.8 S2:23.2 S8:22.6 S2:23.3 S2:22.7 20.2
spawn-compact-adviser-disable S3 S7:18.0 S7:19.5 S5:20.5 S7:18.0 S7:21.7 19.3
on S3 S7:8.9 S7:8.8 S9:10.7 S7:8.6 S7:11.5 9.5
gate-refuse S3 S4:9.3 S4:10.0 S6:9.8 S4:10.0 S4:7.6 8.4
mail-check S3 S6:7.5 S6:7.5 S9:7.5 S6:7.4 S6:7.5 7.3
send-agy-confirm S3 S8:2.5 S8:4.3 S8:4.2 S8:4.4 S8:3.5 3.3
harness-precedence S3 S9:4.0 S9:4.0 S7:4.1 S9:3.4 S9:4.1 3.2
calm-claude-mod S3 S4:2.5 S4:2.4 S2:2.4 S4:2.4 S4:1.9 2.2
git-strip-ai-trailers S3 S9:2.0 S9:2.0 S9:2.1 S9:1.8 S9:2.1 1.8
nm-test-contract S3 S3:0.9 S3:0.7 S2:0.7 S3:0.6 S3:0.7 0.2
ask-user-authority S3 S9:0.2 S9:0.2 S1:0.1 S9:0.1 S9:0.2 0.2
codex-hook-layer-live-e2e S3 S7:0.1 S7:0.1 S8:0.0 S7:0.1 S7:0.1 0.1
herdr-submit-confirm-live-e2e S3 S1:0.0 S1:0.0 S3:0.0 S1:0.1 S1:0.0 0.1
pi-branch-live-e2e S3 S9:0.0 S9:0.0 S1:0.0 S9:0.0 S9:0.0 0.1
pi-codex-native S3 S3:0.1 S3:0.1 -- S3:0.1 S3:0.1 0.1
gitignore-config S3 S6:0.1 S6:0.1 -- S6:0.1 S6:0.1 0.1
session-start S4 S6:341.6 S6:363.6 S6:336.8 S6:362.4 S6:331.5 229.0
remote-reply S4 S5:128.3 S5:140.9 S5:136.6 S5:57.6 F S5:121.7 140.2
remote-secondmate-trace-context S4 S8:60.4 S8:73.6 S8:74.9 S8:72.0 S8:63.5 76.8
spawn-pool-base-freshen S4 S5:64.2 S5:68.7 S5:67.3 S5:61.4 S5:63.6 67.7
backlog-handoff S4 S2:43.0 S2:57.5 S2:55.5 S2:55.0 S2:55.3 56.5
afk-return S4 S5:41.6 S5:unfinished S2:47.4 S5:36.5 S5:43.5 48.9
remote-secondmate-parent-binding S4 S2:31.9 S2:41.0 S2:42.3 S2:40.3 S2:40.3 43.6
worker-account S4 S3:36.9 S3:36.9 S6:36.8 S3:32.9 S3:37.4 37.2
busy-adapter-wiring S4 S7:27.5 S7:27.9 S7:30.7 S7:27.3 S7:31.6 30.6
backend S4 S7:20.1 S7:20.1 S5:22.7 S7:20.1 S7:23.9 22.8
session-lock-ancestry S4 S6:18.9 S6:18.0 S4:18.4 S6:17.9 S6:18.4 18.3
update S4 S8:8.3 S8:11.7 S4:11.9 S8:11.8 S8:10.0 11.7
tangle-guard S4 S3:8.1 S3:8.2 -- S3:6.7 S3:8.5 9.9
backend-zellij S4 S2:6.9 S2:10.5 S3:7.2 S2:10.2 S2:9.8 9.8
ci-workflow S4 S8:4.2 S8:5.3 S9:5.8 S8:5.3 S8:4.1 5.2
worker-account-live-e2e S4 S8:2.5 S8:3.1 S3:1.7 S8:3.2 S8:2.4 3.2
test-isolation-proof S4 S9:2.8 S9:2.8 S7:2.9 S9:2.4 S9:2.9 2.8
test-fixtures S4 S8:1.4 S8:1.8 -- S8:1.8 S8:1.5 1.8
fork-free-helpers S4 S4:0.7 S4:0.7 S4:0.7 S4:0.7 S4:0.6 0.7
trace-context-lib S4 S1:0.2 S1:0.2 S8:0.2 S1:0.2 S1:0.2 0.2
muse-signals-live-e2e S4 S4:0.1 S4:0.1 -- S4:0.1 S4:0.0 0.1
harness-adapter-instructions-live-e2e S4 S5:0.0 -- S6:0.1 S5:0.0 S5:0.0 0.0
host-mirror-live-e2e S4 S7:0.1 S7:0.1 S7:0.1 S7:0.1 S7:0.1 0.0
sessionstart-hook-live-e2e S4 S6:0.1 S6:0.0 S8:0.0 S6:0.0 S6:0.0 0.0
codex-continuity-live-e2e S4 S7:0.1 S7:0.1 S3:0.0 S7:0.1 S7:0.1 0.0
grok-continuity-live-e2e S4 S5:0.0 -- S9:0.0 S5:0.0 S5:0.0 0.0
remote-secondmate-lifecycle-e2e S5 S2:262.3 S2:327.6 S2:345.7 S2:320.2 S2:321.6 335.4
contributions S5 S5:134.9 S5:140.9 S5:138.3 S5:129.2 S5:134.8 138.3
live-lab S5 S6:79.0 S6:78.2 S4:79.6 S6:78.3 S6:76.3 79.1
cursor-primary S5 S3:67.9 S3:68.5 S3:60.6 S3:58.8 S3:69.8 68.2
watch-recovery-loop S5 S9:58.7 S9:58.7 S9:59.1 S9:58.4 S9:58.9 59.0
secondmate-restart S5 S4:47.0 S4:52.6 S4:51.9 S4:52.3 S4:40.7 52.0
wake-drain-outcome-backstop S5 S6:43.9 S6:46.3 S6:46.3 S6:46.3 S6:44.9 46.4
bearings-board S5 S4:40.8 S4:39.8 S4:39.8 S4:40.1 S4:35.6 39.7
voice-relay S5 S3:28.8 S3:28.7 S3:27.5 S3:28.1 S3:28.9 28.7
backlog-read-bound S5 S6:24.4 S6:24.4 S4:24.5 S6:24.4 S6:24.7 24.4
bearings-board-render S5 S5:15.4 -- S8:15.4 S5:12.8 S5:15.6 15.6
tool-update-check S5 S6:14.4 S6:14.2 S6:14.1 S6:14.1 S6:14.3 14.2
afk-contract S5 S5:10.2 -- S7:11.1 S5:9.4 S5:10.4 11.0
herdr-session-cleanup S5 S2:5.1 S2:7.4 S3:5.2 S2:7.2 S2:6.9 6.9
send-secondmate-marker S5 S7:4.2 S7:4.7 S8:6.4 S7:5.2 S7:7.6 6.5
remote-herdr-guard S5 S2:2.7 S2:3.1 -- S2:3.1 S2:3.0 3.0
spawn-orca-worktree S5 S5:2.2 S5:2.4 S2:2.3 S5:1.9 S5:2.2 2.3
documentation-audiences S5 S7:0.8 S7:0.9 S3:0.7 S7:0.8 S7:1.3 1.2
test-fixture-cleanup S5 S1:0.7 S1:0.7 S8:0.7 S1:0.9 S1:0.7 0.7
forge-detect S5 S6:0.2 S6:0.2 S3:0.1 S6:0.2 S6:0.2 0.2
remote-entrypoint S5 S1:0.1 S1:0.1 S6:0.1 S1:0.1 S1:0.1 0.1
rovo-signals-live-e2e S5 S1:0.1 S1:0.0 S3:0.0 S1:0.1 S1:0.0 0.0
devin-signals-live-e2e S5 S3:0.0 S3:0.0 S3:0.0 S3:0.0 S3:0.0 0.0
calm-claude-mod-plugin S5 S3:0.1 S3:0.1 S9:0.0 S3:0.1 S3:0.1 0.0
omp-primary-live-e2e S5 S6:0.0 S6:0.0 S7:0.1 S6:0.0 S6:0.0 0.0
opencode-primary-live-e2e S5 S9:0.0 S9:0.0 S1:0.0 S9:0.0 S9:0.0 0.0
pr-check-security S6 S3:282.1 S3:280.5 S3:203.4 S3:225.6 S3:300.7 261.8
wake-queue S6 S2:132.8 S2:165.9 S2:162.3 S2:161.1 S2:162.4 150.8
remote-backlog-handoff S6 S9:78.8 S9:81.3 S9:82.1 S9:73.8 S9:81.9 75.1
watcher-lock S6 S4:72.0 S4:66.9 S4:67.3 S4:67.3 S4:64.1 66.4
claude-stop-autoarm S6 S2:61.2 S2:61.2 S2:61.2 S2:60.9 S2:61.2 60.7
calm-pi-extension S6 S2:41.4 S2:55.2 S2:47.4 S2:56.5 S2:54.7 52.8
send-resolve-key S6 S4:38.1 S4:46.8 S4:47.3 S4:47.3 S4:33.3 38.1
pending-reply S6 S2:29.0 S2:41.1 S2:40.2 S2:39.6 S2:40.2 36.8
daemon S6 S6:33.6 S6:32.7 S6:32.4 S6:32.7 S6:30.5 31.3
backend-orca S6 S9:23.7 S9:26.2 S7:27.1 S9:23.1 S9:26.9 23.7
branch-supervision S6 S8:18.0 S8:22.8 S4:23.0 S8:23.0 S8:19.2 19.8
secondmate-lifecycle-e2e S6 S6:10.6 S6:11.3 S6:11.1 S6:11.3 S6:11.0 9.7
mail S6 S2:7.1 S2:9.7 S3:6.7 S2:9.6 S2:9.4 8.8
live-gate S6 S5:7.5 -- S1:7.2 S5:6.8 S5:7.4 7.4
classify-decision-key S6 S6:4.4 S6:4.1 S9:4.2 S6:4.1 S6:4.0 3.7
quota-choose S6 S3:1.9 S3:2.8 S6:2.7 S3:2.2 S3:2.9 2.5
tmux-agent-liveness S6 S4:2.5 S4:3.8 S3:1.6 S4:2.3 S4:1.7 1.9
gotmp S6 S2:1.1 S2:1.5 S9:1.4 S2:1.5 S2:1.4 1.3
remote-secondmate-relaunch S6 S4:0.9 S4:0.9 S9:0.8 S4:0.9 S4:0.7 0.7
jev-mem-guard S6 S8:0.3 S8:0.3 S8:0.3 S8:0.3 S8:0.2 0.3
project-origin S6 S2:0.1 S2:0.1 S4:0.1 S2:0.1 S2:0.1 0.1
cmux-claude-composer-live-e2e S6 S3:0.1 S3:0.1 -- S3:0.1 S3:0.1 0.0
afk-pi-herdr-return-e2e S6 S4:0.1 S4:0.0 S4:0.0 S4:0.0 S4:0.0 0.0
pr-state-live-e2e S6 S9:0.0 S9:0.0 S1:0.0 S9:0.0 S9:0.0 0.0
quota-array-dispatch-live-e2e S6 S8:0.0 S8:0.1 S9:0.0 S8:0.1 S8:0.0 0.0
claude-stop-autoarm-live-e2e S6 S8:0.0 S8:0.0 S6:0.1 S8:0.0 S8:0.0 0.0
procevent S7 S4:289.2 S4:286.3 S4:285.7 S4:292.3 S4:263.8 265.8
bearings-snapshot S7 S7:142.2 S7:145.7 S7:175.3 S7:138.0 S7:186.2 142.8
remote-job S7 S7:80.9 S7:78.6 S7:81.0 S7:77.7 S7:77.9 77.9
sessionstart-nudge S7 S6:68.9 S6:71.7 S6:71.7 S6:71.7 S6:71.8 59.7
inactive-reconcile S7 S5:57.3 S5:60.8 S5:60.3 S5:54.3 S5:58.0 55.0
secondmate-sync S7 S6:54.8 S6:55.1 S6:55.5 S6:55.1 S6:53.8 50.1
muse-harness S7 S8:39.2 S8:46.5 S8:45.0 S8:45.5 S8:41.1 38.9
fleet-sync S7 S7:34.1 S7:40.5 S7:36.3 S7:34.3 S7:38.5 33.4
cursor-harness S7 S4:30.1 S4:30.1 S4:30.1 S4:30.1 S4:30.1 30.1
classify-corr-token S7 S6:21.9 S6:23.0 S6:23.1 S6:23.0 S6:20.8 17.7
fleet-ledger S7 S6:20.0 S6:19.9 S6:19.9 S6:19.9 S6:18.7 17.0
host-mirror S7 S5:8.6 S5:11.6 S5:10.7 S5:8.5 S5:10.1 7.5
dispatch-resolve S7 S4:10.1 S4:9.4 S6:9.4 S4:9.4 S4:7.3 7.1
startup-memory-budget S7 S5:6.7 -- S2:8.1 S5:6.7 S5:7.4 6.4
inbox S7 S2:4.4 S2:6.1 S2:6.0 S2:5.9 S2:5.9 4.6
busy-state S7 S5:3.2 -- S1:3.1 S5:3.0 S5:3.2 3.0
remote-job-orphan-reap S7 S1:2.9 S1:2.9 S8:3.0 S1:2.9 S1:3.0 2.7
harness-liveness-drift-live-e2e S7 S6:0.9 S6:0.9 S1:1.0 S6:0.9 S6:1.3 0.7
gemini-harness S7 S9:0.9 S9:0.9 S4:0.9 S9:0.8 S9:0.9 0.6
pr-state S7 S9:0.5 S9:0.5 S4:0.5 S9:0.4 S9:0.5 0.4
harness-adapter-references S7 S8:0.1 S8:0.1 S9:0.1 S8:0.1 S8:0.1 0.0
bearings-board-lavish-live-e2e S7 S2:0.0 S2:0.1 S4:0.1 S2:0.1 S2:0.0 0.0
composer-codex-idle-live-e2e S7 S3:0.1 S3:0.1 S6:0.1 S3:0.1 S3:0.1 0.0
sessionstart-instruction-refresh-live-e2e S7 S2:0.0 S2:0.0 S2:0.0 S2:0.0 S2:0.0 0.0
backend-cmux-smoke S7 S1:0.0 S1:0.0 S3:0.0 S1:0.0 S1:0.0 0.0
backlog-atomicity S8 S5:195.7 S5:219.4 S5:212.2 S5:185.1 S5:193.3 182.0
secondmate-harness S8 S8:150.4 S8:188.0 S8:186.7 S8:188.2 S8:167.5 154.6
secondmate-reconcile S8 S3:96.7 S3:100.2 S3:94.2 S3:93.7 S3:100.9 95.9
control S8 S9:63.8 S9:71.1 S9:72.8 S9:68.4 S9:72.2 66.6
remote-transport-lanes S8 S7:63.2 S7:64.1 S7:65.2 S7:63.2 S7:66.1 63.0
trace-context-spawn S8 S7:48.8 S7:48.1 S7:54.6 S7:48.9 S7:57.5 49.6
agy-harness S8 S8:47.3 S8:51.0 S8:50.1 S8:50.4 S8:47.4 48.7
send-inbox S8 S7:36.7 S7:37.2 S7:40.4 S7:38.0 S7:41.7 37.1
task-inbox S8 S8:29.6 S8:31.7 S8:31.2 S8:32.0 S8:29.8 29.9
turnend-guard S8 S8:26.7 S8:34.7 S8:33.0 S8:33.9 S8:29.1 29.0
wake-drain-unread-status S8 S8:14.5 S8:23.7 S5:23.5 S8:24.3 S8:19.6 17.3
pi-branch-responsiveness-live-e2e S8 S3:12.8 S3:12.7 S5:12.8 S3:11.8 S3:12.8 11.7
guard-stale-banner S8 S7:12.3 S7:10.7 S9:15.6 S7:11.7 S7:17.2 10.2
extension-binding S8 S7:7.7 S7:7.7 S6:10.5 S7:7.5 S7:11.1 7.5
wake-daemon-lifecycle-e2e S8 S5:7.2 -- S5:unfinished S5:7.0 S5:7.3 6.9
shared-captain-inheritance S8 S9:7.4 S9:7.6 S4:8.0 S9:6.4 S9:7.7 5.4
stow-cascade S8 S3:3.0 S3:3.0 S2:3.0 S3:2.8 S3:3.1 2.9
tasks-axi S8 S2:1.6 S2:2.3 -- S2:2.2 S2:2.2 1.5
lint-workflows S8 S5:0.7 -- S7:0.9 S5:0.6 S5:0.7 0.6
peek-remote S8 S7:0.8 S7:0.6 S3:0.7 S7:0.8 S7:1.1 0.6
backend-tmux-smoke S8 S6:0.2 S6:0.2 S8:0.3 S6:0.2 S6:0.2 0.2
pr-reviewers S8 S8:0.1 S8:0.2 -- S8:0.2 S8:0.1 0.1
composer-matrix-live-e2e S8 S2:0.0 S2:0.1 S2:0.0 S2:0.1 S2:0.0 0.1
supervision-host-attended-live-e2e S8 S2:0.0 S2:0.0 S8:0.0 S2:0.0 S2:0.0 0.1
cursor-primary-live-e2e S8 S2:0.0 S2:0.0 S7:0.1 S2:0.0 S2:0.0 0.1
pi-primary-live-e2e S8 S8:0.0 S8:0.0 S6:0.1 S8:0.0 S8:0.0 0.1
backend-zellij-smoke S8 S6:0.0 S6:0.0 S7:0.0 S6:0.0 S6:0.0 0.0
teardown S9 S9:177.8 S9:196.8 S9:196.6 S9:174.8 S9:202.1 201.8
spawn-dispatch-profile S9 S8:181.6 S8:197.5 S8:195.0 S8:196.2 S8:183.3 195.5
watch-arm S9 S8:113.1 S8:112.5 S8:109.6 S8:110.2 S8:111.1 110.2
startup-network S9 S3:70.9 S3:71.5 S3:65.2 S3:65.7 S3:72.1 71.9
omp-harness S9 S9:60.4 S9:62.9 S9:63.8 S9:61.5 S9:63.1 63.3
pi-watch-extension S9 S4:56.5 S4:56.3 S4:55.7 S4:55.8 S4:51.4 56.2
wake-drain-open-decisions-cursor S9 S3:37.1 S3:45.7 S3:33.5 S3:32.8 S3:47.7 46.3
afk-inject-e2e S9 S9:41.0 S9:41.7 S9:42.0 S9:41.0 S9:41.8 41.8
spawn-compact-adviser-disable-remote S9 S9:35.5 S9:35.6 S7:38.6 S9:31.7 S9:36.2 38.0
bootstrap-network-parallel S9 S3:29.8 S3:29.7 S7:30.1 S3:27.1 S3:30.4 30.1
live-lab-up-mate S9 -- -- S6:17.4 -- -- 17.4
secondmate-liveness S9 S9:23.4 S9:24.6 S2:12.6 S9:22.4 S9:12.8 12.9
claude-trust S9 S4:12.0 S4:11.5 S7:11.5 S4:11.4 S4:9.8 11.5
watch-checkpoint S9 S6:11.1 S6:11.1 S7:11.2 S6:10.1 S6:10.2 10.2
spawn-worktree-settle S9 S9:9.3 S9:9.2 S8:9.3 S9:9.0 S9:9.3 9.3
backend-cmux S9 S1:3.6 S1:3.5 S3:2.6 S1:3.8 S1:3.2 3.6
procevent-quota S9 S3:2.4 S3:2.4 S2:2.4 S3:1.9 S3:2.5 2.4
dod-lib S9 S7:1.4 S7:1.6 S4:1.8 S7:1.5 S7:2.0 1.8
supervision-events S9 S4:0.7 S4:0.6 S2:0.6 S4:0.6 S4:0.5 0.7
no-mistakes-required S9 S1:0.3 S1:0.2 S6:0.2 S1:0.3 S1:0.3 0.2
pi-windows-shell-invocation S9 S8:0.1 S8:0.1 S1:0.1 S8:0.1 S8:0.1 0.1
herdr-pi-stale-registration-live-e2e S9 S4:0.1 S4:0.1 S4:0.1 S4:0.0 S4:0.0 0.1
send-inbox-doorbell-live-e2e S9 S7:0.1 S7:0.1 S8:0.1 S7:0.1 S7:0.1 0.1
herdr-version-floor-live-e2e S9 S5:0.0 -- S4:0.1 S5:0.0 S5:0.0 0.1
stat-shadowing S9 S6:0.1 S6:0.0 S7:0.1 S6:0.0 S6:0.0 0.1
grok-stop-live-e2e S9 S9:0.0 S9:0.0 S1:0.0 S9:0.0 S9:0.0 0.0

Cause and fixes

  • Distribution used LPT correctly but stale weights hid growth: supervision-host was still weighted at 41.512s while taking over 1000s, with 20 serial files unhinted. The old group-5 placement totals 31m07s when replayed with the observed pre-fix maxima, or 26m31s with the requested 789.123s post-fix host input. The refreshed weights leave zero unhinted serial files; the existing exact-partition proof remains green.
  • Watch-triage remains the indivisible floor: its repeated real watcher-cycle matrices take 944-1075s in baseline runs (1033s here). Polling sleeps were left to the separate task. Public-followup spends about half its time in a 74-case emitter/real-consumer agreement matrix; that coverage was not replaced by stubs.
  • Session-start's endpoint-hang fixtures also hung an unrelated home-summary refresh for 60s each. Only those two fixture summary bounds became 5s, removing 110s of intended waiting without shortening the asserted endpoint bounds.
  • Validation caught missing negative-path coverage in the initial implementation. The pipeline added the executable exact-budget/one-millisecond-over-budget regression, re-drove both endpoint cases, and corrected misleading timeout wording and duplicated packing estimates. No production host/engine or polling-loop changes were made. The outer CI results above close the CI-only scenario intentionally left for this phase in the earlier test report.

@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adjusts test timing hints and packing constraints.

The PR appears safe to merge based on the reviewed changes; actual Ubuntu CI margin still requires observation from completed runs.

Reviews (1) · Last reviewed commit: "no-mistakes(document): Clarify timeout g..."

@kunchenguid
kunchenguid merged commit eb77f02 into main Sep 30, 2026
21 checks passed
@kunchenguid
kunchenguid deleted the fm/fm-ci-portable-group-budget-r1 branch September 30, 2026 07:18
This was referenced Oct 1, 2026
ironerumi added a commit to ironerumi/firstmate that referenced this pull request Oct 2, 2026
* fix: grant Claude workers access to Firstmate task channels (#5884)

* fix(bin): grant Claude workers their task-channel dirs via --add-dir

Since Claude Code 2.1.257, a file-tool read (Read/Glob/Grep, and an
Edit's mandatory prior read) of a path outside the working directories
parks --permission-mode auto panes on a one-time interactive question,
and a "Block" answer lands permissions.blockReadsOutsideWorkingDirectories
in user settings, refusing the same reads even under bypass. Firstmate
launches Claude with no --add-dir, so a secondmate's parent-home steering
inbox and a ship or scout worker's launch record, steering inbox, brief
dir, and code-root .agents/skills were all outside: workers wedged on
the question the first time they read a steer.

Every Claude launch, spawn and relaunch, in both permission modes, now
grants exactly the task's channel directories: state/<id>.inbox for a
secondmate (in the parent home), or state/operational-inbox,
state/<id>.inbox, data/<id>, and the code root's .agents/skills for a
ship or scout. Paths resolve to real paths and lazily created channel
dirs are made before launch so the grant never names a not-yet-existing
directory; the whole state/ is deliberately never granted.

The grant keeps the bypass-mode launch argv changed on purpose: it also
protects bypass workers against a machine-recorded Block answer.

* no-mistakes(document): Consolidate Claude launch guidance in configuration reference

* no-mistakes(document): Clarify Claude permission documentation reference

* fix(bin): prevent idle recovery loops without stranding wakes (#4819)

* fix(supervision): prevent idle recovery loops without stranding wakes

* no-mistakes(review): Remove unused wake-append rollback helper

* fix: reduce remote worker and polling helper process churn (#5889)

* fix(bin): stop the remote-job worker busy-polling an idle queue

The serving loop slept 50ms between passes and re-ran state preparation
(chmod on every queue directory), the heartbeat publish, and the stale sweep
on every pass. It now blocks on a worker.wake FIFO that staging,
cancellation, and lane exit nudge, keeps a short fast-poll window after
activity, refreshes the heartbeat at most once a second, and runs the sweep
(which re-applies the queue directories' 0700 modes) at startup and then on
a bounded interval. Lane-owned records are no longer re-read every pass.

Measured with a fork/execve-interposing counter on a --serve worker in a
disposable HOME and queue, bash 3.2, 20-second windows (the counter slows
the old loop to about 5 passes a second, so real-host rates were higher):
  idle worker             146 forks/s, 61 execs/s -> 4.8 forks/s, 3.1 execs/s
  one running long job    232 forks/s, 100 execs/s -> 15 forks/s, 11 execs/s
Stage-to-result latency for a no-op job, idle and back to back, stayed at
about 0.8-1.2s in both versions (dominated by job execution, not pickup).

* perf(bin): drop per-cycle forks from watcher, drain, and lock helpers

The watcher, drain, inactive-reconcile scan, and branch-outcome reads forked
small external commands on every cycle where bash can do the same work.

- fm-wake-lib.sh gains fm_dirname_to, fm_basename_to, and
  fm_epoch_seconds_to, exact stand-ins for $(dirname --), $(basename --),
  and $(date +%s); the clock uses printf %(%s)T on bash 4.2+ and still forks
  date exactly once on stock macOS bash 3.2.
- fm_lock_abs_path, fm_wake_signal_seen_path, fm_path_age, the watcher's
  age_of and wedge timer, and the recovery-marker line count use them or
  plain reads instead of dirname/basename/tr/date/wc.
- window_to_task reads a meta file once instead of two
  grep | tail -1 | cut -d= -f2- pipelines per file per call.
- fm-classify-lib.sh reads uname -s once at source time instead of in every
  status stat helper.
- Libraries sourced every cycle derive their own directory without forking
  dirname, including the backend adapter siblings a subshell re-sources on
  each probe.

tests/fm-fork-free-helpers.test.sh pins each replacement against the command
it replaces on edge-case inputs, under every available bash and both the C
and a UTF-8 locale; CI's stock macOS bash lane runs it under /bin/bash 3.2.

Measured with a fork/execve-interposing counter in a disposable home, one
tmux crew task, FM_POLL=1 (forks and execs per watcher cycle, per run
otherwise):
  watcher cycle      bash 5.3  299/138 -> 199/66   bash 3.2  341/146 -> 224/80
  drain              bash 5.3  492/238 -> 430/200  bash 3.2  567/250 -> 491/212
  inactive scan      bash 5.3   27/14  ->  17/4    bash 3.2   37/14  ->  17/4
  branch-outcome     bash 5.3   40/21  ->  35/16   bash 3.2   48/24  ->  38/19

* test: note the interpreter-expanded version probe for shellcheck

* no-mistakes(review): Fix worker idle bounds and fork-free contributions snapshot

* no-mistakes(review): Coalesce buffered worker wake nudges into one wake

* no-mistakes(review): Coalesce wake nudges via pending marker so publishers never block

* no-mistakes(review): Claim wake nudges atomically via noclobber pending marker

* no-mistakes(review): Release abandoned wake claims only after a 30-second bound

* no-mistakes(review): Drop worker wake FIFO; load path helpers side-effect free

* no-mistakes(document): Document remote worker polling and preemption cadence

* no-mistakes(ci): Fixed both failing CI shards: isolated remote and teardown test fixtures now include fm-path-lib.sh, which fm-wake-lib.sh requires. The three affected tests, fm-lint.sh, and git diff --check pass locally

* fix: keep remote reply listeners and watcher cycles running (#5941)

* fix: keep a successor watcher and remote-reply listeners across the gaps that dropped them

A main-only supervision pass-through exited without leaving a watcher, and each remote-reply poll released its claim until the next cycle, so short-lived listeners stayed down.

* no-mistakes(document): Clarify listener and supervision continuity documentation

* no-mistakes(ci): Fixed the three Greptile findings: failed ingestion leaves one durable capture, failed reads exit instead of relistening, and the disposable-checkout guard rejects state paths outside the marked lab. Added behavioral tests; the remote-reply and watcher-lock suites, shell syntax checks, and git diff checks passed

* no-mistakes(ci): Fixed a race in the wake-queue interruption test: it now waits for the drain to own the lock and enter handling before signaling it. The wake-queue suite, shell syntax check, and diff check pass

* fix: make attended cutover outcome re-presentation check-first (#5925)

* fix: date replayed branch outcomes and ask main to check current state first

A captain outcome main never acknowledged is presented again, which after a
harness or posture switch, or the first drain after the upgrade whose earlier
presenter never advanced the read cursor, can be days after its situation
settled. The replay read as fresh news, so a PR since merged looked ready.

bin/fm-branch-outcome.sh now adds a "recordedAgo" age (minutes, hours, then
days) to present and unprocessed rows, one owner of that wording for both
presenters. The drain's BRANCH OUTCOMES captain lines and the Pi branch's
processing request name that age and ask main to check the task's current
state first; an outcome already settled needs only the acknowledgement, with
nothing relayed to the captain. Nothing is adopted as processed, so a fresh
home's first outcome is still presented until acknowledged.

* no-mistakes(review): Absent processed marker reads 0; never adopt read cursor

* no-mistakes(review): Require recordedAgo in Pi requests; report undated rows to main

* no-mistakes(review): Keep recordedAgo on captain rows only in present output

* no-mistakes(document): Correct cutover documentation and retire stale migration guidance

* fix: keep settled branch outcomes out of main's reply to the captain

A live Pi primary that took over a host-drain home received the carried-over
outcomes dated and check-first, but its processing reply still told the
captain about an outcome whose decision had since been answered. The request
also claimed every outcome was already shown as an anchor entry in this
transcript, which is false for an outcome carried over from before a restart
or a switch of primary.

The Pi processing request now says each outcome was recorded earlier and may
already have been seen or handled, and that a settled outcome gets no
captain-facing mention at all in the reply or any recap, not even that it is
settled. The drain's BRANCH OUTCOMES header and the supervision docs state the
same rule, and the tests check both delivered texts.

* fix: scope main's outcome reply to what is still open

Telling main what not to say about a settled outcome was not enough: in two
live Pi trials the processing reply still told the captain that an answered
decision was settled. Main now sorts the outcomes by current state first, and
its reply to the captain covers only the still-open ones, written as if the
settled ones had never been listed. With that framing three live Pi trials
kept the settled outcome out of the reply and relayed the open one each time.

The drain's BRANCH OUTCOMES header and the supervision docs use the same
framing, and the tests check both delivered texts.

* no-mistakes(review): Clarify that main acknowledges every presented captain outcome

* no-mistakes(document): Clarify outcome cursor ownership across Pi and host

* no-mistakes(ci): Fixed Pi replay by batching unprocessed captain outcomes oldest-first and acknowledging only through each batch. Verified a marker-less backlog over 1 MiB replays through all batches. A real-drain regression confirms an older keyed decision remains under OPEN DECISIONS after a newer branch row is acknowledged; the check-first instruction now names those decisions. Relevant targeted tests and branch-supervision tests passed; the full host suite timed out

* no-mistakes(ci): Fixed the host drain’s check-first wording in bin/fm-wake-drain.sh; the CI fixture now passes. The full host suite passed the affected fixtures but timed out later. Syntax and diff checks passed

* no-mistakes(ci): Fixed ci-1: abbreviated Pi outcome summaries now stay within 1,024 characters and include a row-specific full-outcome lookup command. The delivered instruction requires reading the full outcome before acting, relaying, or acknowledging it. The new extension-driver regression failed before the fix and passes now; the Pi and supervision-host suites pass

* no-mistakes(ci): Corrected the batching sentence in docs/pi-supervision-branch.md. The cancelled CI check needs no code fix; its clean rerun passed. The Pi branch extension suite and git diff check passed

* fix: restore primary rewakes after attended main-only closes (#5961)

* fix: wake an idle Claude primary for attended main-only hand-backs

An attended main-only pass-through confirmed a handling handoff for the
successor it leaves running, which flipped the recovery marker to handling.
The Claude Stop hook only rewakes main while that marker reads downtime, so
the close reached no one and an idle primary slept with wakes queued.

The pass-through now leaves the marker at downtime, and a close that turns
main-only at its turn hands the consumed handoff back to downtime before it
reaches main. Regression tests drive the real Stop hook around the real host
on both paths and for the successor's own later close, and a new opt-in live
guard proves it against an idle interactive Claude primary with a pre-fix
negative control.

* no-mistakes(review): Assert live lab Stop-hook registration via parsed settings JSON

* no-mistakes(document): Correct supervision hand-back documentation

* no-mistakes(ci): Fixed the failed downtime-write path so the Stop hook notifies main instead of silently dropping the close. Corrected the live guard’s tracked-hook check and added the requested at-turn main-only scenario. The new regression failed before the fix and passed after it; the host suite, syntax checks, and diff check pass. The credentialed live guard was not run in this CI phase because it writes outside the worktree

* no-mistakes(ci): Fixed the Stop hook’s retry ordering: a crashed host gets its bounded retry before a non-crash hand-back failure is reported. The Stop-hook suite passes, including the crash regression. The host suite passed the failed-marker-write regression but timed out before completing; syntax and diff checks pass

* Clarify live Claude login for opted-in tests (#5975)

* fix(bin): ensure resumed worker launches enter their recorded worktree (#5916)

* Fix worker launches to enter recorded worktrees

* no-mistakes(review): placeholder

* no-mistakes(document): Update agent-control.md worktree-refusal note to match new universal cd+assert