Skip to content

fix: keep remote reply listeners alive after transient read failures - #7887

Open
mehulbhagwani wants to merge 140 commits into
kunchenguid:mainfrom
mehulbhagwani:fm/fm-remote-reply-relisten
Open

mehulbhagwani wants to merge 140 commits into
kunchenguid:mainfrom
mehulbhagwani:fm/fm-remote-reply-relisten

Conversation

@mehulbhagwani

@mehulbhagwani mehulbhagwani commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Keep the remote listener subscribed when a transient SSH or reader exit ends a read window. Continue to report other read failures.

What Changed

  • Treat SSH exit 255 and remote reader exits 1 or 2 as empty windows so the listener retains its claim and relistens.
  • Preserve nonzero errors with no output for other failed or non-schema reads.
  • Document retry behavior and add regression coverage for relistening, claim retention, and rejected output.

Risk Assessment

✅ Low: The narrowly scoped status mapping reuses existing retry behavior while preserving cursor integrity, output filtering, and cleanup.

Testing

The targeted regression and live SSH scenarios passed after reproducing the original failure and correcting a manual-driver timing assertion; CLI, status, and cursor evidence was captured, and all disposable labs were removed.

  • Live validation: ✅ go - 6 of 6 scenarios driven live against the product
Scenario Result Live Evidence
SSH connection failures return 255; the listener retains ownership and delivers a later reply after recovery. ✅ pass live Live SSH evidence: transport255; base adapter stopped after one failed attempt.
An invalid remote log causes reader exit 1; retries preserve ownership without advancing the cursor, and delivery resumes after repair. ✅ pass live Live SSH evidence: reader1, persisted status and cursor.
Reader usage failure returns 2; diagnostic output is discarded and the same listener delivers replies after configuration recovery. ✅ pass live Live SSH evidence: reader2, real reader invoked without arguments through SSH.
A missing remote entrypoint returns 127; the listener releases ownership without capturing output or automatically retrying. ✅ pass live Live SSH evidence: missing127.
A successful SSH command returns non-schema text; the adapter returns an error with empty output and retains registration for reconciliation. ✅ pass live Successful non-schema response rejected: SSH misrouted to the real process-event list command.
Starting a second listener during retries is refused; retiring the recovered listener stops further attempts and removes its claim. ✅ pass live Live SSH evidence: duplicate start and retirement checks for transport255, reader1, and reader2.
Evidence: Live SSH failure, recovery, ownership, and retirement evidence

Source: Live SSH failure, recovery, ownership, and retirement evidence

$ git -c init.defaultBranch=main init -q ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code
exit=0
stdout=
stderr=
$ git -C ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code add bin AGENTS.md
exit=0
stdout=
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-lab-home.sh create ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/remote
exit=0
stdout=~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/remote
stderr=
$ /usr/bin/ssh-keygen -q -t ed25519 -N '' -f ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/host_key
exit=0
stdout=
stderr=
$ /usr/bin/ssh-keygen -q -t ed25519 -N '' -f ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/client_key
exit=0
stdout=
stderr=
SSH forced-command configuration: normal
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-lab-home.sh create ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/before-fix
exit=0
stdout=~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/before-fix
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh source before-fix
exit=255
stdout=
stderr=ssh: connect to host 127.0.0.1 port 63671: Connection refused
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh arm before-fix
exit=0
stdout=registered: remote-reply-before-fix (remote-reply)
armed: remote-reply-before-fix offset=0
stderr=
BASELINE REPRODUCED: connection refusal ended the listener after one attempt and released the claim.
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh retire before-fix
exit=0
stdout=retired: remote-reply-before-fix
stderr=
Retirement stopped retries, released ownership, and left no staged output.
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-lab-home.sh create ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/transport255
exit=0
stdout=~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/transport255
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-on.sh transport255 fm-remote-delta-read.sh state/parent-replies.status 0 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 1
exit=255
stdout=
stderr=ssh: connect to host 127.0.0.1 port 63671: Connection refused
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh source transport255
exit=75
stdout=
stderr=ssh: connect to host 127.0.0.1 port 63671: Connection refused
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh arm transport255
exit=0
stdout=registered: remote-reply-transport255 (remote-reply)
armed: remote-reply-transport255 offset=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh list
exit=0
stdout=SOURCE                       ADAPTER      OWNER      PENDING
remote-reply-transport255    remote-reply live       0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh start remote-reply-transport255
exit=0
stdout=already owned: remote-reply-transport255
stderr=
Failure 255: same owner pid=49265, attempts=['1794518492.1777642', '1794518493.241583', '1794518494.371167', '1794518495.606239']; no capture, cursor, status, or caught-up watermark.
Real OpenSSH server started on loopback:63671, pid=57962
Mirrored status:
note: recovered after transport255
Cursor:
schema=fm-remote-reply-cursor.v1
offset=35
prefix_sha256=ff73194cdc577414064cb504b66172ccba5afa2313940700a25ef8e6810dd624

Recovery kept owner pid=49265; remote log unchanged; reply ingested exactly once in this run.
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh list
exit=0
stdout=SOURCE                       ADAPTER      OWNER      PENDING
remote-reply-transport255    remote-reply live       0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh retire transport255
exit=0
stdout=retired: remote-reply-transport255
stderr=
Retirement stopped retries, released ownership, and left no staged output.
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-lab-home.sh create ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/reader1
exit=0
stdout=~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/reader1
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-on.sh reader1 fm-remote-delta-read.sh state/parent-replies.status 0 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 1
exit=1
stdout=
stderr=error: log is not a non-symlink regular file: state/parent-replies.status
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh source reader1
exit=75
stdout=
stderr=error: log is not a non-symlink regular file: state/parent-replies.status
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh arm reader1
exit=0
stdout=registered: remote-reply-reader1 (remote-reply)
armed: remote-reply-reader1 offset=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh list
exit=0
stdout=SOURCE                       ADAPTER      OWNER      PENDING
remote-reply-reader1         remote-reply live       0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh start remote-reply-reader1
exit=0
stdout=already owned: remote-reply-reader1
stderr=
Failure 1: same owner pid=6301, attempts=['1794518524.975986', '1794518528.51105', '1794518532.333081']; no capture, cursor, status, or caught-up watermark.
Mirrored status:
note: recovered after reader1
Cursor:
schema=fm-remote-reply-cursor.v1
offset=30
prefix_sha256=798979280d11db3517d7605130f058912ad4875c208593312e7e752820ffe389

Recovery kept owner pid=6301; remote log unchanged; reply ingested exactly once in this run.
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh list
exit=0
stdout=SOURCE                       ADAPTER      OWNER      PENDING
remote-reply-reader1         remote-reply live       0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh retire reader1
exit=0
stdout=retired: remote-reply-reader1
stderr=
Retirement stopped retries, released ownership, and left no staged output.
SSH forced-command configuration: usage2
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-lab-home.sh create ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/reader2
exit=0


... [18 bytes truncated] ...

l/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/reader2
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-on.sh reader2 fm-remote-delta-read.sh state/parent-replies.status 0 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 1
exit=2
stdout=Blocking, non-destructive delta read for a remote secondmate append-only log.

Usage:
  fm-remote-delta-read.sh <relative-log> <offset> <prefix-sha256> [wait-seconds]

The reader validates continuity by hashing the exact prefix represented by the
caller's cursor. It then blocks until at least one complete appended line is
available, returns at most 65536 payload bytes, and never truncates or consumes
the source. A shortened or changed prefix returns a structured continuity-break
result instead of silently rebasing the cursor.
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh source reader2
exit=75
stdout=
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh arm reader2
exit=0
stdout=registered: remote-reply-reader2 (remote-reply)
armed: remote-reply-reader2 offset=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh list
exit=0
stdout=SOURCE                       ADAPTER      OWNER      PENDING
remote-reply-reader2         remote-reply live       0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh start remote-reply-reader2
exit=0
stdout=already owned: remote-reply-reader2
stderr=
Failure 2: same owner pid=39311, attempts=['1794518543.6463518', '1794518544.971021', '1794518546.155133', '1794518547.62127']; no capture, cursor, status, or caught-up watermark.
SSH forced-command configuration: normal
Mirrored status:
note: recovered after reader2
Cursor:
schema=fm-remote-reply-cursor.v1
offset=30
prefix_sha256=4383522002b45ed36d58f773b6b81d6b49234a81be8389fe8e7b9330847c08d9

