Skip to content

test: fix host-dependent test preconditions - #87

Merged
levelupself merged 1 commit into
mainfrom
fm/four-tests-fail-on-every-run-here-regard-88
Sep 1, 2026
Merged

levelupself merged 1 commit into
mainfrom
fm/four-tests-fail-on-every-run-here-regard-88

Conversation

@levelupself

Copy link
Copy Markdown
Owner

Intent

Four test scripts failed on every full-suite run in this environment regardless of what changed, costing real time on every task: two separate workers each stopped to investigate them as possible regressions of their own work.

tests/fm-backend-herdr-presentation-e2e.test.sh
tests/fm-remote-job-orphan-reap.test.sh
tests/fm-remote-secondmate-lifecycle-e2e.test.sh
tests/fm-spawn-worktree-settle.test.sh

Evidence they are pre-existing: two independent branches with entirely unrelated changes - one moving procedure sections out of the always-loaded instructions, one fixing a status-line key parser - produced the SAME failing set in full-suite runs on 2026-08-31. Neither branch touches any of those files. fm-remote-job-orphan-reap was already known to arrive broken from the upstream template: its precondition silently voids its own subject wherever orphaned processes do not reparent to init.

Why this was worth fixing rather than remembering: a permanently-red test is worse than no test, because it trains every worker to skip a whole failing family, which is exactly how a real regression in one of those areas would get waved through. Three of the four cover remote second mates, Herdr presentation, and worktree settling, where a silent break is expensive.

The task: for each of the four, establish which of three categories it is and act accordingly.

  1. The environment genuinely cannot support it here - then make it SKIP explicitly with a stated reason, so the summary says "not run and why" rather than "failed". A check that cannot run must not look like one that failed, any more than it may look like one that passed.
  2. The test has a broken precondition - then fix the precondition, or delete a test that cannot assert its own subject.
  3. A real defect in the code under test - then it is a bug report, and the most valuable outcome.
    Report which of the three each one turned out to be, with the evidence. Confirm the alone-versus-suite difference for each of the four before concluding.

Constraints accepted and applied:

  • Do NOT add an ignore list, do NOT lower the suite's exit status, and do NOT extend a timeout to make a race disappear. A longer deadline only moves the threshold until the machine is busier.
  • data/, state/ and config/ content must never reach the PR - both remotes are PUBLIC.
  • Shared tracked material, so firstmate-coding-guidelines applies: one sentence per line in tracked Markdown, plain dash never an em dash, no agent commit co-author, shellcheck-clean via bin/fm-lint.sh, tests colocated in tests/ named .test.sh, tests must exercise behavior through an executable or public interface and never assert implementation-source bytes.
  • Later accepted direction: bank the established diagnosis rather than grinding for a full reproduction of the one intermittent failure; fix only what can be fixed soundly now and record the rest as follow-up with its reproduction conditions written down.

