You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: reduce remote worker and polling helper process churn - #5889
Cut Firstmate's process churn on the mac mini. The captain's words: "do the two cuts".
Evidence: the mini crashed on 2026-09-26, most likely because a 32-bit kernel per-process counter (pidversion) overflowed after about 15.5 days at about 1,100 forks per second. The root-cause report is ~/fm-homes/mini-default/data/mini-session-loss-rootcause-s1/report.md.
A 76-second eslogger exec sample taken today (40,000 execs, about 525 execs per second) attributes about 20% of all execs to one process, bin/fm-remote-job-worker.sh, the long-lived remote-job worker on mac-home. It polls running jobs in a loop with sleep 0.05 (about 23 passes per second), and on every pass it re-runs setup it does not need: chmod 700 on ~/.firstmate, remote-job, jobs, .seq-claims and logs; mktemp .ready.XXXXXX; stat -f %m .seq-claims-reaped; plus tail -n +2 jobs/<id>/state per job.
Most of the remaining steady-state churn comes from small helpers that spawn external programs where bash can do the work itself. The top commands were tr -d, wc -c, date +%s, cut -d= -f2-, tail -1, uname -s, dirname/basename of bin/fm-*.sh paths, jq, and ps -o ppid=/comm= -p.
The two cuts:
fm-remote-job-worker.sh: replace the 50 ms busy poll with a much longer or backoff wait (or wake on the job state file changing), and hoist the per-pass directory setup (chmod, mktemp, stat) out of the loop so it runs once or only when needed, without weakening the job delivery latency guarantees its header promises.
Hot polling helpers: in the paths that the watcher, drain, classify, branch-outcome, and contributions snapshot loops run every cycle, replace external programs with bash built-ins where behavior is identical ($EPOCHSECONDS or printf '%(%s)T' for date +%s given the supported bash floor, parameter expansion for dirname/basename/tr/cut, uname cached once per process), keeping stock macOS bash 3.2 compatibility where the repo requires it.
Measure before and after with the same eslogger-style exec count (or an equivalent fork count) and put the numbers in the PR. Use behavioral tests through the scripts, not source matching.
What Changed
Replace the remote-job worker’s 50 ms idle poll with one-second checks, brief fast polling after lane activity, and periodic stale-record sweeps; skip state reads for lane-owned jobs.
Replace external commands in watcher, drain, classification, and contributions paths with Bash pathname, clock, parsing, and cached platform helpers where supported.
Add behavioral regressions for helper equivalence and idle-worker pickup, heartbeat, and command-count bounds, including a Bash 3.2 CI check.
Risk Assessment
✅ Low: The worker timing change and fork-free substitutions are bounded, and this review found no substantiated source defect or intent conflict.
Testing
The real worker, watcher, drain, and contribution interfaces passed targeted checks, including stock Bash 3.2. Idle execs fell from 307 to 24 in identical five-second fixture runs. An attempted broader contribution test-file run timed out after both change-specific cases passed; those cases were rerun separately and passed.
Live validation: ✅ go - 5 of 5 scenarios driven live against the product
Scenario
Result
Live
Evidence
An idle remote-job worker stays ready while reducing process churn
✅ pass
live
Idle before-and-after exec counts; remote-job-live.log records the quiet-rate and heartbeat checks.
A job staged to an idle worker completes promptly without losing queue hardening or TERM shutdown
✅ pass
live
remote-job-live.log records staged-job completion, 0700 directory repair, and prompt TERM shutdown.
Contribution views preserve unusual task names and create no state when reading saved records
✅ pass
live
contributions-live.log
Watcher and drain continue delivering checkpoint wakes and open decisions on stock Bash 3.2
✅ pass
live
watch-live.log and drain-live.log
Fork-free helpers preserve pathname, clock, marker, and classification behavior
✅ pass
live
fork-free-live.log records executable helper checks across available Bash versions and locales.
ok - default queue and execution bounds independently cover long polls
ok - operator PATH excludes a symlinked local bin
ok - operator PATH honors nvm defaults with a deterministic fallback
ok - operator PATH resolves the authorized Nix profile bin link
ok - operator PATH orders discovered tool installs deterministically
ok - the worker preserves bounded argv and stdin in an empty environment
ok - active jobs keep the worker ready for concurrent requests
ok - ensure replaces a live worker after its code changes
ok - worker identity binds the canonical configured code root
ok - stale ownership is reclaimed without signaling a reused pid
ok - the worker enforces the job timeout and publishes its result
ok - the worker expires queued jobs before they can mutate
ok - queued jobs receive a fresh bounded execution window
ok - a queued short command preempts a running long poll instead of waiting its window
ok - a poll re-armed after preemption reads the same cursor with nothing lost
ok - sibling polls never preempt each other into a re-arm churn loop
ok - worker shutdown terminates the active command tree before replacement
ok - Linux supervision recovers crashes and stops orphaned commands
ok - pre-execution validation obeys the job timeout
ok - the worker drains bounded output without changing command results
ok - the worker refuses symlinked job fields before command execution
ok - failed shutdown quarantines ownership against replacement workers
ok - quarantine recovery refuses unverifiable supervisors and ignores reused pids
ok - a repeatedly signalled shutdown still releases ownership for the next worker
ok - TERM after ownership loss stops the serving worker
ok - TERM after ownership loss still stops the active command tree
ok - a lost owner terminates without stopping the replacement owner's work
ok - an ousted worker in shutdown leaves the replacement quarantine untouched
ok - an idle worker sleeps out a second between passes instead of busy-polling
ok - an idle worker keeps its readiness heartbeat fresh between passes
ok - an idle worker claims and publishes a staged job within a few seconds
ok - an idle worker still repairs queue permissions and stops promptly on TERM
ok - barely healthy worker failures remain bounded by the restart guard
ALL TESTS PASSED
Evidence: Contribution identity and read-only views
ok - quiet checkpoint exits 124 with a clean checkpoint line and no live lock
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 2 --recovery-generation 66460.1790538659.WS7AzL
ok - checkpoint passes through a real watcher wake and leaves the queue for drain
ok - checkpoint preserves watcher environment for registered custom checks
ok - checkpoint rejects an existing watcher singleton as unowned
ok - checkpoint: an opted-in home runs the host for the checkpoint's bound, raised while away
ok - checkpoint: a handed-back wake passes through, and a host stand-down is a failure
ok - checkpoint: the real host ends its park at the checkpoint bound as a quiet checkpoint
ok - a needs-decision buried under later routine/other-key lines still reports as open
ok - an over-long open decision is cut to its per-item budget with the shared truncation marker
ok - an explicit resolved [key=X] closes the keyed decision
ok - a later unrelated terminal line never clears an open decision
ok - a reserved decision key can only be opened or closed by its owning library
ok - no open decisions across the fleet prints nothing
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 1 --recovery-generation 71137.1790538659.k5cWIH
ok - the open-decision section is fleet-wide, not scoped to this drain's own queued records
ok - a buried open decision surfaces even when the wake queue itself is empty
ok - the fleet-wide decision scan does not follow status symlinks
ok - fm_dirname_to and fm_basename_to match dirname and basename on every edge case
ok - fm_epoch_seconds_to reads the clock like date +%s and forks date at most as often
ok - signal seen paths and absolute lock paths are byte-identical to the dirname/basename/tr forms
ok - recovery marker reads accept exactly the one-line records wc -l accepted
ok - window_to_task resolves every recorded window exactly as the grep/tail/cut pipeline did
ok - classify stat helpers resolve the kernel name once per process
Measurements
Method: eslogger needs root, so both cuts were measured with an unprivileged equivalent - a small dylib interposing fork and execve, injected into a re-signed copy of bash (stock 3.2.57 and nix 5.3.9).
Scripts ran from a scratch copy of each tree with their shebangs pointed at the counting bash, so child scripts were counted too.
Everything ran in a disposable HOME, FM_HOME, and queue; no live worker, LaunchAgent, ~/.firstmate, or real watcher was touched.
"Before" is current main (f93f0d3a); "after" is this branch rebased onto it.
The counter slows the old loop to about 5 passes a second, so the real-host baseline was higher (about 31 forks and 13 execs per pass).
The idle worker now sleeps a fixed 1 s between passes (inside the probe's 10 s readiness bound, and carrying the once-a-second heartbeat), with a 20-pass fast window of the old 50 ms cadence only after a lane starts or is reaped, and the stale sweep at most every 60 s (never rarer than the shortest reap age); all three are fixed internal bounds.
The idle remainder is that heartbeat; the running-job remainder is the per-job monitor loop, left unchanged (see follow-ups).
Stage-to-result latency for a no-op job, measured without the counter (5 samples each):
Forks/execs per watcher cycle, per run for the others:
path
bash 5.3 before
bash 5.3 after
bash 3.2 before
bash 3.2 after
watcher cycle
308 / 142
211 / 69
335 / 144
215 / 77
drain
511 / 249
449 / 211
592 / 262
516 / 223
inactive-reconcile scan
27 / 14
17 / 4
37 / 14
17 / 4
branch-outcome present/unread
40 / 21
35 / 16
48 / 24
38 / 19
contributions snapshot read, 10 records
89 / 77
59 / 47
100 / 77
60 / 47
Follow-ups noticed, not changed here
The per-job lane monitor in worker_run_with_timeout still polls every 50 ms while a job runs (20 sleep execs/s per running job, e.g. a continuously re-armed delta-read long poll). An end-of-job pipe held by the job group would make completion event-driven.
An event-driven idle wake (a FIFO nudged by staging, cancellation, and lane exit) was tried here and dropped for simplicity after each review round found a new publisher race; the fixed 1 s idle sleep keeps pickup latency where it was.
secondmate_wake_stall_tick still forks date +%s each watcher cycle: the wake-queue suite drives its clock by stubbing date on PATH, so it needs an explicit test clock seam first.
window_kind, window_backend, and window_harness in bin/fm-watch.sh still run grep | cut -d= -f2- (all matches, not the last), about 3 per cycle; moving them onto fm_meta_get would change duplicate-key behavior.
_fm_open_decisions_cursor_path and its sibling in bin/fm-classify-lib.sh still fork dirname/basename (14 execs per drain); the classifier cannot use the wake-lib helpers without a shared owner both libraries source.
Drain's remaining cost is mostly /usr/bin/stat (about 45 per run, 3-4 formats per status file per call); one stat call per file could return all fields.
Lock helpers still fork cat, readlink, mktemp, ln, and rm on every acquire/release.
fm_current_pid forks sh -c on bash 3.2 (no BASHPID).
The per-record wc -c size check and several jq calls in the contributions snapshot, and ps -o ppid=/comm= ancestry walks, cannot become builtins; batching them is the lever.
Pre-existing, unrelated: tests/fm-backend.test.sh's zsh sourcing case fails on hosts with zsh (the unquoted adapter sibling list does not word-split in zsh), and tests/fm-procevent.test.sh needs setsid, which macOS lacks.
⚠️bin/fm-remote-job-worker.sh:1164 - Each FIFO read consumes only one byte and restarts the 20-pass fast window. If 100 jobs are staged in a burst, their nudges can remain buffered after the jobs are handled; the worker then makes roughly 100 unnecessary 50 ms passes instead of settling into its idle wait. The same invariant applies to nudges from cancellation (bin/fm-remote-job-lib.sh:627) and lane exit (bin/fm-remote-job-worker.sh:1049), as well as staging (bin/fm-remote-job-lib.sh:694). Coalesce or drain buffered nudges so a burst does not restore sustained process churn.
🔧 Fix applied.
1 warning still open:
⚠️bin/fm-remote-job-lib.sh:600 - The new nudge writes to a blocking FIFO. If a burst fills the pipe while the worker is scanning jobs, the next staging or cancellation caller blocks until the worker reads it, contrary to the new promise that nudges never block callers. The same write is reached from cancellation (bin/fm-remote-job-lib.sh:627), staging (bin/fm-remote-job-lib.sh:694), and lane exit (bin/fm-remote-job-worker.sh:1050). Round 1's buffered-wake coalescing drains bytes only after the worker reaches a read; it does not prevent this full-pipe path. Make a full FIFO a best-effort dropped nudge without blocking its publisher.
🔧 Fix applied.
2 warnings still open:
⚠️bin/fm-remote-job-lib.sh:600 - The new nudge writes to a blocking FIFO. If a burst fills the pipe while the worker is scanning jobs, the next staging or cancellation caller blocks until the worker reads it, contrary to the new promise that nudges never block callers. The same write is reached from cancellation (bin/fm-remote-job-lib.sh:627), staging (bin/fm-remote-job-lib.sh:694), and lane exit (bin/fm-remote-job-worker.sh:1050). Round 1's buffered-wake coalescing drains bytes only after the worker reaches a read; it does not prevent this full-pipe path. Make a full FIFO a best-effort dropped nudge without blocking its publisher.
⚠️bin/fm-remote-job-lib.sh:609 - Round 2 introduced a non-atomic check-then-write: two concurrent publishers can both see an empty pending marker and each write a FIFO byte. After the worker consumes one byte and clears the marker (bin/fm-remote-job-worker.sh:1155-1157), the second byte remains and restarts another 20-pass fast window (bin/fm-remote-job-worker.sh:1182-1185), even if both jobs were handled in the first scan. Concurrent staging (bin/fm-remote-job-lib.sh:703), cancellation (bin/fm-remote-job-lib.sh:636), and lane exits (bin/fm-remote-job-worker.sh:1050, 1052) share this path. A larger burst can therefore restore churn, and the marker does not prove the pipe cannot fill. Make publisher coalescing atomic or make FIFO writes nonblocking; the sequential stopped-worker test does not exercise this race.
🔧 Fix applied.
1 warning still open:
⚠️bin/fm-remote-job-worker.sh:1192 - Round 3 made the publisher's marker claim atomic, but its timeout recovery can remove a live claim before that publisher writes. If a publisher is paused after creating the marker (bin/fm-remote-job-lib.sh:611–617), the worker times out and removes it here; another publisher can then claim and write, followed by the first publisher's delayed write. The startup removal at bin/fm-remote-job-worker.sh:1148 has the same race. Thus one marker no longer proves at most one buffered byte: repeated pauses can restore wake-driven churn or eventually block a publisher on a full pipe. Preserve claim ownership during recovery or make FIFO writes nonblocking.
🔧 Fix applied.
1 warning still open:
⚠️bin/fm-contributions.sh:142 - The new read_saved path sources fm-wake-lib.sh for pathname helpers; that library runs mkdir -p "$STATE" at source time (bin/fm-wake-lib.sh:16). If a home has saved contribution records but no state directory, snapshot now creates one despite its documented read-only contract. pending also reaches this path at bin/fm-contributions.sh:459. The required helper replacement says to keep behavior identical; please approve this side effect or keep pathname-helper loading free of state initialization.
🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
Live validation: ✅ go - 5 of 5 scenarios driven live against the product
Scenario
Result
Live
Evidence
An idle remote-job worker stays ready while reducing process churn
✅ pass
live
Idle before-and-after exec counts; remote-job-live.log records the quiet-rate and heartbeat checks.
A job staged to an idle worker completes promptly without losing queue hardening or TERM shutdown
✅ pass
live
remote-job-live.log records staged-job completion, 0700 directory repair, and prompt TERM shutdown.
Contribution views preserve unusual task names and create no state when reading saved records
✅ pass
live
contributions-live.log
Watcher and drain continue delivering checkpoint wakes and open decisions on stock Bash 3.2
✅ pass
live
watch-live.log and drain-live.log
Fork-free helpers preserve pathname, clock, marker, and classification behavior
✅ pass
live
fork-free-live.log records executable helper checks across available Bash versions and locales.
Intent
Cut Firstmate's process churn on the mac mini. The captain's words: "do the two cuts".
Evidence: the mini crashed on 2026-09-26, most likely because a 32-bit kernel per-process counter (pidversion) overflowed after about 15.5 days at about 1,100 forks per second. The root-cause report is ~/fm-homes/mini-default/data/mini-session-loss-rootcause-s1/report.md.
A 76-second eslogger exec sample taken today (40,000 execs, about 525 execs per second) attributes about 20% of all execs to one process, bin/fm-remote-job-worker.sh, the long-lived remote-job worker on mac-home. It polls running jobs in a loop with
sleep 0.05(about 23 passes per second), and on every pass it re-runs setup it does not need: chmod 700 on ~/.firstmate, remote-job, jobs, .seq-claims and logs; mktemp .ready.XXXXXX; stat -f %m .seq-claims-reaped; plustail -n +2 jobs/<id>/stateper job.Most of the remaining steady-state churn comes from small helpers that spawn external programs where bash can do the work itself. The top commands were
tr -d,wc -c,date +%s,cut -d= -f2-,tail -1,uname -s,dirname/basenameof bin/fm-*.sh paths,jq, andps -o ppid=/comm= -p.The two cuts:
Measure before and after with the same eslogger-style exec count (or an equivalent fork count) and put the numbers in the PR. Use behavioral tests through the scripts, not source matching.
What Changed
Risk Assessment
✅ Low: The worker timing change and fork-free substitutions are bounded, and this review found no substantiated source defect or intent conflict.
Testing
The real worker, watcher, drain, and contribution interfaces passed targeted checks, including stock Bash 3.2. Idle execs fell from 307 to 24 in identical five-second fixture runs. An attempted broader contribution test-file run timed out after both change-specific cases passed; those cases were rerun separately and passed.
Evidence: Idle worker before-and-after exec counts
Source: Idle worker before-and-after exec counts
Evidence: Remote-job worker behavior
Source: Remote-job worker behavior
Evidence: Contribution identity and read-only views
Source: Contribution identity and read-only views
Evidence: Watcher checkpoint
Source: Watcher checkpoint
Evidence: Wake drain
Source: Wake drain
Evidence: Bash helper equivalence
Source: Bash helper equivalence
Measurements
Method: eslogger needs root, so both cuts were measured with an unprivileged equivalent - a small dylib interposing
forkandexecve, injected into a re-signed copy of bash (stock 3.2.57 and nix 5.3.9).Scripts ran from a scratch copy of each tree with their shebangs pointed at the counting bash, so child scripts were counted too.
Everything ran in a disposable HOME, FM_HOME, and queue; no live worker, LaunchAgent,
~/.firstmate, or real watcher was touched."Before" is current main (
f93f0d3a); "after" is this branch rebased onto it.Cut 1 - remote-job worker (
--serve, bash 3.2, 20 s windows)The counter slows the old loop to about 5 passes a second, so the real-host baseline was higher (about 31 forks and 13 execs per pass).
The idle worker now sleeps a fixed 1 s between passes (inside the probe's 10 s readiness bound, and carrying the once-a-second heartbeat), with a 20-pass fast window of the old 50 ms cadence only after a lane starts or is reaped, and the stale sweep at most every 60 s (never rarer than the shortest reap age); all three are fixed internal bounds.
The idle remainder is that heartbeat; the running-job remainder is the per-job monitor loop, left unchanged (see follow-ups).
Stage-to-result latency for a no-op job, measured without the counter (5 samples each):
Cut 2 - hot polling helpers (one tmux crew task, FM_POLL=1)
Forks/execs per watcher cycle, per run for the others:
Follow-ups noticed, not changed here
worker_run_with_timeoutstill polls every 50 ms while a job runs (20sleepexecs/s per running job, e.g. a continuously re-armed delta-read long poll). An end-of-job pipe held by the job group would make completion event-driven.secondmate_wake_stall_tickstill forksdate +%seach watcher cycle: the wake-queue suite drives its clock by stubbingdateon PATH, so it needs an explicit test clock seam first.window_kind,window_backend, andwindow_harnessinbin/fm-watch.shstill rungrep | cut -d= -f2-(all matches, not the last), about 3 per cycle; moving them ontofm_meta_getwould change duplicate-key behavior._fm_open_decisions_cursor_pathand its sibling inbin/fm-classify-lib.shstill fork dirname/basename (14 execs per drain); the classifier cannot use the wake-lib helpers without a shared owner both libraries source./usr/bin/stat(about 45 per run, 3-4 formats per status file per call); one stat call per file could return all fields.cat,readlink,mktemp,ln, andrmon every acquire/release.fm_current_pidforkssh -con bash 3.2 (no BASHPID).wc -csize check and severaljqcalls in the contributions snapshot, andps -o ppid=/comm=ancestry walks, cannot become builtins; batching them is the lever.tests/fm-backend.test.sh's zsh sourcing case fails on hosts with zsh (the unquoted adapter sibling list does not word-split in zsh), andtests/fm-procevent.test.shneedssetsid, which macOS lacks.Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
🔧 **Rebase** - 1 issue found → auto-fixed ✅
tests/fm-contributions.test.sh- merge conflict rebasing onto origin/main🔧 Fix applied.
✅ Re-checked - no issues remain.
🔧 **Review** - 1 issue found → auto-fixed (5) ✅
bin/fm-remote-job-worker.sh:1164- Each FIFO read consumes only one byte and restarts the 20-pass fast window. If 100 jobs are staged in a burst, their nudges can remain buffered after the jobs are handled; the worker then makes roughly 100 unnecessary 50 ms passes instead of settling into its idle wait. The same invariant applies to nudges from cancellation (bin/fm-remote-job-lib.sh:627) and lane exit (bin/fm-remote-job-worker.sh:1049), as well as staging (bin/fm-remote-job-lib.sh:694). Coalesce or drain buffered nudges so a burst does not restore sustained process churn.🔧 Fix applied.
1 warning still open:
bin/fm-remote-job-lib.sh:600- The new nudge writes to a blocking FIFO. If a burst fills the pipe while the worker is scanning jobs, the next staging or cancellation caller blocks until the worker reads it, contrary to the new promise that nudges never block callers. The same write is reached from cancellation (bin/fm-remote-job-lib.sh:627), staging (bin/fm-remote-job-lib.sh:694), and lane exit (bin/fm-remote-job-worker.sh:1050). Round 1's buffered-wake coalescing drains bytes only after the worker reaches a read; it does not prevent this full-pipe path. Make a full FIFO a best-effort dropped nudge without blocking its publisher.🔧 Fix applied.
2 warnings still open:
bin/fm-remote-job-lib.sh:600- The new nudge writes to a blocking FIFO. If a burst fills the pipe while the worker is scanning jobs, the next staging or cancellation caller blocks until the worker reads it, contrary to the new promise that nudges never block callers. The same write is reached from cancellation (bin/fm-remote-job-lib.sh:627), staging (bin/fm-remote-job-lib.sh:694), and lane exit (bin/fm-remote-job-worker.sh:1050). Round 1's buffered-wake coalescing drains bytes only after the worker reaches a read; it does not prevent this full-pipe path. Make a full FIFO a best-effort dropped nudge without blocking its publisher.bin/fm-remote-job-lib.sh:609- Round 2 introduced a non-atomic check-then-write: two concurrent publishers can both see an empty pending marker and each write a FIFO byte. After the worker consumes one byte and clears the marker (bin/fm-remote-job-worker.sh:1155-1157), the second byte remains and restarts another 20-pass fast window (bin/fm-remote-job-worker.sh:1182-1185), even if both jobs were handled in the first scan. Concurrent staging (bin/fm-remote-job-lib.sh:703), cancellation (bin/fm-remote-job-lib.sh:636), and lane exits (bin/fm-remote-job-worker.sh:1050, 1052) share this path. A larger burst can therefore restore churn, and the marker does not prove the pipe cannot fill. Make publisher coalescing atomic or make FIFO writes nonblocking; the sequential stopped-worker test does not exercise this race.🔧 Fix applied.
1 warning still open:
bin/fm-remote-job-worker.sh:1192- Round 3 made the publisher's marker claim atomic, but its timeout recovery can remove a live claim before that publisher writes. If a publisher is paused after creating the marker (bin/fm-remote-job-lib.sh:611–617), the worker times out and removes it here; another publisher can then claim and write, followed by the first publisher's delayed write. The startup removal at bin/fm-remote-job-worker.sh:1148 has the same race. Thus one marker no longer proves at most one buffered byte: repeated pauses can restore wake-driven churn or eventually block a publisher on a full pipe. Preserve claim ownership during recovery or make FIFO writes nonblocking.🔧 Fix applied.
1 warning still open:
bin/fm-contributions.sh:142- The new read_saved path sources fm-wake-lib.sh for pathname helpers; that library runsmkdir -p "$STATE"at source time (bin/fm-wake-lib.sh:16). If a home has saved contribution records but no state directory,snapshotnow creates one despite its documented read-only contract.pendingalso reaches this path at bin/fm-contributions.sh:459. The required helper replacement says to keep behavior identical; please approve this side effect or keep pathname-helper loading free of state initialization.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-remote-job.test.shbash tests/fm-fork-free-helpers.test.sh/bin/bash tests/fm-watch-checkpoint.test.sh/bin/bash tests/fm-wake-drain-open-decisions.test.shRan the contribution task-identity and read-only-view tests under/bin/bashRan identical five-second idle-worker exec counts against the base and current scriptsStartedtests/fm-contributions.test.sh; it timed out after the relevant cases passed✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.