Recovery kept owner pid=39311; remote log unchanged; reply ingested exactly once in this run.
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh list
exit=0
stdout=SOURCE                       ADAPTER      OWNER      PENDING
remote-reply-reader2         remote-reply live       0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh retire reader2
exit=0
stdout=retired: remote-reply-reader2
stderr=
Retirement stopped retries, released ownership, and left no staged output.
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-lab-home.sh create ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/missing127
exit=0
stdout=~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/missing127
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-on.sh missing127 fm-remote-delta-read.sh state/parent-replies.status 0 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 1
exit=127
stdout=
stderr=/bin/bash: fm-remote-entrypoint.sh: command not found
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh source missing127
exit=127
stdout=
stderr=/bin/bash: fm-remote-entrypoint.sh: command not found
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh arm missing127
exit=0
stdout=registered: remote-reply-missing127 (remote-reply)
armed: remote-reply-missing127 offset=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh list
exit=0
stdout=SOURCE                       ADAPTER      OWNER      PENDING
remote-reply-missing127      remote-reply none       0
stderr=
Refusal: raw exit=127, adapter exit=127; one attempt, no output capture, claim released, registration retained.
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh retire missing127
exit=0
stdout=retired: remote-reply-missing127
stderr=
Retirement stopped retries, released ownership, and left no staged output.
SSH forced-command configuration: banner
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-lab-home.sh create ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/nonschema
exit=0
stdout=~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/nonschema
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-on.sh nonschema fm-remote-delta-read.sh state/parent-replies.status 0 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 1
exit=0
stdout=Welcome to the isolated SSH endpoint
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh source nonschema
exit=1
stdout=
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh arm nonschema
exit=0
stdout=registered: remote-reply-nonschema (remote-reply)
armed: remote-reply-nonschema offset=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh list
exit=0
stdout=SOURCE                       ADAPTER      OWNER      PENDING
remote-reply-nonschema       remote-reply none       0
stderr=
Refusal: raw exit=0, adapter exit=1; one attempt, no output capture, claim released, registration retained.
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent-remote-reply.sh retire nonschema
exit=0
stdout=retired: remote-reply-nonschema
stderr=
Retirement stopped retries, released ownership, and left no staged output.
SSH forced-command configuration: normal
ALL LIVE SCENARIOS PASSED
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh sweep-home
exit=0
stdout=swept: attempted=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh sweep-home
exit=0
stdout=swept: attempted=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh sweep-home
exit=0
stdout=swept: attempted=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh sweep-home
exit=0
stdout=swept: attempted=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh sweep-home
exit=0
stdout=swept: attempted=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code/bin/fm-procevent.sh sweep-home
exit=0
stdout=swept: attempted=0
stderr=
$ /bin/bash -c '. "$1/bin/fm-remote-job-lib.sh"; fm_remote_job_stop_worker_tree "$(cat "$2/remote-jobs/worker.pid")"' cleanup ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih/code ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-1a2140ih
exit=0
stdout=
stderr=
Disposable SSH server, worker, listeners, test keys, and lab files removed.
Evidence: Successful non-schema response rejected

Source: Successful non-schema response rejected

$ git -c init.defaultBranch=main init -q ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/code
exit=0
stdout=
stderr=
$ git -C ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/code add bin AGENTS.md
exit=0
stdout=
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/code/bin/fm-lab-home.sh create ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/remote
exit=0
stdout=~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/remote
stderr=
$ /usr/bin/ssh-keygen -q -t ed25519 -N '' -f ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/host_key
exit=0
stdout=
stderr=
$ /usr/bin/ssh-keygen -q -t ed25519 -N '' -f ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/client_key
exit=0
stdout=
stderr=
SSH forced-command configuration: normal
Real OpenSSH server started on loopback:63820, pid=56469
SSH forced-command configuration: banner
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/code/bin/fm-lab-home.sh create ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/nonschema
exit=0
stdout=~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/nonschema
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/code/bin/fm-on.sh nonschema fm-remote-delta-read.sh state/parent-replies.status 0 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 1
exit=0
stdout=no sources registered
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/code/bin/fm-procevent-remote-reply.sh source nonschema
exit=1
stdout=
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/code/bin/fm-procevent-remote-reply.sh arm nonschema
exit=0
stdout=registered: remote-reply-nonschema (remote-reply)
armed: remote-reply-nonschema offset=0
stderr=
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/code/bin/fm-procevent.sh list
exit=0
stdout=SOURCE                       ADAPTER      OWNER      PENDING
remote-reply-nonschema       remote-reply none       0
stderr=
Refusal: raw exit=0, adapter exit=1; one attempt, no output capture, claim released, registration retained.
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/code/bin/fm-procevent-remote-reply.sh retire nonschema
exit=0
stdout=retired: remote-reply-nonschema
stderr=
Retirement stopped retries, released ownership, and left no staged output.
SSH forced-command configuration: normal
ALL LIVE SCENARIOS PASSED
$ ~/.no-mistakes/worktrees/3ffccef5245c/01M78SGHQ162R3KV66V39CWB86/.fm-remote-live-wltz8tmz/code/bin/fm-procevent.sh sweep-home
exit=0
stdout=swept: attempted=0
stderr=
Disposable SSH server, worker, listeners, test keys, and lab files removed.

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

🔧 **Rebase** - 1 issue found → auto-fixed ✅
  • ⚠️ bin/fm-procevent-remote-reply.sh - merge conflict rebasing onto refs/remotes/no-mistakes-push/fm/fm-remote-reply-relisten

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

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 6 of 6 scenarios driven live against the product
Scenario Result Live Evidence
SSH connection failures return 255; the listener retains ownership and delivers a later reply after recovery. ✅ pass live Live SSH evidence: transport255; base adapter stopped after one failed attempt.
An invalid remote log causes reader exit 1; retries preserve ownership without advancing the cursor, and delivery resumes after repair. ✅ pass live Live SSH evidence: reader1, persisted status and cursor.
Reader usage failure returns 2; diagnostic output is discarded and the same listener delivers replies after configuration recovery. ✅ pass live Live SSH evidence: reader2, real reader invoked without arguments through SSH.
A missing remote entrypoint returns 127; the listener releases ownership without capturing output or automatically retrying. ✅ pass live Live SSH evidence: missing127.
A successful SSH command returns non-schema text; the adapter returns an error with empty output and retains registration for reconciliation. ✅ pass live Successful non-schema response rejected: SSH misrouted to the real process-event list command.
Starting a second listener during retries is refused; retiring the recovered listener stops further attempts and removes its claim. ✅ pass live Live SSH evidence: duplicate start and retirement checks for transport255, reader1, and reader2.
  • bash tests/fm-remote-reply.test.sh passed; this regression uses fixture transport.
  • python3 ~/.no-mistakes/evidence/01M78SGHQ162R3KV66V39CWB86/live-remote-reply.py exercised real loopback SSH, reproduced the base-adapter failure, and verified recovery and failure boundaries.
  • Corrected a manual-driver assertion that inspected temporary staging during an active read, then reran successfully.
  • python3 ~/.no-mistakes/evidence/01M78SGHQ162R3KV66V39CWB86/live-remote-reply.py --only-nonschema verified rejection of output from a real misrouted command.
  • git status --short and cleanup checks confirmed unchanged source and no remaining disposable lab files or processes.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[High impact] The branch reaches remote reply polling and a broad set of Firstmate workflows through its mainline merge.

Fix the stale capacity-budget bypass before merging so worker launches keep respecting the published limit.

Reviews (4) · Last reviewed commit: "no-mistakes(document): Clarify adapter-r..." · Reviewed by Greptile

Comment thread bin/fm-procevent-remote-reply.sh Resolved
…mote-reply-relisten

# Conflicts:
#	bin/fm-procevent-remote-reply.sh
#	tests/fm-remote-reply.test.sh
@mehulbhagwani mehulbhagwani changed the title fix(bin): relisten after remote reply SSH 255 and reader exits 1 and 2 fix(bin): keep remote reply listener relistening after SSH 255 and reader exits 1, 2 Oct 28, 2026
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @mehulbhagwani. This is a clear writeup, and the 6/6 live drive against the real runner and adapter is exactly the evidence this needs. Your follow-up commit ea3c18af (staged-file cleanup on shutdown) addresses the Greptile P2.