What was found and done, per test:

  1. tests/fm-remote-secondmate-lifecycle-e2e.test.sh - BROKEN PRECONDITION, fixed. It failed alone too, not only in a suite: 19 cases passed and 'fleet snapshot did not select the remote structured-home projection' failed, aborting the remaining 7. Instrumenting the suppressed stderr of the remote summary call showed 'fm-fleet-snapshot: tasks-axi not found', rc=1. fm-remote-entrypoint.sh runs the remote command under fm_remote_job_compose_operator_path, a fixed list of well-known install locations (~/.local/bin, nvm/asdf/mise, /opt/homebrew/bin, /usr/local/bin, /usr/bin, /bin, ...) that deliberately ignores the caller's PATH, and this runner's tasks-axi lives at ~/.npm-global/bin. In GitHub Actions npm -g installs to /usr/local/bin, which IS on that list, so the case passes in CI and fails on a developer machine with a user-level npm prefix. The fixture already installs a fake tmux and a herdr fixture into the remote code root's bin, which the child PATH resolves first; it simply never published tasks-axi there. Fix: symlink tasks-axi and node into the remote code root's bin, which is exactly what the sibling tests/fm-remote-backlog-handoff.test.sh already does, plus matching top-of-file skip guards. All 26 cases now pass.

  2. tests/fm-remote-job-orphan-reap.test.sh - BROKEN PRECONDITION, fixed. It also failed alone. The failing line was a precondition, '[ "$(ppid_of "$WORKER")" = 1 ]', reporting 'the fixture worker is not orphaned to init, so this case does not reproduce the leak'. On this host systemd --user (pid 276) is a registered child subreaper, so orphans reparent to it and never reach pid 1; the same is true under any systemd user session or a container init. bin/fm-remote-job-reap-orphans.sh states in its own header that the reap condition is exactly fm_remote_job_root_is_live failing for the root named in the worker's command line, with no dependence on the adopting parent, so ppid 1 was never the property under test. Fix: assert the property the leak actually needs - the worker outlived the shell that started it and is not a descendant of the test's own process tree - via a small is_descendant_of helper, and correct a now-inaccurate pass label that still said 'at ppid 1'. All 7 cases now pass.

  3. tests/fm-spawn-worktree-settle.test.sh - BROKEN PRECONDITION, fixed. It passed alone (11.8s) and failed under load. Its second case asserted wall-clock seconds, [ "$elapsed" -le 5 ], as a proxy for 'not an extra full poll cycle'. A standalone probe reproducing the same fixture while the machine was busy measured the identical two-read path at 17s, against a recorded quiet-machine baseline of 4598ms for the whole script - the margin was already near zero when idle. Fix, and deliberately NOT a longer budget: count the pane_current_path reads the settle loop performs, which the fake tmux already records. The loop sleeps once per read, so that count IS its cycle count and is identical on an idle and a saturated host - exactly 2 reads for an already-settled pane, exactly 3 when one stale read precedes it. The new assertion is strictly stronger than the one it replaces: an implementation regression that adds one extra confirming cycle now fails at 4 reads, where 4 seconds passed the old 5-second budget. That red state was demonstrated by temporarily patching bin/fm-spawn.sh to require an extra confirming poll and observing the new assertion fail, then restoring the file clean.

  4. tests/fm-backend-herdr-presentation-e2e.test.sh - NOT REPRODUCED, deliberately not changed, reported as follow-up. It passed alone in 479s and passed again inside a full-suite run in 548s, only 14% slower. So on today's evidence it is not permanently red in this environment; its reported failure is intermittent and load-dependent rather than a broken assertion, and no sound category can be assigned without a reproduction. No skip, no timeout change, and no speculative fix was applied to it. Reproduction conditions for a follow-up: run it alone under heavy synthetic CPU load and capture the failing case; the structural candidates noticed while reading it are fm_herdr_lab_provision's fixed 60-second wait for the lab server to report running, which the test triggers repeatedly through stop/reprovision cycles, and fm_backend_herdr_pane_idle_shell_pid's fixed ~1-second idle-shell settle budget (10 polls x 0.1s), either of which a saturated host can widen past its bound.

A short durable note was added to CONTRIBUTING.md's testing section stating the general rule these three shared: a behavior assertion must pin the property it names rather than a host-dependent proxy for it, because a wall-clock budget, a ppid of 1, and a tool resolving on the caller's PATH each hold on one machine and silently void or fail the same case on another.

Artifact-style constraint for this pipeline: pipeline-authored risk rationales, fix summaries, and PR bodies must use role-neutral prose with no second person and no captain, user, firstmate, or crewmate role nouns. This constraint does not apply to product code, prompts, or user-facing copy.

What Changed

  • Replace the orphan-reaping fixture's PID 1 assumption with a direct process-tree relationship check.
  • Publish remote lifecycle fixture dependencies through its controlled PATH and skip explicitly when required tools are unavailable.
  • Assert worktree settling by pane-path read counts instead of wall-clock timing, and document the rule against host-dependent test proxies.

Risk Assessment

✅ Low: The changes are confined to correcting three host-dependent test preconditions and documenting the shared testing invariant, while the unreproduced intermittent Herdr failure remains explicitly unchanged for follow-up.

Testing

The three corrected tests passed independently while directly demonstrating remote dependency publication, adopted-orphan reaping, and deterministic pane-read settling; the unchanged Herdr test passed independently on Herdr 0.8.0, and all four then passed together through the canonical runner with zero failures or skips. No visual artifact was captured because these changes affect CLI/process test behavior rather than a rendered UI; end-user-visible command transcripts and timing JSON were preserved instead.

