Skip to content

feat: merge upstream firstmate main while preserving fork guarantees - #117

Merged
twilwa merged 91 commits into
mainfrom
fm/plat-firstmate-upstream-sync
Nov 19, 2026
Merged

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

Conversation

@twilwa

@twilwa twilwa commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

What Changed

  • Merges upstream kunchenguid/firstmate main (through 427056c4) into the fork as a merge commit. This adds new upstream worker and supervision features: a Hermes TUI worker adapter (fm-hermes-*), Lavish URL snapshots (fm-lavish-url), OSC 7501 worker status, review-lane parking (fm-park), per-ship/scout Claude account selection with a quota probe, opt-in adaptive lane capacity from host vitals, a /stow guard before Claude compaction, captain-hold settlement from forge PR events, stale worker-record hygiene, watched-tool release checks, and an opt-in Linux container run for changed shell tests. It also brings in many upstream fixes across watch, spawn, teardown, procevent, Herdr, remote secondmates, and PR merge/check.
  • Resolves the 41 conflicted files and keeps the fork's behavior: review ledger and batch landing, budgets and dispatch receipts with the jev-1.13.0 pin, wedge limits and paused-worker checks, quota/provider matching, the Treehouse pool root, and the four-worker/thirteen-shard test pool. Where upstream's version is stronger, it replaces the fork's: shared v3 watcher endpoint keys, the per-task fleet snapshot builder, and the remote-doctor naming. The remote entrypoint checksum is regenerated for the merged payload.
  • Post-merge follow-ups:
    • Herdr leases now share the hashed Treehouse pool root. The T3 Code lease does not.
    • The fleet snapshot targets T3 Code workers by t3_thread_id.
    • fm-dispatch-resolve --record-dispatch no longer rewrites the task's dispatch-resolution.json.
    • fm-composer-lib passes all three cursorless-selector arguments.
    • Watcher and lease test fixtures are updated, and an orphaned Pi dispatch-profile test is removed.
    • Docs are updated for the defer-invalidated PR policy, the Jev pin, and the isolation-proof labeling.

🤖 Generated with Claude Code

Risk Assessment

⚠️ Medium: The round-2 fix is docs only and matches the code: the Jev text now names the pinned jev-1.13.0, as TS_MODEL does at bin/fm-dispatch-resolve.sh:180. A recorded deferral raises the resolution count in pr_hold_fingerprint, and settle-pr's mismatch branch then removes the policy, fails nonzero and leaves the hold open, which is what the new text says. Re-declaring after a deferral gets occurrence N+2, so it does not collide with the deferral. Earlier fixes still hold. Risk stays medium because this is a large 82-commit upstream merge with 41 conflicted files, and local Test, Lint and CI were skipped, leaving GitHub CI as the arbiter.

Testing

  • ⏭️ Test - skipped

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

⏭️ **Rebase** - skipped

Step was skipped.

⚠️ **Review** - 1 info
  • ⚠️ tests/fm-spawn-dispatch-profile.test.sh:1748 - The merge left a dead test. test_pi_worker_launch_omits_seeded_home_approve is defined at line 1748 but never called. Occurrence counts: upstream 427056c has 2 (definition and call), the fork a63c10a has 0, the merged file has 1. How it happened: fork commit 1d829d2 deleted the test and its call and replaced them with test_pi_registered_workers_preapprove_only_the_task_launch (defined at :1692, called at :3145). Upstream edited the old body, so the body conflicted, and the resolution kept upstream's body. The clean side of the merge applied the fork's removal of the call. Upstream's assertions (Pi worker launch contains FM_PI_HARNESS=pi ... --tui-mode regular and has no --approve) therefore never run, and the file carries code that looks like coverage but isn't. Fix: either delete the orphaned body, because the fork's replacement test covers it, or restore its call in the run list. Deletion is the smaller change, because the fork test supersedes it.
  • ⚠️ docs/configuration.md:2319 - These lines contradict each other and the code about the default TypeSafe model. Lines 2319-2320 say that with no provider setting, and with explicit FM_DISPATCH_PROVIDER=typesafe and no model, TypeSafe uses jev-latest. Line 2520 and the code say jev-1.13.0 is pinned (bin/fm-dispatch-resolve.sh:13, :180 TS_MODEL=jev-1.13.0). The fork parent already had the stale text, and the merge kept it while taking upstream's reworded TYPESAFE_BASE paragraph. Fix: replace both jev-latest mentions on lines 2319-2320 with the pinned jev-1.13.0.
  • ℹ️ bin/fm-bootstrap.sh:1613 - Merge-interaction gap in upstream's opt-in Treehouse pool report. treehouse_pool_report scans only ${TREEHOUSE_ROOT:-$HOME/.treehouse}/*/treehouse-state.json. On fork homes, new crew allocations and now Herdr leases go to the project-bound root $HOME/.treehouse-fm/<hash>/ (bin/fm-spawn.sh:362, 5725). With config/treehouse-pool-report present, the report never sees the fork-managed pools. It still truthfully prints scanned N pools under ~/.treehouse. The feature is off by default and the migration says not to enable it. Extending the scan would widen an upstream feature beyond the sync's scope, so that remedy needs the owner's decision.
  • ℹ️ docs/fm-test-isolation-proof.md:115 - The new section '2026-11-10: Review parking suite added' reports FM_ISOLATION_SUMMARY total=27, which is upstream's run over upstream's candidate set. That set still includes fm-captain-hold-lifecycle.test.sh. The fork's merged set (bin/fm-test-isolation-proof.sh --list) has 26 members, because the fork moved that suite to a serial shard. Nothing labels the section as upstream evidence. Fix: label it as upstream's measurement, as docs/fm-test-portable-shards.md does for the fm-park timing.

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

  • ⚠️ docs/configuration.md:2319 - These lines contradict each other and the code about the default TypeSafe model. Lines 2319-2320 say that with no provider setting, and with explicit FM_DISPATCH_PROVIDER=typesafe and no model, TypeSafe uses jev-latest. Line 2520 and the code say jev-1.13.0 is pinned (bin/fm-dispatch-resolve.sh:13, :180 TS_MODEL=jev-1.13.0). The fork parent already had the stale text, and the merge kept it while taking upstream's reworded TYPESAFE_BASE paragraph. Fix: replace both jev-latest mentions on lines 2319-2320 with the pinned jev-1.13.0.
  • ℹ️ bin/fm-bootstrap.sh:1613 - Merge-interaction gap in upstream's opt-in Treehouse pool report. treehouse_pool_report scans only ${TREEHOUSE_ROOT:-$HOME/.treehouse}/*/treehouse-state.json. On fork homes, new crew allocations and now Herdr leases go to the project-bound root $HOME/.treehouse-fm/<hash>/ (bin/fm-spawn.sh:362, 5725). With config/treehouse-pool-report present, the report never sees the fork-managed pools. It still truthfully prints scanned N pools under ~/.treehouse. The feature is off by default and the migration says not to enable it. Extending the scan would widen an upstream feature beyond the sync's scope, so that remedy needs the owner's decision.
  • ⚠️ bin/fm-captain-hold.sh:2054 - Merge interaction between the fork's answer --defer-until and upstream's forge PR-settlement policy. Upstream's pr_hold_fingerprint includes resolution_record_count (line 2054). The policy also stores occurrence = count + 1 (line 2072). The fork's deferral path (lines 1485-1498) writes a full deferred resolution record with write_resolution_record, which raises that count, and publishes parent occurrence count + 1 while the hold stays open. The fork's docs say a deferral "continues the call it answers rather than opening another" (docs/captain-hold-lifecycle.md:111). Failing sequence, with config/hold-pr-settle on: fm-captain-hold.sh pr-policy T <pr> merged close is declared at count N (fingerprint uses N, occurrence N+1). The captain then says "later": answer T --decision-file f --defer-until <date> makes the count N+1. The PR merges, and settle-pr T <pr> (line 2087 onward) takes the else branch, because the digest differs. The fingerprint now hashes N+1 and no longer matches, so the policy file is removed and the command fails with "its question changed after the policy was declared; the hold stays open". The settlement the captain declared never happens, and the error names the wrong cause. It fails safe (the hold stays open, and the command exits nonzero once). A second problem in the same sequence: the deferral already published parent occurrence N+1, which is the same occurrence settle-pr would publish as resolved (line 2150 onward). A fix that only excludes deferred records from the fingerprint would still collide on that occurrence. Other places that must agree: pr-policy's occurrence (line 2072), settle-pr's resume check resolution_record_count == occurrence (line 2138), and the defer occurrence math (line 1485). Asking because the remedy needs a decision on how a deferral counts against an open hold's PR policy. The options are to have deferral preserve and re-key the policy, to count only non-deferred records in both the fingerprint and the occurrence, or to document that a deferral invalidates any declared PR policy.

🔧 Fix applied.
1 info still open:

  • ℹ️ bin/fm-bootstrap.sh:1613 - Merge-interaction gap in upstream's opt-in Treehouse pool report. treehouse_pool_report scans only ${TREEHOUSE_ROOT:-$HOME/.treehouse}/*/treehouse-state.json. On fork homes, new crew allocations and now Herdr leases go to the project-bound root $HOME/.treehouse-fm/<hash>/ (bin/fm-spawn.sh:362, 5725). With config/treehouse-pool-report present, the report never sees the fork-managed pools. It still truthfully prints scanned N pools under ~/.treehouse. The feature is off by default and the migration says not to enable it. Extending the scan would widen an upstream feature beyond the sync's scope, so that remedy needs the owner's decision.
⏭️ **Test** - skipped

Step was skipped.

✅ **Document** - passed

✅ No issues found.

⏭️ **Lint** - skipped

Step was skipped.

✅ **Push** - passed

✅ No issues found.


Retained prior description substance

The following prior description substance is retained verbatim; its historical measurements are not new-head verification.

What Changed

  • Merges upstream kunchenguid/firstmate main (427056c4, merge base 21180385) into the fork's main (a63c10a4) in commit be92cb16. That brings in all 82 upstream-only commits and keeps the 50 fork non-merge commits. Upstream additions include task-scoped dispatch-selection records, Claude account lists, Herdr worktree leasing, the Hermes worker adapter, review parking, expected-head and --update-branch merges, forge-settled captain holds, adaptive lane capacity, shared v3 endpoint-marker keys, bounded-lock changes, published-tool probes and optional operator tools.
  • Resolves conflicts in 41 files (104 marker blocks), listed below. Integration repairs: a private recorded-relaunch validation purpose in bin/fm-spawn.sh so a recorded standalone clone can relaunch; a safe-suite exclusion for the new upstream fm-supervision-host-herdr-live-e2e test; and a regenerated remote-entrypoint checksum. Two separate follow-up commits widen a watcher-readiness poll bound in tests/fm-pr-check-security.test.sh (100→500 × 0.02s) and add an SC2031 annotation scoped to the child subshell in bin/fm-backlog-handoff.sh.
  • Review fixes on top of the merge:
    • The Herdr treehouse get --lease now uses the same project-bound --root $HOME/.treehouse-fm/<hash> as other new allocations, via a new spawn_treehouse_pool_root helper.
    • fm-fleet-snapshot.sh targets T3 Code tasks by t3_thread_id.
    • fm-dispatch-resolve.sh --record-dispatch no longer rewrites the task's dispatch-resolution.json; only resolve runs do.
    • Matching docs and tests are updated.

History shape: merge-based

This PR is merge-based. At intake the branches had diverged (54 fork-only commits, 82 upstream-only), so a linear rebase would have required a force-push to the fork's main. It must land as a merge commit, not squash or rebase, so upstream ancestry is preserved. Whether to rewrite history is a separate question for the captain. Nothing is published to kunchenguid/firstmate.

Superseded fork commits (ours dropped)

No whole fork commit is dropped. All 50 fork non-merge commits are accounted for: 10 merged cleanly and 40 conflicted and were retained. No duplicate stable patch IDs were found, but that does not prove the changes are semantically independent. In these places upstream's implementation replaces a fork fragment:

  • Upstream 10b71638's shared v3 SHA-256 endpoint keys replace the fork's old key derivation in fm-watch.sh. The fork's wedge and progress logic stays.
  • Fork aa314113's inline wait helper had already been replaced in fork merge eb218c4f by upstream's wait_until_deadline. The fork's per-case retirement stays.
  • Upstream's per-task snapshot builder replaces the fork's duplicate row-building block. The fork's single-pass metadata/status reads and model/effort columns stay.
  • Upstream's variable naming replaces the fork's conflicting binding in fm-remote-doctor.sh. The fork's type -P lookup stays.
  • Upstream's OSC/FM_HOME launch shape replaces the fork's old launch assertions. The fork's mise-trust and brief-delivery assertions stay.

Some upstream changes look related but are not treated as equivalent:

  • 2f6f2770 does not cover fork 24591edf (proof that the selected slash-completion row was submitted).
  • 69023626 does not cover fork 3d56046f (detached-server output descriptors).
  • Upstream review parking does not replace fork fm-send --park.
  • Upstream account choice does not replace fork quota/provider matching.

Conflicts and resolutions

File Resolution
.agents/skills/captain-hold-lifecycle/SKILL.md Keep fork deferred-answer/digest rules; add upstream forge-event settlement and PR-policy authority.
.agents/skills/harness-adapters/SKILL.md Keep Rovo guidance; add upstream Hermes worker-only adapter and account controls.
.agents/skills/ship-landing/SKILL.md Keep fork batch landing and review ledger; add upstream watcher-owned cleanup of review-parked lanes.
AGENTS.md Combine fork quota choice, dispatch receipts and review/landing rules with upstream account selection and the required --dispatch-override when overriding a clear selection.
bin/fm-captain-hold.sh Keep backend-neutral holds, defer-until and bd-only legacy lookup; add upstream pr-policy commands and forge-resolution modes.
bin/fm-composer-lib.sh Keep fork selected slash-popup proof and hc; pass upstream screen/styled data to the cursorless fallback; add Hermes/Grok.
bin/fm-crew-state.sh Keep budget telemetry and lint-feedback receipts; add upstream review-park source and paused-state reconciliation.
bin/fm-dispatch-resolve.sh Keep fork receipts, missing-rules handling, header capture and jev-1.13.0 pin; add per-task records, configurable TYPESAFE_BASE and --globoff.
bin/fm-fleet-snapshot.sh Combine upstream per-task row composition and open decisions with fork single-pass reads and model/effort fields; drop only the duplicate builder.
bin/fm-pr-lib.sh Keep fork-prefixed required-check reader; expose upstream github_read_required_contexts for park.
bin/fm-pr-merge.sh Keep fork review-ledger/head checks and uncertain-landing reconciliation; add expected-head and explicit branch update.
bin/fm-remote-doctor.sh Use upstream variable naming, keep type -P; refresh entrypoint checksum.
bin/fm-remote-entrypoint.sh Keep fork entrypoint behavior; apply upstream login-identity preservation (checksum 8ef8fbca…dd0c2).
bin/fm-spawn.sh Keep budgets, project-bound Treehouse pool, hc, mise/Pi trust and brief guards; add account/dispatch binding, FM_HOME export, Herdr leasing, Hermes and standalone-clone handling.
bin/fm-teardown.sh Keep local-only receipts, budget cleanup and task-source retirement; add remote-ref refresh, late-write preservation, mirror-ref exclusion and review-park cleanup.
bin/fm-test-run.sh Keep the four-worker pool, 13 serial shards and changed-path routing; union upstream families, suites and timing hints.
bin/fm-watch.sh Use upstream v3 keys; keep fork signal dedup, wedge limits/progress and dead/missing paused-worker checks; add superseded waits, silent rechecks and overdue pauses.
docs/agent-control.md Keep hc and fork safety text; add Hermes restrictions and upstream relaunch semantics.
docs/architecture.md Combine fork review/queue/quota/local-only/watcher text with upstream review parking, wait evidence and leasing.
docs/configuration.md Keep per-home Beads selector, backend-neutral holds/handoffs and fork settings; add upstream optional settings and v3 marker-upgrade contract.
docs/fm-test-portable-shards.md Keep fork pool/13-shard policy and hints; restore upstream new-suite hint provenance.
docs/pi-supervision-branch.md Keep fork acknowledgement/handoff guidance; add upstream branch continuation, arm-child and wake-grant rules.
docs/scripts.md Keep fork hc, queue, remote-test and backend scripts; add upstream account, capacity, park and operator scripts.
docs/verification/runtime-backends.md Combine fork verified runtimes with upstream Hermes placement; no new live verification claimed.
docs/watcher-continuity.md Keep fork handoff, wedge-cap and progress-release contract; adopt upstream key identity, grant ownership and paused-wait rules.
tests/assets/board-render-harness.mjs Keep fork review-ledger board fields; accept upstream renderer fixtures; drop only obsolete rows.
tests/fm-backend-herdr.test.sh Keep selected-completion and detached-server cases; add upstream foreground/styled-screen and launcher-identity cases.
tests/fm-backend-t3code.test.sh Keep mise-trust assertions; add FM_HOME export and OSC-unframed launch.
tests/fm-bearings-board-render.test.sh Combine review-ledger expectations with upstream rendering changes.
tests/fm-bootstrap.test.sh Keep Beads selector and hold diagnostics; add upstream record/pool diagnostics and worker catalog.
tests/fm-calm-pi-extension.test.sh Keep pendingBashComponents; add upstream extension lifecycle expectations.
tests/fm-contributions.test.sh Keep fork review/hold integration; add forge-based hold settlement/reminders.
tests/fm-control.test.sh Keep hc control; add Hermes refusal/control.
tests/fm-inactive-reconcile.test.sh Keep budget-suffix URL cleanup; add live-agent precedence and review-park outcomes.
tests/fm-kimi-harness.test.sh Keep folder/brief-delivery proof and mise trust; update for FM_HOME/OSC launch.
tests/fm-pr-check-security.test.sh Keep ledger/head/check protections; add park/registration/expected-head checks without loosening URL validation.
tests/fm-pr-merge.test.sh Keep reviewed-head, base-modified and nounset-safe cases; add help, expected-head and branch-update cases.
tests/fm-spawn-dispatch-profile.test.sh Keep profile/budget/trust assertions; add task-bound dispatch records, overrides, accounts and FM_HOME.
tests/fm-watch-triage-pause.test.sh Union fork stopped/missing paused-worker cases with upstream overdue, superseded and silent-recheck cases.
tests/fm-watcher-lock.test.sh Keep compaction-busy and handoff guarantees; align contention with upstream bounded-lock and successor restore.
tests/lib.sh Keep Beads env isolation and fixtures; adopt upstream task-marker clearing, active-home cleanup, timeout and launch fixtures.

Upstream changes that alter behaviour our homes depend on

  • Hooks: tracked .claude/settings.json gains Claude API-error recovery and stow-guard Stop hooks; the fork's Bash(bin/fm-*) allowlist is kept. .codex/hooks.json Stop output stays valid JSON. Continued Claude sessions can take over their own auto-arm claim.
  • State formats:
    • Endpoint notification markers switch to shared v3 SHA-256 keys, and legacy/v2 evidence is ignored.
    • Retriable lock contention now returns exit code 124, and a busy lock must age before it can be reclaimed.
    • Teardown can now record a backlog close note of discarded, and completion replay accepts it.
    • A new per-task record, data/<id>/dispatch-resolution.json, is written by resolve runs and enforced by fm-spawn.sh. --record-dispatch leaves it untouched.
  • Config schemas: new optional, home-local settings, all of which are off or unchanged when absent:
    • config/lane-capacity adaptive budget
    • config/hold-pr-settle plus per-hold pr-policy
    • config/pause-ceiling, paused-wait supersession and paused-recheck-silent
    • config/stow-guard
    • Claude account lists and --account
    • config/crew-exclude-tools for Claude
    • watched-tool published/version_url fields
    • PR scan, degraded-notification, squash-summary, review-park and auto-land flags
    • Linux-check, branch-prompt include, pool-report and record-hygiene flags
    • config/osc7501-status: OSC 7501 status is now on by default for eligible terminals, and config/osc7501-status=off turns it off.
  • Launch/placement: every launch exports the active FM_HOME. Herdr tasks lease their isolated copy under the project-bound Treehouse root. Relaunch refuses primary homes but accepts genuine standalone clones. With crew-dispatch.json active, overriding a clear dispatch selection requires --dispatch-override.
  • Landing: fm-pr-merge.sh accepts an expected GitHub head. --update-branch invalidates earlier green checks and the fork's review-ledger generation for that head. Teardown ignores no-mistakes mirror refs as landing evidence.
  • Backlog backend: unchanged. fm-tasks-axi.sh, fm-tasks-axi-lib.sh, fm-backlog-receive.sh, fm-remote-home-provision.sh and fm-session-start.sh match the fork tip byte for byte. The Beads/br selector, path and prefix stay home-local, and the bd-only legacy hold lookup is kept. fm-backlog-handoff.sh gains only the SC2031 comment.

Migration for a running home

The main firstmate performs these steps later, at a quiet moment. This PR does not perform them, and it does not run /updatefirstmate.

  1. Update the synchronized scripts, tracked hooks and extensions together, then restart so the new .claude/settings.json Stop hooks take effect. Don't hand-edit installed hooks.
  2. On homes with crew-dispatch.json, run the resolver for each queued or new task before its first launch. Don't create records for agents that are already running.
  3. Expect endpoint notification counters and timers to start over once under v3 keys. Don't delete task state or the wake queue. Old marker files can stay.
  4. Callers of the lock scripts must treat exit code 124 as retriable, not as a permanent failure.
  5. Keep existing Beads selectors, account pins, local-only bindings, captain holds and merge/local-only receipts. None of them need conversion.
  6. Don't turn on the new optional settings as part of the sync. Enable each one per home later, deliberately. If OSC 7501 status output is unwanted, set config/osc7501-status=off.

🤖 Generated with Claude Code

Risk Assessment

⚠️ Medium: The three round-1 fixes check out against the code: the Herdr lease uses the project-bound root and the T3 lease is left unchanged, the T3 snapshot target matches fm_backend_target_of_meta, and --record-dispatch no longer clears the task record. The overall change is still a large merge of 82 upstream commits with 41 conflicted files, with local Test, Lint and CI skipped in favour of GitHub CI.

Testing

  • ⏭️ Test - skipped

Disclosures

no-mistakes Rebase, Test, Lint and CI were skipped at the owner's instruction to end local validation. GitHub CI is the arbiter. The attestation above is preserved as emitted; its skipped-Test check failure is known, not waived. No local-green or all280-passed claim is made.

extension-binding fails locally on BOTH the fork parent a63c10a and merged 048 under a non-Git TMPDIR. Both share the remote-root fixture omission. The merged run also showed deadline/control-boundary assertions and one fork retry. Cause unisolated; not counted as an accepted non-pass; CI on the sync PR is the arbiter.

tests/fm-extension-binding.test.sh remote-root fixture copy list omits fm-task-inbox-lib.sh and fm-backend.sh, which fm-procevent.sh sources (shared parent, since 2026-09-20); add both (separate fork PR).

fm-dod-lib.test.sh's unrelated-project fixture inherits an ambient Git boundary from TMPDIR; harden it with an isolated git init child (fork-side test fix, separate PR).

T3 lease allocation remains unchanged from the fork base and excluded from the project-bound-root restoration; evaluate project-bound T3 lease roots in a separate follow-up only.

These follow-ups are not included and are not claimed filed or assigned. The detailed classification uses33(a),34(b),4 mixed entries,not unique-commit counts. The50 historical fork non-merges are10 still-needed/40 conflicting-retained,not a new correctness verdict from line retention or conflict counts.

Pipeline fix17c7e1ce restored only the Herdr lease's fork root (b),fixed T3 snapshot identity (a),and preserved records in record-dispatch mode (a). Documentation completed at published head351e8d3b. Those later heads earn no new local Test/Lint credit;the original020/039/048 receipts below retain their measured provenance. The separate readiness and child-subshell annotation commits precede these pipeline corrections.

History and delivery shape

Target: https://github.com/twilwa/firstmate, base main, branch fm/plat-firstmate-upstream-sync.
Recorded fork parent: a63c10a4ec6263473d7410937a178d14ffee1579.
Read-only upstream parent: 427056c4181c41074ad24f051f79919330df0fa5 from https://github.com/kunchenguid/firstmate.
Merge base: 21180385d1cb782941df13ed91ba7c44f0d76351.

This is merge-based and must land as a merge commit, never squash or rebase. Upstream ancestry is preserved;retained fork guarantees remain required,with Review corrections below. No new upstream merge or history rewrite is authorized. Divergence at intake was54 fork-only commits (50 non-merges/four merges) and82 upstream-only. All50 fork non-merges were accounted for:10 still-needed/40 conflicting-retained,none wholly dropped or superseded; no duplicate stable patch IDs were found (not proof of semantic independence).

The committed pre-pipeline series records the resolved merge,then separate readiness and ShellCheck fixes. Its combined contents match frozen048;064 permits additional pipeline-owned Review corrections without new local test credit. The intermediate merge-only tree was not tested. The PR is fork-only. No merge,force-push,upstream issue/comment/PR/fork,home update,/updatefirstmate,harness CLI,or deployment is authorized by this delivery. No live migration was performed.

Retained fork changes:upstream-aligned fixes versus fork features

All50 non-merge fork commits are covered below. These are33(a)and34(b)retained-change entries,not unique-commit totals. Mixed commits 6e996afb,7f7b00f9,141a2adc,8d54f886 appear in both appropriate lists. Sync-added readiness/recorded-relaunch fixes are separate below. No classification grants upstream publication authority.

(a) Pure fixes to functionality upstream already has

Fork commit Change and one-line reason
27f81f0d Bind Treehouse routing to the project,preventing selection of another project's copy.
95e02a9a Renew completed-step beacons so a healthy watcher is not mistaken for abandoned.
95e02a9a Preserve stale-lock ownership against a late claimant,closing a recovery race.
95e02a9a Restore main-only handoff before successor start,preventing lost supervision events.
95e02a9a Deliver refused Claude handback despite a healthy successor,closing lost notifications.
95e02a9a Check the per-user presentation-lock namespace to avoid reclaiming the wrong Herdr lock.
6e996afb Recognize direct Claude processes so existing lifecycle control works without wrapper PIDs.
6e996afb Prove paste delivery beneath Claude's slash popup,avoiding false zellij-composer success.
6e996afb Resolve executable paths with type -P so shell functions are not treated as binaries.
6e996afb Read fleet metadata/status once,reducing process cost without changing identity.
6e996afb Register server cleanup/detect listeners to repair existing test isolation.
6e996afb Keep defer-date fixtures future-dated,removing calendar-dependent failures.
6e996afb Put control_relaunch_tx before retained pr= metadata,restoring parser ownership.
6e996afb Forward --upstream-consent per batch pair,preserving publication authority.
3d8ffa9b Mark authenticated Codex/T3/opt-in tests live,keeping portable selections safe.
6896d3d3 Restore teardown's independent changed-path arm,which a broader arm swallowed.
b83bda0f Restore Kimi2.3.x folder/brief confirmation and refused-launch cleanup.
40429373 Remove unsupported temperature from existing inbox inference requests.
d533765e Reconcile base-modified responses and record only verified merges,avoiding false landings.
1ea26336 Retire only the task's own process-event sources,closing cleanup leakage.
aa314113 Retain per-case retirement/deadlines to remove host-test races;old wait helper is superseded.
7f7b00f9 Keep opt-in warm-compaction testing live,repairing the portable safety boundary.
141a2adc Bound lost-handback alarms rather than retrying continuation exhaustion indefinitely.
8d54f886 Correct handback documentation to match existing delivery/exhaustion behavior.
3e2eef67 Make the test GitHub-URL predicate nounset-safe for a lone --help argument.
24591edf Prove the selected slash-completion row,preventing false Claude submission success.
c5a44aad Bound PR URLs at the shared separator so telemetry cannot corrupt receipt identity.
3d56046f Exec detached Herdr launches to close inherited output descriptors and reach EOF.
f6c9fd9b Distinguish stopped/missing paused workers from healthy external waits.
1d17432d Keep Pi busy during settlement compaction,preventing premature input injection.
b87136ab Match Muse/Codex provider IDs correctly within existing quota/account selection.
58850871 Require frozen-busy-Pi evidence before alerting about a stuck inbox.
7782115b Add pendingBashComponents to match the installed Calm Pi fixture API.