Contract-class: new-default (my own read, which matches what your body says). On main, a failed delta read from the reply listener takes the failed-read path and releases the claim. This change makes SSH 255 and reader exits 1 and 2 relisten on the unconfigured path, once per launch floor (1 s) with no backoff, for as long as the claim is held. That's a behavior change to a default path, not a restore of one already specified, so it needs Kun's decision and I won't auto-merge it.

VISION: One captain / honest interface: aligns on the goal (reports stop silently dying), but there's one open question for the captain: a persistent 255 retries every second indefinitely and nothing surfaces it. Authority: n/a (no new grant). Scripts own mechanics: aligns (exit-code classification lives in the adapter). Restart is a non-event: aligns (cursor not advanced, claim kept). Delegation: aligns (regression tests for 255/1/2/127 and cleanup). Vendor: aligns (generic SSH, WSL-wrapper stdout noise handled). Scope: aligns.

Overlap: this branch carries #7874's commits (67a976c8, 32d6e444), so it stacks on #7874, which should land first. I'm not asking you to change anything about that.

State: the no-mistakes check passes on ea3c18af, and CI (40670562054) is still running. Nothing is waiting on you right now. Once CI is green I'll put it in front of the captain. From then on it waits on his decision, not on you.

@mehulbhagwani

Copy link
Copy Markdown
Contributor Author

The serial 6 failure is unrelated to this PR and is tracked by #7690. The focused recovery-drain test passes on the exact PR head ea3c18a. Please rerun the failed job; no code change is needed for this watcher-lock flake.

…listen

# Conflicts:
#	bin/fm-procevent-remote-reply.sh
#	tests/fm-remote-reply.test.sh
@mehulbhagwani mehulbhagwani changed the title fix(bin): keep remote reply listener relistening after SSH 255 and reader exits 1, 2 fix(bin): keep the remote reply listener alive after transient SSH and reader failures Oct 29, 2026
@mehulbhagwani

Copy link
Copy Markdown
Contributor Author