Evidence: Selected four-test suite transcript
FM_TEST_BEGIN 2026-09-01T16:13:25Z tests/fm-backend-herdr-presentation-e2e.test.sh family=real-herdr-gated expected_gate_skip=herdr
ok - real Herdr lab: an opted-out spawn retains the Stage 1 Herdr command sequence with zero ordering calls
ok - real Herdr lab: a home that configured nothing is projected by default on herdr 0.8.0
ok - real Herdr lab: every projected create, task-tab create, seeded prune, and move preserves active workspace and tab
warning: herdr presentation cleanup could not verify the exact pane; refusing focus-unsafe pane close
ok - real Herdr lab: active seeded-tab pruning refuses the exact pane and preserves exact focus
ok - real Herdr lab: bounded lock contention warns and falls back flat without projection or focus drift
ok - real Herdr lab: concurrent primary workers form one stable contiguous block without active workspace/tab drift
ok - real Herdr lab: forced workspace.move failure leaves a successful worker in default order with a warning and no cleanup
ok - real Herdr lab: concurrent post-create abort cleanup stays serialized with exact focus restoration
ok - real Herdr lab: Treehouse commands and metadata shape are byte-identical except for endpoint IDs and spawn incarnation
ok - real Herdr lab: exact task-pane close removes the projected workspace with no unrestored wrong-focus interval
ok - real Herdr lab: concurrent projected cleanup is serialized and leaves active workspace/tab unchanged
ok - real Herdr lab: three repeated concurrent create/order/cleanup waves have zero active workspace or tab drift
ok - real Herdr lab: the primary presentation setting inherits into real secondmate homes
ok - real Herdr lab: primary and two secondmate homes each own a top-level contiguous child block
ok - real Herdr lab: concurrent primary/A/B spawns preserve parent order and exact focus
ok - real Herdr lab: session lock contention from a secondmate home falls back flat with no journal
ok - real Herdr lab: Hi Bit and Wheelhouse-style same-identity restarts reclaim one nested space with exact focus and idempotence
ok - real Herdr lab: secondmate restart binding and reclaim stay isolated to the exact child home and parent
ok - real Herdr lab: concurrent cross-home recoveries replace exact husks under one session lock with no focus drift
ok - real Herdr lab: legacy projection labels and flat secondmate tabs are left unmigrated
ok - real Herdr lab: multi-home exact-pane teardowns restore captain focus without workspace close authority
warning: no exact herdr presentation token match for missing1; leaving any stale space untouched and spawning flat
warning: no exact herdr presentation token match for renamed1; leaving any stale space untouched and spawning flat
warning: 2 exact herdr presentation token matches for duplicate1 are quarantined; inspecting only for duplicate-agent risk
warning: quarantined herdr presentation for duplicate1 is dead or agent-free; exact bound reclaim may proceed, otherwise spawning flat
warning: 2 exact herdr presentation token matches for duplicate1 are quarantined; inspecting only for duplicate-agent risk
error: quarantined herdr presentation for duplicate1 has a live pane; refusing duplicate launch
ok - real Herdr lab: missing, renamed, and duplicate tokens trigger zero destructive or adoptive calls, and live duplicate risk refuses launch
ok - real Herdr lab validation completed on Herdr 0.8.0 with the default-session tripwire intact
FM_TEST_END 2026-09-01T16:21:37Z tests/fm-backend-herdr-presentation-e2e.test.sh exit=0 duration_ms=491744 gate_skip=false
FM_TEST_BEGIN 2026-09-01T16:21:37Z tests/fm-remote-job-orphan-reap.test.sh family=secondmate expected_gate_skip=none
ok - the Linux start path puts the whole worker tree in its own process group
ok - removing the state root and killing the recorded worker pid leaves the adopted tree running
ok - a worker whose code root still exists is never reaped
ok - a worker stops its whole tree once its code root is pruned
ok - a dry run reports the abandoned worker and signals nothing
ok - the reaper stops an abandoned worker's whole tree
ok - the reaper is idempotent
FM_TEST_END 2026-09-01T16:21:41Z tests/fm-remote-job-orphan-reap.test.sh exit=0 duration_ms=3508 gate_skip=false
FM_TEST_BEGIN 2026-09-01T16:21:41Z tests/fm-remote-secondmate-lifecycle-e2e.test.sh family=secondmate expected_gate_skip=none
ok - overlapping remote home provisioning serializes through publication and rollback
ok - remote seed rollback preserves serialized competing routes
ok - unknown readiness preserves its route and brief for reconciliation
ok - remote seeding checks, repairs, and re-checks readiness, then stops on a remaining gap
ok - remote seeding proceeds once the repair closes every gap
ok - remote seeding provisions a supplied origin without touching the primary project tree
ok - remote provisioning re-validates a supplied origin at the receiving host
ok - seeding carries bitbucket, self-hosted, and scp-like origins through to the remote clone
ok - remote seed registers the route and provisions the whole home and project clone on that host
ok - remote inheritance rejects incomplete and superseded payload generations
ok - mixed local and remote routes validate without migration
ok - remote spawn launches on the remote-local backend and records a host-qualified route
ok - legacy and mismatched remote endpoints fail closed before backend access
ok - non-herdr remote endpoints are refused without changing either route
ok - remote spawn serializes inheritance through launch publication
ok - marked send and routed reply complete through the existing parent correlation owner
PR_CHECK_MIGRATION: watcher ownership is ambiguous; review state/.watch.lock before rearming polls
ok - partial remote inheritance retains reread intent through bootstrap convergence
ok - config push and bootstrap serialize remote inheritance convergence
WARNING: watcher still down (same stale episode; last beat: 44s ago, grace 300s) - full banner already printed this episode.
ok - remote inherited config retains and retries a failed live reread nudge
ok - fleet snapshot projects mixed local and remote structured state
ok - remote update imports and fast-forwards the persistent home on its configured host
PR_CHECK_MIGRATION: watcher ownership is ambiguous; review state/.watch.lock before rearming polls
ok - startup repairs remote readiness before probing without relaunching
PR_CHECK_MIGRATION: watcher ownership is ambiguous; review state/.watch.lock before rearming polls
ok - startup reports alive legacy backends without changing their routes
ok - unreachable remote state remains unknown with no local respawn or failover
ok - remote retirement refuses child work, then removes only its own endpoint while a shared-session sibling survives
ALL TESTS PASSED
FM_TEST_END 2026-09-01T16:24:41Z tests/fm-remote-secondmate-lifecycle-e2e.test.sh exit=0 duration_ms=180367 gate_skip=false
FM_TEST_BEGIN 2026-09-01T16:24:41Z tests/fm-spawn-worktree-settle.test.sh family=backend-dispatch expected_gate_skip=none
ok - a single transient stale pane_current_path read is not accepted as the worktree
ok - an already-settled pane confirms via the existing inter-poll sleep, not an extra full cycle
# all fm-spawn-worktree-settle tests passed
FM_TEST_END 2026-09-01T16:24:53Z tests/fm-spawn-worktree-settle.test.sh exit=0 duration_ms=12193 gate_skip=false
FM_TEST_SUMMARY total=4 failed=0 skipped_gate=0 duration_ms=687914
FM_TEST_SUMMARY_FAMILY family=backend-dispatch count=1 duration_ms=12193 failed=0
FM_TEST_SUMMARY_FAMILY family=real-herdr-gated count=1 duration_ms=491744 failed=0
FM_TEST_SUMMARY_FAMILY family=secondmate count=2 duration_ms=183875 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-backend-herdr-presentation-e2e.test.sh duration_ms=491744
FM_TEST_SLOWEST rank=2 script=tests/fm-remote-secondmate-lifecycle-e2e.test.sh duration_ms=180367
FM_TEST_SLOWEST rank=3 script=tests/fm-spawn-worktree-settle.test.sh duration_ms=12193
FM_TEST_SLOWEST rank=4 script=tests/fm-remote-job-orphan-reap.test.sh duration_ms=3508
fm-test-run: wrote timing artifact: /tmp/no-mistakes-evidence/01M1EV5V36V9MZHPZX51SWYDFN/four-tests-selected-suite.json
Evidence: Selected suite timing results
{
  "families": [
    {
      "count": 1,
      "duration_ms": 12193,
      "failed": 0,
      "name": "backend-dispatch"
    },
    {
      "count": 1,
      "duration_ms": 491744,
      "failed": 0,
      "name": "real-herdr-gated"
    },
    {
      "count": 2,
      "duration_ms": 183875,
      "failed": 0,
      "name": "secondmate"
    }
  ],
  "finished_at": "2026-09-01T16:24:53Z",
  "run_id": "fm-test-run-1788279205747-3129821",
  "scripts": [
    {
      "duration_ms": 491744,
      "exit": 0,
      "expected_gate_skip": "herdr",
      "family": "real-herdr-gated",
      "gate_skip": false,
      "path": "tests/fm-backend-herdr-presentation-e2e.test.sh"
    },
    {
      "duration_ms": 3508,
      "exit": 0,
      "expected_gate_skip": "none",
      "family": "secondmate",
      "gate_skip": false,
      "path": "tests/fm-remote-job-orphan-reap.test.sh"
    },
    {
      "duration_ms": 180367,
      "exit": 0,
      "expected_gate_skip": "none",
      "family": "secondmate",
      "gate_skip": false,
      "path": "tests/fm-remote-secondmate-lifecycle-e2e.test.sh"
    },
    {
      "duration_ms": 12193,
      "exit": 0,
      "expected_gate_skip": "none",
      "family": "backend-dispatch",
      "gate_skip": false,
      "path": "tests/fm-spawn-worktree-settle.test.sh"
    }
  ],
  "selection": "scripts",
  "started_at": "2026-09-01T16:13:25Z",
  "summary": {
    "duration_ms": 687914,
    "failed": 0,
    "skipped_gate": 0,
    "total": 4
  }
}
Evidence: Herdr presentation standalone transcript
ok - real Herdr lab: an opted-out spawn retains the Stage 1 Herdr command sequence with zero ordering calls
ok - real Herdr lab: a home that configured nothing is projected by default on herdr 0.8.0
ok - real Herdr lab: every projected create, task-tab create, seeded prune, and move preserves active workspace and tab
warning: herdr presentation cleanup could not verify the exact pane; refusing focus-unsafe pane close
ok - real Herdr lab: active seeded-tab pruning refuses the exact pane and preserves exact focus
ok - real Herdr lab: bounded lock contention warns and falls back flat without projection or focus drift
ok - real Herdr lab: concurrent primary workers form one stable contiguous block without active workspace/tab drift
ok - real Herdr lab: forced workspace.move failure leaves a successful worker in default order with a warning and no cleanup
ok - real Herdr lab: concurrent post-create abort cleanup stays serialized with exact focus restoration
ok - real Herdr lab: Treehouse commands and metadata shape are byte-identical except for endpoint IDs and spawn incarnation
ok - real Herdr lab: exact task-pane close removes the projected workspace with no unrestored wrong-focus interval
ok - real Herdr lab: concurrent projected cleanup is serialized and leaves active workspace/tab unchanged
ok - real Herdr lab: three repeated concurrent create/order/cleanup waves have zero active workspace or tab drift
ok - real Herdr lab: the primary presentation setting inherits into real secondmate homes
ok - real Herdr lab: primary and two secondmate homes each own a top-level contiguous child block
ok - real Herdr lab: concurrent primary/A/B spawns preserve parent order and exact focus
ok - real Herdr lab: session lock contention from a secondmate home falls back flat with no journal
ok - real Herdr lab: Hi Bit and Wheelhouse-style same-identity restarts reclaim one nested space with exact focus and idempotence
ok - real Herdr lab: secondmate restart binding and reclaim stay isolated to the exact child home and parent
ok - real Herdr lab: concurrent cross-home recoveries replace exact husks under one session lock with no focus drift
ok - real Herdr lab: legacy projection labels and flat secondmate tabs are left unmigrated
ok - real Herdr lab: multi-home exact-pane teardowns restore captain focus without workspace close authority
warning: no exact herdr presentation token match for missing1; leaving any stale space untouched and spawning flat
warning: no exact herdr presentation token match for renamed1; leaving any stale space untouched and spawning flat
warning: 2 exact herdr presentation token matches for duplicate1 are quarantined; inspecting only for duplicate-agent risk
warning: quarantined herdr presentation for duplicate1 is dead or agent-free; exact bound reclaim may proceed, otherwise spawning flat
warning: 2 exact herdr presentation token matches for duplicate1 are quarantined; inspecting only for duplicate-agent risk
error: quarantined herdr presentation for duplicate1 has a live pane; refusing duplicate launch
ok - real Herdr lab: missing, renamed, and duplicate tokens trigger zero destructive or adoptive calls, and live duplicate risk refuses launch
ok - real Herdr lab validation completed on Herdr 0.8.0 with the default-session tripwire intact
Evidence: Remote orphan reaping standalone transcript
ok - the Linux start path puts the whole worker tree in its own process group
ok - removing the state root and killing the recorded worker pid leaves the adopted tree running
ok - a worker whose code root still exists is never reaped
ok - a worker stops its whole tree once its code root is pruned
ok - a dry run reports the abandoned worker and signals nothing
ok - the reaper stops an abandoned worker's whole tree
ok - the reaper is idempotent
Evidence: Remote second-mate lifecycle standalone transcript
ok - overlapping remote home provisioning serializes through publication and rollback
ok - remote seed rollback preserves serialized competing routes
ok - unknown readiness preserves its route and brief for reconciliation
ok - remote seeding checks, repairs, and re-checks readiness, then stops on a remaining gap
ok - remote seeding proceeds once the repair closes every gap
ok - remote seeding provisions a supplied origin without touching the primary project tree
ok - remote provisioning re-validates a supplied origin at the receiving host
ok - seeding carries bitbucket, self-hosted, and scp-like origins through to the remote clone
ok - remote seed registers the route and provisions the whole home and project clone on that host
ok - remote inheritance rejects incomplete and superseded payload generations
ok - mixed local and remote routes validate without migration
ok - remote spawn launches on the remote-local backend and records a host-qualified route
ok - legacy and mismatched remote endpoints fail closed before backend access
ok - non-herdr remote endpoints are refused without changing either route
ok - remote spawn serializes inheritance through launch publication
ok - marked send and routed reply complete through the existing parent correlation owner
PR_CHECK_MIGRATION: watcher ownership is ambiguous; review state/.watch.lock before rearming polls
ok - partial remote inheritance retains reread intent through bootstrap convergence
ok - config push and bootstrap serialize remote inheritance convergence
WARNING: watcher still down (same stale episode; last beat: 44s ago, grace 300s) - full banner already printed this episode.
ok - remote inherited config retains and retries a failed live reread nudge
ok - fleet snapshot projects mixed local and remote structured state
ok - remote update imports and fast-forwards the persistent home on its configured host
PR_CHECK_MIGRATION: watcher ownership is ambiguous; review state/.watch.lock before rearming polls
ok - startup repairs remote readiness before probing without relaunching
PR_CHECK_MIGRATION: watcher ownership is ambiguous; review state/.watch.lock before rearming polls
ok - startup reports alive legacy backends without changing their routes
ok - unreachable remote state remains unknown with no local respawn or failover
ok - remote retirement refuses child work, then removes only its own endpoint while a shared-session sibling survives
ALL TESTS PASSED
Evidence: Worktree settle standalone transcript
ok - a single transient stale pane_current_path read is not accepted as the worktree
ok - an already-settled pane confirms via the existing inter-poll sleep, not an extra full cycle
# all fm-spawn-worktree-settle tests passed

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Inspected git diff 00aa3a0f173fdbf368acfe70aaadc7666c41d648..8769b254341da61081ad247b322092d187abb137 to confirm scope and acceptance intent.
  • tests/fm-remote-job-orphan-reap.test.sh
  • tests/fm-spawn-worktree-settle.test.sh
  • tests/fm-remote-secondmate-lifecycle-e2e.test.sh
  • tests/fm-backend-herdr-presentation-e2e.test.sh
  • bin/fm-test-run.sh --json /tmp/no-mistakes-evidence/01M1EV5V36V9MZHPZX51SWYDFN/four-tests-selected-suite.json tests/fm-backend-herdr-presentation-e2e.test.sh tests/fm-remote-job-orphan-reap.test.sh tests/fm-remote-secondmate-lifecycle-e2e.test.sh tests/fm-spawn-worktree-settle.test.sh
  • Verified git status --short remained empty after testing.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