(b) Beads/beads_rust(br) compatibility and other fork features

Fork commit Retained fork-specific change
bb670294 Claude Bash(bin/fm-*) allowlist:additional permission policy.
0842e229 Advisory JevGate workflow/configuration:additional review service.
be4d9d42 Head-keyed ledger,risk/review,reviewed-head handoff,hold projection and board:fork merge policy.
5783867f Host safety,test scopes,no-mistakes response/skip guards and brief checks:operating policy.
6a3cdd6b Whole-task budgets,metadata and pane-question evidence:supervision telemetry/policy.
5e661c81 Bound local-only secondmates,offer/landing receipts,sleep routing and guarded cleanup.
6e996afb Model/effort snapshot columns:additional presentation fields.
6e996afb Lint partition sizing:fork CI resource policy.
6e996afb Serena cache/Headroom lock ignores:support for fork-local tools.
acd9876c Landing-crew merge queue,batching and safeguards:additional delivery workflow.
e6e7c6a6 Orchestration model/provider guidance and pins:tool/model policy.
ec9b2c2a Earlier sync adaptations for review/holds/local-only/Rovo,dispatch receipts,Jev pin and supporting fixtures/checksums/docs.
a754c17a Fork-hosted timing/concurrency evidence;obsolete eleven-shard layout is not retained.
23d381e9 Launch-local Mise trust exports:deliberate tool-trust policy,not a pure fix.
e0cf954a Serial/pool hints and balancing evidence:chosen CI topology.
15db9c85 1500-second script bound and matching CI contract:runtime-budget policy.
fac3ebbd Explicit no-mistakes Test authorization in ship/promotion instructions:workflow policy.
3bebf69c Four-worker portable pool,13 serial shards,four Lint partitions,telemetry and guards:CI architecture.
d7ad7862 Test-first vertical-slice ship/promotion definitions:development policy.
7f7b00f9 Early child local-only refusal and landing-crew fixtures:bound-copy/merge-queue workflow.
0e5610b4 hc backend/script inventory:additional backend.
141a2adc Preserve defer dates in resend instructions:deferred-answer workflow.
8d54f886 Correct resend/defer documentation for that fork-only workflow.
78e7d045 hc lifecycle,composer and control:additional backend integration.
a76c8927 Bounded validation/guarded no-mistakes responses:resource and approval policy.
1d829d28 Registered-project Pi trust preapproval:scoped security/launch choice.
92e68b13 fm-send --park:durable declared waits,distinct from upstream optional review parking.
0464ee53 Three-attempt wedge ceiling,progress-only release and episodes:retry/escalation policy.
4ed72871 Lint-feedback receipts in instructions/completion:additional delivery artifact/policy.
21b4f2de Opt-in capped SSH runner/protocol:additional remote execution;not enabled/invoked here.
255ea55b Legacy hold lookup only for explicitly selected bd homes:Beads compatibility.
24b902aa Per-home tasks backend,br binary/path/prefix and backend-neutral bootstrap/session addressing.
43353f03 Backend-aware handoff/receive/remote provisioning preserving Beads/br stores and addressing.
a63c10a4 Single-jq-pass ledger polling:optimization of the fork-only review feature.

Supporting sync fixture changes retain receipt/Keychain scenarios with actual-platform lock detection,separate CLI expected-head cases from optional reviewed-head handoff while retaining its refusal regression,improve handoff failure output without changing waits/locks,and keep fork-hosted pool timings distinct from upstream park samples. No new CI topology or independent product feature is introduced by these resolutions.

Approved integration adjustments and separate fixes

  • **(b)039 safe-suite compatibility:**append --exclude-script tests/fm-supervision-host-herdr-live-e2e.test.sh to the fork's safe-suite manifest,following its existing T3 exception. This upstream-new test met a fork-only manifest guard; no old exclusion was lost. Runner,live test,product and original280-path accounting are unchanged.037's list-membership failure1/46385ms (runner46567ms) was not live Herdr execution/timeout/skip; the later original brief-scope039 full script passed. No Herdr lab was activated.039 changed one text path;other944 paths/modes/types and645 canonical Lint roots were unchanged.
  • (a)048 recorded-relaunch integration repair:spawn_worktree_isolated()/validate_spawn_worktree() accept a private recorded-relaunch purpose at only two late non-secondmate callers. A recorded standalone clone may have ownGitdir=common!=projectCommon after unchanged physical-root/project/resolved-Git checks. Strict fresh Treehouse pool membership,default/polling callers and primary-home/project/code-root/physical/Git/endpoint/secondmate refusals remain. No public CLI/environment/global bypass,assertion suppression,schema or migration. Only bin/fm-spawn.sh changed from039. The corrected full-script non-pass and coverage gap are disclosed below.
  • **(a)Separate test-readiness fix:**100→500×.02s bound after a measured.27335s late helper observation; no weaker identity,security,serialization,hash,release or liveness assertion. Intermediate/earlier failed measurements remain preserved.
  • **(b)Separate ShellCheck annotation:**SC2031 comment only inside the handoff child subshell;no behavior/global suppression,production lock/wait change or new backend migration. Other approved fixture plumbing retains Darwin uname(-s)-only behavior,optional expected-head initialization/output visibility and real basename in the restricted mock PATH.

The retained-content tables classify changes,not unique commits:their(a)/(b)entries overlap mixed commits. They are not a claim that every retained fork feature should be submitted upstream. The new integration addenda above are stated separately,not silently credited to an earlier fork commit.

Validation ended by instruction; GitHub CI is the arbiter

Local validation ended at the owner's instruction. The no-mistakes Rebase, Test, Lint and CI steps are explicitly skipped at the owner's instruction to end local validation (--skip rebase,test,lint,ci); Review, Documentation, Push and PR remain. Skipping CI also prevents its automatic repair/conflict-rebase loop. GitHub CI is the arbiter. Historical split local measurements are not a final whole-tree green verdict. After publication, checks are observed read-only: the first complete result is reported, with no rerun, repair, rebase or further push without another ruling. A skipped-step rejection by the PR-raised-via-no-mistakes check is reported, not worked around by editing the PR body.

The frozen 280-path accounting is 57 ordinary passes + 7 UNAVAILABLE + 11 NOT RUN + 6 accepted NONPASS + 1 OWN flaky merged NONPASS-THEN-PASS + 1 unresolved extension-binding + 197 unrun = 280. The board pass remains caveated. The Linux/BSD no-assertion case is prospective among the unrun paths, not observed BSD coverage. Partial positive assertions, completed comparison drivers and successful resource-accounting queries do not turn nonzero scripts into passes.

Six accepted local NONPASS outcomes

  1. Busy wiring — PRE-EXISTING PARENT FUNCTIONAL NONPASS, caveated. tests/fm-busy-adapter-wiring.test.sh: merged039 script1/24582ms; frozen fork/upstream script1/21915ms and1/10195ms. Both parents fail the same assertion. Synthetic fixture captures show an independent endpoint-recovery failure notification, not a stalled-loop notification. Blanket fake-tmux display-message=0 does not model a live Claude agent/isolated tty and can lead liveness probing to host tty0. Actual host process names and the original merged queue payload were not captured. This supports pre-existing fixture coupling, not an isolated cause or a tested fix. Frozen-Pi inbox, wedge-cap and compaction guarantees remain unchanged. No correction/replay is included.
  2. Lifecycle — PRE-EXISTING PARENT BOUNDED-RUNTIME FAILURE, NON-PASS. tests/fm-captain-hold-lifecycle.test.sh: merged/fork/upstream all script124 at the 1500-second script bound (1500066/1500083/1500068ms), runner1/outer1; not a1530-second outer timeout. A merge-specific slowdown was not excluded. No slow command, functional regression or fixture fix was demonstrated. The proposed3000-second experiment/replay was denied; no CI default changed. Profiling/splitting/re-bounding is separate follow-up work, not a proved additional fixture bug. The upstream runner has no listener audit; a comparison driver0 means completed measurements, not passing scripts.
  3. Claude trust — PRE-EXISTING-PARENT FUNCTIONAL NONPASS, caveated. tests/fm-claude-trust.test.sh: merged/fork/upstream script1/6175,5751,6316ms; runner1/6390,5993,6437ms; outer1, gatefalse,13 positive prefixes each. The fixture under standard TMPDIR discovers an enclosing operational-home Git repository and receives the not-at-repository-root refusal instead of the expected not inside a git repository text. The later no-trust-write assertion was not reached. No outside-repository counterfactual or guard relaxation was performed. Relevant test/helper/refusal code is identical three ways, but complete helper libraries/runners differ; this is not all-path compatibility. Merged/fork listener audits0; upstream audit unavailable. Nonzero immediate parent controls were zero-window only; successful raw query properties were not retained separately. Later inactive/empty/success observations remain late, not successful-native retirement receipts.
  4. Command Code — PRE-EXISTING-PARENT FUNCTIONAL NONPASS, caveated. tests/fm-commandcode-harness.test.sh: merged/fork/upstream script1/3945,3864,4925ms; runner1/4159,4105,5081ms; outer1, gatefalse, three positive prefixes. Failure-message invocation prints expected lifecycle labels onSessionEnd run_end run_start plus [MODULE_TYPELESS_PACKAGE_JSON]; drive_mod() merges stderr into asserted stdout. The comparison capture was not separately retained and the failure message reinvokes the helper. The warning cause is not counterfactually isolated; later assertions were not reached. Neither incorrect product lifecycle registration nor later callback/spawn coverage is proved. Test/mod/helper are identical three ways; other libraries/runners differ. No ancestor-package inspection/edit, warning suppression or replay. Merged/fork audit0; upstream unavailable; immediate nonzero parent controls were zero-window only without separately retained successful raw properties.00:46:47Z merged and00:58:08Z parent observations remain late.
  5. Recorded-clone relaunch — PRE-EXISTING-UPSTREAM-PARENT FUNCTIONAL NONPASS, caveated, accepted after the integration correction. Original merged039 failed the standalone-clone case1/46155ms (runner1/46373ms), without reaching the later case. Fork original full script0/467365ms (runner0/467587ms), but lacks the clone/after-stop-primary cases; this is not merged coverage. Upstream original passed those cases then failed a different later endpoint-readiness assertion1/385619ms (runner1/385744ms). The sole corrected048 full replay02:49:47–02:56:24Z on2026-11-18 remained script1/397570ms, runner1/397774ms, outer1/driver1, gatefalse, listeners0,67 positive prefixes. Required standalone-clone/after-stop-primary and primary-home/project-primary/inherited-Git refusals passed, but the script did not. Failure: relaunch did not reach its pre-publication endpoint check, as in upstream. The later function/invocation is identical; cause unisolated, redirected child output unretained, later assertions unreached.200×0.01 source sleeps are not measured case duration.03:04:34Z scope/source observations are late, not an immediate successful retirement receipt. Original upstream listener audit unavailable; fork/merged0. Parent driver0 proves measurements only. No second correction/probe/replay. Original merged039 ran01:27:02–01:27:48Z; fork01:56:31–02:04:19Z; upstream02:04:20–02:10:46Z. Fork retirement succeeded in0.015794144s; upstream nonzero used only zero-window control without separately retained successful raw properties;02:13:13Z parent queries remain late. No live worker was interrupted. The fresh-foreign-clone negative in tests/fm-spawn-pool-base-freshen.test.sh remains among197 unrun; unchanged source is not runtime coverage. The readiness failure is a candidate upstream issue only; none was filed here.
  6. DOD — ENVIRONMENT-DEPENDENT FIXTURE NONPASS under standard TMPDIR, passing once under verified non-Git TMPDIR. tests/fm-dod-lib.test.sh: original048 standard-runtime script1/1896ms, runner1/2109ms, outer1/driver1, gatefalse, listeners0,04:31:05–04:31:08Z. Two ROOT assertions preceded the failure; no whole-case positive line preceded it.04:33:01Z observations are late. The sole053 unchanged original full-script counterfactual05:24:11–05:24:41Z passed script0/29624ms, runner0/29871ms, outer0/driver0,36 positives, gatefalse/listeners0, immediate048 before/after identity and retirement0.0165402859s. Only TMPDIR changed from033: fresh owned0700 /tmp/fm-dod053.an9ct0, verified outside Git by discovery exit128. This is not ordinary PASS, unchanged-environment flakiness or measured parent-native failure. Assertion/formatter policy is fork-side and fork=merged; exact0-vs2 lineage branch remains untraced. No DOD parents were run and no fixture correction is included.

Unresolved extension-binding — not an accepted seventh non-pass

Original standard-TMPDIR053 merged run05:48:20–05:48:34Z: script1/13716ms, runner1/13935ms, outer1/driver1, gatefalse/listeners0. It showed Git-boundary/package-source refusals, missing libraries and deadline/control-boundary failures. Its scope was later active/populated; the one separately authorized054 stop06:01:37Z removed it. This was cleanup, not a test pass or successful-native retirement proof, and grants no further cleanup authority.

Fresh056 non-Git merged run07:37:03–07:37:19Z: script1/15315ms, runner1/15537ms, outer1/controller1, gatefalse/listeners0. It showed missing libraries, fork: retry: Resource temporarily unavailable, one internal Killed child and deadline/control-boundary failures. No whole-script1500/1530 timeout occurred. Immediate zero-window query found the exact scope inactive/removed/empty with Resultsuccess; this does not override native1. The selected unit journal records start/accounting only (54.257s CPU,7.9M peak,0B swap), not a limit/OOM/kill/timeout event. Absence of a journal event excludes no unlogged event and proves no internal timeout cause. Printed fork retry does not establish TasksMax exhaustion; Killed does not establish OOM or whole-script kill.

Sole057 fork-parent non-Git run08:30:57–08:31:33Z: script1/35128ms, runner1/35343ms, outer1/controller1, gatefalse/listeners0. It printed five missing-task-inbox and five missing-backend diagnostics,12 positive lines/three section-local passes, then not ok - an isolated extension conformance section failed. It did not print deadline/control-boundary assertions, fork retry, Killed or AssertionError; absence is not proof the activity never occurred. Thus057(d), a nonmatching-signature parent failure, not the requested matching shared-parent whole-script acceptance, a confirmed regression or cause isolation. Parent full test differs from upstream/merged. Immediate zero-window scope query was inactive/removed/empty, Resultsuccess, no lifecycle action; not successful-native retirement. Parent remained clean/detached;048 bytes unchanged.056's PASS prerequisite was unmet;197 never started. No further comparison/replay is authorized.

OWN flaky result, separate from accepted failures and ordinary passes

tests/fm-claude-stop-autoarm.test.sh is FLAKY MERGED NONPASS-THEN-PASS: original merged1/221296ms at resumed-same-id-orphan: the superseded orphan still delivered a banner; original fork/upstream passed0/179215ms and0/277925ms; the sole unchanged merged replay passed0/267911ms (runner0/268141ms), with recorded successful retirement. The readiness-loop hypothesis is unproven. This is an observed-result disposition, not a cause or ordinary green suite. No third merged run.

Runtime, TMPDIR and source provenance

Agy validation and later portable scripts used child-only existing concrete Node26.13.0 first on PATH, MISE_AUTO_INSTALL=false, MISE_EXEC_AUTO_INSTALL=false, MISE_NOT_FOUND_AUTO_INSTALL=false, and FM_LIVE=0. Runtime033 additionally removed exactly TMUX, HERDR_ENV, TERM_PROGRAM, REX_BLOCK, CMUX_WORKSPACE_ID, __CFBundleIdentifier, HC_TERMINAL_ID, HC_TERMINAL_SOCKET, HC_SESSION from each validation child's inherited environment. Identity values are not disclosed. Parent environment, HOME/XDG, explicit selectors, pins, locations and user/global configuration were not changed as runtime adjustments; external effects were not independently audited. Three initial pass receipts predate028; eleven other pass receipts use028;43 use033. Historical attempts are not all relabelled033.

Agy's fixture resolves Node to a Mise shim then switches HOME, permitting automatic fixture-home installation; its missing-Agy case removes only the fake and leaves a real host Agy reachable. Those fixture defects pre-exist and are identical in fork/upstream/merge. Preserve two initial merged zero-bound failures, a failed diagnostic probe and both parent scripts' later missing-executable failures; none is a green receipt or proof of flakiness. The isolated full Agy028 run passed0/88554ms (runner0/88734ms),14:26:17–14:27:46Z on2026-11-17. Unexpected Node26.13.1 installation output was observed; its metadata/size is unavailable, not zero, and Node26.13.0's size is not substitute evidence. Fixture cleanup removed that metadata; no manual install/rollback or Agy patch is included.

Later portable controllers used2GiB/Swap0/Tasks256/jobs1,1500s script/1530s outer+15s grace,and the required fresh load1<10 gate. Successful new runs had read-only at-most60s exact-scope retirement checks; nonzero zero-window observations are not successful-native receipts. Earlier attempts retain their actual controls rather than inheriting these retroactively. Standard033 TMPDIR was the task's postlint-tmp beneath an ambient Git boundary. DOD053 used /tmp/fm-dod053.an9ct0, profile 4a9c2b1d257b0f3dcba9295dc017e9e2a1cc10e4dab07b267870b4d7e5883b7f.054 changed the prospective continuation baseline to a fresh non-Git TMPDIR after trust/DOD/extension Git-boundary evidence and the DOD counterfactual; CI alignment was a rationale, not a measured CI result or retrospective trust/extension pass.056 used owned0700 /tmp/fm-upsync056.kgDiH0, profile 3dc2d87e23a8c489d42b2c45725ef9c4496500c394a877b8a7b02d7b3c475cc5;057 used owned0700 /tmp/fm-extension057.yYKFeq, profile e33c36a0254b2b96a41793d3f822c67fa9a3a442c0e3c725b9a11b4d8ce83fd6. Fresh physical non-symlink roots had no Git ancestor/discovery exit128. Each differs from033 profile 75168340c48e62a649f067d8c51aa9028c2c488966b629fec1b4eeb3a1ea5e07 only in TMPDIR.028 profile was a4c31f184a9789c02730b4b989abc7b1c5a7f35041d90b52e95bd8b5ec61242c. Non-Git successes do not retroactively make standard-TMPDIR failures pass. No197 continuation result exists.

Of57 ordinary receipts,30 plus six gates retain020 source manifest 642487817e385a0ab8adeb30b489281f967984e957af392b08774008de8eb947;17 ordinary retain039 f9daa193c45acc043bcc68d34ea3a55ccf70fd65f331b7aa6da188cd441a115c;ten ordinary were actually measured on048 324fdf5747d263315b65d8b784fba099560d140389a2ce4c1d0909859e7fcff6 under standard033.039 changed only the safe-suite text manifest;048 changed only bin/fm-spawn.sh relative to039, leaving the other944 paths/modes/types and every test unchanged. Earlier receipts were preserved, not rerun/relabelled or replaced with final-tree credit. New ordinary048 results were control, cortex, crew-state, cursor, cursor-primary, daemon, devin, dispatch-resolve, documentation-audiences and ensure-agents-md; each had native/runner/outer0 and immediate source/retirement proofs. Cursor-primary ran04:05:04–04:09:22Z on2026-11-18.197 paths remain unrun, including prospective live/Windows gates and BSD assertions.

Board pass caveat and deferred fixture work

tests/fm-bearings-board-render.test.sh returned native0/outer0 with13 positives, but the immediate retirement query saw an active scope and its driver returned2. It later retired: resource-accounting16:50:54.515851Z and reconciliation16:53:54Z on2026-11-17; no child identity was recorded. This is the separately accepted caveated pass, not a proven leak/race/cleanup cause. Three fake-lavish commands attempted /state.json writes because render_call() omitted its per-home LAVISH_AXI_STATE_DIR; writes were denied, not writes to real default Lavish state. That fork-side omission predates integration and is unchanged;028/033 did not cause path selection. Whether an unpinned listener historically read the real default store is unestablished; only file metadata, not contents, was inspected. The derived later checkpoint is explicitly late (original2026-11-17T16:53:54.153029Z), not immediate evidence.

Existing follow-up plat-fh-agy-test-isolation owns seven deferred fixture findings: Agy shim/HOME installs; missing-Agy host reachability; Paseo inherited HC identity; board state pin/listener handshake; busy fake-tmux/TTY modelling; trust ambient-Git fixture location; Command Code stdout/stderr separation. Paseo's cleanup predates the HC detector; relevant source is identical three ways and the later full033 pass does not erase031's failure. Board's proposal uses its own home state directory plus require_listener_reached_poll, but remains untested and does not prove a retirement fix. Busy's proposal returns claude for #{pane_current_command} and empty for #{pane_tty}, not blanket0; it remains unapplied/untested. Lifecycle profiling/splitting/re-bounding is additional work, not an eighth proved fixture bug. None of these fixes belongs in this sync. These two additional required follow-up lines do not claim a filed or owned work item:

The remote-root copy omission is shared-parent fixture debt, not an integration fix. It explains missing-library diagnostics, not whole-script/deadline causality. No fixture/source/test correction for either line is included.

Other local validation and execution limitations

The four earlier named full-script reruns passed after approved fixture corrections: PR-check-security0/1342578ms (runner1342796), dispatch0/101333ms (runner101544), backlog-handoff0/245245ms (runner245463), PR-merge0/1960125ms (runner1960317). Earlier original failures and the900-second security timeout remain preserved; these measurements predate048 and do not turn197 unrun cases green. Readiness's measured.27335-second late observation motivated the separately retained100→500×.02s test-only fix; later unchanged security/serialization/content/hash/release assertions passed. Handoff wait250×.02s and production locks did not change. Initial syntax/marker/diff checks and static negative-controller checks are not native behavioral coverage.

Historical Lint is incomplete as a final048 verdict: a6GiB attempt OOM/interrupted143 after2311s/190 roots; a14GiB diagnostic exposed ShellCheck memory fallbacks; a later5400s driver timeout124/native143 had553 completed roots and no final TSV. Neither timeout identifies the unfinished pending-reply root as its cause. Disjoint019/020 receipts account for645 canonical roots plus backend purity/four workflows and206 changed roots, with eight final_follow_sources=0 memory fallbacks (tests/fm-daemon.test.sh, bin/fm-spawn.sh, bin/fm-teardown.sh, bin/fm-watch.sh, tests/fm-launch-prompt-signals-live-e2e.test.sh, tests/fm-pending-reply.test.sh, tests/fm-stat-shadowing.test.sh, tests/fm-watch-open-decisions.test.sh); SC1091/SC2034/SC2153/SC2329 exclusions remain disclosed. The child-subshell SC2031 comment is narrow, not a behavioral/global suppression.048 later changed the spawn root; historical645-root coverage is not final048 configured Lint. Documentation check passed native/driver0,149 surfaces/1287 local links. A prior30-second coverage timeout and2026-11-16T20:18:48Z6GiB interruption during host saturation remain unproved outcomes. No new local Lint/Test is run for delivery.

A reporting incident accidentally evaluated a backticked controller command before approval; the10-second tool call timed out and its exit was not captured. Exact process/output checks found no new native process/output; the parent independently confirmed this and050 ruled no native execution effect. No kill/retry/cleanup was used to infer success. The intentional049 launch03:50:12.394796Z was separately authorized. Status text thereafter uses literal quoted-heredoc files. Separately, consumed053's allowlist lacked explicit shell exit propagation under set -u without set -e; metadata negative checks did not prove shell enforcement. Both actual native paths were authorized, native1 stopped correctly and no rejected-guard/out-of-scope execution was observed. This defect is not an established extension cause; the consumed helper was not repaired/restarted.056 used fresh explicit failure propagation instead. No journal/accounting/model advice is validation or isolated causality.

Actual ordinary native0 scripts,by runtime

All names below are under tests/;board retains its explicit caveat.

  • legacy-before028: fm-afk-contract.test.sh, fm-afk-inject-e2e.test.sh, fm-afk-return.test.sh.
  • isolated028: fm-agy-harness.test.sh, fm-agy-primary.test.sh, fm-approval-failover.test.sh, fm-arm-pretool-check.test.sh, fm-ask-user-authority.test.sh, fm-assertions.test.sh, fm-backend-cmux.test.sh, fm-backend-hc.test.sh, fm-backend-herdr-server-eof.test.sh, fm-backend-herdr.test.sh, fm-backend-orca.test.sh.
  • isolated033: fm-backend-paseo.test.sh, fm-backend-rex.test.sh, fm-backend-t3code.test.sh, fm-backend-tern.test.sh, fm-backend-zellij.test.sh, fm-backend.test.sh, fm-backlog-atomicity.test.sh, fm-backlog-handoff.test.sh, fm-backlog-read-bound.test.sh, fm-bearings-board-render.test.sh, fm-bearings-board.test.sh, fm-bearings-snapshot.test.sh, fm-bootstrap-network-parallel.test.sh, fm-bootstrap.test.sh, fm-branch-supervision.test.sh, fm-brief-tdd.test.sh, fm-brief-test-scope.test.sh, fm-brief.test.sh, fm-busy-state.test.sh, fm-calm-claude-mod.test.sh, fm-capacity-auto.test.sh, fm-capacity.test.sh, fm-captain-hold-backend-compat.test.sh, fm-cd-pretool-check.test.sh, fm-check-unregister.test.sh, fm-classify-corr-token.test.sh, fm-classify-decision-key.test.sh, fm-claude-account-quota.test.sh, fm-codex-stop-park.test.sh, fm-composer-ghost.test.sh, fm-composer-lib.test.sh, fm-contributions.test.sh, fm-control-hc.test.sh, fm-control.test.sh, fm-cortex-harness.test.sh, fm-crew-state.test.sh, fm-cursor-harness.test.sh, fm-cursor-primary.test.sh, fm-daemon.test.sh, fm-devin-harness.test.sh, fm-dispatch-resolve.test.sh, fm-documentation-audiences.test.sh, fm-ensure-agents-md.test.sh.

UNAVAILABLE,NOT RUN and prospective platform gates

Seven observed UNAVAILABLE exclusions — not passes

Six exact native whole-file gates were observed;the seventh is a prerequisite failure,not a native gate:

Script (tests/) Exact reason / outcome
fm-backend-cmux-smoke.test.sh cmux CLI not found on PATH or at the bundle path
fm-backend-paseo-smoke.test.sh paseo CLI not found on PATH or at the bundle path
fm-backend-rex-eventwait-smoke.test.sh rex CLI not found at $REX_BIN_DIR, on PATH, or at the server bundle path
fm-backend-rex-smoke.test.sh rex CLI not found at $REX_BIN_DIR, on PATH, or at the server bundle path
fm-backend-tern-smoke.test.sh tern not found
fm-backend-zellij-smoke.test.sh zellij not found
fm-ci-workflow.test.sh UNAVAILABLE—missing host tool:ruby;ruby is required to parse .github/workflows/ci.yml as YAML;script1/975ms,runner1/1172ms,outer1,gatefalse. YAML-semantic assertions unreached;workflow-presence precheck is not semantic coverage. Late scope/source check remains late. No installation,parent comparison,replay or native0 relabel.

The initial cmux exclusion was not rerun or passed. No installed lifecycle tool is described as unavailable merely because its cases were deferred.

Eleven deferred lifecycle cases:NOT RUN,outside permitted scope

The host runs the live fleet and this task has no Herdr lab. These were filtered,not run or passed:

  • tests/fm-backend-hc-appdetect-smoke.test.sh
  • tests/fm-backend-hc-smoke.test.sh
  • tests/fm-backend-tmux-smoke.test.sh
  • tests/fm-calm-pi-extension.test.sh
  • tests/fm-gate-refuse.test.sh
  • tests/fm-live-lab-isolation.test.sh
  • tests/fm-live-lab-up-mate.test.sh
  • tests/fm-live-lab.test.sh
  • tests/fm-spawn-orca-worktree.test.sh
  • tests/fm-teardown-endpoint-safety.test.sh
  • tests/fm-tmux-agent-liveness.test.sh

Four prospective gates among197 unrun — not observed exclusions

tests/fm-opencode-abs-cwd-rail-live-e2e.test.sh, tests/fm-supervision-host-herdr-live-e2e.test.sh, tests/fm-watch-inbox-progress.test.sh:expected live: disabled by FM_LIVE=0. tests/fm-pi-windows-shell-invocation.test.sh:expected native Windows Node required. Those reasons were planned exact gates,not newly observed receipts;do not add them to the seven UNAVAILABLE outcomes.

Linux/BSD no-assertion limitation

tests/fm-stat-shadowing.test.sh remains unrun. Its Linux branch would print an ok/skip-style line without BSD shadowing assertions: Darwin-only test: shadowing assertions require BSD /usr/bin/stat; skipping on Linux. This is no BSD coverage and no observed script pass. Internal skips in another script do not become whole-file exclusions.

Current publication limitations

The wedge-cap whole-file local run timed out at 1500 s with 25/29 positives and no failed assertion; it was not a whole-file pass.

The triage whole file was not re-run locally after the fixture fix; CI is the arbiter.

Upstream's opt-in Treehouse pool report scans only ~/.treehouse and does not see the fork's project-bound ~/.treehouse-fm pools; it stays off on fork homes, unchanged by this sync.

Known latent interaction (fails safe, feature off by default): a captain-hold deferral invalidates a declared PR-settlement policy; redeclare it after deferring. Tracked as a follow-up.

Azd325 and others added 30 commits November 2, 2026 11:17
…sweep (kunchenguid#8086)

* fix(pr-check): record every PR a task reports in a done line

Merge and health monitoring of a task's PR began only when the supervisor
ran fm-pr-check.sh by hand on the ready signal. When that step was missed,
for example on a rebase of an existing PR whose done line did not use the
canonical wording, the task kept no pr= and no merge poll, so failing
checks and maintainer requests on that PR went unnoticed.

fm-pr-check.sh scan now records each task whose newest done line naming a
supported PR URL ("PR <url>" anywhere in the note) has no pr= yet, through
the ordinary registration path, so every refusal still applies. The
watcher runs it at the start of each check sweep. A refusal is reported
once per task and PR as a check: pr-register: wake and retried silently on
later sweeps; teardown removes its marker.

* no-mistakes(review): Scan new PR reports before refused retries

* no-mistakes(review): Rotate scan start so hung PR registrations cannot starve

* no-mistakes(review): Resume PR scan after last attempted task

* no-mistakes(lint): Fix SC1007 in fm-pr-check.sh candidates declaration

* no-mistakes(ci): Fixed ci-2 and ci-4 in bin/fm-pr-check.sh. ci-2: the scan now treats a task whose pr= equals the reported done-line URL but has no valid published poll as unregistered, so a later sweep republishes the poll. ci-4: scan-driven registrations run with FM_PR_CHECK_SCAN=1 and, under the metadata lock, exit 0 without writing if pr= is now set to a different URL; manual registration is unchanged. Added two tests in tests/fm-pr-check-security.test.sh (test_scan_publishes_a_missing_poll_for_a_recorded_pr, test_scan_does_not_overwrite_a_pr_recorded_meanwhile), and a configurable FM_TEST_GH_SLOW_SECONDS in the slow gh stub. Both new tests fail without the fix and pass with it; the four existing scan tests still pass; shellcheck shows only SC1091 info notes. The full test file aborts earlier on this machine at an unrelated test (GNU stat '%Lp' errors / flaky), so I ran the scan tests as a separate set. ci-1 and ci-3 are declined, with no code change; the ci-3 known-limit line (a refusal notice can be lost if the watcher stops between writing the refusal marker and queueing the wake) still needs to go into the PR description, which I cannot edit from here. Known tradeoff: a merged task whose poll was retired but whose pr= and done line still match would look unregistered and be re-armed until teardown

* no-mistakes(ci): Part (1) is fixed. The scan in bin/fm-pr-check.sh now skips a task that has state/<id>.pr-poll-merge-notified or state/<id>.pr-poll-retirement. A merged task's retired poll is no longer re-armed. I added test_scan_does_not_rearm_a_retired_merged_poll to tests/fm-pr-check-security.test.sh. With the exclusion removed, the test fails ("the scan re-armed the poll of a merged task"). With it restored, the test passes. The existing missing-poll and concurrent-PR scan tests also pass. I ran only these three tests, because the full file is slow and was already known to abort early on this machine at an unrelated stat test. shellcheck -S warning is clean. Part (2) needed no change. The scan-only recheck already sits inside the META_LOCK section, right after the lock is taken and the metadata file is re-validated, before the meta rewrite. It exits 0 without writing or publishing when pr= is a different URL. The ci-4 test still passes

* no-mistakes(ci): Fixed ci-2. The scan in bin/fm-pr-check.sh now skips a task only when its merge-notified marker or poll retirement receipt names the same PR as the recorded pr=. A new helper, pr_check_pr_retired, does the check. An older PR's marker no longer hides a newer recorded pr= whose poll is missing. Tests, in tests/fm-pr-check-security.test.sh: - Added test_scan_arms_a_replacement_pr_despite_an_old_merge_marker. It uses an old PR 7 merge marker and a recorded pr=9 with no poll. The scan must arm the poll. With the old unconditional skip restored, the test fails ("an older PR's merge marker hid the replacement PR's missing poll"). With the fix, it passes. - test_scan_does_not_rearm_a_retired_merged_poll now writes a valid marker for the same PR. The old marker was a bare version line, which the new check correctly rejects. This test still passes. - The other scan tests pass: publishes_a_missing_poll and does_not_overwrite_a_pr_recorded_meanwhile. - I ran only the four scan tests, because the full file is slow and aborts early on an unrelated stat test on this machine. shellcheck -S warning is clean. ci-1 is declined: only the maintainer full-ci label gate failed. I made no PR description edits, because I cannot edit the PR from here. The earlier requested statements still need to go in the description: the kunchenguid#8023 (comment-wake) coverage of the waiting-author comment case, and the refusal-notice known limit

* feat(pr-check): run the done-line PR scan only with config/pr-register-scan

The watcher check sweep runs bin/fm-pr-check.sh scan only when the
home opts in with the config/pr-register-scan presence flag. With the
flag absent, the sweep is unchanged from before the scan existed.
The watcher test covers both settings.
…henguid#8017)

* test: give anchored absence assertions a regex that can match

assert_grep and assert_no_grep are fixed-string greps. An anchored pattern
handed to them searches for a literal caret, which no line can contain, so
every anchored assert_no_grep passed no matter what the file held.

Eighteen call sites across six suites asserted their absence that way, so
they were silently checking nothing: the merge-local readiness snapshot,
the public-followup request and platform links, the secondmate backend and
harness records, the restart literal-stop path, the delivery mode and yolo
fields, and the remote-doctor launchctl calls.

Add assert_regex and assert_no_regex for patterns that describe a line
rather than a literal, and convert those sites. The remote-doctor
alternation becomes a real ERE group instead of a fixed string containing
backslash-pipes.

The three suites that run on this host pass unchanged: merge-local 8,
task-delivery 34, public-followup 90. The other three fail identically on
unmodified main here because their fixtures pin a PATH without tr, sed, or
head; that is environmental and unrelated.

* no-mistakes(review): Fix regex absence errors and interactive label guard

* test(assertions): name lib.sh for ShellCheck source following

* no-mistakes(test): Fix vacuous anchored absence guard in fm-pr-merge help test

* no-mistakes(review): Restore pre-existing help assertion exactly

* no-mistakes(document): Document new assertion suite coverage in its header comment
…r there (kunchenguid#8052)

* fix(spawn): lease the Herdr task copy so a restart restores the worker there

* test(spawn): align Herdr abort fixture with lease failure

* no-mistakes(review): Return Herdr lease when projected abort closes task pane

* no-mistakes(document): Note Herdr spawns no longer leave nested treehouse shell

* no-mistakes(ci): ci-2 (Greptile, bin/backends/herdr.sh): the invariant is that the projected abort cleanup must report a closed endpoint exactly when the task pane is confirmed gone. fm_backend_herdr_projection_close_pane_focus_preserving can confirm the close and then return 2 only because focus restoration failed. It can also return 2 or 1 after a close that did not happen. The only place where this result becomes SPAWN_ENDPOINT_CLOSED is fm_backend_herdr_projection_cleanup_exact; its single caller is bin/fm-spawn.sh:1691. I fixed it at that shared boundary. When the close call fails, the function now checks the exact pane with the existing fm_backend_herdr_pane_presence_state, and it reports success only when the result is `dead` (pane_not_found). It does not treat a return value of 2 as closed, so a present or unknown pane keeps the lease. I also updated the comment above the function. Tests (tests/fm-backend-herdr.test.sh, test_projection_cleanup_exact_succeeds_only_when_the_task_pane_closed): I added two behavioural cases that run the real cleanup and the real presence classifier against a stubbed herdr CLI response. (1) The close returns 2 and the pane get returns pane_not_found: the result is rc=0, so the endpoint is closed. (2) The close returns 2 and the pane get still shows the pane: the result is rc=1. I also stubbed the CLI in the existing refused-close case so that it cannot reach a real herdr. Before the fix, the confirmed-close-then-failed-restore case failed ("got 'CLOSED w1:p1;rc=1'"). After the fix, the full tests/fm-backend-herdr.test.sh and tests/fm-spawn-herdr-lease.test.sh pass. shellcheck -S warning is clean on both changed files. ci-1 (Full suite): this is not a code defect. The job stopped at the label gate with FM_CI_FULL=false and FM_CI_LANES_FAILED=false, so no lane failed. I did not change code for it. I did not re-run the workflow: this phase must not control CI, and a re-run cannot pass until a maintainer adds the full-ci label to PR kunchenguid#8052, because the gate reads that label. This is still an external label requirement. Note: a temporary copy of the fixed herdr.sh remains at /tmp/herdr.fixed, because my clean-up command was denied by permissions

* no-mistakes(review): Release or name Herdr lease after post-launch rollback

* no-mistakes(review): Return Herdr lease only when the pane is confirmed gone

* no-mistakes(review): Keep dirty Herdr slots leased after failed spawns

* no-mistakes(test): Count Herdr pane-death removal in concurrent abort ordering check

* no-mistakes(document): Clarify Herdr aborted-spawn lease return condition

* test(herdr): allow explicit lab session for presentation e2e

* fix(teardown): close Herdr pane before returning its lease

* no-mistakes(review): Remove inherited HERDR_LAB_SESSION override from presentation e2e

* no-mistakes(document): Document Herdr teardown closing pane before returning lease

* fix(teardown): retain leased copy when Herdr close is refused
… agent is live (kunchenguid#8085)

* fix(inactive-reconcile): withhold terminal outcome while the agent is alive

Fixes kunchenguid#6553

* no-mistakes(review): Bound liveness read; withhold only busy or relaunched agents

* no-mistakes(review): Judge incarnation by spawn epoch; use remaining budget

* no-mistakes(document): Document live-agent withholding in architecture scan rule

* no-mistakes(lint): Fix ShellCheck SC2143 and SC2016 findings

* no-mistakes(ci): ci-2 and ci-3 are fixed in tests/fm-inactive-reconcile.test.sh. ci-1 (Full suite) needs no code change, as the captain decided. I ran only the new test in isolation, plus a mutation check; the full test file did not pass in this environment (details at the end). - **ci-2 (macOS sed):** `arm_claude_busy` no longer uses `sed -i`. It writes the edited meta to `<id>.meta.new` and moves it over the original, so it works with both GNU and macOS sed. - **ci-3 (liveness-read timeout):** I added `test_stalled_liveness_read_is_bounded_and_scan_progresses`. - The fake `fm-crew-state.sh` sleeps 1s, then returns `failed` for child `a`. - The fake `tmux` then stalls for 30s, which stalls the liveness read. - With a 2s scan budget, the scan must finish within 4s. - After the stall is cleared, the next scan must still reach child `b`. - **Mutation check:** I removed `fm_run_timed "$timeout"` from the liveness read at `bin/fm-inactive-reconcile.sh:517`. The new test then failed, so it catches a lost timeout. I restored the file afterwards. - **Full test file:** it did not pass in this environment, because the existing `test_stalled_state_read_is_bounded_and_scan_progresses` failed on timing. In one run it exceeded its 3s elapsed bound (4s); in another, its next scan did not reach child `b`. I never ran it against `HEAD` alone; this PR changed that file only by adding the new test and the sed fix. - **Not checked:** I did not investigate why that existing test fails here
…biguous (kunchenguid#7568)

* fix(herdr): name a stale launcher pane id as gone instead of ambiguous

The launcher pane id a shell inherits outlives the pane itself.
When herdr no longer knows that id, `pane get` answers with whatever
pane it still has, the exact-id filter in
fm_backend_herdr_launcher_identity keeps nothing, and the guard
refused with "returned an ambiguous tab or workspace identity".
There is no ambiguity to report: the pane does not exist any more, so
the id is stale.

The refusal now names the stale pane id, says the pane no longer
exists in the session, and names HERDR_PANE_ID, HERDR_TAB_ID and
HERDR_WORKSPACE_ID as the values to refresh.
The return codes, the refusal behavior, the identity-matching logic
and the spawn behavior are unchanged, and no other error path changed.

tests/fm-backend-herdr.test.sh covers both shapes of this path: a pane
id herdr answers with a different pane, and a pane record that names
no tab.

* fix(herdr): stale launcher pane message covers the no-tab shape too

The empty-tab shape is a pane record that still answers but names no tab,
so 'no longer exists' was not literally true for it. The refusal now says
the pane is stale: it no longer exists or names no tab or workspace in the
session. Return codes, refusal and identity matching are unchanged.

* no-mistakes(review): Reword unreadable launcher pane error as stale

* no-mistakes(document): Document stale launcher pane refusal in herdr backend docs

* fix(herdr): keep the could-not-be-read wording when the launcher pane get fails

* no-mistakes(test): docs(herdr): describe destroyed panes as unreadable, not stale
…uid#8084)

* feat(bin): add verified Hermes TUI worker adapter

* no-mistakes(document): Document Hermes owner in tmux composer identity comment

* no-mistakes(ci): Fixed ci-4: a Hermes worker that stalls at setup or misses the readiness deadline is now stopped before its task record is removed. Rule that must hold: once the Hermes launch command has been sent, any failure exit from the Hermes readiness gate closes the launched endpoint first. Only after that may the abort trap (spawn_abort_cleanup) roll back a fresh spawn's record and retire its busy generation. Two exits in the gate broke this rule, and both are now fixed in bin/fm-spawn.sh: 1. **Readiness timeout:** after the existing error message, the gate now calls `rovo_endpoint_cleanup`. This is the same close step the rovo launch-then-confirm gate already uses: it calls the backend's kill (just the exact terminal on orca) and sets SPAWN_ENDPOINT_CLOSED. It runs before `exit 1`, so the window is closed while the record still exists. 2. **Failed Enter on the first-run decline:** this used to `exit 1` straight away. It now `break`s out of the poll loop, so it reaches the same close-then-exit path. The ordinary path is unchanged. A ready screen or a hook record sets HERMES_READY=1 and skips the cleanup. Regression test in tests/fm-hermes-harness.test.sh: a fake tmux shows a stalled provider-setup screen, and the test uses tiny poll settings (FM_HERMES_READY_POLLS=2, interval 0). The fake `kill-window` writes down whether the task's .meta file still exists at the moment it is called. The test asserts that the spawn fails with the Hermes diagnostic, that `kill-window` ran while the record was present, and that the fresh record was removed afterwards. I confirmed it fails without the fix ("missing: 'kill-window record=present'") and passes with it. It uses only throwaway fixtures and a generic `example` profile. Checks run: tests/fm-hermes-harness.test.sh and tests/fm-rovo-harness.test.sh both pass with 0 failures, shellcheck on both changed files is clean, and `bash -n` passes. Changes are left uncommitted so the pipeline can record them as their own fix commit, with no squash. ci-1, ci-2 and ci-3 were not touched, as instructed

* no-mistakes(ci): I fixed ci-3. If the stalled Hermes worker can't be closed, a failed spawn now keeps its task record, so supervision and teardown can still reach the worker. **What must always hold:** once the Hermes launch command has been sent, the spawn rollback may remove a fresh task record and its busy generation only after the launched endpoint has actually closed. The last round's ci-4 fix tried to close the pane first, but it ignored whether that close worked. The cleanup at exit (`spawn_abort_cleanup`) still saw `SPAWN_FRESH_COMMIT_PENDING=1` and removed the record anyway, leaving a possibly live Hermes worker with nothing pointing at it. **Fix** (`bin/fm-spawn.sh`, the Hermes readiness gate's failure exit): after `rovo_endpoint_cleanup`, if `SPAWN_ENDPOINT_CLOSED` is not 1, the gate clears `SPAWN_FRESH_COMMIT_PENDING`. It also prints a warning that the record is kept and the worker should be inspected and torn down. This uses the existing flag the abort cleanup already relies on, the same way other kept-record paths skip rollback. The readiness timeout and the failed-Enter exit from the first-run decline both reach this single exit, so the fix covers both. Nothing else changes: - When the close succeeds, the record is rolled back exactly as before (the earlier stalled-launch test still passes). - When Hermes becomes ready, this branch is skipped. - On a relaunch, `SPAWN_FRESH_COMMIT_PENDING` is already 0, so nothing changes there. I left the other harnesses' gates alone. Changing how they roll back would go beyond this finding. **New test** in `tests/fm-hermes-harness.test.sh`: a fake tmux shows a stalled provider-setup screen, and its `kill-window` can be made to fail (`FM_FAKE_HERMES_KILL_FAIL`). The test checks four things: - the spawn fails with the Hermes error; - a close was attempted while the record existed; - the kept-record warning is printed; - the `.meta` record survives and still has `hermes_profile=example`. It uses only throwaway fixtures and a generic `example` profile. Without the fix the test fails ("missing: 'task record is kept'"); with it, it passes. **Checks run:** - `tests/fm-hermes-harness.test.sh`: all cases pass, 0 failures. - `tests/fm-rovo-harness.test.sh`: passes. - `shellcheck` on both changed files: only the usual SC1091 info notes about sourced files not being followed (it was run without `-x`), no warnings. As instructed, I didn't touch ci-1 (the full-suite label gate maintainers apply) or ci-2 (stale). The changes are uncommitted so the pipeline can record them as their own fix commit, with no squash

* test: include Hermes process helper in partial-bin fixtures

* no-mistakes(review): Add Hermes process helper to remaining fm-harness fixtures
* fix: recheck landed work after teardown process reap

* no-mistakes(review): Delay backlog close markers until post-reap safety proof

* no-mistakes(document): Correct stale pending-close publication references

* no-mistakes(document): Clarify initial teardown safety check ordering

* no-mistakes(document): Correct teardown ordering comments and stale retention documentation

---------

Co-authored-by: Kun Chen <[email protected]>
…unchenguid#8099)

* fix(timeout): keep redirected stdin on backgrounded runners

Non-interactive bash assigns /dev/null to an async command, so the external
timeout and bash runners dropped a piped payload before it reached the
command. Restore that stdin with an explicit redirection, leave a terminal
or closed stdin on the old assignment, and cover every mechanism the host
can select.

* no-mistakes(test): Give terminal stdin /dev/null in timed background runs

* no-mistakes(ci): No new code change is needed. The fix for ci-1 is already in commit db61d47a, which is HEAD, and the working tree is clean. Greptile pointed out that the old fd 3 check could never fail: fm_run_timed ran inside a pipeline subshell while `echo still >&3` ran in the parent shell. The committed test now calls the runner directly, with stdin redirected from a file, in the same shell that then writes to fd 3. It covers the external-timeout mechanism when one is installed and always covers the bash override. It checks the exit status, that the fd 3 write landed, and that the payload came through. Following the driver's instructions, I kept that commit and did not rework it. I re-ran `bash tests/fm-timeout-lib.test.sh` and it exited 0 with every case passing. The Greptile check is still failing only because the earlier push to the PR hit a GitHub Internal Server Error and never landed. The test code is not the cause. Re-publishing the existing commit through the pipeline will resolve it, and that step belongs to the outer executor
* Bind interrupted auto-arm notices to their producing session

* no-mistakes(document): Document session-bound auto-arm interruption recovery

* no-mistakes(ci): Fixed all three lint-inventory expectations to exclude hidden scripts, matching the documented shell globs. Tier 2 test correction; production behavior was correct. fm-lint.test.sh passes, with four platform capability skips. Targeted ShellCheck and git diff --check pass

* no-mistakes(ci): Repair blocked: the command guard rejected test authoring as “Indirect command execution not allowed.” Stopped dependent work without switching tools. Independently untracked exactly the six authorized files with git rm --cached; verified every physical file remains and every ignore pattern still matches. ci-1, ci-2, and ci-3 remain unresolved. Neither reproduction nor verification ran. No commit, push, or new scratch files were created

* Preserve interrupted auto-arm episodes by session identity

* no-mistakes(document): Clarify session-bound auto-arm failure documentation

* test: keep the exhausted-interruption fixture on one session

The integrated Stop driver starts a new fake-claude pid per Stop. Bind those
Stops to one recorded session id so a session-scoped interrupted episode can
still exhaust its budget and commit the attended alarm.

Co-authored-by: Kun Chen <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Kun Chen <[email protected]>
…list (kunchenguid#8121)

* feat(bin): choose a Claude account per ship or scout from a declared list

Add an opt-in config/claude-accounts list of Claude config directories.
When it is present, every Claude ship or scout spawn names one declared
entry with --account; that entry passes the same root, raw-command, and
stripped-environment `claude auth status` refusals as config/claude-account,
and is recorded as account= on the spawn line and in the task record.
A relaunch or recovery keeps the recorded account, and only an explicit
`fm-control.sh <id> relaunch --account <entry>` moves a task to another
declared account. Without the list nothing changes and --account refuses.

bin/fm-claude-account-quota.sh measures each declared account in isolation
with `quota-axi --provider claude --profile-only` and shows the highest
known spendPriority, escalating on a tie or when nothing is rankable, so
the existing quota-array-dispatch procedure can rank accounts.

Refs kunchenguid#7638

* fix(bin): keep quota-axi's reason when an account read is rate-limited

quota-axi exits nonzero when it cannot measure a provider, such as when the
Claude quota endpoint rate-limits a burst of reads, but still prints a valid
snapshot naming that state. fm-claude-account-quota.sh now keeps that
snapshot, so the account is reported unmeasured with the vendor's reason
instead of as an unreadable root.

* no-mistakes(review): Make Claude account quota helper data-only; skill chooses account

* fix(bin): close account-list review gaps on --account, runway, and secondmates

- Refuse an --account value holding a control character, and match it
  against each whole declared entry, so a newline can no longer pass
  membership on one line or split the account= record.
- Print each scope's usableRunwaySeconds and the runway's
  projectionConfidence in fm-claude-account-quota.sh rows, so the
  runway floor has the time it needs; confidence was previously always
  dropped because the snapshot carries it under runway.
- Refuse --account on every secondmate spawn before the remote route,
  which previously accepted and ignored it.

---------

Co-authored-by: Omkar Bhale <[email protected]>
…on branch prompt (kunchenguid#8118)

* feat(branch-prompt): append an optional home include to the supervision branch prompt

The headless supervision engine runs in safe mode and loads none of the
home's hooks, CLAUDE.md, skills or plugins, so a home had no way to give the
branch a home-specific rule. fm-branch-prompt.sh now appends the optional
local config/branch-prompt-include.md verbatim as its last section, the same
way config/brief-include.md extends worker briefs: absent or blank leaves the
prompt byte-identical, and an unusable path stops the generator before it
emits anything.

* no-mistakes(review): Pin byte-stability re-run to a temp home

---------

Co-authored-by: c-c6aw <[email protected]>
…not kill the default server (kunchenguid#6422)

* fix(bin): bind live-lab tmux calls to explicit sockets so cleanup cannot kill the default server

tmux honours TMUX_TMPDIR only while that directory exists; once it is gone,
tmux silently resolves the default socket under /tmp/tmux-<uid>. The live
lab and its tests addressed their private server through TMUX_TMPDIR alone,
so a cleanup aimed at a removed lab directory ran kill-server against the
user's own default server and ended every session on it.

Every tmux call in bin/fm-live-lab.sh and its tests now names the lab socket
with tmux -S, and every kill-server runs only while that socket exists. The
lab's stub spawns, the fm-gate-refuse lab-socket test, and the lab cleanup
guidance in fm-brief.sh and fm-lab-home.sh follow the same rule.

tests/lib.sh gains fm_tmux_isolation_gate: a suite that starts or kills tmux
servers runs only when no live server answers in the default socket
directory (a private /tmp, or a disposable CI runner), skips with the
isolation it needs otherwise, and fails instead of skipping under CI. The
live-lab suites open with it. tests/fm-live-lab-isolation.test.sh covers the
gate both ways and proves that pane, say, check and down aimed at a missing
lab directory leave a decoy server on the default socket alive.

* no-mistakes(review): Run live-lab decoy only in private /tmp; drop gate bypasses

* no-mistakes(review): Drop inherited temp dirs inside the isolation namespace

* no-mistakes(document): Clarify live-lab down contract for socket-guarded server kill

* test(live-lab): bound the isolation decoy cleanup and report a decoy it cannot stop

* no-mistakes(review): Run bounded decoy cleanup tests on host; bound kill-server

* no-mistakes(document): Reflow stop_decoy doc comment in isolation test

* fix(tests): treat an exited unreaped decoy as gone in isolation cleanup

* no-mistakes(review): Make pid_running fail closed when ps errors

* no-mistakes(document): Document pid_running fail-closed ps behavior

* no-mistakes(review): add isolation suite serial hint; lane saturated, guard still fails

* no-mistakes(review): shorten isolation cleanup polls; hint 3482ms, guard passes

* test(tests): bound the tmux isolation gate's server probe

fm_tmux_isolation_gate asked each socket's server for its sessions with no
deadline, so a stopped or stuck user tmux server held the gate, and with no
per-script deadline in the runner, the whole run, before it could skip.
Each probe now runs under fm_run_timed for FM_TMUX_ISOLATION_PROBE_SECONDS
(default 5), and a server that does not answer in time counts as live: the
gate skips and names the silent socket and the deadline.

* test(tests): skip the live-lab decoy cases for a checkout under /tmp

The isolation suite re-runs itself under unshare -Urm after mounting a fresh
tmpfs on /tmp, so a checkout under /tmp lost the script to that mount: the
namespace check passed and the re-run failed on a missing file instead of
running its decoy cases. The suite now resolves its own physical path, skips
the decoy cases with a reason before mounting when that path is under /tmp,
and re-runs the physical path otherwise. A copy of the suite under /tmp pins
the skip.

* test(tests): run only the decoy preflight in the /tmp copy of the isolation suite

The copy that pins the /tmp skip re-ran every host case, doubling the
suite's runtime and its exposure to their timing bounds. It now goes straight
to the decoy preflight it exists to exercise.

* test(bin): refresh the live-lab isolation suite serial hint

The probe-deadline and /tmp-checkout cases lengthen the suite from about 3.5 s
to 4.3-6.5 s in a private /tmp; the provisional hint now carries the slowest
of six new samples.
…d#8119)

* Fix retriable bounded lock deadline races

Preserve retry-later status after an unpublished or exited lock holder at the deadline. Keep malformed lock records as hard failures and cover each classification with deterministic lock fixtures.

Closes kunchenguid#8105

* no-mistakes(review): Return 124 when bounded lock is released
…ed work (kunchenguid#7820)

* fix(teardown): refuse open-PR ships and ignore the no-mistakes mirror in the landed test

Teardown deletes the record that merge recording depends on, so an ordinary ship whose recorded pr= is still open is refused (--force bypasses). The unpushed-commit checks also exclude the local no-mistakes mirror remote, which is not a forge, so work that only reached the mirror is no longer counted as landed.

* no-mistakes(review): Exclude no-mistakes mirror from teardown unpushed checks

* test: assert the mirror-only teardown refusal retains the task state
* fix: keep Codex Stop responses free of login-shell output

* no-mistakes(document): Consolidate Codex Stop documentation under authoritative owners

* no-mistakes(ci): Fixed both Pi before_agent_start handlers to narrow prompt-bearing events before accessing event.prompt, addressing the two TS2339 CI errors. Custom events now bypass user-prompt handling; ordinary prompt events and existing message_start paths remain unchanged. Local verification is blocked: tsc is not on PATH. No tools were installed and no other pipeline phases were executed

* fix: keep Codex Stop responses free of login-shell output

* no-mistakes(document): Consolidate Codex Stop documentation under authoritative owners

* no-mistakes(document): Correct Codex verification prerequisites and guard coverage
…nchenguid#7253)

* fix(calm): leave one blank row above the Claude Code working boat

Refs kunchenguid#7160

* no-mistakes(review): Assert spinner Box padding by walking tree
…kunchenguid#8127)

* fix(spawn): refuse to relaunch a worker into a primary home or checkout

A relaunch trusted the recorded worktree and started the worker there. After a machine restart the restored record could point at the primary home or a repository's primary checkout, so a worker was relaunched inside it. Relaunch now refuses with a named error when the recorded worktree is the home, the code root, or a repository's primary checkout (git dir equals git common dir).

* no-mistakes(document): Document relaunch refusal of primary home or checkout worktrees

* no-mistakes(ci): Fixed ci-2 (the Greptile P1 finding). ci-1, the Full suite failure, is the expected maintainer-label gate; the user chose to leave it alone, so nothing was changed for it. Invariant: the relaunch refusal must judge whether the recorded worktree is a primary checkout from the directory's own layout on disk. Inherited Git location variables must not be able to change the answer. In this change, the only place that probes Git for that decision is the git-dir and common-dir check in the `--relaunch` refusal in `bin/fm-spawn.sh`. The home and code-root comparison doesn't use git, so it can't be affected. Fix in `bin/fm-spawn.sh`: both probes now run in a single subshell. That subshell first unsets the same Git variables that `bin/fm-claude-trust.sh` clears (`GIT_DIR`, `GIT_WORK_TREE`, `GIT_COMMON_DIR`, `GIT_OBJECT_DIRECTORY`, `GIT_INDEX_FILE`, `GIT_ALTERNATE_OBJECT_DIRECTORIES`, `GIT_CEILING_DIRECTORIES`, `GIT_NAMESPACE`, `GIT_DISCOVERY_ACROSS_FILESYSTEM`, `GIT_CONFIG*`). It then runs one `git rev-parse --path-format=absolute --git-dir --git-common-dir` and splits the two output lines. The unset is scoped to the subshell, so the environment the rest of the script and the launched worker see is unchanged. When git fails, the result is empty and the code falls through exactly as before. Regression test in `tests/fm-control-relaunch.test.sh`: `test_relaunch_refuses_the_primary_checkout_under_inherited_git_overrides`. It records `worktree` as the project's primary checkout, then runs `fm-spawn --relaunch` with `GIT_DIR` set to the linked worktree's git directory and `GIT_WORK_TREE` set to the primary checkout. It asserts exit code 1, the "primary home or checkout" error, and that nothing was launched. The test is registered in the suite's run list. Verification: - `bash tests/fm-control-relaunch.test.sh` with the fix: rc=0, all tests pass, including the new one. - With the `fm-spawn.sh` change temporarily reverted: rc=1, and the new test fails with `missing: 'primary home or checkout'`. So it reproduces the reported bypass. - `shellcheck` on both files reports no warnings or errors

---------

Co-authored-by: Trillium Smith <[email protected]>
…chenguid#7609)

* fix(session-lock): read process identity without the ps binary

An EDR-style policy can deny the ps binary's exec itself - observed on
a hardened macOS host where /bin/ps was refused even for 'ps -V', while
kill, head, sysctl, pgrep and lsof all ran. The session lock proved
identity by walking harness ancestry through ps, so the walk died at
its first call: every session in that home became a permanent
lock-refused read-only one, and a live lock owner looked reclaimable,
so a fresh process could take over a lock whose owner was still
running.

All identity reads now go through one fm_proc_info reader. ps stays
primary and is used verbatim wherever it executes, so a host where ps
works is byte-identical to before. Only a ps that cannot execute at
all - bash exit 126 for a refused exec, 127 for a missing binary,
while a pid merely being gone exits ps 1 - routes one read to an OS
provider: /proc on Linux, bin/fm-procinfo.py on macOS, which reads the
ppid through a self-verified KERN_PROC_PID chain and the identity
through the KERN_PROCARGS2 argv region.

That last point is a correctness requirement, not a preference. macOS
'ps -o comm=' reports argv[0] and 'ps -o args=' reports the full argv,
so the ps-free route keys both fields on the same argv region. A
helper that reported the resolved exec path instead disagreed with ps
for renamed, symlinked, or argv[0]-wrapped harnesses, and that
disagreement turns a lock refusal into a wrong take-ownership decision.

Every read fails closed and is verified against the requested pid: no
route guessing, foreign chains still refused, dead pids still stop the
walk. A record that is not exactly one line of three fields with a
numeric ppid is refused rather than loosely sliced.

Two defects found by diffing the change against the unchanged base on
a live host are fixed here as well:

1. A pid ps can see but cannot name - a live process whose comm was
   emptied - was reported as stale, which means reclaimable. The base
   reports unknown for that case, and reporting it stale let a fresh
   process take over a lock whose owner was still running. The ps route
   now reports the pid as present, and the provider route accepts a
   record whose comm field is legitimately empty so both routes agree.

2. The provider record parser rejected a record with an empty field,
   but the field COUNT is what it must pin: a TAB is IFS whitespace, so
   a record with a MISSING field parsed exactly like a record whose
   field was empty. The parser now rebuilds the record from the parsed
   fields and compares it to the original, which proves the count
   without rejecting a legitimate empty field.

Verified against the unchanged base: 120 identity reads and 200 lock
inspections across live pids show zero divergence, and the empty-comm
case reads unknown on both.

* no-mistakes(review): Refuse reclaiming session locks with unreadable owner identity

* no-mistakes(review): Reject partial process identity reads; reclaim non-pid locks

* no-mistakes(review): Preserve platform process identity byte rendering across routes

* no-mistakes(review): Normalize trailing empty argv elements across identity providers

* no-mistakes(document): Document session-lock recovery requirements

* no-mistakes(lint): Fix ShellCheck arithmetic array index style

* fix(session-lock): decide the owner verdict from liveness first, not identity

The review rounds that closed the "a live owner can be taken over" hole
inverted the order of the two facts the verdict is built from: the
provider read decided whether the recorded owner was alive, and liveness
was only consulted afterwards. That order breaks two cases the base
already handled.

A pid this session cannot signal is not a live owner it may reclaim
over, whatever a process table still says about it. A recorded owner
that is gone therefore has to read as gone, or the stale lock can never
be reclaimed and the session stays lock-refused read-only for good -
the exact wedge this change exists to remove. The repository's own
suites pin that: tests/fm-session-lock-ancestry.test.sh asserts that a
recorded pid whose kill -0 fails is left for the ordinary reclaim, and
tests/fm-session-lock-ancestry.test.sh's sibling case asserts that a
recorded pid of 1 - which this session may not signal - is still
reclaimable.

The verdict now asks liveness first and identity second:

  kill -0 succeeds, the provider reads   -> readable
  kill -0 succeeds, the provider fails   -> unreadable: alive, identity
                                            not readable, so the lock
                                            must not be reclaimed
  kill -0 fails, the provider reads      -> unknown: the process exists
                                            but this session may not
                                            signal it, so it is not a
                                            harness this session can
                                            prove - the base's "no live
                                            harness owner"
  kill -0 fails, the provider fails      -> dead

That keeps the protection the review rounds were after - a live owner
whose identity cannot be read is never reclaimable - while restoring the
base's reclaim behaviour for the cases the base handled. The new case
"kill -0 succeeds, the provider fails" is the one that closes the
reported takeover path, and it is unchanged.

Verified on this host: tests/fm-session-lock-ancestry.test.sh exits 0
again (it exits 1 on the previous head, where the recorded-dead-pid case
failed), tests/fm-session-lock-ps-denied.test.sh exits 0, and
tests/fm-gotmp.test.sh exits 0. tests/fm-secondmate-harness.test.sh and
tests/fm-session-start.test.sh still exit 1 with exactly the failures
they have on the unchanged base: this host's restricted PATH lacks
dirname, cat and awk.

* no-mistakes(review): Preserve successful status for unreadable owner verdicts

* fix(session-lock): keep the ppid a walk input, not an identity field

The review round that made a partial identity read refuse the reclaim
extended the rule from the arguments to the parent pid as well: a read
that could not answer ps -o ppid= was treated as an unreadable
identity, so the whole read failed.

The parent pid is not an identity field. The identity the matcher reads
is comm and args, and both of those are still fail-closed: a live
harness whose arguments cannot be read is not reduced to a bare
interpreter name, and its lock is still not reclaimable. The parent pid
is a walk input, and a parent pid that cannot be read only ends the
ancestry walk one hop early - the walk finds no harness and the
session refuses the lock rather than taking one it cannot prove, which
is the conservative direction.

The base read the parent pid exactly this tolerant way, and the
repository's own suites pin it: tests/fm-grok-harness.test.sh and
tests/fm-kimi-harness.test.sh stub ps so that it answers comm= and
args= and refuses every other question, and both expect the lock to be
recognised as held by a live harness. Under the stricter rule both
suites failed with "fm-lock did not recognize grok as a live holder"
and "fm-lock did not acquire from Kimi ancestry".

The provider route is unchanged and stays all-or-nothing: on Linux the
parent pid comes from the same /proc read as the command name, and on
macOS from the same KERN_PROC_PID chain, so a provider read is either
complete or unreadable. The case that proves it - a /proc entry with no
readable cmdline - still refuses the reclaim.

The new test case is corrected rather than dropped: the failed-args
case still has to refuse the reclaim, and the failed-ppid case now
pins the tolerant contract - the verdict stays readable and the parent
pid is empty.

The same commit restores the shellcheck directives on the assignments
inside fm_session_lock_inspect's verdict switch. The globals are read
by bin/fm-lock.sh and bin/fm-inbox.sh, but the assignments inside the
switch had lost their disable comments, so 'Lint 1' failed with SC2034
on FM_LOCK_INSPECT_STATE and FM_LOCK_INSPECT_LIVE_HARNESS.

Verified on this host: tests/fm-session-lock-ps-denied.test.sh exits 0,
tests/fm-session-lock-ancestry.test.sh exits 0,
tests/fm-grok-harness.test.sh exits 0 (it exits 1 before this commit),
tests/fm-kimi-harness.test.sh exits 0 (it exits 1 before this commit),
tests/fm-gotmp.test.sh exits 0, and bin/fm-lint.sh exits 0.

* no-mistakes(document): Clarify session-lock recovery ownership

* no-mistakes(lint): Fix single-iteration ShellCheck loop

* test(session-lock): drop the unused loop variable from the partial-identity case

The failed-args case no longer runs through a loop, so the local that
held the field name is never read, and the lint partition reports it as
an unused variable (SC2034). The declaration loses it; nothing else
about the case changes.

* no-mistakes(review): Protect tagged lock owners; preserve Cygwin identity reads

* no-mistakes(review): Fix zero-form locks; focused tests fail pty-host, ShellCheck warnings

* fix(session-lock): read a classified live harness holder as held

fm_session_lock_inspect lost its identity check on the readable verdict,
so every live holder was classified unknown instead of held: grok and
kimi holders failed the live-holder assertions, and a claude-named
holder made fm-inbox report unknown for a lock that was held.

Decide held from the single fm_harness_process_matches call on the
readable branch. The Windows-tagged pre-block that made the same
decision a second time is removed: fm_session_lock_pid_verdict already
resolves the tagged pid through the Windows table and leaves the same
FM_PROC_COMM/FM_PROC_ARGS, so re-reading it could only let the two
answers diverge, and its winpid/win_rc were the unused bindings
ShellCheck flagged as SC2034.

* no-mistakes(document): Align session-lock docs with the shared reclaim verdict

* fix(session-lock): emit the denied-ps diagnostic once per run

`FM_OS_PROC_DIAG_SHOWN` was set by the diagnostic inside
`triple=$(fm_os_proc_triple "$pid")`, so it died with that
command-substitution subshell and every later ancestor read reprinted the
same cause during one lock acquisition.

`fm_proc_info` now spends the once-per-run guard in the shell that owns
the walk. A cause line exists only on the provider's failure routes, so a
failed read is exactly where that budget is used up; a readable read
leaves it unspent for a later failure.

The new case drives three failing reads in one shell and asserts one
stderr line, then repeats with a readable first pid to prove a successful
read does not spend the budget.

* no-mistakes(document): Correct the denied-ps diagnostic scope to per shell

* no-mistakes(review): Preserve UTF-8 process identity in Linux fallback

* no-mistakes(document): Record the ps-free identity byte rule and helper inventory

* test(session-lock): compare control-byte argv by shape, not by ps bytes

The control-byte route-equivalence case compared the provider record and
the ps record byte for byte. That pins one procps build's choice of byte
for a control byte: 4.0.x writes a space where an argument's newline was
and '?' for other controls, while other builds write '?' for the newline
too, so the same two routes agree on one build and differ on the other
even when both make the same identity decision.

Fold each route's separator byte onto the placeholder the /proc route
writes before comparing, keep the ppid and comm fields a raw comparison,
and assert the fixture's words still straddle the control bytes on both
routes so the case cannot pass by matching a loss. Pin the fold against
both Linux renderings of this fixture's newline and assert those
renderings really differ, so a return to raw bytes fails here instead of
only on the other procps build.

* no-mistakes(document): Align session-lock reclaim docs with the shared verdict

* test(session-lock): keep the base PATH when no python3 shim is added

The e2e blocked-ps case built the child PATH from fakebin alone on a host
without python3, dropping the inherited base path with it. On Linux that
left the /proc provider without the cat and tr it reads through, so the
walk failed for a reason unrelated to the denied ps and the case failed
spuriously on exactly the host it is meant to cover.

Set the base path unconditionally and let the python3 branch only insert
the shim ahead of it.

* no-mistakes(document): Correct session-lock verdict comments and library ownership header

* no-mistakes(document): Correct stale issue pointer in session-lock scope comment

* no-mistakes(document): Correct malformed-lock reclaim wording and ps-denied nudge limit

* fix(session-lock): parse /proc stat fields as stat_fields so rex.sh lints clean

ShellCheck follows source directives: bin/backends/rex.sh sources
bin/fm-agent-process-lib.sh, which sources bin/fm-session-lock-lib.sh, so the
new array local named `fields` made rex.sh's string use of its own `fields`
read as an array/string clash (SC2178/SC2128) and failed CI lane Lint 2 on
6e26ecb, while main's same lane passes.

Rename the array to stat_fields, the name the repo's other /proc stat readers
(bin/fm-remote-job-lib.sh, bin/fm-teardown.sh) already use. Verified with
`shellcheck --norc --external-sources bin/backends/rex.sh` (was rc=1, now
rc=0) and `bin/fm-lint.sh --partition 2of2` locally (rc=0, rex.sh reason=ok).

* no-mistakes(document): Sync session-lock docs and stat-parser comment

* test(run): hint fm-session-lock-ps-denied so the coverage guard stays under its unmeasured share

The new session-lock denial script left 43 of 284 portable serial scripts
without a measured duration hint on CI (main: 42), one past the guard's 15%
bound. Record the 3012ms this run measured, in sorted order beside its
ancestry sibling.
…ledgement (kunchenguid#8031)

* fix(watch): print multi-line check output as one wake line

A custom check that printed several lines queued one row with the lines
joined, but the watcher printed the raw lines, and wake consumers that keep
only prefixed lines (such as the Claude Stop-hook banner) dropped every line
after the first. Flatten the wake line the same way the queued row is
flattened, so both carry every line.

* fix(wake): present every distinct check payload before acknowledgement

The drain kept only the newest row per kind and key, and its acknowledgement
then consumed the hidden rows too. Two different wakes queued by one check
before a drain therefore lost the earlier payload unread. Collapse check
rows only when their payload is identical; signal, stale and heartbeat rows
keep their existing newest-wins collapse.
…ses (kunchenguid#3841)

* feat: check published releases for watched tools

* no-mistakes(review): Restore whole-registry validation while retaining published-release checks

* no-mistakes(document): Clarify successful installed-version probe requirement

* fix: retain completed tool sweeps at the budget boundary

* no-mistakes(review): Restore unconditional sweep recording and cadence; focused tests pass

* no-mistakes(review): Correct incomplete sweep recording and cadence documentation

* no-mistakes(document): Drop stale conditional sweep-recording wording from configuration docs

* no-mistakes(review): Require successful probes only for published-release comparison

* test: expect a newer announced version beside the published source

Upstream now reports an announcement naming an installed version only as
update not in effect, so the composition test announces 0.8.4.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* no-mistakes(review): Compare published releases with the newest installed copy

* no-mistakes(review): Reject watched tools setting both published and version_url

* no-mistakes(document): Scope curl hardening note to published release reads

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
…id#6695)

* fix(bin): read a typed slash command above Claude 2.1.291's marked popup row

Claude Code 2.1.291 draws the selected row of its slash-command popup with the
same `❯` marker as its composer, so that row below the composer's closing rule
became the bottom-most bare composer candidate and the whole popup list was
read as the typed command. The Herdr Claude payload proof then judged the
payload unsent, cleared it, and reported send-failed, so `fm-control exit` and
every slash command sent through `fm-send` failed on Herdr.

Demote that row to the proven envelope above it, but only when the envelope's
own glyph row holds typed `/` text (the fallback read can never be empty) and
the row has the popup shape: a leading `/` or a truncated `…` name, then a gap
of two or more spaces before its description. Numbered-choice dialog rows,
one-word drafts, empty composers, and typed prose keep their old reading, and
the head-truncation and placeholder-remainder refusals are unchanged.

Regression tests run against real captures of the 2.1.291 screens. The live
guard gains a /context scenario, and the dated verification record is updated.

* no-mistakes(review): Ghost-strip popup demotion guard; relocate 2.1.291 docs

* no-mistakes(review): Match popup guard to fallback's plain glyph row

* no-mistakes(review): Narrow box popup test; note box follow-up in docs

* no-mistakes(document): Point same-glyph footer rule at 2.1.291 popup exception

* no-mistakes(ci): Both selected Greptile findings are fixed. Only the live test and the verification doc changed; product code and box handling are untouched. The changes are left uncommitted for the outer executor. **ci-2** (tests/fm-herdr-submit-confirm-live-e2e.test.sh) - Invariant: a live delivery check must show that the command actually ran, through its rendered output. An empty composer and a registered agent are not enough. - Fix: after the `/context` verdict, the test now polls the pane the same way the earlier reply check does, until `/context`'s `Context Usage` heading renders. Any other result fails. - I confirmed that heading with a probe in an isolated `fm-lab-` session. The popup's description says "context usage" in lowercase, so the case-sensitive match cannot hit the popup. - The read window is 1000 lines (`--source recent --lines 1000`). The report runs to hundreds of rows here with its heading at the top, so the 200-line window the reply check uses would lose it. - The existing agent-registered and composer-empty checks are kept. The header comment, block comment and pass message were updated to match. **ci-3** (docs/verification/runtime-backends.md) - Invariant: only tests that fail against the previous classifier may be called before-and-after regressions. - I ran each of the five tests on its own against base 5838f10's `bin/fm-composer-lib.sh`: - These 3 fail there and are now labelled before-and-after regressions: `marked_row_is_not_a_second_composer`, `composer_content_..._not_the_composer`, and `send_text_submit_..._proven_and_submitted` (the last one returned 'unknown'). - These 2 pass there and are now labelled guards: `demotion_only_ever_refuses` and `popup_still_refuses_a_partial_payload`. - I corrected one more claim in the same paragraph. It said the live guard fails against the old classifier "at the `/exit` scenario". A live run against the old classifier (session `fm-lab-herdr-submit-con-1106578-15406`) actually fails earlier, at `/context`, with `send-failed`. The doc now says that. - The doc's recorded live output was replaced with the real output of the new run. **Verification** - Live guard on HEAD: `FM_HERDR_SUBMIT_CONFIRM_LIVE=1 ANTHROPIC_MODEL=claude-haiku-4-5-20251001` passed all 4 checks, including "...proves and submits a typed /context behind its command popup and renders its report". It ran in its own session, `fm-lab-herdr-submit-con-1098793-23839`. - Every live run used only its own `fm-lab-` session. Afterwards `herdr session list` shows only `default`, which was never touched. - `tests/fm-composer-lib.test.sh` returned 0 with 47 ok, and `tests/fm-backend-herdr.test.sh` returned 0 with 233 ok. - With the opt-in off, the live test skips with rc 0. - `bin/fm-lint.sh` returned 0 (ShellCheck 0.11.0, actionlint 1.7.12). - Temporary directories were removed. **Gap:** the new check's failure path was never triggered in a live run, because the old classifier fails earlier, at the verdict. That the check can tell a run from no run rests on the probe: the heading is not on screen before submission, and the popup text is lowercase

* no-mistakes(document): Include Tern in popup classifier inheritance documentation
…#8139)

* fix(spawn): tolerate slow Herdr worktree entry

Restore shell startup tolerance after out-of-pane leasing, resend the worktree cd once, and diagnose a pane that never moves. Cover delayed and dropped entry portably and ordinary/delayed projected spawns in an isolated real-Herdr lab.

Fixes kunchenguid#8138

* no-mistakes(document): Document Herdr worktree cd resend in agent-control

* no-mistakes(ci): I fixed Greptile ci-1. On supported Herdr releases below the presentation floor (0.8.0, including pinned 0.7.4), the live test `tests/fm-herdr-projected-cd-live-e2e.test.sh` reported a correct flat spawn as a failure. Now it skips clearly on those releases. **Invariant:** the test may expect a projected spawn only when the same floor classifier `fm-spawn` uses says projection is the default. **Where it must hold:** the one decision point before the case loop. Both cases (delay 0 and delay 1) assert the `.herdr-presentation` marker, and both sit after that check. **Change (test file only):** after the lab is provisioned, the test calls the existing `fm_backend_herdr_presentation_release_supported` from `bin/backends/herdr.sh`. It goes through the test's fake `herdr`, which routes every call to the named lab session, so the check covers the same client and server `fm-spawn` sees. The result is handled three ways: - **At or above the floor:** the projected and delayed cases run as before. - **Below the floor:** the test prints `skip: Herdr <release> is below the 0.8.0 presentation floor, so spawns stay flat` and exits 0. The cleanup trap still tears down the lab. - **Can't be classified:** the test fails. No production code changed, and the overall Herdr support floor is unchanged. **Verification** (Herdr was only run through `bin/fm-herdr-lab.sh` on its own `fm-lab-` session): - **Above the floor:** on the installed Herdr 0.9.5, both cases pass: "Herdr 0.9.5 projected spawn enters its recorded copy" for delayed=0 and delayed=1. - **Below the floor:** I pointed `HERDR_LAB_HELPER` at a temporary wrapper around the real lab helper. It changes only the `status --json` reply so the client and server report 0.7.4, protocol 17. The test printed "skip: Herdr server version 0.7.4 (protocol 17) is below the 0.8.0 presentation floor, so spawns stay flat" and exited 0. This is simulated, not a real 0.7.4 install. - Afterwards no lab sessions were left over. - `tests/fm-spawn-herdr-lease.test.sh` passed through `bin/fm-test-run.sh`. - `bash -n` is clean. shellcheck shows only the existing SC1091 info note about the sourced `tests/fixtures.sh`. I did not edit the PR body, so its links to issue kunchenguid#8138 are untouched

* no-mistakes(document): Document live projected-cd test's below-floor skip
* feat(bin): report worker state via OSC 7501 for firstmate-launched agents

Stage 2 of the herdr-core/app staged plan: agents firstmate launches now
report idle/working/blocked/done to their terminal through the OSC 7501
Program Status Protocol, so 7501-aware terminals (herdr-core, the Herdr
app, Ghostty, Rex) show task state without screen inference.

bin/fm-osc7501.sh is armed inside the launch command before the agent
starts. Its watcher folds the task's durable signals (status log,
busy-state, unhandled inbox) into root records with
app=firstmate-<harness> and title=fm-<id>, and parks the record on exit.
Arm emits nothing unless the terminal is known-aware (HC_TERMINAL_ID,
REX_BLOCK/REX_SESSION, TERM_PROGRAM=ghostty) or answers the capability
query, stands down for natively reporting harnesses (claude >= 2.1.295,
pi >= 1.1.0), and never writes to worker input. The env -i floor now
forwards the HC_* pane markers so detection survives an allowlist.

config/osc7501-status gates the feature per home (default on).
The herdr backend is untouched; core/app integration stays Stage 3.

* no-mistakes(review): Fix OSC 7501 reporter tty identity, lifetime, mapping, and stty restore

* no-mistakes(review): Honor hc terminals under herdr; retire superseded status declarations

* no-mistakes(review): Retire stale declarations on any newer busy record

* no-mistakes(review): Drop report command; retire declarations on later inbox steers

* no-mistakes(review): Classify activity via busy lib; confirm reporter retirement

* no-mistakes(review): Order retirement by nanosecond times; drop pull-source turn guess

* no-mistakes(review): Retire declarations only on later steers, with stable thresholds

* no-mistakes(review): Drop probe cache; restore hc socket pinning in floor

* no-mistakes(review): Drop declared-wait mapping; report from single-source signals only

* no-mistakes(review): Give the watcher backend capture for pane-classified harnesses

* no-mistakes(document): Clarify OSC 7501 documentation ownership and Rex compatibility

* no-mistakes(review): Newline-delimit launch disarm; keep arm warnings visible

* no-mistakes(review): Require stand-in pidfile before checking disarm

* no-mistakes(review): Skip status-bridge records in Rex activity readers

* no-mistakes(ci): Fixed Cortex launch assertions mistaking the OSC reporter’s --config for an unsupported Cortex flag, including the sibling xhigh check. Reproduced failure before fix; Cortex suite, bash syntax, and diff checks pass afterward. Full suite failure was downstream of this test failure

* no-mistakes(ci): Removed active terminal capability queries, tty reads/mode changes, and the unused query timeout. Unknown terminals now silently no-op; passive detection remains. Updated docs and behavioral tests. Regression rejects pre-fix code; all 18 reporter tests, syntax checks, ShellCheck (excluding source-resolution notices), and diff checks pass

* no-mistakes(review): Exclude native codex and gate records on activity

* no-mistakes(review): Never write bridge records without known activity

* no-mistakes(review): Probe the launched binary for native reporters

* no-mistakes(review): Arm no reporter for raw launch commands

* no-mistakes(review): Report raw launches only with established agents

* no-mistakes(document): Consolidate OSC reporting documentation ownership

* no-mistakes(ci): Fixed standing captain holds to report blocked kind=question before activity fallback. Added behavioral coverage for idle/busy holds and supersession; confirmed regression fails before the fix and full OSC suite passes afterward. Shell syntax and diff checks passed

* no-mistakes(ci): Fixed the flaky startup-teardown fixture in tests/fm-watcher-lock.test.sh: replace racing recursive deletion with a checked atomic rename, retaining the old inode. Full suite failure was downstream of this shard failure. Complete watcher-lock suite, shell syntax, and git diff checks passed locally

* fix(osc7501): keep the bridge's own record honest when activity reads unknown

The unknown-activity silence that protected a native writer's root record
also left the bridge's own working/blocked on the pane forever - including
past the agent's exit, which never emitted its final record. While the
bridge's last write still stands, the durable signals now keep it honest:
they fold the same way with idle activity and the result is written once
per change, with no hold and no heartbeat. A watcher that never wrote
still stays silent so a native owner is never touched. The final record
likewise lands whenever the bridge's last write stands, keeping done/error
and parking the rest at idle. Rovo and Antigravity, whose only activity
source resolves busy or unknown, thereby still reach idle, blocked, done,
and error. Arm also writes one idle record once every gate passes, clearing
whatever a watcher that died without its final write left on the pane.

* no-mistakes(review): Carry arm-time ownership into watcher, trim osc_seq

* no-mistakes(document): Clarify OSC status lifecycle documentation

* fix(osc7501): park stale terminal lines and clear leftovers on unarmed relaunches

A done/failed status line carries the phase that wrote it, not the turn
now in flight: under unknown activity the fold now reports a terminal line
only when it was stamped at or after the reading that last proved the
worker busy, so an earlier phase's result parks at idle instead of
displaying done or error for a whole turn. A same-second stamp still
counts - a truly older line can never coincide with the last busy reading.

arm's residue clear now runs once the pane's terminal proves 7501-aware
and a leftover pidfile marks the record as the bridge's own, before the
config and native gates - so off and native relaunches retire a dead
watcher's record too, while panes that never armed still see no bytes.

* no-mistakes(review): Order stale results by append; keep result at exit

* no-mistakes(document): Clarify OSC status reporting documentation

* no-mistakes(ci): Replaced the version probe’s unbounded TERM/wait loop with shared fm_run_timed process-group termination and KILL escalation. Added a regression proving worker launch proceeds despite a TERM-resistant probe and descendant; reproduced failure before the fix. All 31 OSC tests pass, including the regression with the bash timeout fallback. Shell syntax and git diff checks pass

* fix(osc7501): disarm writes the final record a dead watcher never could

fm-spawn runs disarm after the agent command returns, so a SIGKILLed
watchers pidfile is removed there - before the next launch ever sees it,
which left the dead watcher's working/blocked record standing on off and
native relaunches. disarm now writes that final record itself (idle,
keeping done/error, exactly osc_final's fold) when the pidfile names no
live reporter; the pidfile carries harness and kind so the write names
the right app= and folds decisions under the worker's real kind. The
real-order regression now exercises SIGKILL -> disarm -> off/native
relaunch.

* no-mistakes(review): Write final record when retirement kills watcher

* no-mistakes(review): Always write final record once retirement confirms

* no-mistakes(lint): Suppress intentional generated-script expansion warning
…unchenguid#8148)

* feat(bin): add opt-in Linux container check for changed shell tests

* no-mistakes(review): Run Linux check as host user with git clone

* no-mistakes(review): Remove locally deleted files from Linux scratch copy

* no-mistakes(review): Use keep-id for podman in Linux test check

* no-mistakes(ci): Fixed the three selected review findings locally (nothing committed or pushed). ci-2: bin/fm-test-linux.sh now clones with --no-hardlinks, so the container cannot write the host object files. ci-3: tests/linux/Dockerfile now installs python3, nodejs and curl (tools the ordinary suites require); tests/fm-test-linux.test.sh container case adds a tools.test.sh fixture that runs python3, node and curl. ci-4: both the overlay check (line 100) and the prune check (line 104) treat [ -L ] as present; the same fixture commits a dangling symlink and asserts it survives in the container. Verified with FM_TEST_LINUX_CONTAINER=1 bash tests/fm-test-linux.test.sh on Docker: all 4 pass. Mutation check: removing the [ -L ] at line 104 turns the fixture red ("dangling link lost"). Removing it at line 100 alone does not, because the clone already carries committed symlinks; that check only matters for untracked dangling links, which has no fixture. The check stays opt-in
…unchenguid#8157)

* feat(bin): accept a caller-supplied expected PR head

The merge path read the live head again and used that value for the forge
head match. A push after review could replace the tested commit.
--expected-head takes one full commit, refuses a different live head, and
sends that same value to GitHub, GitLab, and Forgejo.
Callers that omit it keep the live-head match.

Closes kunchenguid#8124

* no-mistakes(review): Drop no-op head pin; test authority and identity refusals

* no-mistakes(review): Inline merge head assignment
…d#7753)

* fix(bin): download pinned Herdr from its current repository

* no-mistakes(review): list installer test in pure-contract-unit family

* no-mistakes(ci): The Test coverage guard failure came from this PR, and I fixed it. Full suite also fails for a reason outside the code: it needs a maintainer's label. **Test coverage guard (ci-2):** The rule is that at most 15% of the portable-serial test scripts may lack a measured duration hint. The new `tests/fm-install-herdr.test.sh` had no hint, so 43 of 286 scripts lacked one (15.03%). Before this PR it was 42 of 285. The duration-hint table in `bin/fm-test-run.sh` is the only place this needs fixing. I added `tests/fm-install-herdr.test.sh 1000` to that table in alphabetical order. I also added one line to `docs/fm-test-portable-shards.md` recording it as a provisional local measurement: the slowest of five local runs took 223 ms (range 155-223 ms), and the next CI refresh will replace it with an Ubuntu measurement. Other new tests have been handled the same way. After the change, `bin/fm-test-run.sh --check-coverage` exits 0 with `serial_unhinted=42`. **Full suite (ci-1):** This job failed with `FM_CI_FULL=false`, which means the `full-ci` label is missing. Outside pull requests need a maintainer to add that label, so no code change can fix this part. The job also reported a failed lane, most likely the coverage guard fixed above. **Verification:** I ran `tests/fm-test-run.test.sh`. All the coverage, shard, partition and packing tests passed. One script failed: `tests/fm-session-lock-ancestry.test.sh`, which checks that the pty-host is reparented to init after its daemon ends. It is in a different test family, and its result depends on how processes are parented on the machine running it. This change only adds a duration hint, which affects how tests are spread across shards, not which tests run, so I don't think the change caused it. I did not rerun it on the base commit to confirm

---------

Co-authored-by: c-c6aw <[email protected]>
…red (kunchenguid#8159)

* Fixes kunchenguid#8154 record forced scout discards

* no-mistakes(review): keep discarded note across close-marker replay

* no-mistakes(review): assert discarded note on row body, not task id

* Fixes kunchenguid#8154 preserve reports on held scout cleanup

* no-mistakes(document): document forced scout discard in teardown docs
…henguid#8173)

* fix: preserve full Bearings decision questions

* no-mistakes(document): Document full decision question presentation
… identity comparison (kunchenguid#8185)

* fix(bin): canonicalize Windows drive-letter herdr socket paths before identity comparison

* test(herdr): cover Windows drive-letter socket normalization

Adds the regression coverage the review asked for. `cygpath` ships only with
Git for Windows, so the cases stub it and therefore run on every platform; the
adapter guard matches only `[A-Za-z]:[\/]*`, a shape that cannot occur on
Linux or macOS.

Three cases: a drive-letter spelling normalizes to the same identity as the
POSIX spelling of the same socket, a failed `cygpath` is refused rather than
compared half-converted, and empty `cygpath` output is refused.

Verified the cases fail for the right reason: with the guard removed, the
normalization case reports an empty identity against the expected POSIX path.

---------

Co-authored-by: 3min-lang <[email protected]>
Dematom1 and others added 21 commits November 11, 2026 15:13
…kunchenguid#8014)

* fix watcher pause state supersession

* no-mistakes(ci): Fixed the busy path to check paused-run supersession before the busy-turn age gate, and reused captured crew state for gate classification. Added real busy-pane coverage for recent and old turns. Shell syntax, the targeted test, and `git diff --check` pass

* Preserve pause throttle on busy gate repeats

* Make superseded declared-wait wake opt-in

Gate paused_wait_superseded behind the home-local config/paused-wait-supersession
presence flag and move its crew-state read inside the gate, so a home without
the flag keeps main's declared-wait cadence, wording, and crew-state reads.

* no-mistakes(document): Document opt-in paused-wait supersession

* no-mistakes(ci): Fixed terminal run parsing to stop at the run component, preserving distinct throttles when PR suffixes follow; added coverage for two terminal PR-bearing runs. Documented foreground-only scope and unchanged away-mode cadence in both requested locations. `FM_LIVE=0 bash tests/fm-watch-triage-pause.test.sh` passed the new and opt-in cases, then timed out after 8/31 tests (300s)

* no-mistakes(document): Document superseded declared-wait opt-in

* fix(watch): skip the superseded-wait check in away mode

paused_wait_superseded returned only on the absent opt-in flag, so its
busy-path and secondmate callers still read crew state and could queue a
superseded wake while the away-mode flag existed, contrary to the documented
foreground-only scope. Return before any read while afk_present.
* fix(pr-check): report timed-out scans, take over replaced PRs, read only ready lines

The watcher's PR registration scan had three remaining gaps.
A registration cut at the scan's bound was silent, so a task that always
timed out never produced a notice; it now reports once per task and PR that
the merge watch could not be armed, and runs under the grace-bounded runner so
its cleanup trap finishes.
A recorded pr= was never replaced, so a lane that closed a PR and opened
another kept watching the closed one; a newer ready line now takes over a pr=
its status log named, and a pr= the log never named stays the supervisor's.
Any done line naming a PR registered it; only the newest crew-declared line in
an exact ready shape now counts.

* no-mistakes(review): Treat later crew notes as status updates

* no-mistakes(review): Match recorded PRs as exact URL tokens

* no-mistakes(ci): Updated `pr_for_task` to extract canonical ready-note URLs through the shared parser, while retaining legacy `/pull/<number>` URLs on unconfigured hosts. Added a GitLab merge-request replacement report case. `bash -n` and `git diff --check` pass. `bash tests/fm-inactive-reconcile.test.sh` fails earlier at “ledger fallback did not prefer the terminal ready line PR,” before reaching the new test

* no-mistakes(ci): Fixed the quoted Bash regex in `bin/fm-inactive-reconcile.sh`; the unconfigured-host `/pull/<number>` fallback now matches as intended. Verified with `FM_LIVE=0 bash tests/fm-inactive-reconcile.test.sh` (passed)

* no-mistakes(document): Clarify PR scan documentation

* no-mistakes(lint): Quote done status literal to satisfy ShellCheck

* fix(pr-check): queue a scan notice before marking it sent

The scan wrote its once-only marker before the watcher queued the notice, so a
watcher that stopped or failed to append in that window lost the notice, and
the marker kept later sweeps silent. The scan now queues the wake itself, then
writes the marker, then prints, so a stop between them repeats a notice rather
than losing it. Both the timeout and the refusal paths share this order.

* no-mistakes(ci): Made the outer check timeout durably enqueue its PR-registration scan-cut reason, so an interrupted candidate scan is not only printed. Verified `bash -n bin/fm-watch.sh` and `git diff --check`

* no-mistakes(ci): Fixed duplicate PR-registration timeout wakes by distinguishing the watcher’s outer check cut from scan-generated notices; outer-cut wake append failures now fail the watcher. Added a watcher regression test. `bash -n` and `git diff --check` passed; the security suite passed 43 tests before the 300-second timeout, prior to reaching the new test

* no-mistakes(ci): The requested fix is already present in HEAD: the test captures `real_sed` before invoking the watcher and embeds that path in the fake. `bash -n` and `git diff --check` passed. The full security test script timed out after 60 seconds, before reaching this regression test

* fix(bin): gate the ledger PR replacement behind config/pr-register-scan

Without the opt-in, pr_for_task keeps main's behavior: a recorded pr= always
stands and only a GitHub-shaped ready line fills in a missing one. With
config/pr-register-scan present, a newer ready line can replace a recorded
PR the status log named and any recognized forge URL is accepted.

* no-mistakes(test): Enable PR-provenance test scan opt-in; later bounded-scan test remains flaky

* no-mistakes(test): Restore flag-absent PR provenance coverage

* no-mistakes(ci): Added a retirement/merge-notice recheck under the task metadata lock immediately before replacement, plus a regression test for a merge notice arriving during candidate registration. Targeted security suite timed out after 300 seconds before reaching that test

* fix(pr-check): hold the merge-notification lock across a scan replacement

The scan's recheck of a recorded PR's merge record and its replacement pr=
write now run under the task's existing merge-notification lock, the lock
fm_merge_outcome_report holds while it records a merge, so a replacement can
never interleave with recording the merge of the PR it replaces. The merge
path itself is unchanged: taking the task meta lock there instead would
deadlock a re-arm made during the notice write.

* no-mistakes(document): Document opt-in PR registration scan behavior

* no-mistakes(ci): Exported `STATE` in the merge-race test subprocess so ShellCheck recognizes the state path consumed by sourced helpers. `shellcheck -x tests/fm-pr-check-security.test.sh` and `git diff --check` pass. Full suite is downstream of the failed lint lane; targeted security suite timed out after 300s, after 27 tests passed

* no-mistakes(ci): Fixed scan replacement commit-time eligibility: under the existing metadata and merge-notification locks, the newest status must still report the captured URL as ready. Added a deterministic regression test that waits for the slow pull/8 forge read, withdraws readiness, then checks pull/7 metadata and poll remain unchanged. ShellCheck, bash syntax checks, and git diff check pass. The targeted security suite passed 27 tests but exceeded the 300-second limit before reaching this regression test

* no-mistakes(ci): Fixed the backup invariant: before rewriting metadata, scan replacements now use the existing baseline backup/restore path even when degraded watching is disabled. Added a public scan-interface regression test asserting PR A and its poll survive a failed publication. Shell syntax checks passed; `FM_LIVE=0 bash tests/fm-pr-check-security.test.sh` exceeded 300 seconds before reaching the new test

* no-mistakes(ci): Applied the baseline initialization fix and repaired the failed-replacement regression test. `git diff --check` passed. Security suite timed out after 900s; inactive-reconcile suite failed at the bounded-scan resume assertion, outside the changed code

* no-mistakes(document): Document PR registration scan behavior
* feat(pr-merge): opt-in squash commit text from the PR summary

With the config/pr-squash-summary presence flag, a GitHub squash merge
whose caller passed no subject or body uses the PR title plus (#N) as
the subject and the PR body's ## What Changed section as the body, so
the commit on the base branch describes the change instead of listing
every branch commit. A missing or empty section, an unreadable PR, a
merge or rebase method, caller-supplied commit text (including -t, -b,
and -F after --), and GitLab and Forgejo merges keep the repository's
own squash text.

Opt-in: the behaviour is off by default. Without the flag the merge
reads no PR text and sends exactly today's command; with it, the PR's
summary overrides the repository's squash commit message setting. The
head-match, attestation, and waiver guards are unchanged.

* fix(pr-merge): ignore headings inside fenced code in the squash summary

what_changed_section now tracks fenced code blocks (``` and ~~~,
closed only by a run of the same character at least as long), so a
"## " line inside a fence neither ends the What Changed section nor is
selected as a fenced "## What Changed". Regression tests cover both.

* fix(pr-merge): treat a backtick run holding a backtick as inline code

A backtick-opened fence is valid only when its info string contains no
backtick (CommonMark), so a line such as three backticks, text, three
backticks is inline code. fence_run no longer opens a fence on it, so it
neither swallows later headings and the appendix inside What Changed nor
hides the real section before it. Tilde fences keep no such restriction.
Capture the real explicit-close focus synchronously in Part C so the defective-release assertion does not depend on background sampling. Preserve final exact-focus and focus-preserving-release assertions.

Fixes kunchenguid#8004
* feat(bin): report and archive orphan task records

* no-mistakes(test): Dropped unsupported backlog list field; focused bootstrap test timed out

* no-mistakes(document): Document session-start record hygiene

* no-mistakes(review): Skip symlinked metadata during hygiene scans

* no-mistakes(review): Skip symlinked metadata and report missing endpoints

* no-mistakes(document): Document record hygiene reporting and archival

* no-mistakes(ci): Not complete: applied the platform-aware mtime and duplicate-PR separator fixes, and switched endpoint classification to `fm_backend_target_exists` so failed probes are not treated as confirmed absence. The approved backlog/endpoint read timeouts and behavioral regressions are still missing; verification was not run. Invariant: only confirmed old orphan logs are archived, and duplicate PRs remain detectable across intervening records. The same invariant applies across every status-log and metadata record in the report; endpoint reporting must distinguish missing from unreadable for every supported backend

* fix: bound record hygiene reads

* no-mistakes(ci): Updated record-hygiene endpoint reads to use the shared metadata readers and added behavioral coverage for implicit-tmux and Orca terminal targets. The hygiene tests passed; the full bootstrap test script timed out after other tests continued passing. `git diff --check` passed

* no-mistakes(test): Shared record hygiene reporting with deduplicated heartbeat alerts

* no-mistakes(test): Initialize watcher data path for heartbeat hygiene reporting

* no-mistakes(document): Document heartbeat hygiene reporting and archive behavior

* no-mistakes(lint): Fix ShellCheck directive in hygiene library

* no-mistakes(ci): Fixed the Orca fake’s argument checks and asserted that a healthy Orca endpoint produces no warning. Heartbeat hygiene scans now run in a bounded background child; completed reports are queued as `check:` wakes before the deduplication marker is saved, preserving retry on delivery failure. `bash -n` and `git diff --check` passed; the first four hygiene tests passed. The full bootstrap test run exceeded its time limit, so the heartbeat delivery path remains unverified locally

* no-mistakes(ci): Fixed stale-marker recovery in `bin/fm-watch.sh`: the marker now records the worker PID and process start time, and is reclaimed if the worker is gone, its start time changed, or the marker exceeds 3× the report timeout. Added a watcher behavioral test for a stale marker. `bash -n` and `git diff --check` passed; the bootstrap test suite passed the hygiene tests, then exceeded its 120-second limit later in the suite. The review-thread reply and resolution are outside this CI phase

* no-mistakes(test): Bounded stale-marker test passes; 20-run validation timed out

* fix(watcher): reset hygiene suppression after clean scan

* no-mistakes(document): Document record hygiene reporting and archival

* no-mistakes(ci): Invariant: the remote secondmate parent-reply channel must be excluded from both stale-orphan reporting and archival. The shared status-file loop now skips the path returned by status_scan_parent_channel_exclude; other status paths are unchanged. Added a behavioral regression with an old channel file in a remote-secondmate-style home. Verified with tests/fm-parent-channel-scan-exclusion.test.sh and git diff --check

* test: exercise record hygiene report directly

* no-mistakes(review): Report missing tabs and preserve complete backlog IDs

* no-mistakes(review): Fix worker identity and top-level backlog record matching

* no-mistakes(review): Fix shell continuation in hygiene regression

* no-mistakes(review): Remove out-of-scope endpoint probing

* no-mistakes(review): Align architecture docs with hygiene report scope

* test: cover record hygiene archival of the parent channel

Keep the report-only run and add a mutating run that archives a genuine
orphan status log while asserting the remote parent-replies channel stays
in place. Source the backlog transition library the report uses, and give
the stale-marker watcher test a 30s cap so heavy host load cannot expire
it before the first heartbeat.

* fix(bin): add shellcheck source directives for record hygiene lib

* docs(skills): add record hygiene response to bootstrap diagnostics

* no-mistakes(test): Advance hygiene marker only after wake succeeds

* no-mistakes(test): Restore heartbeat report suppression marker before wake; heartbeat lab unverified

* feat(bin): make record hygiene report opt-in via config/record-hygiene

The session-start record-hygiene report, its orphan status-log archiving,
and the watcher heartbeat scan now run only when the home-local
config/record-hygiene presence flag exists. Without it, session start and
the heartbeat behave as before the feature: no report, no file moves, and
no record reads for it.

* no-mistakes(document): Clarify opt-in hygiene documentation

* fix(bin): start archive retention when record hygiene archives an orphan

The record-hygiene archive moved an orphan status log with mv, which keeps
its old modification time. With config/status-archive also enabled, the
next teardown's 30-day prune deleted an already-old orphan right after it
was archived. Touch the archived file so retention counts from archive
time, and cover the combined case with a teardown test.

* no-mistakes(review): Report archived-log timestamp refresh failures

* no-mistakes(ci): Fixed orphan archival to take the per-task metadata lock non-blockingly, recheck metadata/file/mtime under lock, and release the lock on all archive paths. Added coverage for held-lock skipping and lock cleanup. `tests/fm-bootstrap.test.sh` passed the hygiene cases but emitted a stray `\: command not found` from the newly added continuation (corrected); the full script later timed out at 120s, so rerun verification

* fix: lint the wake-lib source and tighten record-hygiene lock tests

Point ShellCheck at bin/fm-wake-lib.sh for the archive path's lazy source, run the held-lock test with record hygiene enabled and assert the scan still reports the orphan, check the real fm_meta_lock_path cleanup path, and cover a spawn publishing metadata between the absence check and the move.

* no-mistakes(ci): Fixed the previously accepted archive-retention invariant: if refreshing an orphan log’s archive mtime fails, the code attempts to restore it to live state and reports the failure. `tests/fm-bootstrap.test.sh` and `tests/fm-parent-channel-scan-exclusion.test.sh` pass; `git diff --check` passes. The provided CI excerpt omits the actual failed test’s diagnostic, so it does not establish that this change caused the shard failure; the Full suite failure shown is downstream of a failed lane

* Revert "no-mistakes(ci): restore orphan log when archive touch fails" and fix SC2153

Revert 89f9229, an unrequested CI auto-repair that changed archive behavior without a regression test.

Mark DATA as set by the sourcing script on its first use in the archive path: following bin/fm-wake-lib.sh through the source directive made ShellCheck raise SC2153 there.
)

* fix: give suspended extension deadlines one bounded grace

* no-mistakes(document): Clarify timeout evidence identity
…d#8350)

* fix: recognize the bun-installed omp as a harness process

The bun global package runs omp as `bun <path>/omp`, so ps reports the
process name `bun` and the lock ancestry walk and primary detection, which
matched only the exact name `omp`, refused the session lock and printed
unknown.

bin/fm-omp-process-lib.sh now owns omp identity: the exact name `omp`, or
bun whose first non-option argument is a script named `omp` or the
package's dist/cli.js. Both call sites use it. Regressions drive real
processes through fm-harness.sh and fm-lock.sh, and the omp live guard gains
a token-free installed-omp identity probe.

* fix: match bun-run omp scripts whose install path contains spaces

The ps args fallback split the script path on whitespace, so a path like /opt/Agent Tools/bin/omp was judged as /opt/Agent. Rebuild the first non-option word until it names an existing file. The token-free live guard now also asserts the saved session lock names the omp process.

* fix: narrow bun omp matcher to the verified launch shape

Match only comm omp, or bun whose argv0 is bun and whose next argument
is a script named exactly omp. Drop the dist/cli.js path, the bun option
skip with its eval/print exclusion, and the argv0-omp-under-bun branch,
with their tests and doc mentions. Spaced install paths still resolve.

* no-mistakes(document): Clarify omp lock identity versus tmux liveness wording

* test: copy fm-omp-process-lib.sh into fixtures that source the session lock library

* no-mistakes(document): Note omp live guard checks lock owner pid
* fix(spawn): keep a recorded PR the task record's tail across relaunch

A control-plane relaunch republished the record with control_relaunch_tx=
after the preserved pr= lines, and the trace-context and Polytoken session
rewrites appended after them too. fm_pr_metadata_identity_parse refuses any
other line after pr=, so the watcher stopped running that lane's merge poll
("rejected unauthenticated state checks") and its merge went unseen. Every
spawn-side rewrite now writes the PR trailer last.

Refs kunchenguid#7938

* feat: park ship lanes on review and clean them up on merge

Add bin/fm-park.sh: a clean-state gate (GitHub and GitLab) that parks a lane
only when CI is green on the current head, review bots have posted on it or a
quiet window passed, no thread is unresolved, nothing conflicts, and the PR is
not a draft; a park that re-reads the forge bound to the recorded head before
stopping the agent through fm-control, durably leases the Treehouse slot (a
re-park reuses the lane's own lease), and records the lane; a watcher tick that
relaunches a fresh worker on review activity and reports closed PRs once; and
merge-time cleanup through fm-teardown from the watcher's merged path. The
watcher starts fm-park only when a lane is parked or parking is configured.

Teach teardown's landed proof to read GitLab merge requests and fetch
refs/merge-requests/<n>/head, so squash and merge-train merges are recognized
from the MR head.

Local proof:
- tests/fm-park.test.sh (13 tests) covers each unclean gate condition, a head
  change after the verdict, park preflight refusals, the lease, every relaunch
  trigger, closed reporting, the opt-ins and merge cleanup.
- An isolated lab home (Herdr lab session, faked forge, real Treehouse pool)
  ran a full cycle through the real fm-pr-check, fm-park, fm-watch and
  fm-teardown: park with the slot leased (a concurrent get received another
  slot), a review comment relaunched a fresh worker in the same copy, re-park,
  and on merge the watcher tore the lane down and returned the copy.
- A read-only gate run against live lanes in other homes refused lanes with
  pending CI, unresolved threads or uncomputed mergeability, passed clean ones,
  and read a merge-train squash-merged GitLab MR (main got a commit other than
  the MR head) as merged.

Refs kunchenguid#7938

* no-mistakes(review): Harden park gate, bound tick, default merge cleanup

* no-mistakes(document): Inventory park-on-review config flags and state records

* no-mistakes(ci): I made fixes for all six Greptile findings (ci-1 to ci-6). One existing watcher test now fails because of the ci-1 change and needs your decision. Fixes: - **ci-1, merge cleanup skipped** (bin/fm-watch.sh): the merge poll now runs `fm-park.sh land` even when bin/fm-pr-merge.sh recorded the merge first. The cleanup outcome wakes the captain under the queue key `land-<id>`. New test `test_self_merged_lane_is_still_cleaned_up_by_the_poll` in tests/fm-pr-check-security.test.sh. - **ci-2, old CI approves parking** (GitLab gate): `head_pipeline` counts only when its sha equals the MR's current sha. - **ci-3, bot progress permits parking**: a reviewer bot counts as settled only when it has submitted a review bound to the current head; otherwise the quiet window decides. GitLab bot notes carry no such signal, so GitLab lanes now always wait for the quiet window (default 15 minutes after CI finishes). - **ci-4, edited feedback unanswered**: the relaunch trigger uses the later of a comment's creation and edit time. - **ci-5, later lanes starved**: a new `visit_lanes` helper starts each tick at the lane the previous tick did not reach (state/.review-park-tick-next and state/.review-park-tick-next-unparked) and wraps around. - **ci-6, unfinished park looks complete**: `cmd_park` writes state/<id>.review-park only after `fm-control.sh exit` confirms the stop. I updated the header docs in bin/fm-park.sh, docs/configuration.md and the operational-home-layout skill to match. Verification: - tests/fm-park.test.sh: all 18 cases pass, including the new regression cases for ci-2 to ci-6. - shellcheck is clean on all changed scripts and tests. - I did not run the new tests against the old code to see them fail first. Open problem: `test_merged_poll_reregistration_after_notification_is_absorbed` now fails. It re-arms a merge poll for a merge that was already reported, and in that test teardown refuses (the task has no project identity). The second watcher cycle now retries cleanup and wakes the captain with the same refusal again. I did not change this. The choice is: - keep repeating the refusal, which is arguably right because the lane still needs a decision, and update that test; or - wake only when cleanup succeeded in the already-recorded case, which would hide a refusal after a merge done through fm-pr-merge.sh and partly undo ci-1. The watcher subset stopped at that failure, so three tests never ran: the new ci-1 test, `test_self_merge_and_poll_publish_one_outcome`, and `test_merged_poll_row_names_no_authority_when_no_record_grants_one`. `test_merged_poll_retires_once` passed. I deleted the temporary subset file tests/.subset-sec.test.sh

* fix(park): write the park record pending before the stop and settle it on tick

cmd_park now writes state/<id>.review-park with pending=1 before
fm-control.sh exit and drops the flag once the stop is confirmed. A park
that dies after the stop, or whose final write fails, still leaves the
lane watched and resumable; crew state and list read it as parking. Each
tick promotes a pending record to parked once its agent is confirmed dead
and drops it while the agent is still alive. A record that cannot be
written refuses the park before the agent is stopped.

The re-armed merged-poll test now expects the repeated teardown-refusal
wake while the merge notice itself is not repeated.

* fix(park): bound the pending-park agent check by the tick budget

settle_pending asked the backend whether a pending lane's agent is alive
with no timeout, before the lane loop that honours the tick deadline, so
a hung backend (for example an unanswering tmux server) held the whole
tick and the watcher with it. The check now runs under fm_run_timed cut
to what the tick has left, and settling happens inside watch_parked, so
a tick that runs out of time saves the next lane in the existing cursor
and the next tick resumes there. An unanswered check leaves the record
pending.

* fix(park): require every required check reported, relaunch on inline replies

The GitHub park gate now refuses while a check the base branch requires has
not reported on the head (or the requirement cannot be read), using the
required-check reading bin/fm-pr-merge.sh does, moved into bin/fm-pr-lib.sh
so both share it. Review-thread comments join the activity list, so an
inline reply in an existing thread relaunches a parked worker.

* fix(park): run lane actions detached so no budget cuts them short

Park, relaunch, and merge-time cleanup now run as detached single-flight
actions under the lane lock instead of inside the tick or the watcher's
merged-poll iteration. The tick holds only forge reads and action starts,
so its budget can no longer kill a slow but successful relaunch, and the
merged-poll path only starts the teardown. Each action publishes its
outcome for the next tick to report, and a merge-time cleanup waits for an
action already under way on the lane.

The ship-landing skill now names the watcher as the one owner of a merged
lane's teardown, including merges made through fm-pr-merge.sh, so
firstmate no longer tears such a lane down a second time.

* no-mistakes(document): Document review parking and merge cleanup

* no-mistakes(ci): Fixed tick-bounded idle checks, reserved half the tick for unparked lanes, and persisted merge-cleanup requests before retiring the merge poll; pending requests retry on later ticks. Updated the park-on-review documentation and state-file list. `tests/fm-park.test.sh`, shell syntax checks, and `git diff --check` pass. The requested new regression tests for the three findings were not added, so those specific scenarios are not yet verified

* no-mistakes(ci): Fixed the requested behavior: unparked merge cleanup now requires config/auto-land; pending cleanup is recorded before poll retirement and dispatched after releasing the control lock; temporary lifecycle-lock refusals preserve the request for retry. Updated docs and behavioral tests. Full suite’s failure was only its maintainer-label gate; ci.yml was left unchanged. tests/fm-park.test.sh and git diff --check pass. ShellCheck reported existing source-following/unused-variable diagnostics; the lint partition and combined shellcheck command timed out, and the merge-poll tests were not completed

* no-mistakes(ci): Added behavioral regression tests for pending-cleanup recovery after watcher restart and retry after a temporary lifecycle-lock refusal. `FM_LIVE=0 bash tests/fm-park.test.sh`, `shellcheck tests/fm-park.test.sh`, and `git diff --check` pass

* test(park): wait for the pending cleanup request to clear before asserting

A detached land publishes its report before it removes the pending
request, so waiting only for the report let the cleanup tests assert
request removal too early. wait_land_settled waits for the request to
clear, which implies the report exists. The control-lock retry test now
ticks until the retry runs instead of sleeping, failing if any tick
reports the refusal as an outcome.

* fix(park): bind cleanup requests to their PR and record wakes before removing reports

A merge-time cleanup request now records the merged PR, and land drops a
request whose PR is no longer the lane's under the lane lock, so a stale
request cannot tear down a lane that moved on to another PR. Teardown also
removes a lane's cleanup request.

The tick now records its outcome and close lines as one wake before it
removes the reports behind them or marks a close as reported; when the wake
cannot be recorded it removes and prints nothing, so the next tick retries.
The watcher only rings.

The two tick-budget tests run under a 6s tick with 8s slow stubs: under a
2s tick the parked-lane budget was one whole second, so the first forge read
was skipped whenever setup crossed a second boundary.

* no-mistakes(document): Document park-on-review safety behavior

* fix(park): keep the cleanup request until its outcome is saved

Teardown no longer deletes a lane's merge cleanup request. Only the
detached cleanup removes it, after its outcome report is saved, so a
cleanup killed partway through its teardown is retried by the next tick
instead of being lost. A request left behind by a manual teardown is still
dropped by the tick once the task record is gone, or by land when the lane
now records a different PR.

* fix(bin): keep the PR merge watch working when a worker with a PR is relaunched (kunchenguid#7996)

* Preserve PR poll authentication on relaunch

* no-mistakes(review): Keep trace and polytoken meta ahead of PR lines

* fix(spawn): keep a recorded PR the task record's tail across relaunch

A control-plane relaunch republished the record with control_relaunch_tx=
after the preserved pr= lines, and the trace-context and Polytoken session
rewrites appended after them too. fm_pr_metadata_identity_parse refuses any
other line after pr=, so the watcher stopped running that lane's merge poll
("rejected unauthenticated state checks") and its merge went unseen. Every
spawn-side rewrite now writes the PR trailer last.

Refs kunchenguid#7938

* fix(spawn): reuse main PR metadata rewrite helper

* no-mistakes(review): Count unresolved GitLab notes individually

* no-mistakes(review): Relaunch parked lanes on incomplete GitHub threads

* no-mistakes(document): Document park-on-review behavior

* fix(park): paginate GitHub comments and fix Linux mode test

* no-mistakes(review): Set private permissions on cleanup requests

* no-mistakes(document): Correct park-on-review cleanup documentation

* fix(park): serialize inbox delivery with review parking

* no-mistakes(ci): Fixed `Lint 1`: removed the unused local variables in `tests/fm-park.test.sh` and exported `FM_HOME`, which the sourced inbox library reads. `bin/fm-lint.sh tests/fm-park.test.sh` passed. The Full suite failure was an aggregate of failed lanes; its log reports `FM_CI_LANES_FAILED=true`, not the underlying lane failure, so I can’t confirm this lint fix resolves it. The park test started passing scenarios but exceeded the 120-second timeout before completing

* fix(spawn): keep a recorded PR the task record's tail across relaunch

A control-plane relaunch republished the record with control_relaunch_tx=
after the preserved pr= lines, and the trace-context and Polytoken session
rewrites appended after them too. fm_pr_metadata_identity_parse refuses any
other line after pr=, so the watcher stopped running that lane's merge poll
("rejected unauthenticated state checks") and its merge went unseen. Every
spawn-side rewrite now writes the PR trailer last.

Refs kunchenguid#7938

* feat: park ship lanes on review and clean them up on merge

Add bin/fm-park.sh: a clean-state gate (GitHub and GitLab) that parks a lane
only when CI is green on the current head, review bots have posted on it or a
quiet window passed, no thread is unresolved, nothing conflicts, and the PR is
not a draft; a park that re-reads the forge bound to the recorded head before
stopping the agent through fm-control, durably leases the Treehouse slot (a
re-park reuses the lane's own lease), and records the lane; a watcher tick that
relaunches a fresh worker on review activity and reports closed PRs once; and
merge-time cleanup through fm-teardown from the watcher's merged path. The
watcher starts fm-park only when a lane is parked or parking is configured.

Teach teardown's landed proof to read GitLab merge requests and fetch
refs/merge-requests/<n>/head, so squash and merge-train merges are recognized
from the MR head.

Local proof:
- tests/fm-park.test.sh (13 tests) covers each unclean gate condition, a head
  change after the verdict, park preflight refusals, the lease, every relaunch
  trigger, closed reporting, the opt-ins and merge cleanup.
- An isolated lab home (Herdr lab session, faked forge, real Treehouse pool)
  ran a full cycle through the real fm-pr-check, fm-park, fm-watch and
  fm-teardown: park with the slot leased (a concurrent get received another
  slot), a review comment relaunched a fresh worker in the same copy, re-park,
  and on merge the watcher tore the lane down and returned the copy.
- A read-only gate run against live lanes in other homes refused lanes with
  pending CI, unresolved threads or uncomputed mergeability, passed clean ones,
  and read a merge-train squash-merged GitLab MR (main got a commit other than
  the MR head) as merged.

Refs kunchenguid#7938

* no-mistakes(review): Harden park gate, bound tick, default merge cleanup

* no-mistakes(document): Inventory park-on-review config flags and state records

* no-mistakes(ci): I made fixes for all six Greptile findings (ci-1 to ci-6). One existing watcher test now fails because of the ci-1 change and needs your decision. Fixes: - **ci-1, merge cleanup skipped** (bin/fm-watch.sh): the merge poll now runs `fm-park.sh land` even when bin/fm-pr-merge.sh recorded the merge first. The cleanup outcome wakes the captain under the queue key `land-<id>`. New test `test_self_merged_lane_is_still_cleaned_up_by_the_poll` in tests/fm-pr-check-security.test.sh. - **ci-2, old CI approves parking** (GitLab gate): `head_pipeline` counts only when its sha equals the MR's current sha. - **ci-3, bot progress permits parking**: a reviewer bot counts as settled only when it has submitted a review bound to the current head; otherwise the quiet window decides. GitLab bot notes carry no such signal, so GitLab lanes now always wait for the quiet window (default 15 minutes after CI finishes). - **ci-4, edited feedback unanswered**: the relaunch trigger uses the later of a comment's creation and edit time. - **ci-5, later lanes starved**: a new `visit_lanes` helper starts each tick at the lane the previous tick did not reach (state/.review-park-tick-next and state/.review-park-tick-next-unparked) and wraps around. - **ci-6, unfinished park looks complete**: `cmd_park` writes state/<id>.review-park only after `fm-control.sh exit` confirms the stop. I updated the header docs in bin/fm-park.sh, docs/configuration.md and the operational-home-layout skill to match. Verification: - tests/fm-park.test.sh: all 18 cases pass, including the new regression cases for ci-2 to ci-6. - shellcheck is clean on all changed scripts and tests. - I did not run the new tests against the old code to see them fail first. Open problem: `test_merged_poll_reregistration_after_notification_is_absorbed` now fails. It re-arms a merge poll for a merge that was already reported, and in that test teardown refuses (the task has no project identity). The second watcher cycle now retries cleanup and wakes the captain with the same refusal again. I did not change this. The choice is: - keep repeating the refusal, which is arguably right because the lane still needs a decision, and update that test; or - wake only when cleanup succeeded in the already-recorded case, which would hide a refusal after a merge done through fm-pr-merge.sh and partly undo ci-1. The watcher subset stopped at that failure, so three tests never ran: the new ci-1 test, `test_self_merge_and_poll_publish_one_outcome`, and `test_merged_poll_row_names_no_authority_when_no_record_grants_one`. `test_merged_poll_retires_once` passed. I deleted the temporary subset file tests/.subset-sec.test.sh

* fix(park): write the park record pending before the stop and settle it on tick

cmd_park now writes state/<id>.review-park with pending=1 before
fm-control.sh exit and drops the flag once the stop is confirmed. A park
that dies after the stop, or whose final write fails, still leaves the
lane watched and resumable; crew state and list read it as parking. Each
tick promotes a pending record to parked once its agent is confirmed dead
and drops it while the agent is still alive. A record that cannot be
written refuses the park before the agent is stopped.

The re-armed merged-poll test now expects the repeated teardown-refusal
wake while the merge notice itself is not repeated.

* fix(park): bound the pending-park agent check by the tick budget

settle_pending asked the backend whether a pending lane's agent is alive
with no timeout, before the lane loop that honours the tick deadline, so
a hung backend (for example an unanswering tmux server) held the whole
tick and the watcher with it. The check now runs under fm_run_timed cut
to what the tick has left, and settling happens inside watch_parked, so
a tick that runs out of time saves the next lane in the existing cursor
and the next tick resumes there. An unanswered check leaves the record
pending.

* fix(park): require every required check reported, relaunch on inline replies

The GitHub park gate now refuses while a check the base branch requires has
not reported on the head (or the requirement cannot be read), using the
required-check reading bin/fm-pr-merge.sh does, moved into bin/fm-pr-lib.sh
so both share it. Review-thread comments join the activity list, so an
inline reply in an existing thread relaunches a parked worker.

* fix(park): run lane actions detached so no budget cuts them short

Park, relaunch, and merge-time cleanup now run as detached single-flight
actions under the lane lock instead of inside the tick or the watcher's
merged-poll iteration. The tick holds only forge reads and action starts,
so its budget can no longer kill a slow but successful relaunch, and the
merged-poll path only starts the teardown. Each action publishes its
outcome for the next tick to report, and a merge-time cleanup waits for an
action already under way on the lane.

The ship-landing skill now names the watcher as the one owner of a merged
lane's teardown, including merges made through fm-pr-merge.sh, so
firstmate no longer tears such a lane down a second time.

* no-mistakes(document): Document review parking and merge cleanup

* no-mistakes(ci): Fixed tick-bounded idle checks, reserved half the tick for unparked lanes, and persisted merge-cleanup requests before retiring the merge poll; pending requests retry on later ticks. Updated the park-on-review documentation and state-file list. `tests/fm-park.test.sh`, shell syntax checks, and `git diff --check` pass. The requested new regression tests for the three findings were not added, so those specific scenarios are not yet verified

* no-mistakes(ci): Fixed the requested behavior: unparked merge cleanup now requires config/auto-land; pending cleanup is recorded before poll retirement and dispatched after releasing the control lock; temporary lifecycle-lock refusals preserve the request for retry. Updated docs and behavioral tests. Full suite’s failure was only its maintainer-label gate; ci.yml was left unchanged. tests/fm-park.test.sh and git diff --check pass. ShellCheck reported existing source-following/unused-variable diagnostics; the lint partition and combined shellcheck command timed out, and the merge-poll tests were not completed

* no-mistakes(ci): Added behavioral regression tests for pending-cleanup recovery after watcher restart and retry after a temporary lifecycle-lock refusal. `FM_LIVE=0 bash tests/fm-park.test.sh`, `shellcheck tests/fm-park.test.sh`, and `git diff --check` pass

* test(park): wait for the pending cleanup request to clear before asserting

A detached land publishes its report before it removes the pending
request, so waiting only for the report let the cleanup tests assert
request removal too early. wait_land_settled waits for the request to
clear, which implies the report exists. The control-lock retry test now
ticks until the retry runs instead of sleeping, failing if any tick
reports the refusal as an outcome.

* fix(park): bind cleanup requests to their PR and record wakes before removing reports

A merge-time cleanup request now records the merged PR, and land drops a
request whose PR is no longer the lane's under the lane lock, so a stale
request cannot tear down a lane that moved on to another PR. Teardown also
removes a lane's cleanup request.

The tick now records its outcome and close lines as one wake before it
removes the reports behind them or marks a close as reported; when the wake
cannot be recorded it removes and prints nothing, so the next tick retries.
The watcher only rings.

The two tick-budget tests run under a 6s tick with 8s slow stubs: under a
2s tick the parked-lane budget was one whole second, so the first forge read
was skipped whenever setup crossed a second boundary.

* no-mistakes(document): Document park-on-review safety behavior

* fix(park): keep the cleanup request until its outcome is saved

Teardown no longer deletes a lane's merge cleanup request. Only the
detached cleanup removes it, after its outcome report is saved, so a
cleanup killed partway through its teardown is retried by the next tick
instead of being lost. A request left behind by a manual teardown is still
dropped by the tick once the task record is gone, or by land when the lane
now records a different PR.

* fix(bin): keep the PR merge watch working when a worker with a PR is relaunched (kunchenguid#7996)

* Preserve PR poll authentication on relaunch

* no-mistakes(review): Keep trace and polytoken meta ahead of PR lines

* fix(spawn): keep a recorded PR the task record's tail across relaunch

A control-plane relaunch republished the record with control_relaunch_tx=
after the preserved pr= lines, and the trace-context and Polytoken session
rewrites appended after them too. fm_pr_metadata_identity_parse refuses any
other line after pr=, so the watcher stopped running that lane's merge poll
("rejected unauthenticated state checks") and its merge went unseen. Every
spawn-side rewrite now writes the PR trailer last.

Refs kunchenguid#7938

* fix(spawn): reuse main PR metadata rewrite helper

* no-mistakes(review): Count unresolved GitLab notes individually

* no-mistakes(review): Relaunch parked lanes on incomplete GitHub threads

* no-mistakes(document): Document park-on-review behavior

* fix(park): paginate GitHub comments and fix Linux mode test

* no-mistakes(review): Set private permissions on cleanup requests

* no-mistakes(document): Correct park-on-review cleanup documentation

* fix(park): serialize inbox delivery with review parking

* no-mistakes(ci): Fixed `Lint 1`: removed the unused local variables in `tests/fm-park.test.sh` and exported `FM_HOME`, which the sourced inbox library reads. `bin/fm-lint.sh tests/fm-park.test.sh` passed. The Full suite failure was an aggregate of failed lanes; its log reports `FM_CI_LANES_FAILED=true`, not the underlying lane failure, so I can’t confirm this lint fix resolves it. The park test started passing scenarios but exceeded the 120-second timeout before completing

* no-mistakes(review): Document GitLab pagination completeness invariant

* no-mistakes(review): Remove duplicate temporary park test suite

* no-mistakes(review): Strengthen relaunch and inbox lock regressions

* no-mistakes(review): Keep merge poll armed when cleanup queueing fails

* no-mistakes(review): Preserve pending parks and merge cleanup retries

* no-mistakes(review): Test merged-poll cleanup queue retries

* no-mistakes(review): Retain cleanup request when outcome reporting fails

* no-mistakes(document): Fix park-on-review documentation links

* fix(park): relaunch a pending park only once its stop is confirmed

A pending record now stays pending while its agent reads alive, so feedback could relaunch over a worker whose park never finished. Hold every trigger until the stop is confirmed, for a live agent and an unreadable one alike.

Update the preflight test to expect the record to stay pending and expire at the stop bound, fix gh_fixture's review count for extra_reviews, and make the interrupted-alive and interrupted-unreadable cases wait out the detached relaunch they rule out.

* no-mistakes(review): Fix same-second relaunches and synchronize detached tests

* no-mistakes(document): Clarify park-on-review documentation ownership

* no-mistakes(ci): Applied the GitLab incomplete-discussions handling and outage distinction in `bin/fm-park.sh`, with corresponding test updates. Verification failed: `FM_LIVE=0 bash tests/fm-park.test.sh` reported 3/32 failures; specifically, the failed-page parked-lane relaunch was not observed within the test timeout. Fix/test remains incomplete

* test(park): write real newlines in the GitLab relaunch fixtures

The fixtures used a doubled backslash, so the record held one line, parked_at could not be read, and the tick skipped the lane. The relaunch assertion could not pass, and the outage assertion passed without reaching the forge read.

* no-mistakes(review): Synchronize detached teardown timing test

* no-mistakes(ci): Added the measured `fm-park.test.sh` serial hint and provenance; moved closed-PR reporting ahead of the idle-worker check and added a busy-worker regression. Coverage guard passed (43/290 unhinted), and `FM_LIVE=0 bash tests/fm-park.test.sh` passed. `tests/fm-test-run.test.sh` reached the shard-coverage cases but timed out during a later case; `git diff --check` passed

* fix(teardown): gate GitLab merged-MR landed-work proof on park-on-review opt-in

Teardown accepts a merged GitLab merge request (squash or merge train) as
landed work only when config/park-on-review or config/auto-land exists.
Without either flag a GitLab MR goes through the same read as on main.

* no-mistakes(ci): Fixed park preflight to reject backends lacking verified stop and replacement-agent support before lease or record creation. Added a Zellij regression test; `bash tests/fm-park.test.sh` and `git diff --check` pass

* no-mistakes(ci): Fixed CI coverage by moving fm-park into the proven portable parallel set and rebalancing its lanes; retained teardown status-4 slot/path details in saved land reports with a regression test. Updated scheduling evidence docs. Verified coverage guard (27 parallel; max 850004 ms), fm-park tests, and doc audience check. fm-test-run tests passed scheduling/coverage checks but timed out at 600s before the suite completed

---------

Co-authored-by: Ian Brown <[email protected]>
* feat(bootstrap): report orphan treehouse pools

* no-mistakes(review): Use Treehouse lease start for stale-slot age

* no-mistakes(review): Fix stale lease ages and duplicate-pool detection

* no-mistakes(ci): Fixed the report to inspect later slots, report duplicate pools once, and use slot-path modification time when lease timestamps are absent. Added a before/after file snapshot to the read-only behavior test; its pool root was already isolated under the test temp directory. `bash tests/fm-bootstrap.test.sh` passed (with noisy expected Git errors from non-repository fixture paths)

* no-mistakes(ci): Updated `bin/fm-bootstrap.sh` to use `treehouse-state.json` `created_at` for stale-slot age, skip missing or nonnumeric parsed epochs, and remove the filesystem-stat fallback. Added old- and missing-`created_at` fixtures in `tests/fm-bootstrap.test.sh`. The pool-report test passed; the full script exceeded the 120-second timeout later in the suite. Expected fixture Git errors were printed

* fix(bootstrap): parse offset pool timestamps

* no-mistakes(review): Preserve treehouse report field boundaries

* fix(bootstrap): recognize durable pool leases

* no-mistakes(review): Recognize durable lease IDs and holders as owned slots

* no-mistakes(review): Recognize durable leases and normalize duplicate pool identity

* no-mistakes(review): Skip empty pool records during orphan reporting

* no-mistakes(review): Skip empty worktrees and pathless slot records

* no-mistakes(test): Fixed pool-report test assertion; focused pool fixture passes

* perf(bootstrap): avoid repeated pool index parsing

* no-mistakes(document): Document read-only Treehouse pool report

* Declare pool report clock local

* no-mistakes(review): Remove Treehouse CLI prerequisite from pool report

* no-mistakes(document): Correct pool report prerequisites

* Identify duplicate Treehouse pools by origin

* no-mistakes(document): Document Treehouse pool reporting and age threshold

* no-mistakes(ci): Fixed the duplicate-pool report to print the local checkout path instead of the origin URL. Added a behavioral test with credentialed HTTPS origins; it passed. The bootstrap test suite timed out after 180 seconds during later tests; pool-report assertions passed

* test: remove unused bootstrap pool local

* no-mistakes(document): Clarify Treehouse pool report behavior

* feat(bin): make the Treehouse pool report opt-in via config/treehouse-pool-report
…d#8381)

* fix: recover stale real-directory lock records

* no-mistakes(review): Fix watch-lock identity checks across path aliases

* no-mistakes(document): Document lock recovery and refusal behavior

* no-mistakes(ci): Fixed the shared reaper to name stable inaccessible lock directories while keeping replacements retriable. Non-root permission, both session paths, recovery/race regressions, and pinned lint pass. Scratch files cleaned
…unchenguid#7376)

* fix(bin): keep home-summary collection inside its refresh deadline

A home of twelve scouts with long status histories repeatedly hit the
60-second home-summary refresh deadline while fm-fleet-snapshot.sh was
still collecting. After the bounded concurrent reads, every task row was
composed one task at a time, and each row re-folded that task's whole
append-only status history through status_open_decisions, which forked
four to five subshells per decision transition. Collection cost grew
with task count times history and had no concurrency of its own, so a
busy host pushed it past the whole-operation bound before validation or
publication.

Fold each task's status history inside its own observation worker while
its bounded current-state read is outstanding, and compose its row in
that same worker, so FM_SNAPSHOT_LOCAL_READ_CONCURRENCY now bounds the
whole per-task cost. Give the whole-file fold's per-line helpers the
optional out-variable form status_line_verb already uses, so the fold no
longer forks per line; every printed form is unchanged for other
callers.

The refresh deadline, per-child current-state bound, validation, atomic
last-good publication, and refresh lock are unchanged.

* no-mistakes(review): Describe batched snapshot workers and remaining history-growth cost

* no-mistakes(review): Rename per-task row temp file to avoid dotted-id collisions
…id#8304)

The runner-up floor check already treats a probability of 0.3 as
clearing a declared floor of 0.3. jq 1.6 prints the JSON literal 0.30
as 0.3, while jq 1.7 and 1.8 keep the trailing zero, so the assertion
failed only on that spelling. The canned probability is now 0.3, which
jq 1.6, 1.7, and 1.8 all print the same way.
…8383)

* fix(remote-job): pass USER and LOGNAME to the remote job child

* no-mistakes(document): Spresniť dokumentáciu prostredia pracovníka

* test(remote-job): run the identity-unset fixture in its own process for clean lint

* no-mistakes(document): Spresniť odkazy na kontrakt prostredia
Grok 1.0.77 titles the grok-4.7-build-fast composer
'Grok 4.7 Fast (medium) · always-approve'. The two-word model name
failed the typed-title check, so the idle composer read unknown and
fm-control exit and relaunch refused to type /exit.

Accept the single ' Fast' model word on the always-approve title only.
Pin the real styled Rex captures as fixtures.

Closes kunchenguid#8388
…nguid#8422)

* Settle declared captain holds from terminal PR evidence

Keep forge settlement opt-in and preserve unfinished work through an explicit release policy. Record merge or closure evidence without claiming a captain answer, and report unmerged closures through contribution notifications.

Fixes kunchenguid#8368

* no-mistakes(review): Defer away releases and scope closed PR reports

* no-mistakes(review): Ignore every structured link in PR hold fingerprint

* no-mistakes(review): Hold away-record lock across forge hold release

* no-mistakes(review): Defer forge release promptly on a busy away lock

* no-mistakes(document): List hold-pr-settle in layout and scripts docs

* no-mistakes(ci): Both selected Greptile findings are fixed in the worktree; nothing is committed. Invariants and sites: - ci-2: the contribution poll must never wait on a lock longer than the watcher's 30-second check bound. `settle-pr` takes two locks. The away-record lock was already bounded to 1 second. The task control lock was the only unbounded site, so `command_settle_pr` in bin/fm-captain-hold.sh now takes it with `fm_lock_acquire_wait_bounded ... 1` and returns 0 silently when busy. The policy file stays, so a later poll retries. The other callers of `acquire_task_control_lock` are captain or firstmate commands, not the poll, and are unchanged. - ci-3: a `closed` event and wake go only to a task that is an open captain hold at the moment the event is raised. `terminal_hold_event` in bin/fm-contributions.sh is the single place that raises it (the settled, final and live paths all call it). It now runs `fm-captain-hold.sh open <task>` after the cheap snapshot filter and before `write_record`, so only rows about to raise an event pay for the process. Tests added to tests/fm-contributions.test.sh: - `test_forge_settlement_defers_while_the_task_is_busy`: a held control lock makes the poll and a direct `settle-pr` return 0 with no output inside the bound, keep the policy and the hold, then settle once the lock is free. - `test_settled_task_gets_no_closed_event_for_its_other_pr`: one task with two closed PRs, the first settles the hold, the second raises no poll line, wake or `closed` event. I confirmed it fails without the bin/fm-contributions.sh fix (`not ok - the second closed PR woke a task settled in the same poll`) and passes with it. - The lock-holder fixture of the existing away-record-lock test became a shared `hold_lock` helper. docs/captain-hold-lifecycle.md gained one sentence on the busy-task deferral and an updated test list. Verification: `nice -n 10 bash bin/fm-test-run.sh tests/fm-contributions.test.sh` exited 0 (`FM_TEST_SUMMARY total=1 failed=0`, about 335 seconds). No other suite was run, as instructed. ci-1 (Full suite) remains a recorded CI override: it is only the full-ci label gate, no code or workflow was changed for it, and the hosted full suite did not pass. Not checked and risks: - The busy-lock test was not run against the old code, because the old unbounded wait would hang the test instead of failing it. - When a busy control lock defers settlement of a closed PR, the policy file remains, so that poll still raises the `closed` event and wake for the still-held task. That matches the existing away-deferral behaviour and was left unchanged. - Shellcheck was not run
Public review record for the final approved three-commit series. The merge-only intermediate tree is untested;two already-approved follow-ups preserve the final048 combined contents. Local validation ended by instruction;GitHub CI is the arbiter.

# Merge upstream main while retaining fork guarantees

## History and delivery shape

Target: https://github.com/twilwa/firstmate, base `main`, branch `fm/plat-firstmate-upstream-sync`.
Recorded fork parent: `a63c10a4ec6263473d7410937a178d14ffee1579`.
Read-only upstream parent: `427056c4181c41074ad24f051f79919330df0fa5` from https://github.com/kunchenguid/firstmate.
Merge base: `21180385d1cb782941df13ed91ba7c44f0d76351`.

This is **merge-based** and must land as a **merge commit, never squash or rebase**. It preserves upstream ancestry and the fork's retained guarantees; no new upstream merge or history rewrite is authorized. Divergence at intake was54 fork-only commits (50 non-merges/four merges) and82 upstream-only. All50 fork non-merges were accounted for:10 still-needed/40 conflicting-retained,none wholly dropped or superseded; no duplicate stable patch IDs were found (not proof of semantic independence).

The intended series records the resolved upstream merge, then the already-approved test-readiness fix and narrow ShellCheck annotation separately. Final combined contents must match frozen048; the intermediate merge-only tree was not tested. The PR is fork-only. No merge,force-push,upstream issue/comment/PR/fork,home update,/updatefirstmate,harness CLI,or deployment is authorized by this delivery. No live migration was performed.

## Fork commit classification and superseded content

All50 fork non-merge commits are accounted for:10 still-needed,40 conflicting-retained,none wholly dropped/superseded. No duplicate stable patch IDs were found;that is not a semantic-equivalence proof. Detailed(a)/(b)retained-change lists with one-line reasons follow;four mixed commits occur in both applicable lists. Historical line-retention counts are a loss-detection aid,not correctness or final048 coverage.

### Superseded implementations and retained differences

There is no whole fork commit to drop from this merge. Obsolete implementation fragments are replaced where upstream owns the stronger current implementation:

- Upstream `10b71638` replaces endpoint-key derivation with shared v3 SHA-256 keys. Fork wedge/progress logic remains, but its old key implementation is not restored.
- Fork `aa314113`'s old inline waiting helper was already replaced in fork merge `eb218c4f` by upstream `2ba4c455`'s shared `wait_until_deadline`. The fork's per-case retirement remains in `tests/supervision-host-helpers.sh`; a zero original-file line count is not evidence that the behavior was lost.
- Upstream's expanded per-task snapshot builder replaces the old duplicate row-building block. Fork single-pass status/metadata loading and model/effort columns remain in the combined builder.
- Upstream remote-doctor variable naming replaces the conflicting old binding. Fork `type -P` path resolution remains, and the integrated remote payload checksum is regenerated.
- Upstream OSC/home-export behavior replaces obsolete launch-shape assertions. Fork mise-trust and brief-delivery assertions remain.

Related changes are not assumed equivalent: upstream `2f6f2770` does not cover fork `24591edf`'s selected completion-row proof; upstream `69023626` fixes timed-command stdin, not fork `3d56046f`'s detached-server output descriptors; upstream review parking does not replace fork `fm-send --park`; upstream account choice does not replace fork quota/provider matching.

## Conflicts and resolutions

All 41 initial conflicted files have a recorded resolution. These descriptions cover the 104 marker blocks; the original blocks remain in `conflict-blocks.txt` and `initial-conflict-diff.txt` for hunk-level comparison.

| File | Resolution |
|---|---|
| `.agents/skills/captain-hold-lifecycle/SKILL.md` | Keep fork deferred-answer and digest rules; add upstream forge-event settlement and explicit PR-policy authority. |
| `.agents/skills/harness-adapters/SKILL.md` | Retain Rovo restrictions/guidance and add upstream Hermes worker-only adapter and account controls. |
| `.agents/skills/ship-landing/SKILL.md` | Keep fork batch landing and review-ledger requirements; add upstream watcher-owned cleanup of review-parked lanes. |
| `AGENTS.md` | Combine fork quota choice, dispatch receipts and review/landing rules with upstream account selection and required --dispatch-override for a changed clear selection. |
| `bin/fm-captain-hold.sh` | Keep backend-neutral holds, defer-until preservation and bd-only legacy lookup; add upstream pr-policy commands, records and forge-resolution modes. |
| `bin/fm-composer-lib.sh` | Retain fork selected slash-popup proof and hc handling; pass upstream screen/styled data into the cursorless fallback and include Hermes/Grok behavior. |
| `bin/fm-crew-state.sh` | Keep budget telemetry and lint-feedback receipt enforcement; include upstream review-park source and paused-state reconciliation. |
| `bin/fm-dispatch-resolve.sh` | Keep fork receipts, missing-rules behavior and response-header capture; add per-task selection records, configurable TYPESAFE_BASE and --globoff. Keep the fork jev-1.13.0 pin and make the header match. |
| `bin/fm-fleet-snapshot.sh` | Combine upstream per-task worker/row composition and captured open decisions with fork single-pass metadata/status reads and model/effort fields. Remove duplicate row-building code, not either data contract. |
| `bin/fm-pr-lib.sh` | Retain the fork-prefixed shared required-check reader and expose upstream's github_read_required_contexts wrapper for park callers. |
| `bin/fm-pr-merge.sh` | Keep fork review-ledger/head checks and uncertain-landing reconciliation; add upstream expected-head and explicit branch-update behavior. |
| `bin/fm-remote-doctor.sh` | Use upstream variable naming but keep type -P real-path lookup. Refresh the entrypoint checksum to match the integrated payload. |
| `bin/fm-remote-entrypoint.sh` | Keep the fork's integrated entrypoint behavior while applying upstream login-identity preservation; checksum is 8ef8fbca127437b7bd2a26a7f64b8cc5846596229d8d43ec2ff7ae821dedd0c2. |
| `bin/fm-spawn.sh` | Keep fork budgets, project-bound Treehouse pool, hc support, mise/Pi trust and brief guards; add Claude account/dispatch binding, active-home export, Herdr leasing, Hermes and standalone-clone isolation handling. |
| `bin/fm-teardown.sh` | Keep fork local-only receipts, budget cleanup and task-source retirement; add remote-ref refresh, late-write preservation, mirror-ref exclusion and review-park cleanup. |
| `bin/fm-test-run.sh` | Keep fork four-worker pool/thirteen serial shards and changed-path routing; union upstream families, new suites and timing hints. Real/live capability coverage remains explicitly classified. |
| `bin/fm-watch.sh` | Use upstream shared v3 keys; retain fork signal dedup, wedge limits/progress and dead/missing paused-worker checks; add superseded waits, silent rechecks and overdue-pause reconciliation. |
| `docs/agent-control.md` | Keep hc lifecycle support and fork safety text; add Hermes restrictions and upstream relaunch semantics. |
| `docs/architecture.md` | Combine fork review, queue, quota, local-only and watcher descriptions with upstream review parking, wait evidence and lease behavior. |
| `docs/configuration.md` | Preserve per-home Beads selector, backend-neutral holds/handoffs, fork queue/runtime/test settings; add upstream optional settings and the v3 marker-upgrade contract. |
| `docs/fm-test-portable-shards.md` | Keep fork pool/thirteen-shard policy and measured fork hints; restore upstream new-suite hint provenance. Explain that park's upstream lane timing is not a fork four-worker pool measurement. |
| `docs/pi-supervision-branch.md` | Retain fork safe acknowledgement/handoff guidance; incorporate upstream branch continuation, arm-child and wake-grant ownership rules. |
| `docs/scripts.md` | Keep fork hc, queue, remote-test and backend scripts; add upstream account, capacity, park and operator-script inventory. |
| `docs/verification/runtime-backends.md` | Combine fork verified runtime entries with upstream Hermes placement and refreshed runtime verification boundaries; no live verification is claimed by this task. |
| `docs/watcher-continuity.md` | Keep fork handoff, wedge-cap and progress-release contract; adopt upstream key identity, grant ownership and paused-wait continuity rules. |
| `tests/assets/board-render-harness.mjs` | Retain fork review-ledger board fields while accepting upstream renderer output/fixture changes; remove obsolete expected rows only. |
| `tests/fm-backend-herdr.test.sh` | Retain selected-completion proof and detached-server expectations; add upstream foreground/styled-screen and launcher-identity cases. |
| `tests/fm-backend-t3code.test.sh` | Retain fork mise-trust assertions; add upstream FM_HOME export and OSC-unframed launch expectations. |
| `tests/fm-bearings-board-render.test.sh` | Combine review-ledger board expectations with upstream rendering changes. |
| `tests/fm-bootstrap.test.sh` | Keep fork Beads selector and captain-hold diagnostics; include upstream optional record/pool diagnostics and expanded worker catalog. |
| `tests/fm-calm-pi-extension.test.sh` | Retain pendingBashComponents initialization and document its Pi fixture API purpose while incorporating upstream extension lifecycle expectations. |
| `tests/fm-contributions.test.sh` | Retain fork review/hold integration and add upstream forge-based hold settlement/reminder expectations. |
| `tests/fm-control.test.sh` | Keep hc control coverage; add upstream Hermes refusal/control expectations. |
| `tests/fm-inactive-reconcile.test.sh` | Keep budget-suffix URL cleanup; add upstream live-agent precedence and review-park outcomes. |
| `tests/fm-kimi-harness.test.sh` | Keep Kimi folder/brief-delivery proof and mise trust; update launch expectations for FM_HOME/OSC changes. |
| `tests/fm-pr-check-security.test.sh` | Keep fork ledger/head/check protections and add upstream park/registration/expected-head checks without loosening URL validation. |
| `tests/fm-pr-merge.test.sh` | Keep reviewed-head and base-modified reconciliation cases plus the nounset-safe helper; add upstream help, expected-head and branch-update cases. |
| `tests/fm-spawn-dispatch-profile.test.sh` | Retain fork profile/budget/trust assertions; add upstream task-bound dispatch records, overrides, account and FM_HOME expectations. |
| `tests/fm-watch-triage-pause.test.sh` | Union fork stopped/missing paused-worker cases with upstream overdue, superseded and silent-recheck behavior. |
| `tests/fm-watcher-lock.test.sh` | Retain fork compaction-busy and handoff guarantees; align contention assertions with upstream bounded-lock and successor restoration behavior. |
| `tests/lib.sh` | Keep fork Beads environment isolation and fixture helpers; adopt upstream task-marker clearing, active-home cleanup, timeout and launch fixture changes. |

Initial marker/diff checks and204 changed-shell syntax checks predate later corrections; they are historical integrity evidence,not a new final-tree behavioral verdict.

## Upstream behavior and running-home migration review

Every one of the 82 upstream-only commits appears exactly once below. The migration guidance is for a later authorized quiet-window fleet update. No migration was performed by this task.

### Dispatch and Claude accounts

jq 1.8-compatible OpenAI answer parsing; configurable TYPESAFE_BASE and literal curl URLs; task-scoped dispatch-selection records that spawn enforces; optional declared Claude account lists and --account; Claude support for config/crew-exclude-tools.

Migration: Existing account pins and tool-exclusion files retain their owner. Review any existing tool-exclusion list before a new Claude launch. With crew-dispatch.json active, run the resolver for every queued/new task before first launch and pass its selection, or an explicit --dispatch-override reason. Existing agents and relaunches do not need a retroactive resolution file. New account lists and custom endpoints are opt-in. Fork receipt logging and jev-1.13.0 remain.

Commits: `60f95dfa`, `998c19ff`, `18b20eaf`, `4ee956ed`, `64254de4`.

### Worker placement, recovery and status

Herdr tasks lease their actual isolated copy and tolerate slow directory projection; unresolved launcher IDs are stale; relaunch refuses primary homes but permits genuine standalone clones; Hermes is a tmux worker-only adapter; every launch exports the active FM_HOME; OSC 7501 status reporting is on by default for eligible terminals; bun-installed omp processes are recognized; inactive reconciliation does not announce terminal results while the agent is live; Windows drive-letter Herdr sockets compare canonically; Hermes tolerates empty arguments under Bash 3.2 nounset.

Migration: No task relocation or lease repair is performed by this sync. New launches receive the corrected home and lease. Hermes selection is optional and does not authorize it as a primary/secondmate. An existing OSC preference is honored; operators may later set config/osc7501-status=off. Fork Treehouse project binding, Rovo, hc, Kimi and Pi trust behavior remain.

Commits: `f641b44b`, `4f31f51d`, `e719d681`, `bb8dd209`, `b329c275`, `350cb69d`, `bf421eef`, `660d2b31`, `09ca0151`, `96625214`, `2886bbe0`, `427056c4`.

### Landing proof and cleanup

Cleanup checks late worker writes, ignores no-mistakes mirror refs as landing evidence, refreshes stale remote refs before refusal, and records forced scout removal as discarded rather than delivered. Completion replay accepts the new discarded note.

Migration: Existing merge/local-only receipts remain valid. The discarded close-note format is additive; keep readers/writers on the synchronized revision. Do not delete existing close markers, mirrors, work or refs as a migration. Fork local-only parent receipts and process-event retirement remain.

Commits: `5b91acfb`, `ed1eb1d7`, `7c6170e2`, `bf05a4fc`, `391f9d01`.

### Locks and bounded execution

Bounded background commands preserve redirected stdin while keeping terminal stdin detached; Perl timeout children are cleaned on interruption; auto-arm failures are session-scoped; retriable lock contention returns 124; Linux owner identity can be read without ps; busy locks must age before reclaim; known dead directory locks are recovered without following successor links or deleting unknown contents.

Migration: No manual lock cleanup or lock-file conversion. The owner scripts recover compatible old records. Consumers must distinguish retriable 124 from permanent failure and must not treat a newly busy lock as stale. This task does not repair live locks or alter a running home.

Commits: `69023626`, `bf50f290`, `89cdf4b7`, `c2ee5e70`, `4869cf58`, `298ca6e0`, `42ec97fe`.

### Wake delivery and watcher continuity

Custom check lines/payloads survive acknowledgement; endpoint markers use shared v3 SHA-256 keys; Pi successor/arm-child recovery is independent of wake delivery; overdue and superseded pauses can surface; unchanged paused rechecks can be silent; away boundaries reset per-task supervision markers; branch drains do not reclaim stale grants; suspend/resume does not trigger false extension timeouts.

Migration: The v3 marker upgrade intentionally starts endpoint notification counters/timers fresh once and ignores legacy/v2 evidence. Leave obsolete marker files alone unless a later, separately authorized quiet-window cleanup follows docs/configuration.md. Never reset the wake queue or task records. config/pause-ceiling, paused-wait-supersession and paused-recheck-silent are optional home-local flags; absent flags preserve their previous behavior. Fork wedge caps, progress release, frozen-Pi evidence and stopped/missing paused-worker checks remain.

Commits: `54717a29`, `10b71638`, `74ba960e`, `f5a2f7be`, `c8d8fdad`, `47df77f3`, `bb3b2d69`, `1d43f9cb`, `6d56ea44`, `488b2323`.

### Claude hooks and handback

Codex Stop output remains valid JSON; Claude API-error turn ends can restore supervision; lost Herdr handback continuations recover; a continued Claude session can take over its own auto-arm claim; optional stow-guard asks a Claude primary to capture memory before compaction.

Migration: Tracked .claude/settings.json gains API-error recovery and stow-guard Stop hooks while keeping the fork permission allowlist. Adopt tracked hooks with the normal later fleet update/restart; do not hand-edit installed hooks here. config/stow-guard is optional and silent when absent. Existing wake/continuation evidence is not cleared.

Commits: `355ea8d4`, `5c935cfb`, `913bb7a7`, `13271e28`, `774e4293`.

### PR registration, merge and review parking

Optional ready-report scans register/replace task PR watches; callers may supply an expected GitHub head; explicit --update-branch updates a branch and then requires fresh checks; optional degraded-PR notifications track checks/trains; optional squash summaries are used for merge; optional review parking stops idle ship agents and can clean merged lanes, including proved GitLab landings.

Migration: All new scan/degraded/squash/park/auto-land flags are opt-in and home-local. Do not create them implicitly. An explicit branch update invalidates that head's previous green checks and fork review-ledger generation. Keep both the upstream github_read_required_contexts wrapper for park and the fork-prefixed reader for existing callers. Fork review authority and reviewed-head merge requirements remain.

Commits: `9224c902`, `4bd1e3aa`, `65a9a51f`, `97e309c7`, `a02b0898`, `afc5b760`, `a9ae3c0c`.

### Captain holds

Decision snapshots retain full questions; relayed reminder backoff survives republishing; opt-in forge-event settlement closes only explicitly declared PR-dependent holds and reports unmerged closures without inventing a captain answer.

Migration: No automatic hold conversion. Existing deferred answers, digests and backend-neutral hold records remain. config/hold-pr-settle is off when absent and needs explicit per-hold pr-policy declarations before use. The fork's native legacy lookup remains restricted to explicitly selected bd Beads homes.

Commits: `840cebed`, `578fa758`, `34c77d54`.

### Adaptive capacity

config/lane-capacity gains an optional adaptive budget based on measured host vitals while retaining the configured maximum.

Migration: Existing fixed-capacity configuration remains valid. Auto/adaptive settings are optional; do not enable or tune them during sync. Any future enabling requires the documented config shape and measured-host prerequisites.

Commits: `14d06b04`.

### Home records and remote identity

Record exports honor empty overrides and hidden files; remote inheritance can recover after sender-counter loss; readiness repair protects shared remote Herdr services; remote jobs preserve their login identity; home-summary collection stays inside its refresh deadline.

Migration: No home inventory or credential migration is required. Existing inheritance receipts/counters recover through their owner protocol, never a manual counter reset. Preserve target HOME/login identity. Recompute and verify the bundled remote-entrypoint checksum after integration. No remote daemon, service or home was touched by this task.

Commits: `b77b66cb`, `f95d427c`, `315c82ae`, `07409e73`, `ed7fbb84`.

### Process-event launches

Detached process-event launches refresh the owner's lease and avoid launch-confirmation loops starving the runner being awaited.

Migration: Existing source records remain owned by the same protocol; no re-registration or bulk cleanup. Fork task-source retirement still runs during teardown.

Commits: `8b1618a4`, `470757ed`.

### Published-tool probes

Watched tools can compare installed versions with published npm/GitHub releases using bounded, credential-free HTTP probes and optional published/version_url fields.

Migration: Existing tool-watch declarations remain valid. New probe fields are optional and require curl only when selected; no npm installation or login change is implied.

Commits: `37e9a365`.

### Isolated live labs

Lab tmux cleanup uses explicit sockets, Herdr labs support custom fleet sessions, and lab setup reports server failures and rejects overlong socket paths.

Migration: No live lab or server is created, stopped or repaired here. Future Herdr lifecycle work still needs a regenerated guarded lab brief. Existing ordinary sessions are not a cleanup target.

Commits: `87f26ac7`, `47e07b40`, `9fbefb8e`.

### Composer and terminal presentation

Claude slash submission works again on Herdr; Calm leaves a blank row above the working boat; Grok Fast-model placeholder is recognized as empty; OpenCode busy events preserve their order.

Migration: No data conversion. Changes take effect through updated launch/UI code and extensions. Fork selected-menu slash proof and the newer Calm Pi fixture field are retained. No real harness CLI was invoked for verification.

Commits: `2f6f2770`, `c6b62326`, `d44427a3`, `c93ef8a3`.

### Optional operator tools and diagnostics

Add annotatable Lavish URL snapshots/domain routing, an opt-in Linux container check for changed shell tests, a home-local branch-prompt include, an opt-in Treehouse pool report, and stale-worker record reporting/archival.

Migration: New domain maps, Linux-check flag, branch-prompt include, pool-report flag and record-hygiene flag are optional. Defaults do not enable container execution, pool inventory or archival. Archival is an explicit operator action, not a fleet migration. None of these tools was run against a live home.

Commits: `bc9370e8`, `2773a022`, `8aa66fff`, `bf0f3468`, `afa18595`.

### Regression-only upstream changes

Strengthen anchored absence tests, installer refusal coverage, extension readiness, macOS process isolation, staged-owner timing, Herdr focus restoration, and jq numeric spelling expectations.

Migration: No running-home migration. Merge fixtures with fork tests, register their coverage/hints and validate them under bounded load. These are test changes, not evidence that the live behaviors were exercised here.

Commits: `78c69df2`, `956803ef`, `6125d418`, `3e9c781d`, `a673c851`, `cf7329b1`, `33809d3f`.

### Backlog, holds, handoff and provisioning preservation

Except for the separately disclosed narrow handoff ShellCheck annotation,the retained backend-aware production behavior is unchanged. The following other files remain byte-for-byte unchanged from the frozen fork tip:

- `bin/fm-tasks-axi.sh`
- `bin/fm-tasks-axi-lib.sh`
- `bin/fm-backlog-receive.sh`
- `bin/fm-remote-home-provision.sh`
- `bin/fm-session-start.sh`

The selector remains home-local, with explicit environment/root configuration precedence and the configured Beads binary/path/prefix. Backend-aware reads, destination addressing and handoff remain routed through tasks-axi. The captain-hold merge retains deferred answers and bd-only legacy lookup, then adds optional forge settlement through the same backend-neutral path. The upstream backlog-transition change adds `discarded` close replay, not a markdown-only addressing path.

Secondmate seeding and bound local-only ownership still use the fork offer/landing protocol. Upstream remote-inheritance recovery and the session-start bootstrap diagnostics are additive. No backlog conversion, native Beads scan, reseed, secondmate restart or handoff replay is required as a blanket migration.

### Later update checklist

1. Obtain the normal merge authority and green required checks for the fork PR. This task cannot merge it.
2. Let the primary firstmate choose a quiet fleet-update window after merge. Do not run `/updatefirstmate` from this task.
3. Adopt the synchronized scripts, tracked hooks and extension instructions together. Do not copy selected new state readers onto old writers.
4. For each new/queued dispatch on a home with `crew-dispatch.json`, regenerate its per-task resolution before first launch. Do not invent a record for an already running agent.
5. Expect one fresh v3 endpoint notification history. Do not delete task state or the wake queue. Old cache files may safely remain.
6. Keep existing Beads selectors, account pins, local-only bindings and captain holds. Do not enable the new optional settings as part of sync.
7. If operators later opt into hold settlement, review parking, adaptive capacity, silent pauses, stow guard, Linux checks, exports or other new features, apply each documented per-home setting deliberately. That is separate work.

## Retained fork changes:upstream-aligned fixes versus fork features

All50 non-merge fork commits are covered below. These are33(a)and34(b)retained-change entries,not unique-commit totals. Mixed commits `6e996afb`,`7f7b00f9`,`141a2adc`,`8d54f886` appear in both appropriate lists. Sync-added readiness/recorded-relaunch fixes are separate below. No classification grants upstream publication authority.

### (a) Pure fixes to functionality upstream already has

| Fork commit | Change and one-line reason |
|---|---|
| `27f81f0d` | Bind Treehouse routing to the project,preventing selection of another project's copy. |
| `95e02a9a` | Renew completed-step beacons so a healthy watcher is not mistaken for abandoned. |
| `95e02a9a` | Preserve stale-lock ownership against a late claimant,closing a recovery race. |
| `95e02a9a` | Restore main-only handoff before successor start,preventing lost supervision events. |
| `95e02a9a` | Deliver refused Claude handback despite a healthy successor,closing lost notifications. |
| `95e02a9a` | Check the per-user presentation-lock namespace to avoid reclaiming the wrong Herdr lock. |
| `6e996afb` | Recognize direct Claude processes so existing lifecycle control works without wrapper PIDs. |
| `6e996afb` | Prove paste delivery beneath Claude's slash popup,avoiding false zellij-composer success. |
| `6e996afb` | Resolve executable paths with type -P so shell functions are not treated as binaries. |
| `6e996afb` | Read fleet metadata/status once,reducing process cost without changing identity. |
| `6e996afb` | Register server cleanup/detect listeners to repair existing test isolation. |
| `6e996afb` | Keep defer-date fixtures future-dated,removing calendar-dependent failures. |
| `6e996afb` | Put control_relaunch_tx before retained pr= metadata,restoring parser ownership. |
| `6e996afb` | Forward --upstream-consent per batch pair,preserving publication authority. |
| `3d8ffa9b` | Mark authenticated Codex/T3/opt-in tests live,keeping portable selections safe. |
| `6896d3d3` | Restore teardown's independent changed-path arm,which a broader arm swallowed. |
| `b83bda0f` | Restore Kimi2.3.x folder/brief confirmation and refused-launch cleanup. |
| `40429373` | Remove unsupported temperature from existing inbox inference requests. |
| `d533765e` | Reconcile base-modified responses and record only verified merges,avoiding false landings. |
| `1ea26336` | Retire only the task's own process-event sources,closing cleanup leakage. |
| `aa314113` | Retain per-case retirement/deadlines to remove host-test races;old wait helper is superseded. |
| `7f7b00f9` | Keep opt-in warm-compaction testing live,repairing the portable safety boundary. |
| `141a2adc` | Bound lost-handback alarms rather than retrying continuation exhaustion indefinitely. |
| `8d54f886` | Correct handback documentation to match existing delivery/exhaustion behavior. |
| `3e2eef67` | Make the test GitHub-URL predicate nounset-safe for a lone --help argument. |
| `24591edf` | Prove the selected slash-completion row,preventing false Claude submission success. |
| `c5a44aad` | Bound PR URLs at the shared separator so telemetry cannot corrupt receipt identity. |
| `3d56046f` | Exec detached Herdr launches to close inherited output descriptors and reach EOF. |
| `f6c9fd9b` | Distinguish stopped/missing paused workers from healthy external waits. |
| `1d17432d` | Keep Pi busy during settlement compaction,preventing premature input injection. |
| `b87136ab` | Match Muse/Codex provider IDs correctly within existing quota/account selection. |
| `58850871` | Require frozen-busy-Pi evidence before alerting about a stuck inbox. |
| `7782115b` | Add pendingBashComponents to match the installed Calm Pi fixture API. |

### (b) Beads/beads_rust(br) compatibility and other fork features

| Fork commit | Retained fork-specific change |
|---|---|
| `bb670294` | Claude Bash(bin/fm-*) allowlist:additional permission policy. |
| `0842e229` | Advisory JevGate workflow/configuration:additional review service. |
| `be4d9d42` | Head-keyed ledger,risk/review,reviewed-head handoff,hold projection and board:fork merge policy. |
| `5783867f` | Host safety,test scopes,no-mistakes response/skip guards and brief checks:operating policy. |
| `6a3cdd6b` | Whole-task budgets,metadata and pane-question evidence:supervision telemetry/policy. |
| `5e661c81` | Bound local-only secondmates,offer/landing receipts,sleep routing and guarded cleanup. |
| `6e996afb` | Model/effort snapshot columns:additional presentation fields. |
| `6e996afb` | Lint partition sizing:fork CI resource policy. |
| `6e996afb` | Serena cache/Headroom lock ignores:support for fork-local tools. |
| `acd9876c` | Landing-crew merge queue,batching and safeguards:additional delivery workflow. |
| `e6e7c6a6` | Orchestration model/provider guidance and pins:tool/model policy. |
| `ec9b2c2a` | Earlier sync adaptations for review/holds/local-only/Rovo,dispatch receipts,Jev pin and supporting fixtures/checksums/docs. |
| `a754c17a` | Fork-hosted timing/concurrency evidence;obsolete eleven-shard layout is not retained. |
| `23d381e9` | Launch-local Mise trust exports:deliberate tool-trust policy,not a pure fix. |
| `e0cf954a` | Serial/pool hints and balancing evidence:chosen CI topology. |
| `15db9c85` | 1500-second script bound and matching CI contract:runtime-budget policy. |
| `fac3ebbd` | Explicit no-mistakes Test authorization in ship/promotion instructions:workflow policy. |
| `3bebf69c` | Four-worker portable pool,13 serial shards,four Lint partitions,telemetry and guards:CI architecture. |
| `d7ad7862` | Test-first vertical-slice ship/promotion definitions:development policy. |
| `7f7b00f9` | Early child local-only refusal and landing-crew fixtures:bound-copy/merge-queue workflow. |
| `0e5610b4` | hc backend/script inventory:additional backend. |
| `141a2adc` | Preserve defer dates in resend instructions:deferred-answer workflow. |
| `8d54f886` | Correct resend/defer documentation for that fork-only workflow. |
| `78e7d045` | hc lifecycle,composer and control:additional backend integration. |
| `a76c8927` | Bounded validation/guarded no-mistakes responses:resource and approval policy. |
| `1d829d28` | Registered-project Pi trust preapproval:scoped security/launch choice. |
| `92e68b13` | fm-send --park:durable declared waits,distinct from upstream optional review parking. |
| `0464ee53` | Three-attempt wedge ceiling,progress-only release and episodes:retry/escalation policy. |
| `4ed72871` | Lint-feedback receipts in instructions/completion:additional delivery artifact/policy. |
| `21b4f2de` | Opt-in capped SSH runner/protocol:additional remote execution;not enabled/invoked here. |
| `255ea55b` | Legacy hold lookup only for explicitly selected bd homes:Beads compatibility. |
| `24b902aa` | Per-home tasks backend,br binary/path/prefix and backend-neutral bootstrap/session addressing. |
| `43353f03` | Backend-aware handoff/receive/remote provisioning preserving Beads/br stores and addressing. |
| `a63c10a4` | Single-jq-pass ledger polling:optimization of the fork-only review feature. |

Supporting sync fixture changes retain receipt/Keychain scenarios with actual-platform lock detection,separate CLI expected-head cases from optional reviewed-head handoff while retaining its refusal regression,improve handoff failure output without changing waits/locks,and keep fork-hosted pool timings distinct from upstream park samples. No new CI topology or independent product feature is introduced by these resolutions.

## Approved integration adjustments and separate fixes

- **(b)039 safe-suite compatibility:**append `--exclude-script tests/fm-supervision-host-herdr-live-e2e.test.sh` to the fork's safe-suite manifest,following its existing T3 exception. This upstream-new test met a fork-only manifest guard; no old exclusion was lost. Runner,live test,product and original280-path accounting are unchanged.037's list-membership failure1/46385ms (runner46567ms) was not live Herdr execution/timeout/skip; the later original brief-scope039 full script passed. No Herdr lab was activated.039 changed one text path;other944 paths/modes/types and645 canonical Lint roots were unchanged.
- **(a)048 recorded-relaunch integration repair:**`spawn_worktree_isolated()`/`validate_spawn_worktree()` accept a private `recorded-relaunch` purpose at only two late non-secondmate callers. A recorded standalone clone may have ownGitdir=common!=projectCommon after unchanged physical-root/project/resolved-Git checks. Strict fresh Treehouse pool membership,default/polling callers and primary-home/project/code-root/physical/Git/endpoint/secondmate refusals remain. No public CLI/environment/global bypass,assertion suppression,schema or migration. Only `bin/fm-spawn.sh` changed from039. The corrected full-script non-pass and coverage gap are disclosed below.
- **(a)Separate test-readiness fix:**100→500×.02s bound after a measured.27335s late helper observation; no weaker identity,security,serialization,hash,release or liveness assertion. Intermediate/earlier failed measurements remain preserved.
- **(b)Separate ShellCheck annotation:**SC2031 comment only inside the handoff child subshell;no behavior/global suppression,production lock/wait change or new backend migration. Other approved fixture plumbing retains Darwin uname(-s)-only behavior,optional expected-head initialization/output visibility and real basename in the restricted mock PATH.

The retained-content tables classify changes,not unique commits:their(a)/(b)entries overlap mixed commits. They are not a claim that every retained fork feature should be submitted upstream. The new integration addenda above are stated separately,not silently credited to an earlier fork commit.

## Validation ended by instruction; GitHub CI is the arbiter

Local validation ended at the owner's instruction. The no-mistakes Rebase, Test, Lint and CI steps are explicitly skipped at the owner's instruction to end local validation (`--skip rebase,test,lint,ci`); Review, Documentation, Push and PR remain. Skipping CI also prevents its automatic repair/conflict-rebase loop. GitHub CI is the arbiter. Historical split local measurements are not a final whole-tree green verdict. After publication, checks are observed read-only: the first complete result is reported, with no rerun, repair, rebase or further push without another ruling. A skipped-step rejection by the PR-raised-via-no-mistakes check is reported, not worked around by editing the PR body.

The frozen 280-path accounting is **57 ordinary passes + 7 UNAVAILABLE + 11 NOT RUN + 6 accepted NONPASS + 1 OWN flaky merged NONPASS-THEN-PASS + 1 unresolved extension-binding + 197 unrun = 280**. The board pass remains caveated. The Linux/BSD no-assertion case is prospective among the unrun paths, not observed BSD coverage. Partial positive assertions, completed comparison drivers and successful resource-accounting queries do not turn nonzero scripts into passes.

### Six accepted local NONPASS outcomes

1. **Busy wiring — PRE-EXISTING PARENT FUNCTIONAL NONPASS, caveated.** `tests/fm-busy-adapter-wiring.test.sh`: merged039 script1/24582ms; frozen fork/upstream script1/21915ms and1/10195ms. Both parents fail the same assertion. Synthetic fixture captures show an independent endpoint-recovery failure notification, not a stalled-loop notification. Blanket fake-tmux `display-message=0` does not model a live Claude agent/isolated tty and can lead liveness probing to host tty0. Actual host process names and the original merged queue payload were not captured. This supports pre-existing fixture coupling, not an isolated cause or a tested fix. Frozen-Pi inbox, wedge-cap and compaction guarantees remain unchanged. No correction/replay is included.
2. **Lifecycle — PRE-EXISTING PARENT BOUNDED-RUNTIME FAILURE, NON-PASS.** `tests/fm-captain-hold-lifecycle.test.sh`: merged/fork/upstream all script124 at the 1500-second script bound (1500066/1500083/1500068ms), runner1/outer1; not a1530-second outer timeout. **A merge-specific slowdown was not excluded.** No slow command, functional regression or fixture fix was demonstrated. The proposed3000-second experiment/replay was denied; no CI default changed. Profiling/splitting/re-bounding is separate follow-up work, not a proved additional fixture bug. The upstream runner has no listener audit; a comparison driver0 means completed measurements, not passing scripts.
3. **Claude trust — PRE-EXISTING-PARENT FUNCTIONAL NONPASS, caveated.** `tests/fm-claude-trust.test.sh`: merged/fork/upstream script1/6175,5751,6316ms; runner1/6390,5993,6437ms; outer1, gatefalse,13 positive prefixes each. The fixture under standard TMPDIR discovers an enclosing operational-home Git repository and receives the not-at-repository-root refusal instead of the expected `not inside a git repository` text. The later no-trust-write assertion was **not reached**. No outside-repository counterfactual or guard relaxation was performed. Relevant test/helper/refusal code is identical three ways, but complete helper libraries/runners differ; this is not all-path compatibility. Merged/fork listener audits0; upstream audit unavailable. Nonzero immediate parent controls were zero-window only; successful raw query properties were not retained separately. Later inactive/empty/success observations remain late, not successful-native retirement receipts.
4. **Command Code — PRE-EXISTING-PARENT FUNCTIONAL NONPASS, caveated.** `tests/fm-commandcode-harness.test.sh`: merged/fork/upstream script1/3945,3864,4925ms; runner1/4159,4105,5081ms; outer1, gatefalse, three positive prefixes. Failure-message invocation prints expected lifecycle labels `onSessionEnd run_end run_start` plus `[MODULE_TYPELESS_PACKAGE_JSON]`; `drive_mod()` merges stderr into asserted stdout. The comparison capture was not separately retained and the failure message reinvokes the helper. **The warning cause is not counterfactually isolated; later assertions were not reached.** Neither incorrect product lifecycle registration nor later callback/spawn coverage is proved. Test/mod/helper are identical three ways; other libraries/runners differ. No ancestor-package inspection/edit, warning suppression or replay. Merged/fork audit0; upstream unavailable; immediate nonzero parent controls were zero-window only without separately retained successful raw properties.00:46:47Z merged and00:58:08Z parent observations remain late.
5. **Recorded-clone relaunch — PRE-EXISTING-UPSTREAM-PARENT FUNCTIONAL NONPASS, caveated, accepted after the integration correction.** Original merged039 failed the standalone-clone case1/46155ms (runner1/46373ms), without reaching the later case. Fork original full script0/467365ms (runner0/467587ms), but lacks the clone/after-stop-primary cases; this is not merged coverage. Upstream original passed those cases then failed a different later endpoint-readiness assertion1/385619ms (runner1/385744ms). The sole corrected048 full replay02:49:47–02:56:24Z on2026-11-18 remained script1/397570ms, runner1/397774ms, outer1/driver1, gatefalse, listeners0,67 positive prefixes. Required standalone-clone/after-stop-primary and primary-home/project-primary/inherited-Git refusals passed, but the script did not. Failure: `relaunch did not reach its pre-publication endpoint check`, as in upstream. The later function/invocation is identical; cause unisolated, redirected child output unretained, later assertions unreached.200×0.01 source sleeps are not measured case duration.03:04:34Z scope/source observations are late, not an immediate successful retirement receipt. Original upstream listener audit unavailable; fork/merged0. Parent driver0 proves measurements only. No second correction/probe/replay. Original merged039 ran01:27:02–01:27:48Z; fork01:56:31–02:04:19Z; upstream02:04:20–02:10:46Z. Fork retirement succeeded in0.015794144s; upstream nonzero used only zero-window control without separately retained successful raw properties;02:13:13Z parent queries remain late. No live worker was interrupted. The fresh-foreign-clone negative in `tests/fm-spawn-pool-base-freshen.test.sh` remains among197 unrun; unchanged source is not runtime coverage. The readiness failure is a candidate upstream issue only; none was filed here.
6. **DOD — ENVIRONMENT-DEPENDENT FIXTURE NONPASS under standard TMPDIR, passing once under verified non-Git TMPDIR.** `tests/fm-dod-lib.test.sh`: original048 standard-runtime script1/1896ms, runner1/2109ms, outer1/driver1, gatefalse, listeners0,04:31:05–04:31:08Z. Two ROOT assertions preceded the failure; no whole-case positive line preceded it.04:33:01Z observations are late. The sole053 unchanged original full-script counterfactual05:24:11–05:24:41Z passed script0/29624ms, runner0/29871ms, outer0/driver0,36 positives, gatefalse/listeners0, immediate048 before/after identity and retirement0.0165402859s. Only TMPDIR changed from033: fresh owned0700 `/tmp/fm-dod053.an9ct0`, verified outside Git by discovery exit128. This is not ordinary PASS, unchanged-environment flakiness or measured parent-native failure. Assertion/formatter policy is fork-side and fork=merged; exact0-vs2 lineage branch remains untraced. No DOD parents were run and no fixture correction is included.

### Unresolved extension-binding — not an accepted seventh non-pass

extension-binding fails locally on BOTH the fork parent a63c10a4 and merged 048 under a non-Git TMPDIR. Both share the remote-root fixture omission. The merged run also showed deadline/control-boundary assertions and one fork retry. Cause unisolated; not counted as an accepted non-pass; CI on the sync PR is the arbiter.

Original standard-TMPDIR053 merged run05:48:20–05:48:34Z: script1/13716ms, runner1/13935ms, outer1/driver1, gatefalse/listeners0. It showed Git-boundary/package-source refusals, missing libraries and deadline/control-boundary failures. Its scope was later active/populated; the one separately authorized054 stop06:01:37Z removed it. This was cleanup, not a test pass or successful-native retirement proof, and grants no further cleanup authority.

Fresh056 non-Git merged run07:37:03–07:37:19Z: script1/15315ms, runner1/15537ms, outer1/controller1, gatefalse/listeners0. It showed missing libraries, `fork: retry: Resource temporarily unavailable`, one internal `Killed` child and deadline/control-boundary failures. No whole-script1500/1530 timeout occurred. Immediate zero-window query found the exact scope inactive/removed/empty with Resultsuccess; this does not override native1. The selected unit journal records start/accounting only (54.257s CPU,7.9M peak,0B swap), not a limit/OOM/kill/timeout event. Absence of a journal event excludes no unlogged event and proves no internal timeout cause. Printed fork retry does not establish TasksMax exhaustion; `Killed` does not establish OOM or whole-script kill.

Sole057 fork-parent non-Git run08:30:57–08:31:33Z: script1/35128ms, runner1/35343ms, outer1/controller1, gatefalse/listeners0. It printed five missing-task-inbox and five missing-backend diagnostics,12 positive lines/three section-local passes, then `not ok - an isolated extension conformance section failed`. It did **not print** deadline/control-boundary assertions, fork retry, Killed or AssertionError; absence is not proof the activity never occurred. Thus057(d), a nonmatching-signature parent failure, not the requested matching shared-parent whole-script acceptance, a confirmed regression or cause isolation. Parent full test differs from upstream/merged. Immediate zero-window scope query was inactive/removed/empty, Resultsuccess, no lifecycle action; not successful-native retirement. Parent remained clean/detached;048 bytes unchanged.056's PASS prerequisite was unmet;197 never started. No further comparison/replay is authorized.

### OWN flaky result, separate from accepted failures and ordinary passes

`tests/fm-claude-stop-autoarm.test.sh` is **FLAKY MERGED NONPASS-THEN-PASS**: original merged1/221296ms at `resumed-same-id-orphan: the superseded orphan still delivered a banner`; original fork/upstream passed0/179215ms and0/277925ms; the sole unchanged merged replay passed0/267911ms (runner0/268141ms), with recorded successful retirement. The readiness-loop hypothesis is **unproven**. This is an observed-result disposition, not a cause or ordinary green suite. No third merged run.

### Runtime, TMPDIR and source provenance

Agy validation and later portable scripts used child-only existing concrete Node26.13.0 first on PATH, `MISE_AUTO_INSTALL=false`, `MISE_EXEC_AUTO_INSTALL=false`, `MISE_NOT_FOUND_AUTO_INSTALL=false`, and `FM_LIVE=0`. Runtime033 additionally removed exactly `TMUX`, `HERDR_ENV`, `TERM_PROGRAM`, `REX_BLOCK`, `CMUX_WORKSPACE_ID`, `__CFBundleIdentifier`, `HC_TERMINAL_ID`, `HC_TERMINAL_SOCKET`, `HC_SESSION` from each validation child's inherited environment. Identity values are not disclosed. Parent environment, HOME/XDG, explicit selectors, pins, locations and user/global configuration were not changed as runtime adjustments; external effects were not independently audited. Three initial pass receipts predate028; eleven other pass receipts use028;43 use033. Historical attempts are not all relabelled033.

Agy's fixture resolves Node to a Mise shim then switches HOME, permitting automatic fixture-home installation; its missing-Agy case removes only the fake and leaves a real host Agy reachable. Those fixture defects pre-exist and are identical in fork/upstream/merge. Preserve two initial merged zero-bound failures, a failed diagnostic probe and both parent scripts' later missing-executable failures; none is a green receipt or proof of flakiness. The isolated full Agy028 run passed0/88554ms (runner0/88734ms),14:26:17–14:27:46Z on2026-11-17. Unexpected Node26.13.1 installation output was observed; its metadata/size is unavailable, not zero, and Node26.13.0's size is not substitute evidence. Fixture cleanup removed that metadata; no manual install/rollback or Agy patch is included.

Later portable controllers used2GiB/Swap0/Tasks256/jobs1,1500s script/1530s outer+15s grace,and the required fresh load1<10 gate. Successful new runs had read-only at-most60s exact-scope retirement checks; nonzero zero-window observations are not successful-native receipts. Earlier attempts retain their actual controls rather than inheriting these retroactively. Standard033 TMPDIR was the task's `postlint-tmp` beneath an ambient Git boundary. DOD053 used `/tmp/fm-dod053.an9ct0`, profile `4a9c2b1d257b0f3dcba9295dc017e9e2a1cc10e4dab07b267870b4d7e5883b7f`.054 changed the prospective continuation baseline to a fresh non-Git TMPDIR after trust/DOD/extension Git-boundary evidence and the DOD counterfactual; CI alignment was a rationale, not a measured CI result or retrospective trust/extension pass.056 used owned0700 `/tmp/fm-upsync056.kgDiH0`, profile `3dc2d87e23a8c489d42b2c45725ef9c4496500c394a877b8a7b02d7b3c475cc5`;057 used owned0700 `/tmp/fm-extension057.yYKFeq`, profile `e33c36a0254b2b96a41793d3f822c67fa9a3a442c0e3c725b9a11b4d8ce83fd6`. Fresh physical non-symlink roots had no Git ancestor/discovery exit128. Each differs from033 profile `75168340c48e62a649f067d8c51aa9028c2c488966b629fec1b4eeb3a1ea5e07` only in TMPDIR.028 profile was `a4c31f184a9789c02730b4b989abc7b1c5a7f35041d90b52e95bd8b5ec61242c`. Non-Git successes do not retroactively make standard-TMPDIR failures pass. No197 continuation result exists.

Of57 ordinary receipts,30 plus six gates retain020 source manifest `642487817e385a0ab8adeb30b489281f967984e957af392b08774008de8eb947`;17 ordinary retain039 `f9daa193c45acc043bcc68d34ea3a55ccf70fd65f331b7aa6da188cd441a115c`;ten ordinary were actually measured on048 `324fdf5747d263315b65d8b784fba099560d140389a2ce4c1d0909859e7fcff6` under standard033.039 changed only the safe-suite text manifest;048 changed only `bin/fm-spawn.sh` relative to039, leaving the other944 paths/modes/types and every test unchanged. Earlier receipts were preserved, not rerun/relabelled or replaced with final-tree credit. New ordinary048 results were control, cortex, crew-state, cursor, cursor-primary, daemon, devin, dispatch-resolve, documentation-audiences and ensure-agents-md; each had native/runner/outer0 and immediate source/retirement proofs. Cursor-primary ran04:05:04–04:09:22Z on2026-11-18.197 paths remain unrun, including prospective live/Windows gates and BSD assertions.

### Board pass caveat and deferred fixture work

`tests/fm-bearings-board-render.test.sh` returned native0/outer0 with13 positives, but the immediate retirement query saw an active scope and its driver returned2. It later retired: resource-accounting16:50:54.515851Z and reconciliation16:53:54Z on2026-11-17; no child identity was recorded. This is the separately accepted caveated pass, not a proven leak/race/cleanup cause. Three fake-lavish commands attempted `/state.json` writes because `render_call()` omitted its per-home `LAVISH_AXI_STATE_DIR`; writes were denied, not writes to real default Lavish state. That fork-side omission predates integration and is unchanged;028/033 did not cause path selection. Whether an unpinned listener historically read the real default store is unestablished; only file metadata, not contents, was inspected. The derived later checkpoint is explicitly late (original2026-11-17T16:53:54.153029Z), not immediate evidence.

Existing follow-up `plat-fh-agy-test-isolation` owns seven deferred fixture findings: Agy shim/HOME installs; missing-Agy host reachability; Paseo inherited HC identity; board state pin/listener handshake; busy fake-tmux/TTY modelling; trust ambient-Git fixture location; Command Code stdout/stderr separation. Paseo's cleanup predates the HC detector; relevant source is identical three ways and the later full033 pass does not erase031's failure. Board's proposal uses its own home state directory plus `require_listener_reached_poll`, but remains untested and does not prove a retirement fix. Busy's proposal returns `claude` for `#{pane_current_command}` and empty for `#{pane_tty}`, not blanket0; it remains unapplied/untested. Lifecycle profiling/splitting/re-bounding is additional work, not an eighth proved fixture bug. None of these fixes belongs in this sync. These two additional required follow-up lines do not claim a filed or owned work item:

tests/fm-extension-binding.test.sh remote-root fixture copy list omits fm-task-inbox-lib.sh and fm-backend.sh, which fm-procevent.sh sources (shared parent, since 2026-09-20); add both (separate fork PR).

fm-dod-lib.test.sh's unrelated-project fixture inherits an ambient Git boundary from TMPDIR; harden it with an isolated git init child (fork-side test fix, separate PR).

The remote-root copy omission is shared-parent fixture debt, not an integration fix. It explains missing-library diagnostics, not whole-script/deadline causality. No fixture/source/test correction for either line is included.

### Other local validation and execution limitations

The four earlier named full-script reruns passed after approved fixture corrections: PR-check-security0/1342578ms (runner1342796), dispatch0/101333ms (runner101544), backlog-handoff0/245245ms (runner245463), PR-merge0/1960125ms (runner1960317). Earlier original failures and the900-second security timeout remain preserved; these measurements predate048 and do not turn197 unrun cases green. Readiness's measured.27335-second late observation motivated the separately retained100→500×.02s test-only fix; later unchanged security/serialization/content/hash/release assertions passed. Handoff wait250×.02s and production locks did not change. Initial syntax/marker/diff checks and static negative-controller checks are not native behavioral coverage.

Historical Lint is incomplete as a final048 verdict: a6GiB attempt OOM/interrupted143 after2311s/190 roots; a14GiB diagnostic exposed ShellCheck memory fallbacks; a later5400s driver timeout124/native143 had553 completed roots and no final TSV. Neither timeout identifies the unfinished pending-reply root as its cause. Disjoint019/020 receipts account for645 canonical roots plus backend purity/four workflows and206 changed roots, with eight `final_follow_sources=0` memory fallbacks (`tests/fm-daemon.test.sh`, `bin/fm-spawn.sh`, `bin/fm-teardown.sh`, `bin/fm-watch.sh`, `tests/fm-launch-prompt-signals-live-e2e.test.sh`, `tests/fm-pending-reply.test.sh`, `tests/fm-stat-shadowing.test.sh`, `tests/fm-watch-open-decisions.test.sh`); SC1091/SC2034/SC2153/SC2329 exclusions remain disclosed. The child-subshell SC2031 comment is narrow, not a behavioral/global suppression.048 later changed the spawn root; historical645-root coverage is not final048 configured Lint. Documentation check passed native/driver0,149 surfaces/1287 local links. A prior30-second coverage timeout and2026-11-16T20:18:48Z6GiB interruption during host saturation remain unproved outcomes. No new local Lint/Test is run for delivery.

A reporting incident accidentally evaluated a backticked controller command before approval; the10-second tool call timed out and its exit was not captured. Exact process/output checks found no new native process/output; the parent independently confirmed this and050 ruled **no native execution effect**. No kill/retry/cleanup was used to infer success. The intentional049 launch03:50:12.394796Z was separately authorized. Status text thereafter uses literal quoted-heredoc files. Separately, consumed053's allowlist lacked explicit shell exit propagation under `set -u` without `set -e`; metadata negative checks did not prove shell enforcement. Both actual native paths were authorized, native1 stopped correctly and no rejected-guard/out-of-scope execution was observed. This defect is not an established extension cause; the consumed helper was not repaired/restarted.056 used fresh explicit failure propagation instead. No journal/accounting/model advice is validation or isolated causality.

## Actual ordinary native0 scripts,by runtime

All names below are under `tests/`;board retains its explicit caveat.

- **legacy-before028:** `fm-afk-contract.test.sh`, `fm-afk-inject-e2e.test.sh`, `fm-afk-return.test.sh`.
- **isolated028:** `fm-agy-harness.test.sh`, `fm-agy-primary.test.sh`, `fm-approval-failover.test.sh`, `fm-arm-pretool-check.test.sh`, `fm-ask-user-authority.test.sh`, `fm-assertions.test.sh`, `fm-backend-cmux.test.sh`, `fm-backend-hc.test.sh`, `fm-backend-herdr-server-eof.test.sh`, `fm-backend-herdr.test.sh`, `fm-backend-orca.test.sh`.
- **isolated033:** `fm-backend-paseo.test.sh`, `fm-backend-rex.test.sh`, `fm-backend-t3code.test.sh`, `fm-backend-tern.test.sh`, `fm-backend-zellij.test.sh`, `fm-backend.test.sh`, `fm-backlog-atomicity.test.sh`, `fm-backlog-handoff.test.sh`, `fm-backlog-read-bound.test.sh`, `fm-bearings-board-render.test.sh`, `fm-bearings-board.test.sh`, `fm-bearings-snapshot.test.sh`, `fm-bootstrap-network-parallel.test.sh`, `fm-bootstrap.test.sh`, `fm-branch-supervision.test.sh`, `fm-brief-tdd.test.sh`, `fm-brief-test-scope.test.sh`, `fm-brief.test.sh`, `fm-busy-state.test.sh`, `fm-calm-claude-mod.test.sh`, `fm-capacity-auto.test.sh`, `fm-capacity.test.sh`, `fm-captain-hold-backend-compat.test.sh`, `fm-cd-pretool-check.test.sh`, `fm-check-unregister.test.sh`, `fm-classify-corr-token.test.sh`, `fm-classify-decision-key.test.sh`, `fm-claude-account-quota.test.sh`, `fm-codex-stop-park.test.sh`, `fm-composer-ghost.test.sh`, `fm-composer-lib.test.sh`, `fm-contributions.test.sh`, `fm-control-hc.test.sh`, `fm-control.test.sh`, `fm-cortex-harness.test.sh`, `fm-crew-state.test.sh`, `fm-cursor-harness.test.sh`, `fm-cursor-primary.test.sh`, `fm-daemon.test.sh`, `fm-devin-harness.test.sh`, `fm-dispatch-resolve.test.sh`, `fm-documentation-audiences.test.sh`, `fm-ensure-agents-md.test.sh`.

## UNAVAILABLE,NOT RUN and prospective platform gates

### Seven observed UNAVAILABLE exclusions — not passes

Six exact native whole-file gates were observed;the seventh is a prerequisite failure,not a native gate:

| Script (`tests/`) | Exact reason / outcome |
|---|---|
| `fm-backend-cmux-smoke.test.sh` | `cmux CLI not found on PATH or at the bundle path` |
| `fm-backend-paseo-smoke.test.sh` | `paseo CLI not found on PATH or at the bundle path` |
| `fm-backend-rex-eventwait-smoke.test.sh` | `rex CLI not found at $REX_BIN_DIR, on PATH, or at the server bundle path` |
| `fm-backend-rex-smoke.test.sh` | `rex CLI not found at $REX_BIN_DIR, on PATH, or at the server bundle path` |
| `fm-backend-tern-smoke.test.sh` | `tern not found` |
| `fm-backend-zellij-smoke.test.sh` | `zellij not found` |
| `fm-ci-workflow.test.sh` | UNAVAILABLE—missing host tool:ruby;`ruby is required to parse .github/workflows/ci.yml as YAML`;script1/975ms,runner1/1172ms,outer1,gatefalse. YAML-semantic assertions unreached;workflow-presence precheck is not semantic coverage. Late scope/source check remains late. No installation,parent comparison,replay or native0 relabel. |

The initial cmux exclusion was not rerun or passed. No installed lifecycle tool is described as unavailable merely because its cases were deferred.

### Eleven deferred lifecycle cases:NOT RUN,outside permitted scope

The host runs the live fleet and this task has no Herdr lab. These were filtered,not run or passed:

- `tests/fm-backend-hc-appdetect-smoke.test.sh`
- `tests/fm-backend-hc-smoke.test.sh`
- `tests/fm-backend-tmux-smoke.test.sh`
- `tests/fm-calm-pi-extension.test.sh`
- `tests/fm-gate-refuse.test.sh`
- `tests/fm-live-lab-isolation.test.sh`
- `tests/fm-live-lab-up-mate.test.sh`
- `tests/fm-live-lab.test.sh`
- `tests/fm-spawn-orca-worktree.test.sh`
- `tests/fm-teardown-endpoint-safety.test.sh`
- `tests/fm-tmux-agent-liveness.test.sh`

### Four prospective gates among197 unrun — not observed exclusions

`tests/fm-opencode-abs-cwd-rail-live-e2e.test.sh`, `tests/fm-supervision-host-herdr-live-e2e.test.sh`, `tests/fm-watch-inbox-progress.test.sh`:expected `live: disabled by FM_LIVE=0`. `tests/fm-pi-windows-shell-invocation.test.sh`:expected `native Windows Node required`. Those reasons were planned exact gates,not newly observed receipts;do not add them to the seven UNAVAILABLE outcomes.

### Linux/BSD no-assertion limitation

`tests/fm-stat-shadowing.test.sh` remains unrun. Its Linux branch would print an ok/skip-style line without BSD shadowing assertions: `Darwin-only test: shadowing assertions require BSD /usr/bin/stat; skipping on Linux`. This is no BSD coverage and no observed script pass. Internal skips in another script do not become whole-file exclusions.
Change only the approved100-to-500 readiness poll bound after the lock was measured0.27335 seconds late. Keep serialization,content,hash,release and authentication assertions unchanged. Earlier failures and the full security rerun remain disclosed in the merge review record. No new local validation;GitHub CI is the arbiter.
Document the existing child-only selector reset with a narrow SC2031 annotation inside sub_store. No runtime,backend,lock or wait behavior changes and no global suppression. Historical Lint/source limitations remain disclosed in the merge review record;delivery Lint/Test are skipped by instruction and GitHub CI is the arbiter.
@sourcery-ai

sourcery-ai Bot commented Nov 18, 2026

Copy link
Copy Markdown

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

Pass all three cursorless-selector arguments from the plain transcript API,
and cover question extraction under nounset through that public interface.
Use the shared v3 endpoint-key owner at the four paused-incarnation and six
wedge-cap fixture sites. Supply the later busy-overdue direct-helper fixture
with its fake backend inventory and foreground command, asserting the live
precondition without relaxing any existing pause or wake assertion.
Make the Herdr lease fixture a linked project worktree rather than a second
primary clone. Production isolation and liveness guards remain unchanged.

The pane whole file passed locally. The wedge whole-file local run timed out
at 1500 s with 25/29 positives and no failed assertion; that is not a whole-file
pass. The triage whole file was not re-run locally after the fixture fix.
CI is the arbiter. The earlier Herdr pass is bound to its recorded source;
there is no new whole-tree Test or Lint credit.

Retain PR117's existing complete Disclosures and all fifty fork-commit
classifications, supersession, conflict/resolution, behavior and migration
lists in the normal pipeline body update. Preserve the unresolved extension,
DOD fixture, lifecycle-slowdown, accounting and skipped-step caveats. Add the
wedge timeout and unreplayed-triage disclosures above. T3 lease allocation
remains unchanged from the fork base and is a separate follow-up only.
The pipeline owns its attestation refresh; no manual body edit is intended.
@twilwa twilwa changed the title feat: sync upstream firstmate main with fork changes kept on top feat: merge upstream firstmate main while preserving fork guarantees Nov 19, 2026
@twilwa
twilwa merged commit 38ea79f into main Nov 19, 2026
25 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.