Merged current main (which now carries #7874) into this branch through a normal merge and re-raised through no-mistakes, so the Pipeline attestation binds the new head 9f0d941.

  • Conflicts in bin/fm-procevent-remote-reply.sh and tests/fm-remote-reply.test.sh were resolved by keeping this branch's version, which already contained fix(bin): keep failed or non-schema remote reply reads out of captures #7874's change plus the relisten behavior; docs/remote-secondmates.md merged cleanly.
  • tests/fm-remote-reply.test.sh passes on the merged head, and bin/fm-lint.sh plus the Pi type check pass.
  • The only failing check is the new Full suite verdict from main's latest CI change, which fails on an outside pull request until a maintainer adds the full-ci label; the coverage guard, repo invariants, and the no-mistakes body check pass.

…atch resolution (kunchenguid#7664)

* feat(bin): add opt-in systemone and openai providers to typed dispatch resolution

Extend the FM_DISPATCH_PROVIDER/FM_DISPATCH_MODEL seam with a generic
systemone provider (any System One-compatible host at FM_DISPATCH_BASE_URL,
optional FM_DISPATCH_API_KEY) and an openai provider that maps the Choice
request to OpenAI's Decisions API and its answer back. No provider set keeps
the original off line; the never-send check runs on the endpoint and the final
per-provider body. Live provider captures are recorded as pending.

Refs kunchenguid#7643, builds on kunchenguid#7149.

* docs(verification): record the live OpenAI Decisions capture for dispatch resolution

Add a dated 2026-10-23 section for the openai provider: 25 hand-labeled
synthetic briefs against gpt-6-luna, outcome and latency tables, the usage
and header fields actually returned, a calibration note, and one verbatim
request and response pair. The systemone live check stays pending.

Refs kunchenguid#7643.

* docs(verification): record the live Clef capture for the systemone provider

Replace the pending systemone section with a dated 2026-10-23 run against
Cloudflare Workers AI's @cf/cloudflare/clef, reached through a local
test-only relay because Workers AI serves System One at /ai/run/<model> in
a {result, success} envelope. Adds the outcome and latency tables, a
calibration note compared with the gpt-6-luna run, and one verbatim request
and envelope pair. A direct Workers AI option stays out of scope.

Refs kunchenguid#7643.
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @mehulbhagwani. I read the new push. Head 9f0d9410 is a normal merge of current main (which now has #7874) into your branch. Against main, the diff is now only the relisten change: SSH 255 and reader exits 1 and 2 become the empty-window status, the cmd_source subshell with EXIT/TERM cleanup of the staged file, one doc line, and the tests. The no-mistakes attestation binds 9f0d9410 with no skipped steps, and live validation is 6/7, with the 7th being the out-of-diff PR actions. Greptile is 5/5, there are no open review threads, and the coverage guard, repo invariants and no-mistakes checks pass.

You're right about the Full suite failure: that's the new full-ci gate for outside PRs, not something in your code, and you don't need to do anything about it.

My verdict hasn't changed. Contract-class: new-default. On main, these failures release the listener's claim. With this change the listener keeps the claim and retries once per launch floor, with no backoff. VISION: aligns on every rule. The one open question for the captain is whether a persistent 255 should retry every second without surfacing anything. That makes this a merge-or-leave call for the captain, and I won't auto-merge it.

Next step is ours, not yours: this passes every gate for the full suite, so it's waiting on us to run it. Once the full suite passes on this head, I'll send it to the captain.

…henguid#7941)

* feat(agy): promote Antigravity CLI to full primary and secondmate harness

Add tracked .agents/hooks.json, bin/fm-sessionstart-agy.sh, bin/fm-turnend-guard-agy.sh, PreToolUse --agy seatbelt flags, session-lock agy ancestry, autoarm supervision model, and --secondmate agy workspace trust pre-registration and spawn support.

* no-mistakes(review): Fix agy Stop-hook park, hooks.json shape, and live coverage

* no-mistakes(review): Unbound agy Stop park, raise ceiling, prove live deny

* no-mistakes(review): Correct agy verification doc park-bound wording

* no-mistakes(document): Document agy as verified primary and secondmate harness

* no-mistakes(ci): I fixed all three selected findings, and every check I ran passed, including the live agy end-to-end run. **ci-1 (`tests/fm-agy-primary-live-e2e.test.sh`):** The invariant is that the live Stop-hook test passes only if a real watcher starts and its wake reaches a follow-up turn. The old test passed as soon as `.agy-park-owner` existed. I replaced the Stop-hook park block with the one the user specified. It waits until both `.agy-park-owner` and `.last-watcher-beat` exist, wakes the watcher with a `done:` status line, and asserts that the park owner was recorded, the watcher started, and `DONE` appears in the agy output. **ci-2 (agy away daemon):** The invariant is that `/afk` must not launch a separate away daemon on any primary whose home runs the supervision host. The agy Stop-hook guard already runs the host when it is enabled, but `fm_afk_launch_host_primary` left agy out. I added `agy` there, which is the one shared check all three callers use. I also added agy to: - the header comment in `bin/fm-afk-launch.sh`; - the three harness loops and the pass message in `tests/fm-afk-launch.test.sh`; - the primary lists and counts in `docs/supervision-host.md`, the matching lines in its engine-selection section, and a new Antigravity (`agy`) row in its Arm owners table; - the header comment in `bin/fm-supervision-instructions.sh`. **user-1 (`.agents/hooks.json`):** The invariant is that each hook command stays one script under Windows `cmd /c` and exits 0 when `sh` is missing. All 5 commands now use `sh -c "..." || cd .`. This does not change behaviour on Linux or macOS, because the `--agy` hooks report deny or continue as JSON on stdout and exit 0. The file keeps its live-verified `{"firstmate":{...}}` shape, matchers and 28800s Stop timeout. **Verification:** - `tests/fm-agy-primary.test.sh` passes, including running the SessionStart hook command from both `.agents/` and the repo root. - `tests/fm-afk-launch.test.sh` has no failures, and the new agy check passes. Its rex end-to-end cases were skipped because the rex CLI is not installed. - `tests/fm-supervision-instructions.test.sh` has no failures. - `bin/fm-lint.sh` and `bin/fm-doc-audience-check.sh` pass. - `FM_AGY_PRIMARY_LIVE=1 tests/fm-agy-primary-live-e2e.test.sh` printed all four `ok` lines and no failures, including "Stop hook parks on a real watcher and delivers its wake to a follow-up turn". The output went through `tail`, so the exit code shown is `tail`'s, not the test script's
@kunchenguid kunchenguid added the full-ci Maintainer go-ahead: run the full CI suite on this outside pull request label Oct 29, 2026
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @mehulbhagwani. The full suite passed on head 9f0d9410 (run 40930255715: every Behavior lane, Herdr, macOS, lint, timing, coverage and invariants). That was the last gate.

Where it stands: the no-mistakes attestation binds this head with no skipped steps, live validation is 6/7, Greptile is 5/5, there are no open review threads, and the PR is CLEAN against main b936f040.

Contract-class: new-default (unchanged). On main, SSH 255 and reader exits 1 and 2 release the listener's claim. With this change the listener keeps the claim and retries once per launch floor. VISION aligns on every rule. The one thing for the captain to weigh is that a persistent 255 retries every second, with no backoff and nothing surfaced.

This is now with the captain for a merge-or-leave call, not with you. You don't need to do anything else unless the captain asks.

Dematom1 and others added 6 commits October 29, 2026 19:18
…kunchenguid#7894)

* feat(dispatch): add shared_quota home opt-out from quota-based ranking

A home whose Claude and other provider usage draws on one combined AI
budget has no meaningful per-provider quota rows, so spendPriority
ranking and runway gates pick the wrong candidate. An optional
top-level "shared_quota": true in config/crew-dispatch.json now opts
the home out: the typed resolver makes no quota-axi call, applies no
quota floor or runway gate, ranks nothing by spendPriority, and
resolves the matched rule's use profiles in declared order, printing
every candidate line with quota ranking off by home declaration.
Firstmate's quota-array-dispatch intake honors the same declaration.
Without the setting, behavior is unchanged. Non-boolean values are
actionable configuration errors in both the resolver and bootstrap.

* test(dispatch): cover shared-quota bypass of unmet rule and profile floors

The shared_quota opt-out test picked a rule with no quota floor, so the
separate rule-floor and profile-floor bypass paths stayed untested.
Two cases now run against the same fixture: a rule whose model:fable
floor (20%) exceeds the snapshot's 15%, and a profile whose all_models
floor (50%) exceeds codex's 31%, each asserting the declared-order pick
still wins with no quota-axi invocation.

* no-mistakes(review): Narrow shared-quota skill opt-out to quota-only gates

* no-mistakes(review): Document preferred_provider under shared_quota opt-out and test it

* no-mistakes(document): Document shared_quota in schema example and verification inventory
…henguid#7958)

* fix(bin): distinguish recycled reaper PIDs in tombstone cleanup

* no-mistakes(ci): ci-2 fixed in tests/fm-watcher-lock.test.sh (test_lock_tombstone_tracks_reaper_start_time). Invariant: no fixture child may outlive a SIGKILLed runner without a bound. (1) The paused reaper's wait loop now also stops when FM_TEST_SUITE_PID is no longer alive or when SECONDS reaches FM_TEST_STUB_MAX_BLOCK_SECONDS. (2) The one sibling child in the same test, the unrelated `sleep 300`, now sleeps for FM_TEST_STUB_MAX_BLOCK_SECONDS so it uses the same bound. Verification, run serially: bash tests/fm-watcher-lock.test.sh. The new test passed on 4 of 4 runs. Red-before still holds: with the base bin/fm-wake-lib.sh from c9da552, the test fails with 'not ok - recycled reaper pid kept an abandoned tombstone alive'. Separately, the known stand-down flake ('the replaced watcher did not stand down on its own', watch-legacy-local-time-identity) failed on every run on this host and also fails on base c9da552 without this change, so the test file still exits 1; left unfixed as instructed. ci-1 (Full suite waiting on the full-ci maintainer label) was ignored per the user's decision
* feat: allow omp as a remote secondmate harness

* test: cover omp on the remote secondmate gates

* fix: retire a remote secondmate whose busy state left with its home

* docs: record omp remote retirement evidence

* review: Refresh pinned remote doctor bootstrap checksum
…enguid#7969)

* fix(bin): name a consumed branch grant instead of a wiring bug

When a supervision branch's own acknowledgement consumes every granted
row, the drain removes the branch-eligible row snapshot while the owner
record stays live. A repeat drain or acknowledgement in the same turn then
refused with a message implying a broken handoff. Say instead that the
grant was already consumed; the refusal and its exit status are unchanged.

* no-mistakes(document): Document consumed-grant refusal in watcher continuity doc

---------

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

* feat(dispatch): read Typesafe key from Keychain

* no-mistakes(review): Share Keychain key lookup with bootstrap; hard-code service name

* no-mistakes(review): Use one readable-secret Keychain check for bootstrap and resolver

* no-mistakes(document): Point AGENTS key row to owner; record Keychain bootstrap evidence

* feat(dispatch): read provider keys from a declared credential source

bin/fm-dispatch-resolve.sh took the typesafe.ai and OpenRouter keys only
from the environment or $FM_HOME/.env, so a home that keeps its key in the
macOS Keychain needed a wrapper to supply it, and the documented direct
call reported off.

Let the resolver consume an optional, provider-keyed declaration in the
effective config directory, config/dispatch-credential-sources.json. It
names where a key lives and never holds one. macos-keychain is the first
adapter (service, optional account), kept behind a small schema and adapter
registry in bin/fm-credential-source-lib.sh so the shared surface binds to
no one OS or provider.

- Precedence is the environment, then .env, then the declared source, which
  is read only when neither supplied a key and only for the selected
  provider.
- No entry and no key stays off, exactly as before. An unreadable or
  invalid declaration exits 2 with a line that names the problem and never
  a declared value.
- A declared source that this host cannot run, that yields no key, or that
  does not answer within FM_CREDENTIAL_SOURCE_TIMEOUT ends as a structured
  error outcome with nothing sent, so it is not mistaken for an
  unconfigured resolver.
- The key is captured into the same private variable as before and still
  reaches curl only as an fd 3 header. The adapter puts only the service
  and account on argv and discards the tool's stderr.
- --supports-credential-source <source> answers supported or unsupported
  without reading a declaration or running the credential tool, so an
  installer can refuse an unsupported activation before it writes anything.

The resolver tests cover the mapping, effective-home and provider
isolation, precedence, the three failure kinds, and secret containment
with a stubbed security and uname.

Closes kunchenguid#7879

* no-mistakes(review): Gate bootstrap typed checks on declared source; fix timeout

* no-mistakes(review): Document storing the declared Keychain item without access dialog

* no-mistakes(document): Clarify that only a typesafe declaration keeps resolver on

* no-mistakes(document): Merge dispatch key-source precedence into one configuration sentence

---------

Co-authored-by: Kun Chen <[email protected]>
Dematom1 and others added 25 commits November 9, 2026 15:23
* feat(pr-poll): wake on a ready PR/MR degrading after its ready report

A ready PR/MR watched only for its merge sat idle when it degraded after
the ready report: a GitLab merge train dropping the merge request (its
readable trace is the failed head pipeline) or GitHub checks turning red
fired no wake, so the worker and its supervisor waited until a human
noticed. The existing merge poll now also emits one degraded line for
that transition, naming the failed jobs with the forge's failure reasons
and the pipeline or check URL so the wake says which test broke without
a job-log dig.

- bin/fm-pr-poll.sh reads the GitHub rollup through gh's own --jq and the
  GitLab record through glab -F json, the same read the merge path makes,
  so both forges share the merged contract and gain the degraded line.
- The watcher dedupes one wake per head/pipeline identity through a
  validated per-task marker (bin/fm-pr-lib.sh); a repeat is silent and a
  changed identity wakes again. The merged wake is unchanged.
- GitLab arming requires jq like the Gerrit and Forgejo watches, because
  the rendered view carries no head pipeline state.
- Re-arming clears the marker; teardown removes it with the other
  per-task PR-poll artifacts.
- Regression tests cover both forge paths, the silent paths, and the
  once-per-transition dedupe at the watcher level.

* no-mistakes(review): Wake on GitLab merge-train drops; jq-less merged fallback

* no-mistakes(review): Match only HTTP 404 for merge-train drop detection

* no-mistakes(review): Name failed jobs on train drops; baseline degraded-at-ready

* no-mistakes(review): Re-read MR after train 404 before reporting a drop

* no-mistakes(document): Document degraded-after-ready merge poll wakes

* no-mistakes(ci): Lint 1 failed on shellcheck SC2034: the shape loop in test_github_degraded_poll (tests/fm-pr-check-security.test.sh) assigned `field` (and an intermediate `rest`) that were never used. The invariant is that every assigned variable in the test is used. That loop is the only site. The working tree already removes both assignments (shapes are now 'Type|VERDICT', with `verdict=${shape#*|}`). `shellcheck tests/fm-pr-check-security.test.sh` now reports nothing. I started the full test file, but it was stopped at its background time limit, so its pass/fail result is unconfirmed. The change only drops dead variables, so behavior is unchanged. I did not touch the Behavior portable checks (ci-1 to ci-3), per the task owner's ruling that they are unrelated flakes

* no-mistakes(ci): The ci-1..ci-4 fixes were already in the worktree, so I made no code edits. I did not commit or push: this phase must not push, and the outer executor owns that. The four targeted regression tests did not finish, so the fixes are not confirmed by a passing test run. - **Shellcheck:** `shellcheck -x -S warning` on bin/fm-watch.sh, bin/fm-pr-check.sh, bin/fm-pr-poll.sh and tests/fm-pr-check-security.test.sh is clean. Plain `shellcheck` reports only info-level SC1091 (sourced files not followed). - **Regression tests:** I ran the four targeted functions from a temporary runner: test_gitlab_merge_watch, test_arming_baselines_an_already_degraded_change, test_degraded_poll_wakes_once_per_transition and test_degraded_wake_survives_an_unsaved_marker. It printed no output and was stopped at its 10-minute background limit on this loaded host. Per your instruction I did not restart it or run the full test file. - **Cleanup:** I deleted the `tests/zz-*` scratch runners, including my own temporary one. `git status` now shows only the five intended modified files: the operational-home-layout skill, the three bin scripts and the security test

* no-mistakes(ci): ci-2 fixed in code, but the new test is unverified. In bin/fm-pr-check.sh the arming baseline read of fm-pr-poll.sh now runs through fm_run_timed (fm-timeout-lib.sh is now sourced) with the bound ${FM_CHECK_TIMEOUT:-30}. A timeout (status 124) or any other nonzero exit prints "error: baseline read of the PR poll timed out/failed" and exits 1. The EXIT cleanup releases the control lock, and nothing is published because the poll is published after the baseline. The success path is unchanged. Before this edit a failed baseline read was ignored and arming went on without a baseline, so any nonzero exit from the poll now fails registration. I extended test_arming_baselines_an_already_degraded_change with a stalled-read case: FM_CHECK_TIMEOUT=1 and FM_TEST_GLAB_SLEEP=3. It asserts arming exits non-zero, the error names the timed-out baseline read, .control-task-a.lock is gone and no task-a.check.sh exists. `shellcheck -x -S warning` on bin/fm-pr-check.sh and tests/fm-pr-check-security.test.sh is clean. I tried two temporary runners, one for the whole target function and one for just the new case plus a plain arming success. Both hit this loaded host's time limit with no output, so the new test has not been run. I stopped them and deleted the runner. I did not commit or push, because this phase must not push. Only bin/fm-pr-check.sh and tests/fm-pr-check-security.test.sh are modified

* no-mistakes(ci): ci-2 fixed in bin/fm-pr-check.sh. Invariant: a failed or timed-out re-arm must leave the task metadata and the previously published poll unchanged. The control-lock acquisition (still skipped when FM_PR_CHECK_MERGE=1) and the bounded baseline read (fm_run_timed ${FM_CHECK_TIMEOUT:-30}, exit 1 on timeout or failure) now run before the metadata rewrite under the meta lock. Lock order is control -> meta -> publish, and the ordering comment is updated. The marker write or removal stays just before poll publication, after the metadata rewrite, under the control lock. The control lock is released after publication as before. Regression test: test_arming_baselines_an_already_degraded_change in tests/fm-pr-check-security.test.sh now arms task-a on PR 1, then re-arms to PR 7 with FM_CHECK_TIMEOUT=1 and FM_TEST_GLAB_SLEEP=3. It asserts the re-arm exits non-zero, task-a.meta still holds the PR 1 url, fm_pr_poll_artifacts_valid passes for the PR 1 poll, and .control-task-a.lock is gone. Verification: `shellcheck -x -S warning` on both touched files is clean. The new test has not been run, because this loaded host hit its time limit on earlier runner attempts and the full test file was not to be run. I did not commit or push, because this phase must not push. No temporary runner is left, and only bin/fm-pr-check.sh and tests/fm-pr-check-security.test.sh are modified. bin/fm-pr-poll.sh is untouched

* no-mistakes(ci): Removed the tracked temporary runner tests/zz-run.sh with git rm. The deletion is staged but not committed or pushed, since this phase must not push. Invariant: no scratch runner ships in the tree. No other tests/zz-* files exist, and no other files changed. No tests or lint were run because the change only deletes an unused scratch file

* fix(pr-poll): hard per-read limit on GitLab failure-detail reads

Each GitLab failure-detail read (failed-pipeline and train-drop paths) now
runs under its own five-second limit, so a hung glab read is cut and the
known failure is still emitted with the detail read so far instead of the
poll being killed by the watcher's check timeout before it prints.

The static poll sources nothing, so it uses the same perl fork-and-kill
bound the watcher falls back to for its own checks; a bare alarm is not
enough because glab's Go runtime ignores SIGALRM. The regression test uses
a fake glab whose detail reads hang while ignoring SIGALRM.

* no-mistakes(test): Add FM_TEST_WATCH_BOUND override and robust wake-queue count

* no-mistakes(test): Separate glab stdout/stderr in train poll; harden watcher test

* no-mistakes(ci): Fixed ci-2 and ci-3; ci-1 stays declined. The new arming and cross-project checks now pass, and shellcheck -x -S warning is clean on bin/fm-pr-poll.sh, bin/fm-pr-check.sh and tests/fm-pr-check-security.test.sh. ci-2: bin/fm-pr-poll.sh takes a `--baseline` flag, passed only by bin/fm-pr-check.sh. With it, a failed or unreadable forge read exits 3 and prints nothing, across GitHub, GitLab (including the merge-train car read and the post-404 re-read), Gerrit and Forgejo. The watcher's `--validated` call still stays silent on every error. bin/fm-pr-check.sh turns status 3 into "baseline read of the PR poll could not read the forge" and exits 1 before the metadata rewrite and publish. The old metadata and published poll are untouched and the control lock is released. A clean, readable not-degraded record still arms with no baseline. ci-3: `gitlab_failure_detail` carries `downstream_pipeline.project_id` with each downstream pipeline id and reads its jobs and bridges through `projects/<project_id>/...`. It falls back to the MR's project when no project_id is present. The 4-pipeline, 10s, 5s-per-read and depth-below-3 limits are unchanged. Tests: I added a cross-project poll regression to `test_gitlab_merge_watch`, where the fake glab serves the child jobs only under that other project's path. I also added unreadable-forge arming cases to `test_arming_baselines_an_already_degraded_change`: glab and glab-API failures, a failed re-arm that keeps the old metadata and poll, and a GitHub failure. I ran these only through a temporary runner outside the repo; the cross-project case printed ok and the arming block ended with "ok - an unreadable baseline read fails arming and keeps the previous watch". I did not run the existing poll-stderr-check.sh script or any watcher-driven scenario. My first version of the baseline mode treated a successful car read with a non-car body as unknown, which broke ordinary arming. That is fixed: only an unparseable body is unknown. The temporary runner is deleted and the worktree holds only the three modified files

* fix(pr-poll): make no GitLab detail read without perl

The per-read limit on GitLab failure-detail reads is a perl fork-and-kill
bound. Without perl the reads fell back to a bare glab api call, so one
hung read could hold the poll until the watcher's check timeout killed it
before the known failure printed. Without perl the poll now makes no
detail read at all and emits the degraded line with no job names on both
the failed-pipeline and train-drop paths.

The regression hides perl from PATH, makes every detail read hang, and
asserts both paths still emit at once with no pipelines/ read.

* no-mistakes(ci): Fixed ci-1 in tests/fm-pr-check-security.test.sh only (nothing changed in bin/). Invariant: every GitHub arming or merge call must give the fake gh a jq, because arming now reads through `fm-pr-poll.sh --baseline` and fails when the read is unreadable. I added FM_TEST_JQ="$REAL_JQ" to run_check_entry and run_merge_entry. I also added it to the other direct healthy-GitHub registration calls: the rebind.sh heredoc (around line 3868), the replace-authority.sh heredoc, and the background re-arm (around line 4275). I left the GitLab and no-tool cases alone (the no-glab and no-jq runs at ~2921/2962, and the no-tool run at ~2245). Validation: `shellcheck -x -S warning` on the file is clean. A temporary runner outside the repo (since deleted) sourced the file's helpers and ran make_case, then run_check_entry on https://github.com/o/r/pull/1. It exited 0 with "armed: state/task-a.check.sh" and the published check.sh was present. run_merge_entry on the same case printed no "could not read the forge" error. No test function from tests/ and no watcher scenario was run. The tree has only the one modified file and no scratch files

* fix(pr-check): skip the degraded baseline read on the merge-time re-record

bin/fm-pr-merge.sh records through bin/fm-pr-check.sh before any merge forge
call. The strict arming baseline read ran there too, so an unreadable forge
stopped the merge with the arming error before its own refusals, and every
merge made one extra forge read. The merge-time re-record now neither reads
nor rewrites the baseline; the watch's marker is keyed to the PR identity and
stays as the watcher left it.

* no-mistakes(review): fix(pr-poll): lenient train car read, link-only train drop

* no-mistakes(document): Note train-drop poll names pipeline link only

* no-mistakes(ci): ci-1 (Greptile "Test hooks hang") is fixed. The only file changed is tests/fm-pr-check-security.test.sh; nothing under bin/ changed and production lock behavior is untouched. Invariant: a test hook that runs inside a process already holding STATE/.control-<id>.lock must not call the lock-taking arming path, because fm_lock_acquire_wait would then wait forever on its own parent. Only two hooks re-arm from inside a control-lock holder: rebind.sh in test_authority_persistence_refuses_rebound_metadata, which runs during `gh pr merge` while fm-pr-merge.sh holds the lock, and replace-authority.sh in test_authority_retirement_preserves_replacement, which runs inside the watcher's mv. The background replacement merge that replace-authority.sh starts already waits for the lock correctly and is unchanged. Fix: both hooks now call `FM_PR_CHECK_MERGE=1 "$PR_CHECK" task-a "$url_b"`. That is the arming path bin/fm-pr-check.sh provides for a caller that already holds the control lock. It still rewrites pr= in task metadata and republishes the poll, but skips taking the lock and the baseline read. That matches how these hooks behaved before this PR, when arming took no control lock. I didn't move the registration into the background or after the parent releases the lock (the user's examples). In the rebind test the metadata change has to land before the merge persists its authority. A deferred re-arm would let the merge persist authority for url_a, which defeats the test. The re-arm stays synchronous, so every existing assertion is kept: the rebind test still gets a non-zero merge exit, pr=$url_b in the metadata and no merge-authority file. The retirement test still keeps the replacement authority, arms url_b and lands the attended merge for url_b. Verification: each test was run alone with FM_TEST_WATCH_BOUND=600. Both exited 0 within seconds and printed their pass lines: "ok - accepted merge authority refuses rebound task metadata" and "ok - poll retirement preserves a replacement authority record". I used a temporary runner that sourced the test file's helpers and called the one test; it has been deleted. The hang was not re-run before the fix; the user had already reproduced it on f0a22753. `shellcheck -x -S warning tests/fm-pr-check-security.test.sh` is clean. The full suite was not run

* no-mistakes(test): Fixed enterprise-host diagnostic assertion; watcher validation still fails

* no-mistakes(ci): Fixed the expected-failure watcher call so errexit cannot abort the test before its result is checked. `bash -n` and `git diff --check` passed; the full security test script timed out after 120 seconds, before reaching this test

* no-mistakes(review): Suppressed ambiguous GitLab car-endpoint 404 train drops; focused test still fails because an existing detail-budget case expects a wake

* no-mistakes(review): Confirmed train-drop listing path added; focused suite still fails on unknown-baseline arming

* no-mistakes(review): Allow unknown baseline reads without blocking arming

* no-mistakes(review): Preserve dedupe markers until poll publication succeeds

* no-mistakes(review): Reuse parsed MR state when confirming train drops

* no-mistakes(document): Update PR degradation watch documentation

* fix(pr-poll): recheck merge state before train drop

* no-mistakes(review): Preserved train state separately; focused test failed

* no-mistakes(test): Train-drop regression still fails; baseline train marker preserved

* no-mistakes(test): Fix on-train baseline marker registration

* no-mistakes(test): Confirmed train drops despite unreadable state rechecks; recovery regression remains

* fix(watch): re-arm the merge-train drop wake on re-queue

A drop wake now clears the on-train record, and a drop wakes only when
the watcher saw the merge request back on its train since the last drop,
so a second drop after a re-queue wakes again instead of being absorbed
as a duplicate. A failed or closed MR re-read keeps the confirmed drop,
marked mr_state=unconfirmed when the state is unreadable.

Silent watcher steps in the security suite now stop one second after
their check pass completes instead of spending the full 60s bound.

* no-mistakes(document): Clarify GitLab degraded-watch documentation

* no-mistakes(review): Suppress train-drop wake for closed MR rechecks

* no-mistakes(document): Document GitLab train-drop recheck outcomes

* fix(pr-poll): stop a hung GitLab detail read when the poll is stopped

The bounded glab read runs in its own process group, which only its alarm
used to stop. A TERM, INT, or HUP that stops the poll mid-read, such as the
watcher's check timeout, killed the perl parent and left glab running.
Forward those signals to the read's group and reap it before exiting.

* no-mistakes(document): Correct GitLab merge-watch documentation

* no-mistakes(review): Fail registration when PR baselines cannot persist

* no-mistakes(review): Persist both GitLab degradation baselines

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

* no-mistakes(review): Preserve registration when baseline persistence fails

* no-mistakes(review): Validate degraded and train markers before teardown

* no-mistakes(review): Rollback failed PR baseline re-registration

* no-mistakes(review): Preserve prior watch through poll publication

* no-mistakes(review): Re-registration rollback remains unsafe

* no-mistakes(review): Re-registration rollback remains unresolved

* no-mistakes(review): Preserve registration baselines on rollback

* no-mistakes(review): Restore registration through safe temporary files

* no-mistakes(review): Preserve train baseline after inconclusive reads

* no-mistakes(review): Reject inconclusive merge-train baselines

* no-mistakes(test): GitLab baseline-order regression remains unresolved; focused test fails

* no-mistakes(document): Document PR degradation and GitLab merge-train watches

* no-mistakes(lint): Fix ShellCheck conditional warnings

* no-mistakes(ci): Fixed rollback restoration to preserve existing artifact inodes, keeping the prior watcher registration valid. GitLab failed-pipeline baselines now confirm missing train cars against the train list instead of always reporting unknown. Verified with bash -n and git diff --check; full behavioral tests were not run

* no-mistakes(ci): Updated rollback backups to hard links so restoring a replaced poll artifact preserves its inode. Verification exposed a regression: `bash tests/fm-pr-check-security.test.sh` fails at “re-arming a GitLab watch on a green change failed”; hard-linked backups conflict with the poll artifact link-count validation. The fix needs adjustment before this phase can pass

* no-mistakes(ci): Fixed the portable serial failures: re-arm backups use copies so poll publication’s single-link invariant holds; rollback restores in place to preserve the registered inode. `bash tests/fm-pr-check-security.test.sh` passed (all 69 cases); `bash -n bin/fm-pr-check.sh` and `git diff --check` passed. Full suite failure was downstream of failed lanes

* no-mistakes(review): Opt-in polling fix remains incomplete

* Make degraded PR watches opt-in

* no-mistakes(document): Clarify optional jq requirement for GitLab watches

* Restore PR registrations when rearming is interrupted

* Seed train state for interrupted registration test

* no-mistakes(ci): Fixed both rollback invariants in bin/fm-pr-check.sh: rollback state is cleared before obsolete-backup deletion, and a failed restore retains the backup directory and reports its path. Verified with bash -n and git diff --check. Behavioral tests requested by the driver were not added or run

* docs: document opt-in degraded PR wake

* no-mistakes(document): Clarify degraded PR watch opt-in

* no-mistakes(ci): Fixed `bin/fm-pr-poll.sh` to resolve its opt-in marker home using `FM_HOME`, then `FM_ROOT_OVERRIDE`, then the script root, matching registration. `bash -n` and `git diff --check` passed. `tests/fm-pr-check-security.test.sh` passed its printed cases but exceeded the 300-second limit before completing

* test: cover the degraded-watch flag in a home reached through FM_ROOT_OVERRIDE
…d#8317)

* feat(supervision): reach herdr panes in the acknowledged hand-back retry

The detached retry could only deliver a queued wake to a Claude primary
behind tmux, because it only knew the inherited TMUX_PANE. A primary
running in herdr - including a remote home whose scripts inherit the
fm-remote session's pane identity - kept its watcher and queued check
but needed another turn or a human message to resume main.

Resolve the delivery transport from the identity the pane runtime
itself injected, mirroring fm-supervisor-target-lib.sh's discovery
order: TMUX_PANE, else HERDR_ENV + HERDR_SESSION + HERDR_PANE_ID. An
explicit target variable is never honored. On herdr the pane's own
process-info must prove the pinned session owner is its foreground
occupant (ancestor-or-self to the pane shell plus matching process
group), the registered agent identity must be claude including its
session binding, and idle must hold in both the native agent state and
the rendered footer, because a live Claude turn can leave the native
status reading idle. The tmux ancestor/tpgid proof is unchanged, and
deferred retries still never touch the queued check.

Portable coverage pins the new path alongside the tmux sibling, a
unit contract covers fm_backend_herdr_pane_owns_session, and an opt-in
live e2e proves a real Claude primary in an isolated fm-lab session:
its hand-back continuation is lost, the detached retry submits the
doorbell to the inherited pane, the primary drains and acknowledges,
and the pending check clears only after that acknowledgement.

* no-mistakes(document): Clarify herdr retry documentation ownership

* no-mistakes(ci): Added independent foreign-session-binding and native-idle/rendered-busy deferral tests; both pass and fail when their respective guards are removed. Strengthened live takeover assertions to capture watcher identity, verify retirement/replacement, and match the recorded retry arm’s take-over row. Focused behavior tests, syntax checks, warning-level ShellCheck, and diff checks pass. Credentialed live E2E was not rerun because it modifies external Herdr state outside the workspace boundary
…unchenguid#8318)

* fix: clear per-task away-session markers at return and fresh entry

The five .subsuper per-task families (stale, reported-stale, dialog,
paused, pause-until-due) were episode state with no session scope: a
first-seen-idle clock left behind when a session ended inside the 240s
recheck window was read by the next away session's first housekeeping
pass as its own, reporting a "stale persisted Ns (possible wedge)"
whose duration never happened.

fm_afk_clear_stale_artifacts now drops all five families with the
delivery artifacts on a fresh entry, and fm_afk_launch_stop drops them
at the return. The launch backup/rollback lists cover the same set so a
failed entry still restores prior state. Accepted cost, recorded on the
cleanup's header: a declared wait spanning two away sessions restarts
its recheck window at re-entry.

* no-mistakes(document): Correct away-session lifecycle documentation

* no-mistakes(ci): Initialized pendingBashComponents in the shared Pi test host, fixing the CI renderer crash. Full suite failure was downstream of that lane. Focused behavioral checks, shell syntax, and diff checks pass locally; the newer CI Pi version was not available locally
kunchenguid#8322)

* fix: surface herdr lab server failures and refuse over-long socket paths

The lab helper discarded the herdr server's output and waited the full timeout even after the server exited, so a startup failure such as a socket path over the sun_path limit looked like a plain timeout.

Provision now keeps the server output in a log in the helper state directory, stops waiting as soon as the server process exits, and prints the log tail in the failure message.
Name and prepare now refuse a session whose client socket path would exceed the 103-byte sun_path limit, naming the limit.

* fix: count socket path bytes, check it in provision, and use the documented config default

The sun_path limit is a byte limit, so the length is now counted under the C locale.
Provision runs the check up front so the reuse path is covered.
The config root default is the documented ~/.config/herdr, and an early server exit rechecks status once before failing.

* no-mistakes(review): Cap server log at 64 KiB; drop config-dir override

* no-mistakes(ci): I fixed both Greptile findings in `bin/fm-herdr-lab.sh`. I ran `tests/fm-herdr-lab.test.sh` and every test passed, including the new ones. I did not check that the new pipe-capture test fails against the old collector. **ci-1 (captured provision can hang).** - Invariant: the log collector must never hold the caller's stdout or stderr open. - The collector now runs as `{ head -c "$cap" > "$server_log"; cat; } >/dev/null 2>&1`. The server pid stays in `$!`. - The log cap is 4096 bytes. One shared value, `fm_herdr_lab_server_log_cap`, now sets both the stored log size and the tail shown in the failure message. - I added `test_captured_provision_returns_promptly`, which captures provision's output through a command-substitution pipe and checks it returns promptly. - I updated the cap test to 4096 bytes and the header comment to match. **ci-2 (XDG_CONFIG_HOME ignored).** - Invariant: the socket-length check must use the same config root herdr resolves. - `fm_herdr_lab_config_dir` now returns `$XDG_CONFIG_HOME/herdr` when `XDG_CONFIG_HOME` is set, and `$HOME/.config/herdr` otherwise. `name`, `prepare` and `provision` all go through `fm_herdr_lab_check_socket_path`, so one change covers all three. - I added tests for a long `HOME` with a short `XDG_CONFIG_HOME` (accepted) and a short `HOME` with a long `XDG_CONFIG_HOME` (refused). - The test file now unsets `XDG_CONFIG_HOME` at the top so the other tests don't depend on the CI environment. - I updated the header comment to match

* test: keep the fake server alive so the captured-output test proves the fix

The fake server exited right after reporting running, so the captured-output test passed without the fix.
It now stays alive and is cleaned up afterwards, and the test fails on the old redirection.
The collector now redirects with exec in a subshell, because a group redirect leaves saved copies of the caller's pipe open.
…claim (kunchenguid#8334)

Claude Code delivers an asyncRewake hook's exit-2 rewake to the session
that launched the hook. When Claude continues a conversation under a new
session id - a backgrounded session resumes with --fork-session under the
same lock-holding front end - the Stop auto-arm firing claimed before the
fork stays alive, descended from the session-lock pid, and open, so every
Stop of the continued session deferred to it, and its eventual rewake was
queued into the abandoned session while the live one stayed idle.

Record the Stop payload's session_id in the generation claim and treat an
arming claim recorded under another session as not open for that firing.
The continued session's next Stop takes the next generation and translates
its own close, and the earlier firing goes silent as any superseded owner
does. A firing from the claim's own session still defers, and claims,
payloads, and guard checks without a session id keep the previous behavior.
…guid#8223)

* feat: let Claude workers hide tools listed in config/crew-exclude-tools

A Claude ship or scout launch now honors a non-empty exclusion list by
passing --disallowedTools, which drops each tool's schema from every model
request. The list still refuses on runtimes that cannot hide tools, and a
token-free live guard checks the installed Claude Code removes the schema.

* no-mistakes(review): skip live Claude guard when no request captured

* no-mistakes(document): Fixed one stale measurement claim in docs/verification/runtime-backends.md: the repeat-consistency sentence contradicted the table's two differing request-byte rows. Reworded it to match. Other exclusion docs (configuration.md runtime table, fm-spawn.sh and fm-exclude-tools-lib.sh comments and refusal text) already reflect Claude support. bin/fm-doc-audience-check.sh passes (141 surfaces, 1193 local links).

* fix: isolate the Claude exclusion live guard from real providers

Run the guard's claude launches in a clean environment with a private
config directory and a synthetic API key so they can only reach the local
capture server, map the capture fixture to the guard for --changed
selection, and run fm_test_cleanup from the guard's EXIT trap.

* no-mistakes(document): Point Claude exclusion trimming note to Validation owner

* no-mistakes(document): Align Claude exclusion docs with validation behavior
…ons (kunchenguid#8236)

* feat(watch): add opt-in silent recheck for unchanged paused declarations

Refs kunchenguid#6932

* no-mistakes(review): Require live agent for silent paused recheck

* no-mistakes(review): Test silent paused recheck for live ship agent

* no-mistakes(document): Document silent paused recheck flag

* no-mistakes(ci): Silence ticking-pane paused rechecks; reorder cheap checks
…he done gate (kunchenguid#8339)

* fix(bin): ignore the no-mistakes gate mirror in the done: reachability check

fm_dod_named_head_reachable_outside_worktree accepted a named head found on
any remote-tracking ref, including refs/remotes/no-mistakes/*, the local
no-mistakes gate mirror. A head that only reached that mirror never left the
machine, so leave the mirror's refs out of the check, as teardown already
does with --exclude='no-mistakes/*'.

* no-mistakes(review): Document gate-mirror exclusion refusing unfetched origin heads

* fix(bin): refresh remote refs before refusing a done claim at PR registration

A no-mistakes pipeline pushes from its own gate clone, so with the gate
mirror excluded a GitLab or Forgejo CI-ready done was refused until someone
fetched by hand. fm-pr-check.sh now opts into one bounded, no-prune refresh
of the non-gate remotes in the worker copy, and in the project clone when it
differs, then checks again. The refresh is teardown's, moved into
fm-dod-lib.sh and shared. A refusal after a failed refresh says the verdict
used the last-known refs. crew-state, inactive-reconcile and review-check
note why they read the refs without refreshing.

* docs(bin): say the watcher registers PRs only when config/pr-register-scan is on

* no-mistakes(review): Bound scan refresh by budget; skip refresh on merge

* no-mistakes(review): Refresh remote refs on merge-time re-record too

* no-mistakes(review): Stop scan after refresh deadline; label skipped refreshes

* no-mistakes(document): Clarify ship-landing guidance for unfetched no-mistakes heads

* no-mistakes(ci): Fixed Greptile P1 r4529290256 in `fm_dod_refresh_remote_refs` (bin/fm-dod-lib.sh). The fix only touches that function. **Invariant:** one remote that hangs must not use up the refresh time of the remotes after it. In particular, origin, which normally holds the named head, must still be fetched within the scan deadline. The refresh is shared by the done-gate (scan, plain pr-check and merge-time re-record) and by teardown, so the fix is in that one shared function. **Change:** - **Origin first:** the function now builds the remote list with origin at the front when it exists, followed by the other non-gate remotes. `no-mistakes` is still skipped. - **Split budget:** when a deadline is given, each fetch gets an even share (rounded up) of the time still left, divided among the remotes not yet fetched. Unused time carries over to later remotes. - **Kept as before:** the 30 second per-remote cap, `--no-prune`, skipping remotes once the deadline has passed, and appending each unfetched remote to `FM_DOD_REFRESH_FAILED` for the last-known-refs message. - **Teardown:** it passes no deadline, so its only change is the fetch order. - **Comment:** updated to describe the new order and the split. The other comments that describe the refresh were checked and are still accurate. **Regression test:** `test_remote_hanging_before_origin_leaves_origin_its_refresh` in tests/fm-dod-lib.test.sh. - **Setup:** a `backup` remote whose helper hangs and that sorts before origin in `git remote`, a 4-second refresh deadline, and origin holding the named head. - **Asserts:** the done claim is accepted, origin's tracking ref is fetched to the head, `FM_DOD_REFRESH_FAILED` is `backup`, and the call ends within the deadline. - **Before the fix:** it failed with "kept origin's head from being accepted". **Verification:** - **Test suites:** tests/fm-dod-lib.test.sh, tests/fm-pr-check-security.test.sh and tests/fm-teardown.test.sh all pass, including the existing scan hanging-remote and budget tests. - **Lint:** `bin/fm-lint.sh` (pinned ShellCheck 0.11.0) passes on both changed files. **Not changed:** in the uncommon case where the worker copy is a separate clone, the project clone's refresh still runs after the copy's own refresh, against the same deadline. Per the instruction to change nothing else, I left that as it is

* test(gotmp): provide fm-dod-lib and its sourced libraries in the teardown fake roots

Teardown now sources bin/fm-dod-lib.sh for the shared bounded remote-ref
refresh, and that library sources fm-brief-heading-lib.sh and
fm-external-review-lib.sh from its own directory. Both fake roots in
tests/fm-gotmp.test.sh symlinked only the siblings teardown needed before,
so the real teardown refused at startup there.

* no-mistakes(review): Split refresh deadline across copy and project clone remotes
…#8310)

* fix(bin): keep a branch wake grant when the branch cannot inspect its host pid

* no-mistakes(document): Document branch drains skipping stale-grant reclaim
…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
@mehulbhagwani mehulbhagwani changed the title fix(bin): keep the remote reply listener alive after transient SSH and reader failures fix: keep remote reply listeners alive after transient read failures Nov 12, 2026
Comment thread bin/fm-capacity.sh
Comment on lines +797 to +799
| ($pd.verdict.free_lanes // null) as $prev_free
| (if $pd == null then 0 else ([ $lanes[] | select(.spawn != null and .spawn >= $pd.generated_epoch) ] | length) end) as $since_publish
| (if $prev_free != null and $raw > ($prev_free + $grow - $since_publish) then ([$prev_free + $grow - $since_publish, 0] | max) else $raw end) as $open

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Worker launch limit expires

When state/lane-capacity.json is over five minutes old, $pd becomes null. That makes $prev_free null and $since_publish zero, so --spawn-gate uses $raw instead of the last published budget. A published allowance of two workers can therefore admit a third after publishing pauses, without a new publish granting more room.

Keep the last published allowance and count later launches against it. Apply the freshness limit only to readings that need it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bin/fm-capacity.sh is byte-identical to main on this head (ed5f8018), so this finding is outside this PR. It will be followed up on main.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @mehulbhagwani for refreshing this onto current main.

Re-checked on head ed5f8018 against main 07409e73: against main, the change is still the relisten fix in 4 files. cmd_source turns SSH 255 and reader exits 1 and 2 into the empty-window status, there's a comment edit in bin/fm-procevent.sh, one doc line, and the tests. The no-mistakes attestation binds this head with no skipped steps, and live validation is go (6 of 6). The full suite passed on this head (run 43310969716), and Repo invariants, the Test coverage guard and the no-mistakes check pass.

One small thing is waiting on you: a reply on a Greptile thread. GitHub is computing this PR's file list from an old base (c9da5523, Oct 29), so it shows 362 files instead of the 4 that differ from main. Greptile reviewed that whole surface and opened a P1, Worker launch limit expires, on bin/fm-capacity.sh:799. That file is byte-identical to main on your head, so it isn't your code and you don't need to change anything. Please just reply on that thread saying it's outside this PR. We'll follow up on the finding itself on main. Once that reply is in, this goes straight back to Kun.

Contract class (my own read): new-default (unchanged). On main, these failures release the listener's claim. With this change the listener keeps the claim and retries once per launch floor. The open question for Kun is the same as before: a persistent 255 retries every second with no backoff and nothing surfaced.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @mehulbhagwani for the reply on the bin/fm-capacity.sh thread. That was the only thing I'd asked for. You're right that the file is byte-identical to main on this head, so that finding isn't this PR's, and we'll pick it up on main.

Re-checked on head ed5f8018 against main 427056c4:

  • The head hasn't changed. Against main, the change is still the relisten fix in 4 files, and the PR is MERGEABLE.
  • The full suite passed on this head (run 43310969716).
  • The no-mistakes attestation binds this head with no skipped steps, and live validation is go (6 of 6).
  • Repo invariants, the Test coverage guard and the no-mistakes check pass.
  • Greptile's 4/5 comes only from that out-of-diff thread.

This is now with the captain (Kun) for a merge-or-leave decision. It isn't waiting on you. Contract class (my own read): new-default. On main, these failures release the listener's claim. With this change the listener keeps the claim and retries once per launch floor. The open question for Kun: a persistent SSH 255 retries every second with no backoff and nothing surfaced. Nothing more is needed from you.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @mehulbhagwani. Checking back in on head ed5f8018: nothing has changed, and this is with Kun for a merge-or-leave decision. It isn't waiting on you. Contract class: new-default (unchanged); the open question is still the unbounded 1-second retry on a persistent SSH 255. The PR is mergeable against main d03dcbc1, and the last full suite on this head (run 43310969716) was green on an older main, so it would be re-run before any merge.

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.