…ually assert

Four scripts failed or silently voided their own case depending on the host,
independently of any change under test.

fm-remote-secondmate-lifecycle-e2e and fm-remote-job-orphan-reap were broken
preconditions. fm-remote-entrypoint.sh runs a remote command under the composed
operator PATH, a fixed list of well-known install locations that deliberately
ignores the caller's PATH, so a runner whose tasks-axi lives under a user-level
npm prefix made every remote fm-fleet-snapshot.sh call fail its own dependency
check; the fixture now publishes tasks-axi and node on the remote code root's
bin the way tests/fm-remote-backlog-handoff.test.sh already does. The orphan
reap fixture required ppid 1, but orphans reparent to the nearest child
subreaper, so a systemd --user manager or a container init voided that whole
case; it now asserts the property the leak needs, that the worker outlived its
launching shell and sits outside the test's own process tree, which the reap
condition itself never depended on.

fm-spawn-worktree-settle measured wall-clock seconds as a proxy for poll
cycles. The identical two-read path takes about two seconds idle and seventeen
on a saturated host, so a five-second budget failed under load without the loop
behaving differently. It now counts pane_current_path reads, which the fake
tmux already records: two for an already-settled pane, three when one stale
read precedes it. That count is load-independent and strictly stronger - an
extra confirming cycle now fails at four reads, where four seconds passed the
old budget.

fm-backend-herdr-presentation-e2e is not fixed here. It passed alone in 479s
and inside a full-suite run in 548s, so its reported failure is intermittent and
load-dependent rather than a broken assertion, and no sound category can be
assigned without a reproduction.
@levelupself
levelupself merged commit dbde8fc into main Sep 1, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants