Skip to content

fix(test): MCP fixture tests fail on loaded hosts when child startup outlasts polling deadlines - #162274

Merged
steipete merged 3 commits into
mainfrom
steipete/mcp-fixture-receipts
Oct 1, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/mcp-fixture-receipts

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: the MCP runtime, reload, and stdio-transport test suites fail on a loaded host when an MCP fixture child takes longer than 1–2 s to boot and handshake, because the tests poll log/PID files against short wall-clock deadlines.

User Impact

No user-visible change. Developers and CI no longer get spurious Timed out waiting for tools/list cursor … / Timed out waiting for notify tools/list_changed … failures from these suites on slow or busy machines, and a genuinely missing fixture event now fails at the owning step (or at the Vitest test timeout) instead of racing a 1–2 s timer.

Why This Change Was Made

During #161691 the unchanged src/agents/agent-bundle-mcp-runtime.test.ts failed four cases on a loaded host with the two messages above. Those come from local polling helpers (waitForFileText, waitForFileTextCount, waitForPredicate, waitForChangedPid) that re-read a fixture's log or PID file every 10 ms against LIST_TOOLS_SERVER_LOG_TIMEOUT_MS = 2_000 / 4_000. The awaited work is healthy but heavy — a fresh Node child, MCP initialize, then tools/list — so a loaded runner pushes it past the deadline. docs/help/testing/writing-tests.md already forbids real timers, sleeps and polling for exactly this reason. #161691 fixed the withTestTimeout side of the same problem; this PR is the filesystem/process-polling counterpart.

The fixture children are spawned by the product's MCP stdio runtime, so the test owns neither the child's stdio nor a Node IPC channel. The new test/helpers/fixture-receipts.ts gives the test that missing signal: a test-owned Unix socket (named pipe on Windows) that generated fixtures report to with newline-delimited JSON receipts. Fixture log() keeps appending to its log file first (post-hoc and negative log assertions are unchanged) and then sends the same line as a receipt. waitFor(source, text, count) has no timer: receipts that arrived earlier count, and an unreached receipt fails at the Vitest test timeout. The fixture side unref()s its socket so observation never keeps a product-owned child alive.

Each wait was converted to the signal that actually owns it:

  • Class A/B (event races other async work): withinTest(fixtureEventBeforeSettlement(logPath, text, operation), signal). Receipts and the fixture's stdout MCP replies are independent pipes, so a receipt can arrive after a reply the fixture sent later; when the operation settles first, the helper consults the fixture log (appended synchronously before any reply) and fails fast only if the event never happened. withinTest keeps body-finally cleanup (runtime disposal, child reaping) reachable on timeout — the fix(test): CI fails healthy tests when a loaded runner outlasts short wall-clock deadlines #161691 rule.
  • Cancellation test: it kept requests in flight with 250 ms fixture reply timers, the same wall-clock race inside the fixture. tools/call, resources/list and prompts/list replies are now held on a release gate that opens after the three cancellations; the timer knobs had no other users.
  • Class C (already guaranteed by an awaited promise): one direct read and assertion. The fixture writes its PID before attaching its stdin handler and appends each log line synchronously before replying, so after getCatalog()/callTool()/listResources() resolve the state already exists. Child extinction after materialized.dispose() and manager.disposeSession() is asserted directly because both join runtime.joinCleanup(), and closeOwnedStdioProcess joins the process group's waitForExtinction().
  • Probe hold marker (reload test): the ${marker}.started file polled with expect.poll (1 s default) becomes a started receipt; both readers moved, so the file write is gone.
  • Stdio transport process test: the leader reports its descendant PID as a JSON-RPC notification on the stdout the test already owns (transport.onmessage), replacing a PID file polled with vi.waitFor (1 s default). Graceful shutdown asserts extinction right after transport.close(). The spontaneous-exit case deliberately does not call close() before asserting — that would start the cleanup the test is meant to prove the transport performs on its own — so it keeps a signal-bound extinction check (the cleanup promise is private).

Residual polls (documented): 11 runtime sites observe in-memory runtime state with no exposed completion signal (SDK list_changed consumption, stale-while-recovering catalog publication, recovery after an external SIGKILL, recycle after repeated timeouts, App-view expiry retirement, HTTP session replacement). They use one local waitForRuntimeState(predicate, description, signal) that re-checks on a 10 ms tick with no wall-clock deadline, bound to the test signal. Adding product hooks for them would be a test-only seam, so they stay as residuals. No test timeout, product timeout (connectionTimeoutMs, catalog list/request timeouts), or assertion meaning changed; no product source changed. The fixtures' own release-file polling (no deadline, test-controlled) is unchanged.

Audit: real-time filesystem/process polling in tests

Scope (audited at 0016b17df26c): every call site of the test/helpers/process-wait.ts exports — waitForFile, waitForPidFile, waitForDead, waitForChildClose (event-based but timer-bounded), waitForFixtureFile, and isProcessAlive inside a caller-owned deadline loop — plus local copies of the same shape under src/agents and src/process (waitForFileText and friends, filesystem/process expect.poll/vi.waitFor, src/test-utils waitForPidToExit/waitForPidFile). Local polling helpers elsewhere (test/scripts, gateway, infra) were inventoried by definition; their call sites are the next audit slice. Nine call sites whose deadline is governed by fake timers are excluded.

Classes (same as #161691): A real deadline ≤ 10 s racing heavy work (child boot, MCP handshake, worker dispatch, Gateway, agent turn); B moderate (≤ 10 s over light work, or > 10 s over heavy work); C trivial hang guard; N negative wait. A deadline is judged against the healthy-path work it races, not its length alone.

Totals: 457 call sites in 114 files — A 126, B 272, C 56, N 3. This PR converts the MCP fixture family: 36 sites in 3 files (A 14, B 9, C 13), the batch with the only known sighting and the most class-A sites at ≤ 2 s.

Correction to one row: the top-ranked site, src/process/supervisor/supervisor.forced-settlement.real.test.ts:25 (250 ms), is a best-effort afterEach PID lookup whose timeout is swallowed; its risk is a leaked process, not a red test.

CI cross-check: failure annotations (gh api check-runs/<job>/annotations, at most 4 requests in flight) over 600 failed jobs in 130 ci.yml runs from 2026-09-23 to 2026-09-30 — 58 of the 101 failed scheduled-main runs, all 9 failed push runs' job lists, and a round-robin daily sample of 70 failed PR runs, stopping at a 600-request cap — showed no annotation from test/helpers/process-wait.ts or from these helpers' messages. The only Timed out waiting … hits were a timer-based event waiter in src/agents/openclaw-tools.subagents.sessions-spawn.test-harness.ts:169 (run 36067467814), which is outside this helper class. Caveats: the PR sample was capped (1,400 failed PR runs in the window), and 872 of the 1,856 annotations were generic .github process-exit records that can hide test-level detail. The #161691 loaded-host failure therefore remains the one sighting; the classification ranks the rest by deadline versus healthy-path work.

Next batches (not in this PR):

  1. src/agents/prepared-model-catalog-worker*.integration.test.ts: 8 class-A expect.poll sites at the 1 s default over worker dispatch; they need worker entry messages.
  2. Process-fixture readiness at 2 s in test/scripts (tsdown-build, resolve-openclaw-package-candidate, managed-child-process, check-deadcode-unused-files, run-additional-boundary-checks, check-extension-package-tsc-boundary, test-group-report): readiness or PID relays through IPC/stdout; fixture-receipts serves the product-spawned cases.
  3. test/scripts/test-group-report.test.ts:1008: a 5 s waitForChildClose guard that races the product's own 5 s termination grace.
  4. src/process/spawn-broker/restart.test.ts and src/process/supervisor/adapters/child.service-lifecycle.test.ts are already being converted in a sibling lane (5 s process sites), so they are not touched here.
Ranked class-A call sites (126)

Lines refer to 0016b17df26c. "Rank" groups ties: A first, then increasing deadline; startup/composition work before simple observations. T= is an explicit enclosing Vitest timeout (the default is 120,000 ms).

# file:line helper deadline (ms) awaited healthy-path work class
1 src/process/supervisor/supervisor.forced-settlement.real.test.ts:25 P 250; afterEach Failed-startup descendant PID Potential unfinished root/descendant Node boot A (cleanup-only: timeout swallowed, risk is a leaked process)
2 src/agents/agent-bundle-mcp-reload.test.ts:821 fixed here EP 1,000 Healthy MCP call entered First stdio boot, initialize, catalog, tools/call A
2 src/agents/prepared-model-catalog-worker.scope.integration.test.ts:307 VW 1,000 Auth owner file says parent Cold models.list, plugin/auth preparation A
2 src/agents/prepared-model-catalog-worker.integration.test.ts:238 EP 1,000 Worker appends start Credential preparation, worker dispatch, hook entry A
2 src/agents/prepared-model-catalog-worker.pool.integration.test.ts:148 EP 1,000 Renewal marker changes Catalog preparation and worker dispatch A
2 src/agents/prepared-model-catalog-worker.pool.integration.test.ts:276 EP 1,000 Renewal marker before termination Catalog preparation and worker dispatch A
2 src/agents/prepared-model-catalog-worker.pool.integration.test.ts:422 EP 1,000 Marker before warm shutdown Catalog preparation and worker dispatch A
2 src/agents/prepared-model-catalog-worker.pool.integration.test.ts:477 EP 1,000 First held catalog hook entered Worker dispatch while sibling queues A
2 src/agents/prepared-model-catalog-worker.pool.integration.test.ts:589 EP 1,000 Predecessor reaches barrier Renewal before replacement preparation A
2 src/agents/prepared-model-catalog-worker.pool.integration.test.ts:746 EP 1,000 Active sibling reaches barrier Catalog preparation and dispatch A
2 src/agents/mcp-stdio-transport.process.test.ts:38 fixed here VW 1,000; T=10,000 Descendant PID/live process Transport Node leader and descendant boot A
2 src/agents/mcp-stdio-transport.process.test.ts:75 fixed here VW 1,000; T=10,000 Descendant PID/live process Transport Node leader and descendant boot A
2 src/process/supervisor/supervisor.readiness.real.test.ts:74 EP 1,000; T=15,000 Root/reader PID JSON Supervisor root and private-input reader startup A
2 src/agents/worktrees/filesystem-native.test.ts:161 EP 1,000 Native-write child ready file Copy dispatch, Node boot, stdin JSON read A
2 test/helpers/openclaw-test-instance.test.ts:1186 FF None; command 1,000 CLI-ready receipt CLI spawn, Node boot, config/trace reads A
2 src/process/supervisor/supervisor.no-detach.real.test.ts:198 EP 1,000; T=30,000 Foreign control first tick Independent Node control may still boot A
3 src/agents/agent-bundle-mcp-runtime.test.ts:3996 fixed here FT 2,000; T=4,000 Three tools/list cursor logs Three Node boots and MCP handshakes A
3 src/agents/agent-bundle-mcp-runtime.test.ts:4068 fixed here FT 2,000; T=4,000 Invalidation notification Concurrent acquisitions; sibling delays initialize 200 ms A
3 src/agents/agent-bundle-mcp-runtime.test.ts:4140 fixed here FT 2,000; T=8,000 Trigger list-change notification Concurrent child boot/initialize A
3 src/agents/agent-bundle-mcp-runtime.test.ts:1001 fixed here FT 2,000 recv tools/list Node boot, initialize, tools/list A
3 src/agents/agent-bundle-mcp-runtime.test.ts:1615 fixed here FT 2,000 initialize or tools/list log Private acquisition, spawn, handshake A
3 src/agents/agent-bundle-mcp-runtime.test.ts:1677 fixed here FT 2,000 Shared producer tools/list Combined runtime boot and discovery A
3 src/agents/agent-bundle-mcp-runtime.test.ts:4139 fixed here FT 2,000; T=8,000 First-connect marker Node boot and exclusive marker write A
3 src/agents/agent-bundle-mcp-runtime.test.ts:4231 fixed here FT 2,000; T=8,000 First invalidation Node boot and initialize A
3 src/agents/agent-bundle-mcp-runtime.test.ts:4236 fixed here FT 2,000; T=8,000 First tools/list cursor Remaining catalog dispatch A
3 test/scripts/resolve-openclaw-package-candidate.test.ts:678 P 2,000 External-signal descendant PID Runner import, parent and descendant boots A
3 test/scripts/tsdown-build.test.ts:1841 F 2,000 Parent child.ready Runner import, compiler parent and descendant spawn A
3 test/scripts/check-deadcode-unused-files.test.ts:426 F 2,000 Parent readiness Runner import, runKnip, parent boot, grandchild spawn A
3 test/scripts/run-additional-boundary-checks.test.ts:533 F 2,000 Parent readiness Runner import, runChecks, parent/child spawn A
3 test/scripts/check-extension-package-tsc-boundary.test.ts:560 P 2,000 Aborted-step descendant PID Two concurrent Node steps and descendant spawn A
3 test/scripts/resolve-openclaw-package-candidate.test.ts:529 P 2,000 Timeout descendant PID Parent and descendant boot/handlers A
3 test/scripts/resolve-openclaw-package-candidate.test.ts:624 P 2,000 Graceful descendant PID Parent and descendant boot/handlers A
3 test/scripts/tsdown-build.test.ts:1562 P 2,000 Compiler descendant PID Fake compiler boot and descendant spawn A
3 test/scripts/tsdown-build.test.ts:1705 P 2,000 Timeout descendant PID Parent/descendant boots and handlers A
3 test/scripts/tsdown-build.test.ts:1772 P 2,000 Graceful-timeout PID Parent/descendant boots and markers A
3 test/scripts/managed-child-process.test.ts:1323 P 2,000 Managed leader PID Node boot, handlers, descendant spawn A
3 test/scripts/run-additional-boundary-checks.test.ts:439 P 2,000 Resistant grandchild PID runSingleCheck, parent and grandchild boots A
3 test/scripts/test-group-report.test.ts:1057 P 2,000 Cooperative grandchild PID spawnText, parent and grandchild boots A
3 test/scripts/check-extension-package-tsc-boundary.test.ts:468 P 2,000 Step child.pid Node step boot and descendant spawn A
3 test/scripts/resolve-openclaw-package-candidate.test.ts:573 P 2,000 Grace fixture PID Node child boot and handler installation A
3 test/scripts/check-deadcode-unused-files.test.ts:427 P 2,000 Resistant grandchild PID Grandchild boot and handler installation A
3 test/scripts/managed-child-process.test.ts:1324 P 2,000 Resistant descendant PID Second Node boot and handlers A
3 test/scripts/tsdown-build.test.ts:1842 P 2,000 Descendant PID after parent ready Descendant boot/TERM-handler installation A
3 src/process/terminal-pty-bun.test.ts:110 VW/ps 2,000 Foreground sleep appears PTY input, shell child spawn, repeated ps processes A
4 src/agents/harness/acp-native-execution.process.test.ts:331 FF None; attempt 3,000 timeout variant / 30,000 otherwise; T=60,000 Native session-new entered Native child boot and cold session initialization A†
4 src/commands/agent-exec.construction.test.ts:109 P 3,000; real delay/Date Backend command PID Supervisor spawn/boot while secret input blocks A
4 src/agents/sessions/exec.real.test.ts:65 VW 3,000; T=12,000 Parent/descendant PID JSON execCommand parent and resistant descendant spawn A
5 src/agents/agent-bundle-mcp-runtime.test.ts:520 fixed here Pred 4,000 real invocation Log occurrence count Replacement boot, initialize, tools/list A
5 src/agents/agent-bundle-mcp-runtime.test.ts:1397 fixed here FTC 4,000 Second recv tools/list Retirement, replacement boot and handshake A
5 src/tui/tui-pty-local.e2e.test.ts:1624 IP/local waitFor 4,000; T=150,000 Local-shell tree dead Control-pipe failure and multi-process reclamation A
6 test/scripts/tsgo-core-test-shards.test.ts:881 P 5,000 Compiler PID Driver/tsx, graph planning, compiler/descendant boot A
6 test/scripts/test-extension.test.ts:986 P 5,000 Native Vitest config PID Batch runner, Vitest/config import, descendant boot A
6 test/scripts/test-extension.test.ts:987 P 5,000 Native Vitest descendant PID Same composition; first receipt normally precedes both writes A
6 test/scripts/docker-all-harness.test.ts:245 P 5,000; wrapper T=30,000/default owner.ready PID/receipt Scheduler/runtime/lane/descendant startup; some later signal callers A
6 test/scripts/check-changed-cancellation.test.ts:131 FF None; outer 5,000, command 10,000; T=20,000 Command readiness Wrapper, pnpm fixture, descendant boot/IPC A
6 test/scripts/direct-run-entrypoints.test.ts:898 P 5,000 Implementation PID Wrapper, TS implementation, descendant boot/IPC A
6 test/scripts/test-live-shard.test.ts:688 P 5,000 Fake pnpm PID Shard selector, runtime wrapper/import, pnpm Node boot A
6 test/scripts/test-live-shard.test.ts:689 P 5,000 Fake pnpm descendant PID pnpm fixture boots and spawns descendant A
6 test/scripts/run-vitest-bounded.test.ts:360 P 5,000; T=60,000 Runtime builder PID CLI/import startup and builder boot A
6 test/scripts/run-node-lifecycle.test.ts:209 P 5,000; command 10,000 Respawned cache fixture PID Watch/runner/launcher boots and cache respawn A
6 test/scripts/run-node-lifecycle.test.ts:298 P 5,000; command 10,000 Private-pipe worker PID Wrapper/import, build and escaped worker startup A
6 test/scripts/run-node-lifecycle.test.ts:403 P 5,000 Resistant dev child PID Wrapper/import, build interception, child boot A
6 test/scripts/profile-extension-memory.test.ts:1185 P 5,000 Profiler descendant PID Runner/tsx, profiler, case Node and descendant spawn A
6 src/infra/update-candidate-state.cleanup.test.ts:515 P 5,000 Hung schema-worker PID Metadata probe, Node worker boot, stdin/staging setup A
6 src/process/supervisor/adapters/child.service-lifecycle.test.ts:229 P 5,000; real delay/Date Secret-input command PID Relay/command boot, 8 MiB input construction A
6 src/process/supervisor/adapters/child.service-lifecycle.test.ts:49 P 5,000 Retained descendant PID Relay/anchor/broker, root and descendant boot A
6 src/process/supervisor/adapters/child.service-lifecycle.test.ts:514 P 5,000 Delayed-exit descendant PID Relay, root and descendant boot A
6 src/process/supervisor/supervisor.anchored-shell.real.test.ts:143 P 5,000; readPid wrapper Retained descendant PID Anchored shell/root/descendant; native Windows fixture A
6 src/agents/worktrees/service.provisioned.test.ts:472 LP 5,000 Membership child PID Worktree state/lease preparation, dispatch, Node boot A
6 src/cli/cli-process-child.test-helpers.test.ts:367 P 5,000; runner 400/2,000 Detached descendant PID CLI child and grandchild spawn; identity publication A
6 test/scripts/managed-child-process.test.ts:527 P 5,000; T=15,000 Launcher leaf PID Launcher boot/import, nested leaf boot A
6 test/scripts/profile-extension-memory.test.ts:1100 P 5,000 Resistant descendant PID Leader/import-hook boot and descendant boot/handlers A
6 test/scripts/plugin-npm-security-scan-runner.test.ts:236 P 5,000 Scanner PID Wrapper and scanner Node boot A
6 test/scripts/plugin-npm-security-scan-runner.test.ts:237 P 5,000 Scanner descendant PID Descendant spawn after scanner boot A
6 test/scripts/full-release-validation-state.test.ts:3205 F 5,000 Stalled fake-gh ready Collector boot, plan admission, fake-gh Node spawn A
6 test/scripts/full-release-validation-state.test.ts:3308 F 5,000 Drain fake-gh ready Collector boot, plan read, fixture shell spawn A
6 test/helpers/openclaw-test-instance.test.ts:727 F 5,000 Overflow-ready CLI boot/config and capture-sized stdout drain A
6 src/process/spawn-broker/handoff-crash.test.ts:38 Inline PID loop 5,000; T=15,000 Shell PID with stopped broker Broker admission with 32 pipes, shell startup A
6 test/scripts/vitest-e2e-global-setup.test.ts:186 P 5,000 local / 15,000 CI Child/descendant PIDs Runner/import, prepare-runtime boot, descendant spawn A‡
6 test/scripts/managed-child-process.test.ts:1767 CC event+timer 5,000 Strict-output controller closes Controller/import, leader/escaped leaf boot, IPC/drain A
6 test/helpers/process-wait.test.ts:121 CC event+timer 5,000 Controller closes after reap Two Node boots, IPC, deliberate 2,100 ms stall A
6 test/scripts/test-group-report.test.ts:1008 CC event+timer 5,000; product grace 5,000 Runner closes after TERM Full grace, descendant SIGKILL, runner exit A
6 test/scripts/docker-all-harness.test.ts:283 CC event+timer 5,000; cleanup wrapper Scheduler shim closes Cancel/join children, descendants, pipes/logs A
6 test/scripts/check-deadcode-unused-files.test.ts:432 CC event+timer 5,000 Knip runner closes Tree signal forwarding/escalation and exit A
6 test/scripts/kitchen-sink-rpc-walk.test.ts:1401 CC event+timer 5,000 RPC-walk runner closes Runtime subtree cleanup and 100 ms grace A
6 test/scripts/check-extension-package-tsc-boundary.test.ts:631 CC event+timer 5,000 Boundary runner exits143 Active-step cancellation and descendant join A
6 test/scripts/vitest-worker-artifacts.ci.test.ts:284 first.pid D 5,000 First borrower dead Vitest teardown/report/resource cleanup while sibling held A
6 test/scripts/vitest-worker-artifacts.ci.test.ts:284 first.parent D 5,000 First coordinator dead Nested Vitest/report/resource teardown A
6 src/process/supervisor/adapters/child.service-lifecycle.test.ts:344 Alive 5,000 Root exits after large output Node boot, 8 MiB output, descendant launch A
6 src/process/exec.windows.integration.test.ts:142 VW 5,000; T=15,000 Windows parent/child dead taskkill/escalation subprocess and tree termination A
7 src/process/spawn-broker/restart.test.ts:77 VW/starts 7,000; T=15,000 Six broker startup records Kill broker; five recovery Node boots/backoff A
8 src/gateway/worker-environments/workspace-accepted-sync.test.ts:226 CC event+timer 10,000 Receiver controller closes Boot, lock, descendant, FIFO release, group drain A
8 src/gateway/worker-environments/workspace-accepted-sync.test.ts:232 F 10,000 Receiver marker Receiver/lock/rsync staging and descendant spawn A
8 src/gateway/worker-environments/workspace-accepted-sync.test.ts:259 F 10,000 Apply marker Transaction child, staging transfer, apply callback A
8 src/gateway/worker-environments/workspace-accepted-sync.test.ts:377 CC event+timer 10,000 Apply child closes Boot, rename, FIFO block, settlement/release A
8 src/gateway/worker-environments/workspace-accepted-sync.test.ts:382 F 10,000 Apply backup-rename marker Node/preload boot and transaction rename A
8 src/gateway/worker-environments/workspace-accepted-sync.test.ts:428 F 10,000 Outer apply marker Transaction/staging, apply spawn, gated rename A
8 src/gateway/worker-environments/workspace-accepted-sync.test.ts:563 CC event+timer 10,000 Apply child closes Boot/rename, FIFO, separate settlement process A
8 src/gateway/worker-environments/workspace-accepted-sync.test.ts:568 F 10,000 Gated apply marker Node/preload boot and backup rename A
8 src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:26 CC event+timer 10,000 Transaction controller closes Receiver boot, shell/group lifecycle, FIFO A
8 src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:128 F 10,000 rsync descendant marker Receiver boot, lock, shell/descendant spawn A
8 src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:154 F 10,000 Reset probes group Reset Node/preload boot and lock inspection A
8 src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:286 F 10,000 Lock-release gate Receiver boot, shell exit, group drain, release A
8 src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:321 F 10,000 Reset probes controller Reset Node/preload boot and owner inspection A
8 src/gateway/worker-environments/workspace-sync-manifest.test.ts:29 CC event+timer 10,000 Apply transaction closes Boot/rename, FIFO, rollback contender, release A
8 src/gateway/worker-environments/workspace-sync-manifest.test.ts:399 F 10,000 Apply rename marker Node boot and transaction backup rename A
8 src/gateway/worker-environments/workspace-sync-manifest.test.ts:421 F 10,000 Recovery liveness probe Contender boot/preload and lock inspection A
8 src/gateway/worker-environments/workspace-sync-tunnel.test.ts:458 CC event+timer 10,000 Receiver controller closes Boot/rsync, failed transport, fallback reset/FIFO/drain A
8 src/gateway/worker-environments/workspace-sync-tunnel.test.ts:460 P 10,000 Receiver group PID Controller boot, lock, shell/rsync spawn A
8 test/e2e/qa-lab/runtime/gateway-ssh-tunnels.test.ts:229 F 10,000; T=180,000 Trust-prepared receipt Privileged namespace, Node/tsx, SSH trust setup A
8 test/e2e/qa-lab/runtime/gateway-ssh-tunnels.test.ts:249 F 10,000; T=180,000 Trust prepared before kill Namespace, Node/tsx and SSH trust setup A
8 test/scripts/managed-child-process.test.ts:317 P 10,000; T=20,000 Nested ready PIDs Wrapper, tsx/import, implementation, leaf boots A
8 test/scripts/managed-child-process.test.ts:1790 P 10,000; T=25,000 Escaped/parent PIDs Managed siblings/escaped leaf boot, IPC/disconnect A
8 test/scripts/run-tsgo.test.ts:608 P 10,000; T=20,000 Compiler PID tsgo wrapper/config/lock and compiler shell startup A
8 test/scripts/direct-run-entrypoints.test.ts:241 P 10,000 Implementation’s owner PID Public wrapper and managed implementation boot A
8 test/scripts/managed-child-process.windows.test.ts:152 F 10,000; T=30,000 Windows Job readiness/PIDs Native Job, Node command, detached descendant A
8 test/scripts/nested-retention.test-support.ts:106 F generated 10,000; inner T=25,000, outer T=80,000 Escaped writer before.json Nested startup, writer boot, request and append A
8 test/scripts/test-group-report.test.ts:1001 F 10,000 Parent ready Runtime-worker/import, spawnText, parent/descendant A
8 test/scripts/test-group-report.test.ts:1002 F 10,000 Grandchild PID receipt Grandchild boot/handlers after parent readiness A
8 test/scripts/lint-status.test.ts:294 FF None; command 10,000 Lint phase PID receipt Preload/shim, lint orchestration, tool boot/handlers A
8 test/scripts/dev-tooling-safety.test.ts:838 CC event+timer 10,000 Probe eventually closes Probe/import, CLI/escaped descendant boot, TERM/cleanup A
8 test/scripts/plugin-npm-security-scan-runner.test.ts:232 CC event+timer 10,000 Security wrapper closes Scanner/descendant boot, readiness, cancellation/report A
8 test/scripts/run-additional-boundary-checks.test.ts:542 CC event+timer 10,000 Runner closes after repeated TERM runChecks and nested group cancellation/drain A
8 src/agents/sessions/settings-storage.test.ts:234 F 10,000; T=20,000 First writer ready Node/module boot and settings lock admission A
8 src/agents/sessions/settings-storage.test.ts:422 F 10,000 First writer entered Node/module boot and first-write lock A
8 src/agents/sessions/settings-storage.test.ts:429 F 10,000 Contender hit lock Second Node/module boot and EEXIST observation A
Per-file rollup (114 files)
file A B C N
src/agents/agent-bundle-mcp-runtime.test.ts fixed here 11 6 13 0
src/gateway/worker-environments/workspace-accepted-sync.test.ts 8 3 0 0
test/scripts/managed-child-process.test.ts 6 9 1 0
src/agents/prepared-model-catalog-worker.pool.integration.test.ts 6 0 0 0
test/scripts/tsdown-build.test.ts 5 10 0 0
src/gateway/worker-environments/workspace-mutation-remote-script.test.ts 5 1 2 0
src/process/supervisor/adapters/child.service-lifecycle.test.ts 4 10 5 0
test/scripts/resolve-openclaw-package-candidate.test.ts 4 11 0 0
test/scripts/test-group-report.test.ts 4 3 0 0
test/scripts/run-node-lifecycle.test.ts 3 4 0 0
src/agents/sessions/settings-storage.test.ts 3 3 0 0
test/scripts/check-extension-package-tsc-boundary.test.ts 3 3 0 0
test/scripts/check-deadcode-unused-files.test.ts 3 0 2 0
test/scripts/plugin-npm-security-scan-runner.test.ts 3 2 0 0
test/scripts/run-additional-boundary-checks.test.ts 3 1 0 0
src/gateway/worker-environments/workspace-sync-manifest.test.ts 3 0 0 0
test/scripts/docker-all-harness.test.ts 2 20 0 0
test/helpers/openclaw-test-instance.test.ts 2 6 2 0
test/scripts/vitest-worker-artifacts.ci.test.ts 2 6 0 0
test/scripts/profile-extension-memory.test.ts 2 5 0 0
src/agents/mcp-stdio-transport.process.test.ts fixed here 2 2 0 0
test/scripts/full-release-validation-state.test.ts 2 2 0 0
test/e2e/qa-lab/runtime/gateway-ssh-tunnels.test.ts 2 1 0 0
test/scripts/direct-run-entrypoints.test.ts 2 1 0 0
src/gateway/worker-environments/workspace-sync-tunnel.test.ts 2 0 0 0
test/scripts/test-extension.test.ts 2 0 0 0
test/scripts/test-live-shard.test.ts 2 0 0 0
src/process/supervisor/supervisor.no-detach.real.test.ts 1 5 2 0
test/scripts/dev-tooling-safety.test.ts 1 7 0 0
src/agents/prepared-model-catalog-worker.integration.test.ts 1 6 0 0
src/process/terminal-pty-bun.test.ts 1 5 0 1
test/helpers/process-wait.test.ts 1 4 1 1
src/process/supervisor/supervisor.anchored-shell.real.test.ts 1 2 2 0
test/scripts/nested-retention.test-support.ts 1 3 0 0
test/scripts/run-tsgo.test.ts 1 2 1 0
test/scripts/run-vitest-bounded.test.ts 1 3 0 0
src/agents/harness/acp-native-execution.process.test.ts 1 2 0 0
src/infra/update-candidate-state.cleanup.test.ts 1 0 2 0
src/process/exec.windows.integration.test.ts 1 2 0 0
src/process/supervisor/supervisor.forced-settlement.real.test.ts 1 2 0 0
src/process/supervisor/supervisor.readiness.real.test.ts 1 2 0 0
test/scripts/vitest-e2e-global-setup.test.ts 1 2 0 0
src/agents/agent-bundle-mcp-reload.test.ts fixed here 1 1 0 0
src/agents/prepared-model-catalog-worker.scope.integration.test.ts 1 1 0 0
src/agents/sessions/exec.real.test.ts 1 1 0 0
src/agents/worktrees/filesystem-native.test.ts 1 1 0 0
src/agents/worktrees/service.provisioned.test.ts 1 1 0 0
src/commands/agent-exec.construction.test.ts 1 1 0 0
src/tui/tui-pty-local.e2e.test.ts 1 0 1 0
test/scripts/check-changed-cancellation.test.ts 1 1 0 0
test/scripts/tsgo-core-test-shards.test.ts 1 1 0 0
src/cli/cli-process-child.test-helpers.test.ts 1 0 0 0
src/process/spawn-broker/handoff-crash.test.ts 1 0 0 0
src/process/spawn-broker/restart.test.ts 1 0 0 0
test/scripts/kitchen-sink-rpc-walk.test.ts 1 0 0 0
test/scripts/lint-status.test.ts 1 0 0 0
test/scripts/managed-child-process.windows.test.ts 1 0 0 0
test/scripts/prepare-extension-package-boundary-artifacts.test.ts 0 8 0 0
test/scripts/run-oxlint.test.ts 0 5 2 0
src/gateway/gateway-cron-scheduler.live.test.ts 0 5 1 0
src/process/exec.test.ts 0 3 3 0
test/scripts/plugin-gateway-gauntlet.test.ts 0 4 1 0
test/scripts/vitest-worker-artifacts.test.ts 0 5 0 0
src/cli/update-cli/update-command-retained-custody.test.ts 0 4 0 0
test/helpers/run-node-script.test.ts 0 1 3 0
test/scripts/vitest-fork-shutdown.test.ts 0 4 0 0
test/scripts/vitest-pair-benchmark.test.ts 0 0 4 0
test/scripts/vitest-worker-shutdown.test.ts 0 4 0 0
test/scripts/write-cli-startup-metadata.test.ts 0 2 2 0
src/agents/sessions/bash-output-spill.test-support.ts 0 3 0 0
src/infra/update-managed-service-handoff.test-support.ts 0 1 2 0
src/process/exec-spawn.test.ts 0 2 0 1
src/process/terminal-pty-node.test.ts 0 2 1 0
test/scripts/control-ui-i18n.test.ts 0 3 0 0
test/scripts/crabbox-wrapper.test.ts 0 3 0 0
test/scripts/dist-artifact-ownership.test.ts 0 3 0 0
src/agents/provider-local-service.test.ts 0 2 0 0
src/commands/agent-exec-plugin.e2e.test.ts 0 2 0 0
src/config/io.write-effects.windows.test.ts 0 2 0 0
src/gateway/server.sessions.create.projects.test.ts 0 2 0 0
src/infra/sqlite-worker-preparation.test.ts 0 2 0 0
src/infra/update-managed-service-handoff-boundary.test-support.ts 0 2 0 0
src/infra/update-managed-service-handoff-settlement.test.ts 0 1 1 0
src/process/terminal-pty.test.ts 0 2 0 0
src/state/openclaw-agent-worker-store.test-support.ts 0 2 0 0
test/scripts/bench-cli-startup.test.ts 0 2 0 0
test/scripts/vitest-report-fixture.ts 0 2 0 0
src/agents/embedded-agent-subscribe.raw-stream.test.ts 0 1 0 0
src/agents/mcp-stdio-client.cleanup.real.test.ts 0 1 0 0
src/agents/prepared-model-catalog-worker.custody.integration.test.ts 0 1 0 0
src/agents/prepared-model-catalog-worker.retirement.integration.test.ts 0 1 0 0
src/agents/provider-local-service.shutdown.test.ts 0 1 0 0
src/agents/worktrees/service.hooks.test.ts 0 1 0 0
src/cli/update-cli/update-command-candidate-authority.process.test.ts 0 1 0 0
src/cli/update-cli/update-command-executor-legacy.test.ts 0 1 0 0
src/cli/update-cli/update-command-fresh-doctor-authority.test.ts 0 1 0 0
src/infra/tailscale.test.ts 0 1 0 0
src/infra/update-candidate-state.budget.test.ts 0 0 1 0
src/infra/update-managed-service-handoff-process.test-support.ts 0 0 1 0
src/infra/update-managed-service-triage.test-support.ts 0 1 0 0
src/process/exec-termination.test.ts 0 1 0 0
src/process/spawn-broker/host.test.ts 0 1 0 0
test/e2e/qa-lab/runtime/gateway-heartbeat-session-routing.e2e.test.ts 0 1 0 0
test/e2e/qa-lab/runtime/gateway-tls-pinning.ts 0 1 0 0
test/scripts/ci-platform-checkout.test.ts 0 1 0 0
test/scripts/docker-all-scheduler.test.ts 0 1 0 0
test/scripts/fixture-lifetime.test.ts 0 1 0 0
test/scripts/prepublish-plugin-registry-shell.test.ts 0 1 0 0
test/scripts/run-vitest-profile.test.ts 0 1 0 0
test/scripts/run-vitest-progress.test.ts 0 1 0 0
test/scripts/run-with-env.test.ts 0 1 0 0
test/scripts/tsgo-shard-cancellation.test.ts 0 1 0 0
test/scripts/upgrade-survivor-missing-plugin-proxy.test.ts 0 1 0 0
test/scripts/upgrade-survivor-registry-identity.test.ts 0 1 0 0

Class B/C/N site rows are in the first PR comment (body size limit).

Evidence

All runs on Blacksmith Testbox through node scripts/crabbox-wrapper.mjs (no local Vitest), at the committed bytes.

Deterministic fault probes (temporary, reverted byte-exactly; not in the diff). A 2.5 s delay injected into the fixture's healthy path, applied identically to the original and fixed bytes:

Probe Original bytes Fixed bytes
2.5 s before the fixture attaches its stdin handler (old line 1001) fails: Timed out waiting for recv tools/list in …/server.log; saw "" passes
2.5 s gate after initialize, before tools/list/notification handling (old lines 3996, 4068) 2 fail: Timed out waiting for tools/list cursor in …/server-1.log; saw "recv initialize\n" and Timed out waiting for notify tools/list_changed in …/invalidating-server.log; saw "recv initialize\n" 2 pass

These are the exact messages from the #161691 loaded-host failure.

Delayed-receipt probe (ClawSweeper P2 on the first head): every receipt write delayed 300 ms with the fixture otherwise unchanged. The first head (0f7a28d9081e) failed four gated cases, including the 50 ms catalog-timeout case (Timed out waiting for recv tools/list … from the settlement gate); the current head passes all twelve gated cases at both 300 ms and 1,000 ms.

Forced-abort probe: the concurrent-catalog test temporarily waited for a receipt that never arrives, under a 1,000 ms test timeout, with a marker as the first statement of its finally. Result: Test timed out in 1000ms, cleanup marker present, all 3 fixture children extinct. So the timer-free waits still let body cleanup run on timeout.

Flake-triage proof bar (docs/help/testing/writing-tests.md):

  • 20/20 clean standalone runs (CI=1 pnpm test <file> --maxWorkers=1) of each touched test file: agent-bundle-mcp-runtime.test.ts (27–32 s per run on the current head), agent-bundle-mcp-reload.test.ts (22–24 s), mcp-stdio-transport.process.test.ts (14–16 s).
  • Original CI shard agentic-agents-core-runtime (320 listed files; group rebuilt from createNodeTestShardBundles(), run through scripts/ci-run-node-test-shard.mts): 3/3 clean replays on the current head (139 s, 104 s, 128 s) and 3/3 on the first head (113 s, 118 s, 99 s), each 207 files passed, 1 skipped, 3,152 tests, with per-file counts runtime 67, reload 33, transport 2. The 112 unit-fast files in the list are excluded by the scoped agents-core config and run in the core-unit-fast-* shards, so Vitest executes 208 here.
  • Owner siblings: all 75 src/agents/*mcp*.test.ts files pass.
  • Types: pnpm tsgo:core:test --changed-paths-json … (agents-root) passes. oxfmt --check, oxlint, git diff --check clean on all five files.
  • Review: Codex autoreview, P1 threshold: scoped-clean on the first head and on the receipt-ordering delta.

Cost (pnpm test <file> --maxWorkers=1 wall on Testbox, single before/after run, then the 20-run range): runtime 38.1 s → 30.0 s (20-run 28–29 s); reload 25.9 s → 24.3 s (22–24 s); transport 15.8 s → 15.9 s (14–16 s). No new test files. CI seconds will follow once the PR run exists.

CI on this head: 91 checks pass. Two failures are inherited from main through the merge ref and touch no file in this PR: test/scripts/type-suppression-inventory.test.ts (a suppression added by #159873, inventoried on main in bd1138797711) and test/scripts/pr-wrappers.test.ts:444 (a stale expectation after #162249 stopped expiring ClawSweeper reviews, fixed on main in 3988e4ac66bd). The branch was not refreshed just to re-run CI.

Gaps: behavioral proof ran on Linux. The macOS socket-path choice (short os.tmpdir() dir, under the 104-byte limit) and the Windows named-pipe branch were source-inspected, not executed; the transport process test is already skipped on Windows. No CI sighting exists to replay: the only sighting was the loaded-host run during #161691.

Release-note context: test-only change, no user-visible behavior change.

…outlasts polling deadlines

The MCP runtime, reload, and stdio-transport tests observed product-spawned
fixture children by polling their log and PID files against 2 s / 4 s
Date.now deadlines (local waitForFileText, waitForFileTextCount,
waitForPredicate, waitForChangedPid) or the 1 s expect.poll/vi.waitFor
defaults. The awaited work is healthy but heavy (Node child boot, MCP
initialize, tools/list), so a loaded host pushed it past the deadline:
during #161691 the unchanged runtime test failed four cases with "Timed
out waiting for tools/list cursor ..." and "Timed out waiting for notify
tools/list_changed ...".

Add test/helpers/fixture-receipts.ts, a test-owned Unix socket (named pipe
on Windows) that generated fixtures report newline-delimited JSON receipts
through. It has no timer: earlier receipts count, and an unreached receipt
fails at the Vitest test timeout. Fixtures keep appending to their log file
first, so post-hoc and negative log assertions are unchanged, and unref the
receipt socket so observation never keeps a product-owned child alive.

Convert each wait to the signal that owns it: receipts bound to the test
signal with withinTest, gated by awaitGateBeforeSettlement where the
concurrent catalog or call could settle first; direct reads where an awaited
operation already guarantees the state (PID and log writes precede the
fixture's replies; dispose and disposeSession join runtime cleanup, and
closeOwnedStdioProcess joins group extinction); a probe "started" receipt
instead of the polled marker file; and the transport leader's descendant
PID as a JSON-RPC notification on the stdout the test owns. The
spontaneous-exit transport case still asserts extinction without calling
close(), which would start the cleanup it proves. Eleven in-memory runtime
states with no exposed completion signal keep one documented signal-bound
check with no wall-clock deadline. No test timeout, product timeout,
assertion meaning, or product source changes.

Proof on Blacksmith Testbox: 20/20 standalone runs of each touched test
file, 3/3 replays of the original agentic-agents-core-runtime shard, the 75
MCP sibling test files, and the targeted tsgo lane. Fault probes that delay
fixture startup 2.5 s fail the original bytes with the old messages and
pass the fixed bytes; a forced-abort probe shows a hung receipt wait still
reaches finally cleanup with every child reaped.
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Audit continued: class B, C, and N call sites (331)

Same audit as the PR body (lines refer to 0016b17df26c; classes as in #161691). Rows marked fixed here are converted by this PR.

Show 331 rows
# file:line helper deadline (ms) awaited healthy-path work class
9 src/agents/sessions/exec.real.test.ts:77 VW 500; T=12,000 Parent/descendant dead Timeout already resolved; OS extinction remains B
9 test/helpers/openclaw-test-instance.test.ts:1696 IP/EP 500 Draining descendant dead Released inherited stderr writer exits B
9 test/helpers/openclaw-test-instance.test.ts:1870 D 500 Resistant descendant dead Rescue SIGKILL; leader already joined B
10 src/agents/agent-bundle-mcp-reload.test.ts:140 fixed here EP 1,000 Held tools/call entered Existing healthy MCP child handles request B
10 src/agents/embedded-agent-subscribe.raw-stream.test.ts:39 VW 1,000 JSONL payload appears In-process asynchronous safe append B
10 src/agents/mcp-stdio-client.cleanup.real.test.ts:210 VW 1,000 Anchor held-exit PID Existing relay/anchor stop and exit interception B
10 src/agents/mcp-stdio-transport.process.test.ts:44 fixed here VW 1,000; T=10,000 Descendant dead Transport onclose fired; group reap remains B
10 src/agents/mcp-stdio-transport.process.test.ts:82 fixed here VW 1,000; T=10,000 Descendant dead transport.close returned; extinction check B
10 src/agents/prepared-model-catalog-worker.custody.integration.test.ts:123 EP 1,000 Capture root removed Worker terminated; capture deletion remains B
10 src/agents/sessions/bash-output-spill.test-support.ts:301 VW 1,000; support Producer group absent Runner and PID exit already observed B
10 src/agents/worktrees/filesystem-native.test.ts:163 EP 1,000 Cancellation marker Existing child handles TERM and writes B
10 src/process/exec.test.ts:782 Fixed retry ≤1,000 nominal, 40×25; T=5,000 TERM receipt Running descendant handles TERM/write B
10 src/process/spawn-broker/host.test.ts:459 Inline running loop 1,000; T=15,000 Detached descendant dead Broker closed; remaining group reap B
10 src/process/supervisor/supervisor.no-detach.real.test.ts:142 EP 1,000; afterEach Exact identities dead Rescue SIGKILL/reap B
10 src/process/supervisor/supervisor.no-detach.real.test.ts:278 EP 1,000; T=20,000 Idle-host leaf dead Host exit observed; residual leaf settlement B
10 src/process/supervisor/supervisor.readiness.real.test.ts:76 EP 1,000; T=15,000 Root absent from /proc Root wrote output/identity, exits23 B
10 src/process/supervisor/supervisor.readiness.real.test.ts:95 EP 1,000; T=15,000 Input-hash receipt Released reader consumes/hashes 1 MiB B
10 src/gateway/worker-environments/workspace-accepted-sync.test.ts:293 CC event+timer 1,000 Cleanup controller closes Gate release attempted; TERM remaining child B
10 src/gateway/worker-environments/workspace-accepted-sync.test.ts:638 CC event+timer 1,000 Cleanup apply child closes Gate release attempted; TERM child B
10 test/scripts/control-ui-i18n.test.ts:822 P 1,000 Existing grandchild receipt runProcess timeout/grace already awaited B
10 test/scripts/vitest-fork-shutdown.test.ts:312 F 1,000 term-received Invocation already settled; receipt read B
11 src/agents/agent-bundle-mcp-runtime.test.ts:891 fixed here FT 2,000 Notification during tools/call Existing MCP child call/notification dispatch B
11 src/agents/agent-bundle-mcp-runtime.test.ts:1440 fixed here FT 2,000 Released list-change notice Existing child sees release and notifies B
11 src/agents/agent-bundle-mcp-runtime.test.ts:1736 fixed here Pred 2,000 Method-entry log Materialized runtime dispatches to existing child B
11 src/agents/agent-bundle-mcp-runtime.test.ts:1746 fixed here Pred 2,000 Three cancellation logs Existing child receives cancellations B
11 src/agents/agent-bundle-mcp-runtime.test.ts:2224 fixed here Pred 2,000 Child exits/releases SQLite lock Last lease retirement and transport close B
11 src/agents/agent-bundle-mcp-runtime.test.ts:2340 fixed here Pred 2,000 Child exits after disposal disposeSession returned; extinction remains B
11 src/agents/provider-local-service.test.ts:632 PE 2,000 Old service descendant dead Replacement acquired; old group cleanup B
11 src/agents/provider-local-service.test.ts:755 PE 2,000 Service dead after host exit Host closed; service cleanup/reap B
11 src/agents/provider-local-service.shutdown.test.ts:39 PE 2,000 Cleanup-owned services dead SIGKILL and OS extinction B
11 src/process/exec-spawn.test.ts:211 PE 2,000 Manually killed descendant dead SIGKILL and OS exit B
11 src/process/exec-spawn.test.ts:218 EP 2,000 Process group absent Zombie/adopted-child reaping B
11 src/process/exec-termination.test.ts:50 PE 2,000; support Rescue descendant dead Kill root/descendant, root close, descendant reap B
11 src/process/exec.test.ts:147 PE 2,000 Rescue descendant dead SIGKILL and OS exit B
11 src/process/exec.test.ts:830 PE 2,000; T=5,000 Escaped descendant dead Root/group kill, command settles, residual reap B
11 src/process/terminal-pty-bun.test.ts:127 VW 2,000 Foreground child dead Ctrl-C/status already observed; child reap B
11 src/process/terminal-pty-bun.test.ts:157 VW 2,000 Slave-holding child dead Root exited; PTY descendant cleanup B
11 src/process/terminal-pty-bun.test.ts:176 VW 2,000 Paused shell writes started Ready shell consumes go, writes progress B
11 src/process/terminal-pty-bun.test.ts:205 VW 2,000 Paused shell written marker Ready shell writes tail and marker B
11 src/process/terminal-pty-bun.test.ts:230 VW 2,000 Backlogged shell started Ready shell consumes go/writes progress B
11 src/process/terminal-pty-node.test.ts:196 PE 2,000 Shell dead after owner disconnect Worker disconnect/exit, residual PTY teardown B
11 src/process/terminal-pty-node.test.ts:197 PE 2,000 PTY background child dead Owner-disconnect descendant cleanup B
11 src/process/terminal-pty.test.ts:448 PE 2,000 Interactive shell dead PTY kill and OS exit B
11 src/process/terminal-pty.test.ts:449 PE 2,000 Separate background group dead Session-wide teardown/reap B
11 test/helpers/process-wait.test.ts:150 D 2,000 Grandchild dead despite delayed wake SIGKILL; deliberate 2,100 ms worker stall B
11 test/helpers/process-wait.test.ts:170 D 2,000 Fallback controller dead SIGKILL/reap B
11 test/helpers/process-wait.test.ts:175 D 2,000 Fallback grandchild dead killPidIfAlive/reap B
11 test/helpers/run-node-script.test.ts:122 outer D 2,000 Released escaped leaf dead Existing leaf sees release, copies receipt, exits B
11 test/scripts/check-changed-cancellation.test.ts:173 D 2,000; T=20,000 Recorded PID set dead SIGKILL existing wrapper/descendants B
11 test/scripts/check-extension-package-tsc-boundary.test.ts:472 D 2,000 Timed-out descendant dead Step rejection/group cleanup already awaited B
11 test/scripts/check-extension-package-tsc-boundary.test.ts:565 D 2,000 Aborted descendant dead Sibling-failure command already rejected B
11 test/scripts/check-extension-package-tsc-boundary.test.ts:635 D 2,000 Descendant dead after runner Runner close already awaited B
11 test/scripts/control-ui-i18n.test.ts:915 CC event+timer 2,000 Runner closes with TERM Ready runner forwards TERM, joins groups/grace B
11 test/scripts/dist-artifact-ownership.test.ts:167 D 2,000; cleanup Checkpoint PID set dead Existing outcomes joined; release barriers/reap B
11 test/scripts/dist-artifact-ownership.test.ts:977 D 2,000; T=30,000 Orphan compiler dead Released fixture body completes/reaps B
11 test/scripts/dist-artifact-ownership.test.ts:1021 D 2,000; T=30,000 Detached compiler dead Released fixture completes/reaps B
11 test/scripts/fixture-lifetime.test.ts:364 D 2,000 Rescue child dead Prior joins attempted; SIGKILL/reap B
11 test/scripts/managed-child-process.test.ts:89 D 2,000; cleanup wrapper Owned fixture PID dead Group/direct SIGKILL/reap B
11 test/scripts/managed-child-process.test.ts:1342 D 2,000 Rescue leader dead Outcome attempted; explicit SIGKILL B
11 test/scripts/managed-child-process.test.ts:1347 D 2,000 Rescue descendant dead Explicit SIGKILL/reap B
11 test/scripts/managed-child-process.test.ts:1774 D 2,000 Cleanup controller dead Close awaited/failed; conditional SIGKILL B
11 test/scripts/managed-child-process.test.ts:1945 D 2,000; T=25,000 Escaped leaf exits Outcome/pipes drained; final leaf exit remains B
11 test/scripts/managed-child-process.test.ts:1973 D 2,000; T=25,000 Rescue escaped leaf dead Outcome awaited; SIGKILL/reap B
11 test/scripts/managed-child-process.test.ts:1979 D 2,000; T=25,000 Rescue managed parent dead Conditional SIGKILL/reap B
11 test/scripts/managed-child-process.test.ts:2346 D 2,000 Lingering descendant dead Outcome awaited; rescue SIGKILL B
11 test/scripts/plugin-npm-security-scan-runner.test.ts:262 D 2,000 Scanner cleanup death Wrapper closed; optional group SIGKILL B
11 test/scripts/plugin-npm-security-scan-runner.test.ts:265 D 2,000 Scanner descendant dead Wrapper/scanner cleanup; residual reap B
11 test/scripts/prepare-extension-package-boundary-artifacts.test.ts:152 D 2,000 Aborted sibling descendant dead Rejection/grace/group cleanup awaited B
11 test/scripts/prepare-extension-package-boundary-artifacts.test.ts:157 D 2,000 Emergency descendant dead SIGKILL/reap B
11 test/scripts/prepare-extension-package-boundary-artifacts.test.ts:287 D 2,000 Drain-rescue descendant dead Outcome awaited; SIGKILL/reap B
11 test/scripts/prepare-extension-package-boundary-artifacts.test.ts:387 D 2,000 Timeout-rescue descendant dead Outcome awaited; SIGKILL/reap B
11 test/scripts/prepare-extension-package-boundary-artifacts.test.ts:441 D 2,000 Wrapper-signal descendant dead Runner closed; SIGKILL/reap B
11 test/scripts/prepare-extension-package-boundary-artifacts.test.ts:483 D 2,000 Unjoined-step descendant dead Cleanup-failure outcome observed; reap B
11 test/scripts/prepare-extension-package-boundary-artifacts.test.ts:539 D 2,000 Canceled-zero child dead Outcome awaited; SIGKILL/reap B
11 test/scripts/resolve-openclaw-package-candidate.test.ts:533 D 2,000 Timeout descendant dead releaseAndWait settled; death visibility B
11 test/scripts/resolve-openclaw-package-candidate.test.ts:541 D 2,000 Rescue descendant dead Runner complete; rescue kill B
11 test/scripts/resolve-openclaw-package-candidate.test.ts:576 D 2,000 Graceful timeout child dead Runner/75 ms cleanup settled B
11 test/scripts/resolve-openclaw-package-candidate.test.ts:583 D 2,000 Rescue child dead Runner settled; rescue kill B
11 test/scripts/resolve-openclaw-package-candidate.test.ts:627 D 2,000 Clean-timeout descendant dead Runner/25 ms cleanup awaited B
11 test/scripts/resolve-openclaw-package-candidate.test.ts:634 D 2,000 Rescue descendant dead Runner settled; rescue kill B
11 test/scripts/resolve-openclaw-package-candidate.test.ts:684 D 2,000 External-signal descendant dead Runner close/group cleanup awaited B
11 test/scripts/resolve-openclaw-package-candidate.test.ts:696 D 2,000 Rescue runner dead Direct SIGKILL/reap B
11 test/scripts/resolve-openclaw-package-candidate.test.ts:703 D 2,000 Final descendant dead Runner cleanup and rescue kill B
11 test/scripts/run-additional-boundary-checks.test.ts:534 P 2,000 Complete child PID Parent wrote PID before preceding ready receipt B
11 test/scripts/run-oxlint.test.ts:140 D 2,000 Grandchild dead after shard runShard cleanup completed B
11 test/scripts/run-oxlint.test.ts:149 D 2,000 Rescue grandchild dead Completion awaited; SIGKILL/reap B
11 test/scripts/run-oxlint.test.ts:591 D 2,000 Watchdog-case rescue death Completion released/awaited; SIGKILL B
11 test/scripts/run-tsgo.test.ts:481 D 2,000; T=30,000 Compiler/descendant cleanup death Sync wrapper finished; rescue SIGKILL B
11 test/scripts/run-tsgo.test.ts:634 D 2,000; T=20,000 Compiler after rescue reap Wrapper cleanup and explicit compiler reap B
11 test/scripts/test-group-report.test.ts:1068 D 2,000 Cooperative grandchild dead releaseAndWait/grace/tree join completed B
11 test/scripts/test-group-report.test.ts:1075 D 2,000 Finally grandchild dead Outcome settled; rescue kill/reap B
11 test/scripts/tsdown-build.test.ts:1448 D 2,000; real elapsed offset Supervisor-rescue descendant dead Completion awaited; rescue SIGKILL B
11 test/scripts/tsdown-build.test.ts:1581 D 2,000 Surviving descendant cleaned Invocation/group cleanup settled B
11 test/scripts/tsdown-build.test.ts:1592 D 2,000 Rescue descendant dead Invocation settled; SIGKILL B
11 test/scripts/tsdown-build.test.ts:1713 IP/vi.waitUntil 2,000; native timer Parent dead after TERM Existing parent handler exits B
11 test/scripts/tsdown-build.test.ts:1726 D 2,000; real elapsed offset Watchdog-killed descendant dead Supervisor completion awaited B
11 test/scripts/tsdown-build.test.ts:1779 IP/vi.waitUntil 2,000; native timer Parent dead during grace Existing parent handler exits B
11 test/scripts/tsdown-build.test.ts:1794 D 2,000; real elapsed offset Released descendant dead Release and supervisor completion awaited B
11 test/scripts/tsdown-build.test.ts:1851 D 2,000 Descendant after runner TERM Runner/group cleanup joined B
11 test/scripts/tsdown-build.test.ts:1860 D 2,000 Rescue descendant dead Runner closed; SIGKILL B
11 test/scripts/tsgo-shard-cancellation.test.ts:116 D 2,000 Cleanup compiler dead Command complete; residual SIGKILL/reap B
12 test/scripts/ci-platform-checkout.test.ts:941 D 4,000; T=55,000 Evidence PID set dead Outer completion/groupJoined and assertions passed B
13 src/process/exec.windows.integration.test.ts:66 VW 5,000; T=90,000 Exact Windows descendant dead Inner timeout/outer failure complete; Job cleanup B
13 src/process/exec.windows.integration.test.ts:78 VW 5,000; T=90,000 Rescue exact descendant dead SIGKILL and Windows settlement B
13 src/process/supervisor/adapters/child.service-lifecycle.test.ts:69 Alive 5,000; support Released descendant dead Existing child sees release, exits; join parallel B
13 src/process/supervisor/adapters/child.service-lifecycle.test.ts:96 Alive 5,000; afterEach Tracked PIDs dead Rescue SIGKILL/reap B
13 src/process/supervisor/adapters/child.service-lifecycle.test.ts:150 Alive 5,000 Root after adapter.kill/wait Relay cancellation settlement B
13 src/process/supervisor/adapters/child.service-lifecycle.test.ts:191 Alive 5,000 Timed-out root/descendant dead Result delivered; group settlement remains B
13 src/process/supervisor/adapters/child.service-lifecycle.test.ts:246 P 5,000; real delay/Date TERM receipt PID Existing command receives TERM/writes B
13 src/process/supervisor/adapters/child.service-lifecycle.test.ts:247 Alive 5,000 Construction-failure command dead TERM receipt written; process exit B
13 src/process/supervisor/adapters/child.service-lifecycle.test.ts:594 Alive 5,000 Gracefully canceled tree dead 1,500 ms TERM output/grace, run.wait returned B
13 src/process/supervisor/adapters/child.service-lifecycle.test.ts:644 Alive 5,000 Root exits before repeated KILL Existing root TERM handler exits; pipe holder remains B
13 src/process/supervisor/adapters/child.service-lifecycle.test.ts:747 Alive 5,000 Escaped rescue descendant dead Explicit SIGKILL after cleanup uncertainty B
13 src/process/supervisor/adapters/child.service-lifecycle.test.ts:1009 Alive 5,000 Tree self-cleans after host exit Host closes relay lineage; independent cleanup B
13 src/process/supervisor/supervisor.anchored-shell.real.test.ts:27 D 5,000; afterEach Tracked descendants dead Rescue SIGKILL/reap B
13 src/process/supervisor/supervisor.anchored-shell.real.test.ts:252 D 5,000 Finally descendant dead Release, optional SIGKILL, exit B
13 src/process/supervisor/supervisor.forced-settlement.real.test.ts:33 D 5,000; afterEach Rescued root/descendant dead SIGKILL/reap B
13 src/agents/sessions/settings-storage.test.ts:208 Inline release loop 5,000; T=20,000 Reader continue marker Parent observes locked writer and starts read B
13 src/agents/sessions/settings-storage.test.ts:260 commitDuringObservation 5,000; T=20,000 Commit during existsSync Release writer; commit/rename/fsync B
13 src/agents/sessions/settings-storage.test.ts:267 commitDuringObservation 5,000; T=20,000 Commit during lstatSync Same one-shot writer commit sequence B
13 src/agents/sessions/bash-output-spill.test-support.ts:48 Producer interval 5,000 fuse; child 20,000 Release before final output Prefix/spill handling and runner release B
13 src/agents/sessions/bash-output-spill.test-support.ts:300 PE 5,000; support Producer PID dead Case runner completed; OS extinction remains B
13 src/agents/worktrees/service.provisioned.test.ts:476 VW 5,000 Membership child dead Abort propagates through command cleanup B
13 src/cli/update-cli/update-command-executor-legacy.test.ts:313 D 5,000 Legacy leaf dead Release, killGroup, controller close already awaited B
13 src/cli/update-cli/update-command-retained-custody.test.ts:159 D 5,000; cleanup Retained executor parent dead pending settled/aborted; final reap B
13 src/cli/update-cli/update-command-retained-custody.test.ts:175 D 5,000; cleanup Native controller dead Parent outcome and cooperative release B
13 src/cli/update-cli/update-command-retained-custody.test.ts:176 D 5,000; cleanup Native gate dead Parent/controller cleanup and final gate reap B
13 src/commands/agent-exec-plugin.e2e.test.ts:259 D 5,000 Agent CLI transport PIDs dead CLI timeout result already received B
13 src/commands/agent-exec-plugin.e2e.test.ts:265 D 5,000 Final fixture PIDs dead Stop marker released existing children B
13 src/commands/agent-exec.construction.test.ts:129 D 5,000 Construction command dead Managed timeout/result already awaited; real timers restored B
13 src/infra/update-managed-service-handoff-boundary.test-support.ts:473 F 5,000 Partial activation write marker Existing updater release, partial stdout callback B
13 src/infra/update-managed-service-handoff-settlement.test.ts:148 D 5,000 Detached updater exits Socket finish, tiny JSON, disconnect/exit B
13 src/state/openclaw-agent-worker-store.test-support.ts:71 F 5,000; worker support Code-preparation release Main observes marker/checks SQLite and releases B
13 src/state/openclaw-agent-worker-store.test-support.ts:86 F 5,000; worker support Command-preparation release Main checks rows/authority and releases B
13 test/helpers/openclaw-test-instance.test.ts:111 D 5,000; afterEach Inherited writer dead Operations/gates/stopGateway joined; writer exit B
13 test/helpers/openclaw-test-instance.test.ts:807 D 5,000 CLI leader exits, writer held HTTP readiness passed; leader exits0 B
13 test/helpers/openclaw-test-instance.test.ts:866 D 5,000 CLI leader exits, stderr held HTTP readiness passed; leader exits1 B
13 test/helpers/openclaw-test-instance.test.ts:880 D 5,000 Stderr writer dead Gate released and command settled B
13 test/scripts/dev-tooling-safety.test.ts:803 D 5,000 Direct-prompt descendant dead Result settled; rescue SIGKILL B
13 test/scripts/dev-tooling-safety.test.ts:871 CC event+timer 5,000 Cleanup probe closes TERM handling and cleanup B
13 test/scripts/dev-tooling-safety.test.ts:909 D 5,000 Escaped fixture PIDs dead Journal read and rescue kills B
13 test/scripts/dev-tooling-safety.test.ts:971 IP/local condition 5,000 Prompt descendant dead Probe exit already awaited B
13 test/scripts/dev-tooling-safety.test.ts:1080 IP/local condition 5,000 Spawned leader exists OS creation, not Node readiness B
13 test/scripts/dev-tooling-safety.test.ts:1098 IP/local condition 5,000 Descendant after stop stopGatewayPromptChild returned true B
13 test/scripts/dev-tooling-safety.test.ts:1178 IP/local condition 5,000 Late-attached descendant dead Runner exit already awaited B
13 test/scripts/direct-run-entrypoints.test.ts:940 D 5,000 Recovery-owned PIDs dead Command settled; optional rescue kill B
13 test/scripts/docker-all-harness.test.ts:234 D 5,000; cleanup wrapper Group leader dead Direct group SIGKILL B
13 test/scripts/docker-all-harness.test.ts:307 D 5,000; cleanup wrapper Captured owned PIDs dead Scheduler exit/group cleanup joined B
13 test/scripts/docker-all-harness.test.ts:584 F 5,000; T=30,000 Exit-first lane .exit Ready lane handles USR1/exits B
13 test/scripts/docker-all-harness.test.ts:589 F 5,000; T=30,000 Exit-first lane .close Existing lane exits/streams close B
13 test/scripts/docker-all-harness.test.ts:596 F 5,000; T=30,000 Signal-first lane .exit Scheduler forwards termination B
13 test/scripts/docker-all-harness.test.ts:732 F 5,000; T=30,000 Lane .close, descendant held Ready lane handles USR1/closes B
13 test/scripts/docker-all-harness.test.ts:741 F 5,000; T=30,000 Lane .exit after signal Existing lane terminates B
13 test/scripts/docker-all-harness.test.ts:851 F 5,000; T=30,000 Staggered lane .close Existing lane handles USR1/closes B
13 test/scripts/docker-all-harness.test.ts:1891 F 5,000; T=30,000 Command checkpoint Child close, next-turn snapshot/write B
13 test/scripts/docker-all-harness.test.ts:1905 F 5,000; T=30,000 Sibling .close receipts Admitted commands finish/close B
13 test/scripts/docker-all-harness.test.ts:1921 F 5,000; T=30,000 Scheduler TERM receipt Existing signal handler writes B
13 test/scripts/docker-all-harness.test.ts:1931 F 5,000; T=30,000 Numbered TERM checkpoint Signal and next-turn callbacks B
13 test/scripts/full-release-validation-state.test.ts:3206 CC event+timer 5,000 Collector cancels reuse API Ready collector aborts API/persists plan B
13 test/scripts/full-release-validation-state.test.ts:3309 CC event+timer 5,000 Collector cancellation handoff Ready collector serializes handoff/exits B
13 test/scripts/nested-retention.test-support.ts:268 F 5,000; T=80,000 Escaped writer after.json Outer complete; live writer appends receipt B
13 test/scripts/nested-retention.test-support.ts:334 D 5,000; T=80,000 Task spawners dead Census and group SIGKILL/reap B
13 test/scripts/nested-retention.test-support.ts:359 D 5,000; T=80,000 Remaining writer/leader PIDs dead Stop publication and group kill/reap B
13 test/scripts/profile-extension-memory.test.ts:95 P 5,000; cleanup Existing descendant PID valid Leader close joined; receipt read remains B
13 test/scripts/profile-extension-memory.test.ts:104 D 5,000; cleanup Descendant dead Leader closed; rescue kill/reap B
13 test/scripts/profile-extension-memory.test.ts:892 P 5,000 Ordinary-case descendant PID runCase complete; PID preceded ready/cleanup B
13 test/scripts/profile-extension-memory.test.ts:1121 D 5,000 Timed-out descendant dead runCase timeout/grace already awaited B
13 test/scripts/profile-extension-memory.test.ts:1192 D 5,000 Parent-signal descendant dead Runner cleanup/close already awaited B
13 test/scripts/run-node-lifecycle.test.ts:213 P 5,000; command 10,000 Original launcher PID Respawned child ready; prior launcher write B
13 test/scripts/run-node-lifecycle.test.ts:330 D 5,000 Role PIDs dead Release and command already awaited B
13 test/scripts/run-node-lifecycle.test.ts:410 P 5,000 Wrapper PID Child ready; implementation wrote wrapper PID earlier B
13 test/scripts/run-node-lifecycle.test.ts:423 D 5,000 Resistant child cleanup death Optional group SIGKILL/reap B
13 test/scripts/run-vitest-bounded.test.ts:403 D 5,000; T=60,000 Build/reader PIDs dead CLI close already awaited B
13 test/scripts/run-vitest-bounded.test.ts:411 D 5,000; T=60,000 Builder cleanup death CLI stopped deferred already awaited B
13 test/scripts/run-with-env.test.ts:123 P 5,000; cleanup Existing command PID valid Wrapper shutdown/readiness already observed B
13 test/scripts/tsdown-build.test.ts:1847 CC event+timer 5,000 tsdown runner closes Group termination and runner exit B
13 test/scripts/tsgo-core-test-shards.test.ts:882 P 5,000 Descendant PID Next sync write in prior ready-message handler B
13 test/scripts/vitest-e2e-global-setup.test.ts:149 P 5,000 local / 15,000 CI Existing rescue receipt PID Group kill requested; existence already checked B
13 test/scripts/vitest-e2e-global-setup.test.ts:206 D 5,000 local / 15,000 CI Setup child/descendant dead TERM forwarded, runner close awaited B
13 test/scripts/vitest-fork-shutdown.test.ts:347 D 5,000 Fixture/shim/worker PIDs dead Resume, TERM, invocation outcome joined B
13 test/scripts/vitest-worker-artifacts.ci.test.ts:225 D 5,000 CI worker dead CI command completed/joined B
13 test/scripts/vitest-worker-artifacts.ci.test.ts:226 D 5,000 CI coordinator dead CI command completed/joined B
13 test/scripts/vitest-worker-artifacts.ci.test.ts:323 D 5,000 Remaining workers dead Release and running promise joined B
13 test/scripts/vitest-worker-artifacts.ci.test.ts:324 D 5,000 Remaining coordinators dead Release and running promise joined B
13 test/scripts/vitest-worker-shutdown.test.ts:353 D 5,000 First owner exits, sibling held Borrower kill, owner invocation disposal B
13 test/scripts/vitest-worker-shutdown.test.ts:442 D 5,000 Owner/borrower/compiler PIDs dead Release, abort, command completion joined B
13 test/scripts/plugin-gateway-gauntlet.test.ts:814 IP/local waitFor 5,000 Rescue grandchild dead Explicit SIGKILL/reap B
13 test/scripts/plugin-gateway-gauntlet.test.ts:999 IP/local waitFor 5,000 Grandchild after harness TERM Harness close; residual group settlement B
13 test/scripts/plugin-gateway-gauntlet.test.ts:1147 IP/local waitFor 5,000; reapPidFile Rescue target dead Direct/group SIGKILL/reap B
13 test/scripts/plugin-gateway-gauntlet.test.ts:1167 IP/local waitFor 5,000 Descendant after cleanup TERM Harness closed; residual group settlement B
14 test/scripts/resolve-openclaw-package-candidate.test.ts:680 CC event+timer 7,000 Runner closes after TERM Forward signal, grace/escalation, group cleanup B
14 test/scripts/resolve-openclaw-package-candidate.test.ts:688 CC event+timer 7,000 Cleanup runner closes TERM cleanup after failed readiness/assertion B
15 test/scripts/bench-cli-startup.test.ts:589 D 8,000 Benchmark leader dead Driver returned; force-kill owned group B
15 test/scripts/bench-cli-startup.test.ts:592 D 8,000 Benchmark descendant dead Group kill and leader-death wait complete B
15 test/scripts/crabbox-wrapper.test.ts:1193 IP/local condition 8,000; T=25,000 Escaped descendant exits Release, preserved-source read, exit B
15 test/scripts/crabbox-wrapper.test.ts:1340 IP/local condition 8,000; T=25,000 Rescued PID set dead Entrypoint closed; teardown SIGKILL B
16 src/gateway/gateway-cron-scheduler.live.test.ts:399 D 10,000; T=300,000 Replacement watcher dead PID published; script return/exit remains B
16 src/gateway/gateway-cron-scheduler.live.test.ts:414 secondPid D 10,000; T=300,000 Second payload dead PID published; console line/exit remains B
16 src/gateway/worker-environments/workspace-accepted-sync.test.ts:269 D 10,000 Receiver leader exits Descendant marker exists; shell exit remains B
16 src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:136 D 10,000 Receiver leader exits Descendant ready; shell exit remains B
16 test/e2e/qa-lab/runtime/gateway-ssh-tunnels.test.ts:253 D 10,000; T=180,000 Namespace descendant dead Producer kill joined; EOF cleanup/exit remains B
16 test/scripts/prepare-extension-package-boundary-artifacts.test.ts:428 CC event+timer 10,000 Prep runner closes Ready runner joins detached group/100 ms grace B
16 test/scripts/test-group-report.test.ts:1012 D 10,000 Grandchild after runner close Group teardown completed; final observation B
16 test/scripts/vitest-worker-shutdown.test.ts:320 FF None; outer 10,000, command 20,000 Cancellation/closed/idle/probe receipts Existing compiler/owner callbacks and next turns B
17 src/process/supervisor/supervisor.no-detach.real.test.ts:209 EP 12,000; T=30,000 Resistant leaf dead Retained non-detached escalation/reap B
17 test/scripts/managed-child-process.test.ts:524 CC event+timer 12,000; T=15,000 Launcher closes Startup, leaf readiness, TERM/escalation/join B
17 test/scripts/crabbox-wrapper.test.ts:1149 IP/local condition 12,000; T=25,000 Wrapper implementation exits Cancellation, artifact preservation, cleanup B
18 src/process/supervisor/supervisor.no-detach.real.test.ts:193 EP 15,000; T=30,000 Leaf identity Root, optional Worker, nested Node leaf boot B
18 src/process/supervisor/supervisor.no-detach.real.test.ts:274 EP 15,000; T=20,000 Idle-host leaf identity Host/import, root and leaf Node boots B
18 src/process/supervisor/supervisor.forced-settlement.real.test.ts:133 P 15,000; T=60,000 Escaped pipe-holder PID Root and detached descendant boot B
18 src/gateway/server.sessions.create.projects.test.ts:508 F 15,000 First setup started Admission, Git worktree, setup shell spawn B
18 src/gateway/server.sessions.create.projects.test.ts:532 F 15,000 Replacement setup started Cancellation/handoff, retry and shell spawn B
18 src/agents/worktrees/service.hooks.test.ts:134 FF None; outer 15,000 Worktree setup PID file Git worktree creation and setup child boot B
18 src/infra/update-managed-service-handoff.test-support.ts:109 P 15,000; T=60,000 Original updater PID Handoff helper, lease/SQLite, updater boot B
18 test/e2e/qa-lab/runtime/gateway-heartbeat-session-routing.e2e.test.ts:414 F 15,000; T=90,000 Cron-reconciled receipt Gateway/session setup done; async reconciliation B
18 test/e2e/qa-lab/runtime/gateway-tls-pinning.ts:448 F 15,000; producer script TLS discovery advertisement Listener startup and deferred discovery/plugin start B
18 src/infra/tailscale.test.ts:435 FF None; native startup 15,000 Flushed diagnostic/ready receipt Route process/Node boot, stderr write callback B
18 test/scripts/docker-all-scheduler.test.ts:1585 CC event+timer 15,000 Scheduler runner closes Shell/group cancellation and resistant descendant cleanup B
18 test/scripts/run-oxlint.test.ts:132 P 15,000 Grandchild PID Shard leader and grandchild Node boots B
18 test/scripts/run-oxlint.test.ts:578 P 15,000 Resistant grandchild PID Shard leader/grandchild boots and handlers B
18 test/scripts/run-vitest-bounded.test.ts:354 CC event+timer 15,000; T=60,000 Preparation CLI closes CLI boot, builders/admission/readers and joins B
18 test/scripts/run-vitest-progress.test.ts:59 F generated 15,000 Parent release-index file Parent sees worker ready, advances watchdog, releases case B
18 test/scripts/vitest-report-fixture.ts:217 F generated 15,000; outer T=60,000, command 45,000 Beta done while alpha held Sibling Vitest worker launch/collection/test B
18 test/scripts/vitest-report-fixture.ts:448 P 15,000; T=60,000, command 45,000 Alpha PID before cancellation Scheduler/tsx, nested Vitest startup/test entry B
18 test/scripts/write-cli-startup-metadata.test.ts:1356 P 15,000 local / 30,000 CI Signal-case grandchild PID Runner/import, render setup, command/descendant spawn B
18 test/scripts/write-cli-startup-metadata.test.ts:1375 CC event+timer 15,000 local / 30,000 CI Metadata runner closes Cancel renders, join groups, cleanup and reraised signal B
19 test/scripts/vitest-fork-shutdown.test.ts:265 FF None; command 20,000 Real fork worker PID Fixture/shim/Vitest worker boot and setup B
19 test/scripts/vitest-fork-shutdown.test.ts:401 FF None; command 20,000 Resistant descendant PID Leader and descendant boot/handlers B
19 test/scripts/vitest-worker-shutdown.test.ts:332 FF None; command 20,000 Compiler/owner/admission receipts Wrapper/artifact IPC, compiler/borrower boots, barriers B
20 test/scripts/docker-all-harness.test.ts:195 CC event+timer 25,000 from spawn; T=30,000/default Entire scheduler shim closes Runtime/lane startup, work, tree/log settlement B
20 test/scripts/docker-all-harness.test.ts:735 FF None; owner.result 25,000; T=30,000 Lane-result observed Ready lane exit, diagnostics, next-turn write B
20 test/scripts/docker-all-harness.test.ts:854 FF None; owner.result 25,000; T=30,000 Final-verification rejection Lane close, controlled cleanup clock, injected EPERM B
20 test/scripts/docker-all-harness.test.ts:856 FF None; owner.result 25,000; T=30,000 Stagger checkpoint Failure/verification, timer/admission snapshot B
20 test/scripts/docker-all-harness.test.ts:964 FF None; owner.result 25,000; T=30,000 Post-signal checkpoint Existing scheduler cancels stagger/writes state B
20 test/scripts/docker-all-harness.test.ts:1885 FF None; owner.result 25,000; T=30,000 Tree final verification Lane startup/work, cleanup progression/final check B
20 test/scripts/docker-all-harness.test.ts:1889 FF None; owner.result 25,000; T=30,000 Primary log closed Stream write/error processing/close B
20 test/scripts/docker-all-harness.test.ts:1909 FF None; owner.result 25,000; T=30,000 Failure stagger checkpoint Observed tree/log failure fences admission B
21 src/agents/prepared-model-catalog-worker.integration.test.ts:416 Marker 30,000 Parent auth entry marker Catalog/auth preparation enters held callback B
21 src/agents/prepared-model-catalog-worker.integration.test.ts:430 Marker 30,000 Parent auth abort marker Supersession/close dispatches abort B
21 src/agents/prepared-model-catalog-worker.integration.test.ts:676 EP 30,000 Refresh marker changes Credential/catalog refresh and worker dispatch B
21 src/agents/prepared-model-catalog-worker.integration.test.ts:864 Marker 30,000 First task before overload Worker receives task/enters held hook B
21 src/agents/prepared-model-catalog-worker.integration.test.ts:918 Marker 30,000 Shared discovery entered Catalog task dispatch B
21 src/agents/prepared-model-catalog-worker.integration.test.ts:951 Marker 30,000 Discovery before supersession Worker entry; later CPU spin follows marker B
21 src/agents/prepared-model-catalog-worker.scope.integration.test.ts:373 Marker 30,000 Parent auth abort Replacement retires preparation and aborts B
21 src/agents/prepared-model-catalog-worker.retirement.integration.test.ts:84 Marker 30,000 Retired capture cancellation Capture starts/retirement dispatches abort B
21 src/agents/harness/acp-native-execution.process.test.ts:180 FF None; attempt 30,000; T=60,000 Native prompt-reply entered Native session/turn setup and peer prompt B
21 src/gateway/gateway-cron-scheduler.live.test.ts:392 P 30,000; T=300,000 First payload PID Watcher exit, cron admission, Node payload boot B
21 src/gateway/gateway-cron-scheduler.live.test.ts:398 P 30,000; T=300,000 Replacement watcher PID Gateway re-arms and boots watcher B
21 src/gateway/gateway-cron-scheduler.live.test.ts:413 P 30,000; T=300,000 Second payload PID First completion, pending admission, Node boot B
21 test/scripts/control-ui-i18n.test.ts:896 P 30,000 Signal-case grandchild PID Runner/tsx/import, two commands, descendant spawn B
22 src/cli/update-cli/update-command-fresh-doctor-authority.test.ts:191 FF None; Doctor 45,000; T=60,000 Doctor reaches backup-open boundary Executor/Doctor process, imports, config repair preparation B
23 src/agents/harness/acp-native-execution.process.test.ts:246 FF None; T=60,000 Mode-control entered Existing native session dispatches held control B
23 src/config/io.write-effects.windows.test.ts:75 P 60,000; T=240,000 Windows handle-holder PID PowerShell cold boot, target handle open B
24 src/cli/update-cli/update-command-candidate-authority.process.test.ts:192 FF None; command 90,000; T=120,000 Candidate authority boundary Candidate/Doctor child boot, index/config preparation B
25 src/config/io.write-effects.windows.test.ts:69 CC event+timer 120,000; T=240,000 Windows holder closes Cold boot, handle ownership, test mutation/release B
25 src/cli/update-cli/update-command-retained-custody.test.ts:121 FF None; outer/command 120,000; beforeEach Retained parent admitted/ready Node imports, executor/lease admission B
25 src/infra/update-managed-service-handoff-boundary.test-support.ts:434 F 120,000 Updater validation entered Helper/transfer ready; executor/plugin cold load B
26 src/infra/sqlite-worker-preparation.test.ts:42 FF None; operation/test 120,000 Code preparation entered Worker open done; append serialization, up to 40 MiB B
26 src/infra/sqlite-worker-preparation.test.ts:121 FF None; operation/test 120,000 Guarded preparation entered Open worker admits/displays write task B
26 src/infra/update-managed-service-triage.test-support.ts:441 FF None; helper exit/abort/test Triage branch spawned Handoff, continuation, optional maintenance child B
26 test/helpers/process-wait.test.ts:198 FF None; completion/test Nonempty helper-test receipt Sync test write; deferred completion or 50 ms tick B
26 test/scripts/prepublish-plugin-registry-shell.test.ts:129 FF None; close/test 120,000 Registry port file Registry Node boot/metadata/listen B
26 test/scripts/run-vitest-profile.test.ts:424 FF None; test signal/default 120,000 Profile workload ready Runner, native Vitest config, worker boot/test entry B
26 test/scripts/upgrade-survivor-missing-plugin-proxy.test.ts:72 FF None; child close/test 120,000 Proxy ports JSON Node/import, two HTTP listeners B
26 test/scripts/upgrade-survivor-registry-identity.test.ts:178 FF None; shell completion/test Stage registry URL Shell/config/npm fixtures/registry startup B
26 test/scripts/vitest-worker-artifacts.ci.test.ts:275 FF None; command/test signal Second borrower ready CI/tsx, build/artifact loan, nested Vitest entry B
26 test/scripts/vitest-worker-artifacts.ci.test.ts:278 FF None; command/test signal First claim-ready Existing worker release, claim acquire/release B
26 test/scripts/vitest-worker-artifacts.test.ts:975 FF None; test 120,000 Generation evidence Vitest/artifact build, imports, SQLite/subprocess/archive work B
26 test/scripts/vitest-worker-artifacts.test.ts:1052 FF None; test 120,000 Two clients ready Two Node boots, artifact IPC/build/acquisition B
26 test/scripts/vitest-worker-artifacts.test.ts:1263 FF None; watcher/test 120,000 Watch result first pnpm/Vitest watch, collection, imports, Node/tsx probe B
26 test/scripts/vitest-worker-artifacts.test.ts:1264 FF None; watcher/test 120,000 Watcher ready First run and onWatcherStart callback B
26 test/scripts/vitest-worker-artifacts.test.ts:1266 FF None; watcher/test remaining budget Watch result second Dependency invalidation, rerun, Node/tsx probe B
27 test/helpers/process-wait.test.ts:91 D 20 Mock zombie is dead One synchronous mocked liveness/proc read C
28 test/helpers/openclaw-test-instance.test.ts:1850 D 500 Certified-stopped descendant dead Stop and explicit dead/group assertions passed C
28 test/helpers/openclaw-test-instance.test.ts:1990 IP/EP 500 Old drainer gone Old close, replacement start/stop joined C
29 src/process/supervisor/supervisor.no-detach.real.test.ts:197 EP 1,000; T=30,000 First leaf tick Identity observed; one 25 ms append timer C
29 src/process/supervisor/supervisor.no-detach.real.test.ts:208 EP 1,000; T=30,000 Tick after root settlement Existing leaf’s next 25 ms timer C
29 src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:359 D 1,000 Receiver cleanup death Controller/reset completion already joined C
30 src/agents/agent-bundle-mcp-runtime.test.ts:1210 fixed here FT 2,000 tools/call log Successful call already returned; log precedes reply C
30 src/agents/agent-bundle-mcp-runtime.test.ts:1375 fixed here FT 2,000 Initial PID file Catalog/call already completed C
30 src/agents/agent-bundle-mcp-runtime.test.ts:1533 fixed here FT 2,000 initialize log Catalog returned; log precedes reply C
30 src/agents/agent-bundle-mcp-runtime.test.ts:1821 fixed here FT 2,000 Initial PID file Catalog already completed C
30 src/agents/agent-bundle-mcp-runtime.test.ts:1939 fixed here FT 2,000 Healthy tools/list log Combined catalog returned healthy tool C
30 src/agents/agent-bundle-mcp-runtime.test.ts:1980 fixed here FT 2,000 Empty resource cursor Resource pagination already completed C
30 src/agents/agent-bundle-mcp-runtime.test.ts:1981 fixed here FT 2,000 Empty prompt cursor Prompt pagination already completed C
30 src/agents/agent-bundle-mcp-runtime.test.ts:2192 fixed here FT 2,000 Lock-holding child PID Materialization/App fetch completed C
30 src/agents/agent-bundle-mcp-runtime.test.ts:2333 fixed here FT 2,000 Keepalive child PID Catalog/call completed C
30 src/agents/agent-bundle-mcp-runtime.test.ts:4160 fixed here FT 2,000; T=8,000 Call notification log Trigger call succeeded; log precedes response C
30 src/agents/agent-bundle-mcp-runtime.test.ts:4191 fixed here FT 2,000; T=8,000 Retry initialize log Recovered catalog awaited C
30 src/process/exec.test.ts:143 PE 2,000 Forced-cleanup descendant dead Command returned cleanup=forced C
30 src/process/exec.test.ts:800 PE 2,000; T=5,000 Settled descendant dead Command and escalation phases joined C
30 src/process/exec.test.ts:827 PE 2,000; T=5,000 Joined root dead Root/command completion joined C
30 src/process/terminal-pty-node.test.ts:104 PE 2,000 Shell absent after onExit Exact onExit deferred resolved exit7 C
30 test/helpers/run-node-script.test.ts:122 inner P 2,000 Existing leaf PID valid Receipt preceded ready IPC, parent exit and command completion C
30 test/helpers/run-node-script.test.ts:130 inner P 2,000 Cleanup leaf PID valid Command joined; file existence checked C
30 test/scripts/check-deadcode-unused-files.test.ts:377 D 2,000 Knip descendant dead Timeout result/tree cleanup awaited C
30 test/scripts/check-deadcode-unused-files.test.ts:436 D 2,000 Descendant after runner close Runner joined subtree cleanup C
30 test/scripts/managed-child-process.test.ts:530 D 2,000; T=15,000 Launcher leaf dead Nested cleanup/launcher close awaited C
30 test/scripts/run-tsgo.test.ts:622 D 2,000; T=20,000 Compiler after wrapper cleanup Wrapper close/owned compiler reap awaited C
31 test/scripts/vitest-pair-benchmark.test.ts:705 F 3,000 Active command PID receipt Aggregate timeout/failure/cleanup awaited C
31 test/scripts/vitest-pair-benchmark.test.ts:763 F 3,000 Leaked-descendant PID receipt Cleanup-failure outcome awaited C
32 src/agents/agent-bundle-mcp-runtime.test.ts:1413 fixed here CP 4,000 Replacement PID differs Successful replacement tool response already obtained C
32 src/agents/agent-bundle-mcp-runtime.test.ts:1845 fixed here CP 4,000 Timeout-recycled PID differs Successful recovered tool response obtained C
33 src/process/supervisor/adapters/child.service-lifecycle.test.ts:423 Alive 5,000 TERM-escalated group dead adapter.wait and extinction joined C
33 src/process/supervisor/adapters/child.service-lifecycle.test.ts:472 Alive 5,000 Natural-EOF tree dead Result and extinction joined C
33 src/process/supervisor/adapters/child.service-lifecycle.test.ts:519 Alive 5,000 Delayed-exit descendant dead Result and extinction joined C
33 src/process/supervisor/adapters/child.service-lifecycle.test.ts:653 Alive 5,000 Pipe-holder/root dead Result and extinction joined C
33 src/process/supervisor/adapters/child.service-lifecycle.test.ts:910 Alive 5,000 Early-lineage-drop root dead Result and extinction joined C
33 src/process/supervisor/supervisor.anchored-shell.real.test.ts:248 D 5,000 Already-dead descendant Fixture cleanup and liveness assertion passed C
33 src/process/supervisor/supervisor.anchored-shell.real.test.ts:448 D 5,000 Released/canceled descendant dead waitForExtinction and cleanup joins complete C
33 src/infra/update-candidate-state.budget.test.ts:387 D 5,000; operation abort 10,000 Overflow worker dead Snapshot rejection/owned cleanup awaited C
33 src/infra/update-candidate-state.cleanup.test.ts:519 D 5,000 Canceled schema worker dead Rejection and staging cleanup awaited C
33 src/infra/update-candidate-state.cleanup.test.ts:609 D 5,000; T=20,000 Backup child dead Outcome/tree settlement awaited C
33 src/infra/update-managed-service-handoff-process.test-support.ts:68 CC event+timer 5,000; cleanup support Active fixture children close Census and synchronous SIGKILL; OS reap C
33 src/infra/update-managed-service-handoff-settlement.test.ts:157 D 5,000 Cleanup helper dead Already-running helper receives SIGKILL C
33 test/scripts/vitest-pair-benchmark.test.ts:706 D 5,000 Aggregate-deadline child dead Command failure/cleanup awaited C
33 test/scripts/vitest-pair-benchmark.test.ts:765 D 5,000 Leaked descendant after cleanup Cleanup-failure outcome awaited C
33 test/scripts/plugin-gateway-gauntlet.test.ts:789 IP/local waitFor 5,000 Measured-command grandchild dead Timeout/cleanup outcome after group cleanup C
34 src/gateway/gateway-cron-scheduler.live.test.ts:414 firstPid D 10,000; T=300,000 First payload dead Second payload began after first completion C
34 src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:293 D 10,000 Receiver dead at release gate Gate emitted after receiver close/group drain C
35 src/infra/update-managed-service-handoff.test-support.ts:148 D 15,000; T=60,000 Orphan updater exits Existing tiny fixture sees 10 ms release gate C
35 src/infra/update-managed-service-handoff.test-support.ts:210 D 15,000; T=60,000 Cleanup updater dead Release written; usually earlier join complete C
35 test/helpers/run-node-script.test.ts:130 outer D 15,000 Rescue-released escaped leaf exits Existing leaf’s 5 ms release/copy/exit C
35 test/scripts/run-oxlint.test.ts:133 F 15,000 Grandchild ready marker PID published; synchronous handler setup/write C
35 test/scripts/run-oxlint.test.ts:136 F 15,000 Disconnect drain marker Existing leader exits; descendant callback writes C
35 test/scripts/write-cli-startup-metadata.test.ts:1170 P 15,000 local / 30,000 CI Sibling grandchild receipt Metadata failure/join already complete; receipt predates failure C
35 test/scripts/write-cli-startup-metadata.test.ts:1225 P 15,000 local / 30,000 CI Timed-out help grandchild receipt spawnText timeout/grace already rejected C
36 src/tui/tui-pty-local.e2e.test.ts:1549 P 120,000; T=150,000 Local-shell descendant PID TUI already printed parent exit0; PID written before exit C
37 test/helpers/process-wait.test.ts:95 D 20 Current test PID stays alive Intentionally exhaust deadline N
38 src/process/terminal-pty-bun.test.ts:178 VW 1,000 max; ≥5×20 ms samples Paused output makes no progress Deliberate PTY backpressure observation N
39 src/process/exec-spawn.test.ts:259 PE 2,000 Reused-identity descendant stays alive Cleanup already settled/rejected N§

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: L labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 1:04 AM ET / 05:04 UTC (Revision 4).

ClawSweeper review

What this changes

The PR replaces short filesystem polling deadlines in MCP subprocess tests with fixture receipts, completion-backed assertions, and waits bound to test cancellation.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused test-reliability fix. Current main retains the affected polling deadlines, the prior receipt-ordering finding is resolved, and no blocking introduced defect was found.

Priority: P2
Reviewed head: f7a615094413ba1224e63d6c9082117bd29d949f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-supported reliability repair with the prior ordering defect resolved and no remaining actionable finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Captured Linux Testbox evidence exercises the actual MCP runtime and stdio child processes under injected startup and receipt delays, showing original failures become passes and forced timeout reaches cleanup with children extinct. Repeated suites and shard replays supplement those probes; macOS and Windows execution is not claimed. No stored product-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Captured Linux Testbox evidence exercises the actual MCP runtime and stdio child processes under injected startup and receipt delays, showing original failures become passes and forced timeout reaches cleanup with children extinct. Repeated suites and shard replays supplement those probes; macOS and Windows execution is not claimed. No stored product-data contract changes.
Evidence reviewed 8 items Pinned introduction scope: Reviewed the merge-base-to-head introduced hunks. All changes are tests or test support; endpoint drift and the stale test merge were not attributed to this PR.
Current-main necessity: Fetched main still defines the 2,000 ms fixture-log deadline and calls the old filesystem polling helpers, including the concurrent catalog and invalidation cases.
Latest-release check: GitHub contents inspection at v2026.9.7 also shows the 2,000 ms deadline and filesystem polling helpers. The requested receipt conversion is not already present in that release.
Findings None None.
Security None None.

How this fits together

OpenClaw's MCP runtime launches external tool servers and exchanges requests over their standard input and output. These tests exercise that runtime with real fixture processes and observe request handling, cancellation, reload, and process cleanup.

flowchart TD
  A[Test operations] --> B[OpenClaw MCP runtime]
  B --> C[Fixture server processes]
  C --> D[MCP replies and durable logs]
  C --> E[Test receipt channel]
  D --> F[Behavior assertions]
  E --> F
  G[Test cancellation] --> F
  G --> B
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +224. Total +224 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 481 257 +224
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 481 257 +224

Review metrics

Metric Value Why it matters
Production versus test growth production +0; tests and test support +224 net lines The added receipt observer stays outside product code and avoids introducing production-only test hooks.
Reported focused runtime cost 38.1 s → 30.0 s The contributor's before/after Testbox measurement shows the runtime suite does not become slower from receipt synchronization.

Technical review

Best possible solution:

Keep fixture observation in test support, use authoritative completion where available, and preserve cancellation-driven cleanup without changing product timeouts.

Do we have a high-confidence way to reproduce the issue?

Yes: current main still races fixture startup against short deadlines, and the supplied identical-delay probes establish original failures and fixed passes. This review inspected source and evidence without executing tests.

Is this the best way to solve the issue?

Yes: a test-owned receipt channel observes product-spawned children without adding runtime hooks, while log confirmation resolves cross-pipe ordering and cancellation keeps cleanup reachable.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 11828a081f5e.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs observed MCP test failures on loaded hosts with a bounded developer and CI impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): Captured Linux Testbox evidence exercises the actual MCP runtime and stdio child processes under injected startup and receipt delays, showing original failures become passes and forced timeout reaches cleanup with children extinct. Repeated suites and shard replays supplement those probes; macOS and Windows execution is not claimed. No stored product-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Captured Linux Testbox evidence exercises the actual MCP runtime and stdio child processes under injected startup and receipt delays, showing original failures become passes and forced timeout reaches cleanup with children extinct. Repeated suites and shard replays supplement those probes; macOS and Windows execution is not claimed. No stored product-data contract changes.

Evidence

What I checked:

  • Pinned introduction scope: Reviewed the merge-base-to-head introduced hunks. All changes are tests or test support; endpoint drift and the stale test merge were not attributed to this PR. (f7a615094413)
  • Current-main necessity: Fetched main still defines the 2,000 ms fixture-log deadline and calls the old filesystem polling helpers, including the concurrent catalog and invalidation cases. (src/agents/agent-bundle-mcp-runtime.test.ts:110, 11828a081f5e)
  • Latest-release check: GitHub contents inspection at v2026.9.7 also shows the 2,000 ms deadline and filesystem polling helpers. The requested receipt conversion is not already present in that release. (src/agents/agent-bundle-mcp-runtime.test.ts:110, c074824a27c9)
  • Prior finding resolved: The raced wait now checks the synchronously appended fixture log when the operation settles first, accounting for independent receipt and stdout delivery. GitHub's exact-head commit patch confirms the latest delta only changes catch handling to unknown plus hasErrnoCode. Local parent-tree inspection encountered unavailable promisor objects; the commit API supplied that delta. (src/agents/agent-bundle-mcp-runtime.test.ts:502, f7a615094413)
  • Completion-backed cleanup: Transport close awaits closeOwnedStdioProcess, which joins both process settlement and descendant extinction. Materialized disposal and manager disposal join runtime cleanup. The spontaneous-exit test still observes extinction before explicitly calling close, preserving its independent cleanup assertion. (src/agents/mcp-stdio-transport.ts:200, f7a615094413)
  • Captured behavior proof: The inspected Evidence section reports Linux Testbox probes through the real MCP runtime and child transport: identical 2.5-second delays fail original bytes and pass fixed bytes; all twelve gated cases pass with receipts delayed 300 and 1,000 ms; forced timeout reaches finally cleanup with all three children extinct. It also reports 20 standalone passes per touched suite, three original-shard replays, and 75 sibling files passing. The live body SHA-256 matches captured source 6462c5c2a0c306f221a921af6ffd2ec1254472ca8589c34bb4d937d1103bd103. macOS and Windows branches were source-inspected rather than executed. No tests were executed by this review. (f7a615094413)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-01T01:58:01.738Z sha 0f7a28d :: blocked before merge. :: [P2] Preserve receipt ordering before checking MCP settlement
  • reviewed 2026-10-01T02:24:24.854Z sha 0f7a28d :: blocked before merge. :: [P2] Preserve receipt ordering before checking MCP settlement
  • reviewed 2026-10-01T04:28:23.676Z sha 8d9d532 :: needs maintainer review before merge. :: none

steipete added a commit that referenced this pull request Oct 1, 2026
#162249 stopped expiring completed ClawSweeper reviews, so the review gate
now fails with "completed review is missing." instead of "completed review
is missing or expired". The packaged-gate wrapper test still asserted the
old wording and failed on main (seen in checks-node-compact-small-15-3 on
#162274). Assert the current message.

Proof on Blacksmith Testbox: test/scripts/pr-wrappers.test.ts 214/214.
Receipts and the fixture's stdout MCP replies travel on independent pipes,
so a receipt raced against an operation could arrive after a reply that the
fixture sent after logging the event. awaitGateBeforeSettlement then failed
even though the event had happened, which a 50 ms catalog timeout or a late
first receipt (it also pays the socket connect) could trigger on a loaded
host. fixtureEventBeforeSettlement now consults the fixture log, appended
synchronously before any reply, when the operation settles first.

The caller-cancellation test relied on 250 ms reply timers to keep each
request in flight until it was cancelled, the same wall-clock race in the
fixture. Hold tools/call, resources/list and prompts/list replies on a
release gate instead and release it after the three cancellations; the
timer knobs had no other users.

Addresses the ClawSweeper P2 on #162274. Proof on Blacksmith Testbox: with
every receipt delayed 300 ms or 1 s, the previous head fails four gated
cases and these bytes pass all twelve; 20/20 standalone runs of the runtime
test, 3/3 replays of agentic-agents-core-runtime (runtime 67, reload 33,
transport 2 tests per replay), and the targeted tsgo lane.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
openclaw#162249 stopped expiring completed ClawSweeper reviews, so the review gate
now fails with "completed review is missing." instead of "completed review
is missing or expired". The packaged-gate wrapper test still asserted the
old wording and failed on main (seen in checks-node-compact-small-15-3 on
openclaw#162274). Assert the current message.

Proof on Blacksmith Testbox: test/scripts/pr-wrappers.test.ts 214/214.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 1, 2026
CI's type-aware oxlint (use-unknown-in-catch-callback-variable) rejected the ErrnoException-typed catch in fixtureEventBeforeSettlement. Take unknown and use hasErrnoCode from src/infra/errno.ts; a missing log still reads as empty and other errors still rethrow.
@steipete
steipete merged commit 739f704 into main Oct 1, 2026
183 checks passed
@steipete
steipete deleted the steipete/mcp-fixture-receipts branch October 1, 2026 05:10
steipete added a commit that referenced this pull request Oct 1, 2026
…hosts while polling apply markers (#162573)

The accepted-sync worker-environment tests waited for the apply child by polling an apply-started marker file against a 10 s deadline and racing the child's close against fixed timers. On a loaded host the healthy child boot outlasts the deadline.

The apply child now reports readiness on a stderr line written after it opens the FIFO (so an immediate release cannot lose the gate bytes), the test owns the FIFO writer, child close is retained as a promise that also terminates the child on test abort, and a fixture lifetime joins cleanup before temp directories are removed. Six waits convert. The five receiver-fixture waits stay unchanged because the product starts the receiver in its own detached process group with no owned join (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from #162274. Proof on Blacksmith Testbox: an 11 s delayed-startup probe fails the original bytes with the old timeout and passes these bytes; three forced-abort probes reach cleanup with the child dead; 20/20 standalone runs; 3/3 replays of agentic-gateway-core-2; targeted tsgo; Codex autoreview and ClawSweeper clean.
steipete added a commit that referenced this pull request Oct 1, 2026
…ts while polling hook markers (#162572)

The prepared model-catalog worker integration tests waited for the catalog worker thread to reach its augmentation hook by expect.poll-ing marker files with the default 1 s deadline. On a loaded host, worker dispatch and catalog preparation outlast it.

These fixtures run inside a product-owned worker thread, and the supersession fixture blocks its thread with a synchronous spin right after reporting entry, so a socket receipt could not leave the thread until the spin ended. test/helpers/fixture-receipts.ts therefore gains a worker-thread client: the channel also listens on a uniquely named BroadcastChannel, and fixtureReceiptWorkerClientSource() posts receipts synchronously (unref'd) so the test thread receives them while the worker blocks. Socket and broadcast receipts share one record/waiter path and malformed-receipt failure. Fixtures still write their markers before reporting, and waits raced against an operation consult that durable record. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from #162274. Proof on Blacksmith Testbox: delayed-dispatch fault probes fail the original bytes and pass these bytes, including a supersession probe that requires the receipt to arrive while the worker still spins; forced-abort probes reach cleanup; 100/100 standalone runs across the five files; 3/3 replays of bundle-infra-small-runtime-15; targeted tsgo; Codex autoreview and ClawSweeper clean.
steipete added a commit that referenced this pull request Oct 1, 2026
…aded hosts while polling fixture files (#162545)

Agent session, worktree, provider-service, MCP cleanup, and native-harness tests waited for fixture children and workers by polling files, PID files, and the process table against 1-10 s wall-clock deadlines, which a loaded host outlasts.

Each wait now awaits its owning signal: retained promises and ChildProcess close handles, stdout readiness lines and an owned stdin release for test-spawned children, fixture receipts with a durable-record fallback for product-spawned children, and direct reads where an awaited product operation already guarantees the state. settings-storage moves its synchronous reader interception into a child so a held barrier cannot wedge the Vitest thread. Foreign-PID extinction without an owner join keeps a deadline-free check bound to the test signal. sessions/exec.real readiness and the native-harness cold-session wait stay unchanged because a product timeout races the same boot (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from #162274. Proof on Blacksmith Testbox: delayed-startup fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup with no leaked PIDs; 20/20 standalone runs of all twelve files; 3/3 replays of all seven owning bundles; targeted tsgo; Codex autoreview and ClawSweeper (no findings). The red checks-windows-node-test-4 job is inherited from main (session-accessor creation worker; hourly runs 36827062752, 36831897385).
steipete added a commit that referenced this pull request Oct 1, 2026
…s while polling PID files (#162593)

Process execution, spawn-broker, supervisor, and terminal-PTY tests waited for fixture shells, descendants, and brokers by polling PID files and the process table against 250 ms-5 s wall-clock deadlines, which a loaded host outlasts.

Each wait now awaits its owning signal: retained ChildProcess/onExit completion and owned tree-cleanup joins, readiness and PID publication over stdout/IPC for test-spawned children, fixture receipts with the durable PID file as fallback where the product owns the child's stdio, and direct assertions where an awaited owner operation already joins extinction. Foreign-descendant extinction without an owner join keeps a deadline-free check bound to the test signal. The 250 ms best-effort afterEach PID lookup in supervisor.forced-settlement.real (whose swallowed timeout leaked descendants) now awaits the fixture's PID publication. Three Bun PTY flow-control waits stay unchanged because they need an independent shell control FD (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from #162274. Proof on Blacksmith Testbox: delayed-startup fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup with no leaked processes; 20/20 standalone runs per file; 3/3 replays of core-runtime-infra-process; targeted tsgo; Codex autoreview and ClawSweeper clean; Windows-native conversions ran green in all five CI Windows shards.
steipete added a commit that referenced this pull request Oct 1, 2026
…se and exit receipts to the fixture receipt helper (#163063)

Tests whose fixtures had to be told to proceed, or whose fixture exit could not be observed, still polled generated release and readiness files against 3-15 s wall-clock deadlines and failed on loaded hosts: the Vitest progress and report-owner alpha/beta fixtures, node-host workspace retention, release preflight scheduling, the upgrade-survivor systemd PTY startup gate, check-deadcode reporting (scanner barrier, compiler start/drain), and the PR git-maintenance hook.

The shared fixture receipt helper (test/helpers/fixture-receipts.ts) was one-way, so these sites were left on file-polling loops in earlier batches. It now owns both directions instead of a second broker: release(source, token) sends a retained release over the existing socket to connections associated with the source, and fixtures call awaitRelease(source, token), which keeps the fixture alive only while a release is pending; waitForExit(source) resolves when every connection that announced the source has closed (Node sockets are close-on-exec, so close means process exit for a fixture that never ends its socket); openFixtureReleaseFifo gives shell fixtures and synchronously blocked callers a POSIX FIFO release with no polling. A new test/helpers/fixture-receipts.test.ts covers exit receipts (normal exit, SIGKILL, late callers), release before and after the fixture waits, FIFO release of a shell child, close rejecting pending waits, and malformed input. The CI checkout backoff site was retired upstream by #162925. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from #162274. Proof on Blacksmith Testbox: original/fixed delay probes and forced-abort probes for each new waiting pattern, 80/80 standalone runs on the rebased head (20 per file including the helper test), 9/9 owning-shard replays, OpenGrep, deadcode, type-aware lint, base-aware timeout-race ratchet; Codex autoreview focused on the helper contract and ClawSweeper clean.
steipete added a commit that referenced this pull request Oct 1, 2026
…l on loaded hosts when fixture children outlast polling deadlines (#163062)

QA Lab E2E tests and runtime fixtures for the plugin lifecycle probe, Codex auth/app-server, native approval receipts, the Codex node-exec server, Codex heartbeat compaction, Gateway MCP app-grant revalidation and node MCP (including stress), SSH tunnels, MCP runtime retirement, the managed-worktree Workboard lifecycle, native cancellation authz, remote log tailing, and the voice-call Gateway plugin polled port, PID, and marker files or raced child readiness against fixed timers, so a fixture child that outlasted the bound on a loaded host failed the test.

Waits now await owned signals: the npm registry fixture's existing IPC readiness (sent by the server since #162738, raced against the captured child exit; the lane's duplicate send was dropped so the server keeps one readiness message), test-spawned child IPC/stdout readiness, existing promises and callbacks, and fixture receipts where the product owns the child. Fifteen sites stay unchanged where long product-command deadlines with TERM/KILL grace, a host-to-child release, or a missing owned reap signal apply. The lifecycle probe's now-unused promise-executor lint exemption is removed. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from #162274. Proof on Blacksmith Testbox: original-variant and delay probes, 300 standalone runs (20 per suite), 24 owning-shard replays (3 per owner group), root typecheck, OpenGrep, type-aware lint through the CI lint wrapper, base-aware timeout-race ratchet; Codex autoreview and ClawSweeper clean.
steipete added a commit that referenced this pull request Oct 1, 2026
…process tests fail on loaded hosts when fixture children outlast polling deadlines (#163044)

CLI process tests for the Gateway run loop (package helper/lifecycle, update respawn, direct stop with active work, forced cron, model acquisition), the hooks CLI, ClawHub plugin search, the update command executor (auxiliary/native) and service custody, cleanup-utils handle exclusion, and triage polled trace, PID, and readiness files or raced child close against 5-45 s timers, so a fixture child that outlasted the bound on a loaded host failed the test.

Waits now await registered close promises, existing stdout readiness lines and close gates, fixture receipts with durable-record fallback where the product owns the child, and owned triage callbacks; existing rescue SIGKILLs remain for failure paths. The ClawHub search e2e consumes the fixture server's native { port } IPC readiness from #162848 instead of adding a second message shape. Twenty sites stay unchanged, mainly waits inside the shared stop-child-process TERM/KILL owner and product-owned scripts without a retained child handle or reap receipt. No product source, product grace, test timeout, or assertion meaning changed.

Part of the polling audit from #162274. Proof on Blacksmith Testbox: delay and forced-abort probes, 220 standalone runs and 100/100 on the rebased head, Node owner shards 3/3, the Gateway E2E owner shard 3 replays with the changed ClawHub e2e passing in all three (the third replay's single failure was in the untouched test/cli-json-stdout.gateway.e2e.test.ts, tracked separately), targeted tsgo, OpenGrep, deadcode, type-aware lint, base-aware timeout-race ratchet; Codex autoreview clean.
steipete added a commit that referenced this pull request Oct 1, 2026
…p-proof tests fail on loaded hosts when fixtures outlast polling deadlines (#163013)

Extension and fixture tests for ACPX (plugin entry and advertised-model runtime), the Anthropic CLI process/runtime, Diagnostics Prometheus install, Discord voice runtime, iMessage native handoff, memory-core dreaming narrative, the ONNX worker client, the voice-call tunnel, WhatsApp auto-reply/inbound media/send, OpenShell, and the shared SQLite sessions/transcripts flip proof polled files, PIDs, and process groups against 1-60 s wall-clock waits, so a fixture child or worker that outlasted the bound on a loaded host failed the test.

Extensions import withinTest, awaitGateBeforeSettlement, and the fixture-receipt channel only through the local-only openclaw/plugin-sdk/test-fixtures facade (plus public extension-shared / error-runtime subpaths), never test/helpers. Waits now await held-classification receipts with durable event logs, owned close/exit promises, and existing callbacks; exact process-group extinction that no owner exposes keeps one deadline-free check bound to the test signal. Twelve sites that need a host-to-child release, an acknowledged socket flush, a worker BroadcastChannel receipt outside the facade, or Gateway managed-tree joins with TERM-to-KILL escalation stay unchanged. The Anthropic CLI stderr descendant now lives until terminated, so a missing transport tree kill cannot pass by natural expiry (negative control proven). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from #162274. Proof on Blacksmith Testbox: 320/320 standalone runs (cli-process.test.ts re-proven 20/20 after the descendant fix), 51/51 unit owner replays plus 3/3 owning-bundle replays on the final head, the changed Gateway E2E files passing in every Gateway shard replay (unrelated untouched-test failures there are tracked separately), extension and root tsgo, extension test boundary, plugin SDK import lints, deadcode, OpenGrep, type-aware lint, base-aware timeout-race ratchet; Codex autoreview clean.
steipete added a commit that referenced this pull request Oct 2, 2026
…teway tests fail on loaded hosts when fixture children outlast polling deadlines (#162945)

agent-exec (plugin e2e and construction), update candidate-state budget/cleanup, managed-service handoff boundary/process support, plugin install-record commit, the local TUI PTY e2e, and the QA Lab Gateway heartbeat-routing and package-for-Docker tests polled readiness/PID files or raced process exit against fixed timers, so a fixture child or preparation step that outlasted the bound on a loaded host failed the test.

Waits now await existing owner callbacks (such as the command onOutputChunk readiness), retained child close promises, fixture receipts with a durable-record fallback where the product owns the child, and same-process fixture events registered before the Gateway starts. The rebase keeps #162694's managed-service triage receipts byte-for-byte, #162403's cleanup directory-retirement fault, and #162496's Bun preload settings, and layers this lane's receipts and joins on top. Thirteen sites stay unchanged where independent runner clocks, post-abort cleanup joins, a synchronously blocked host, out-of-scope producers, or killed helpers without a close handle leave no owned signal. The budget and agent-exec plugin tests keep their whole fixture lifetime until teardown joins it, so a timed-out body can no longer lose its release file or stop markers to afterEach (forced-abort probes reproduce the four defects before the fix). No product source, test timeout, product timeout, or assertion meaning changed.

Follow-up to #162696 in the polling audit from #162274. Proof on Blacksmith Testbox: delay probes fail the original bytes and pass these bytes, forced-abort probes reach cleanup, 480 standalone runs, 120/120 on the rebased head, Gateway E2E shards 2/4 and 3/4 3/3 each (2/4 re-proven 3/3 on the final teardown-fix head), type-aware lint, deadcode, base-aware timeout-race ratchet; Codex autoreview clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…outlasts polling deadlines (openclaw#162274)

MCP runtime, reload, and stdio-transport tests observed product-spawned fixture children by polling log and PID files against 2 s / 4 s Date.now deadlines (local waitForFileText, waitForFileTextCount, waitForPredicate, waitForChangedPid) or the 1 s expect.poll/vi.waitFor defaults. The awaited work is healthy but heavy (Node child boot, MCP initialize, tools/list), so a loaded host pushed it past the deadline: during openclaw#161691 the unchanged runtime test failed four cases with "Timed out waiting for tools/list cursor ..." and "Timed out waiting for notify tools/list_changed ...".

Add test/helpers/fixture-receipts.ts, a test-owned Unix socket (named pipe on Windows) that generated fixtures report newline-delimited JSON receipts through, with no timer. Convert each wait to the signal that owns it: receipts bound to the Vitest test signal with withinTest; fixtureEventBeforeSettlement where a receipt races an operation the fixture's replies can settle (receipts and stdout replies are unordered pipes, so the fixture log, appended before any reply, decides); direct reads where an awaited operation already guarantees the state; a probe "started" receipt; and the transport leader's descendant PID as a JSON-RPC notification on the stdout the test owns. The caller-cancellation test holds replies on a release gate instead of 250 ms reply timers. Eleven in-memory runtime states with no exposed completion signal keep one documented signal-bound check with no wall-clock deadline. No test timeout, product timeout, assertion meaning, or product source changes.

The PR body carries the full audit: 457 call sites of test/helpers/process-wait.ts helpers and local equivalents in src/agents and src/process, ranked A 126 / B 272 / C 56 / N 3, and a CI annotation sweep (600 failed jobs, 130 runs) with no sightings.

Proof on Blacksmith Testbox: delayed-startup and delayed-receipt fault probes fail the original bytes with the old messages and pass these bytes; a forced-abort probe reaches finally cleanup with every child reaped; 20/20 standalone runs of each touched test file; 3/3 replays of agentic-agents-core-runtime; the 75 MCP sibling test files; targeted tsgo; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…hosts while polling apply markers (openclaw#162573)

The accepted-sync worker-environment tests waited for the apply child by polling an apply-started marker file against a 10 s deadline and racing the child's close against fixed timers. On a loaded host the healthy child boot outlasts the deadline.

The apply child now reports readiness on a stderr line written after it opens the FIFO (so an immediate release cannot lose the gate bytes), the test owns the FIFO writer, child close is retained as a promise that also terminates the child on test abort, and a fixture lifetime joins cleanup before temp directories are removed. Six waits convert. The five receiver-fixture waits stay unchanged because the product starts the receiver in its own detached process group with no owned join (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: an 11 s delayed-startup probe fails the original bytes with the old timeout and passes these bytes; three forced-abort probes reach cleanup with the child dead; 20/20 standalone runs; 3/3 replays of agentic-gateway-core-2; targeted tsgo; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…ts while polling hook markers (openclaw#162572)

The prepared model-catalog worker integration tests waited for the catalog worker thread to reach its augmentation hook by expect.poll-ing marker files with the default 1 s deadline. On a loaded host, worker dispatch and catalog preparation outlast it.

These fixtures run inside a product-owned worker thread, and the supersession fixture blocks its thread with a synchronous spin right after reporting entry, so a socket receipt could not leave the thread until the spin ended. test/helpers/fixture-receipts.ts therefore gains a worker-thread client: the channel also listens on a uniquely named BroadcastChannel, and fixtureReceiptWorkerClientSource() posts receipts synchronously (unref'd) so the test thread receives them while the worker blocks. Socket and broadcast receipts share one record/waiter path and malformed-receipt failure. Fixtures still write their markers before reporting, and waits raced against an operation consult that durable record. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delayed-dispatch fault probes fail the original bytes and pass these bytes, including a supersession probe that requires the receipt to arrive while the worker still spins; forced-abort probes reach cleanup; 100/100 standalone runs across the five files; 3/3 replays of bundle-infra-small-runtime-15; targeted tsgo; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…aded hosts while polling fixture files (openclaw#162545)

Agent session, worktree, provider-service, MCP cleanup, and native-harness tests waited for fixture children and workers by polling files, PID files, and the process table against 1-10 s wall-clock deadlines, which a loaded host outlasts.

Each wait now awaits its owning signal: retained promises and ChildProcess close handles, stdout readiness lines and an owned stdin release for test-spawned children, fixture receipts with a durable-record fallback for product-spawned children, and direct reads where an awaited product operation already guarantees the state. settings-storage moves its synchronous reader interception into a child so a held barrier cannot wedge the Vitest thread. Foreign-PID extinction without an owner join keeps a deadline-free check bound to the test signal. sessions/exec.real readiness and the native-harness cold-session wait stay unchanged because a product timeout races the same boot (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delayed-startup fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup with no leaked PIDs; 20/20 standalone runs of all twelve files; 3/3 replays of all seven owning bundles; targeted tsgo; Codex autoreview and ClawSweeper (no findings). The red checks-windows-node-test-4 job is inherited from main (session-accessor creation worker; hourly runs 36827062752, 36831897385).
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…s while polling PID files (openclaw#162593)

Process execution, spawn-broker, supervisor, and terminal-PTY tests waited for fixture shells, descendants, and brokers by polling PID files and the process table against 250 ms-5 s wall-clock deadlines, which a loaded host outlasts.

Each wait now awaits its owning signal: retained ChildProcess/onExit completion and owned tree-cleanup joins, readiness and PID publication over stdout/IPC for test-spawned children, fixture receipts with the durable PID file as fallback where the product owns the child's stdio, and direct assertions where an awaited owner operation already joins extinction. Foreign-descendant extinction without an owner join keeps a deadline-free check bound to the test signal. The 250 ms best-effort afterEach PID lookup in supervisor.forced-settlement.real (whose swallowed timeout leaked descendants) now awaits the fixture's PID publication. Three Bun PTY flow-control waits stay unchanged because they need an independent shell control FD (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delayed-startup fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup with no leaked processes; 20/20 standalone runs per file; 3/3 replays of core-runtime-infra-process; targeted tsgo; Codex autoreview and ClawSweeper clean; Windows-native conversions ran green in all five CI Windows shards.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
… on loaded hosts while polling readiness (openclaw#162608)

The shared test-instance and node-script helper tests waited for CLI leaders and wrapped scripts by polling readiness files, PID files, and the process table against 500 ms-5 s wall-clock deadlines, which a loaded host outlasts.

Readiness now uses the existing held HTTP readiness gate, CLI leader exits are observed through the native exit of the child that runManagedCommand already hands to onReady, escaped-leaf readiness uses the owned IPC/stdout path, and certified stops are asserted directly after the owner's stop operation that already requires an exited leader and an extinct group. Detached-drainer extinction keeps one deadline-free check bound to the test signal. Five teardown rescue waits stay bounded on purpose because they must still join after the test signal has aborted. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delayed-readiness fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup; 20/20 standalone runs of both files; 3/3 replays of core-tooling-5 and core-tooling-9; tsgo test-root lanes; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…ing tests time out on loaded hosts while polling ready files (openclaw#162613)

Test-tooling suites for the managed child-process runner, check-changed cancellation, Vitest fork/worker shutdown, worker artifacts, and run-vitest progress waited for fixture wrappers, workers, and descendants by polling ready files, PID files, and the process table against 1-15 s wall-clock deadlines, which a loaded host outlasts.

Readiness now arrives on the owned channel each fixture already has: runManagedCommand's onReady stream and child events, stdout/IPC readiness written after the fact it announces (PID files are renamed into place first), relayed worker readiness for the Vitest fork/worker fixtures, and retained command outcomes that fail fast if the child settles first. Foreign-descendant extinction without an owner join keeps a deadline-free check bound to the test signal. check-changed-cancellation and run-vitest-progress drop out of the timeout-race baseline. The reverse-release wait in run-vitest-progress and the native Windows Job cases stay unchanged (follow-ups; the latter has no native CI execution). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delayed-readiness fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup; 20/20 standalone runs per file; 3/3 replays of all seven owning tooling shards on the rebased head; tsgo; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
… out on loaded hosts while polling fixture files (openclaw#162635)

Gateway hook-mapping, cron live, session-creation, and worker-environment workspace mutation/inventory/manifest tests waited for fixture children by polling marker, PID, and ready files against 5-10 s wall-clock deadlines, which a loaded host outlasts.

Hook mapping now waits for a synchronous module-entry event with a separate release; directly spawned controllers are joined through durable close promises attached at spawn; readiness for test-spawned children arrives on stdout/IPC lines written after the fact they announce; waits raced against a command that can settle first fail fast via awaitGateBeforeSettlement bound to the test signal; and cleanup joins through onTestFinished so a timeout cannot orphan fixtures (a forced-abort probe caught and fixed exactly that in the inventory test). Receiver, tunnel, and cron-watcher waits whose processes the product starts in separately detached groups keep their original waits (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274 (follow-up to openclaw#162573). Proof on Blacksmith Testbox: delayed-startup fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup with no leaked processes; 20/20 standalone runs of all six files; 3/3 replays of each owning Gateway shard; targeted tsgo; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
… tests time out on loaded hosts while polling ready files (openclaw#162643)

Tooling tests for CLI startup benchmarking, dead-code checks, dev-tooling safety, direct-run entrypoints, additional boundary checks, the oxlint runner, tsgo core-test shards, the upgrade-survivor plugin proxy, and CLI startup metadata waited for fixture runners, compilers, and descendants by polling ready files, PID files, and the process table against 1-15 s wall-clock deadlines, which a loaded host outlasts.

Readiness and PID publication now arrive on owned channels (stdout/IPC lines written after the fact they announce, relayed through wrappers for nested children), completion is joined through retained child close promises and runner settlement, and waits raced against a command that can settle first fail fast with the old diagnostic. Foreign-descendant extinction without an owner join keeps a deadline-free check bound to the test signal, preserving the dead-versus-zombie policy. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delayed-startup fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup; 180/180 standalone runs across the nine files; 3/3 replays of each of the six owning tooling shards; tsgo; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…ts time out on loaded hosts while polling ready files (openclaw#162627)

Docker-all harness/scheduler, nested-retention, extension-memory profiling, run-vitest profile, Vitest E2E global-setup, and Vitest worker-shutdown tooling tests waited for fixture runners, workers, and descendants by polling ready files, PID files, and the process table against 2-15 s wall-clock deadlines, which a loaded host outlasts.

Readiness and PID publication now arrive as fixture receipts (product-owned children) or owned stdout/IPC lines (test-spawned children), written after the fact they announce; waits raced against a command that can settle first consult the durable record. Foreign-descendant extinction without an owner join keeps one deadline-free check per file bound to the test signal. test/helpers/fixture-receipts.ts falls back to a short private /tmp directory when the socket path under a deeply nested TMPDIR would exceed the Unix limit. process-fixture-cleanup's emulated Vitest now passes the test context and composes cleanup so body failures survive failing finalizers, with faults injected at the operations the converted waits observe; the profile fixture fails loudly when a denied stop cannot promise a close. Five files drop out of the timeout-race baseline. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delayed-readiness fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup; 20/20 standalone runs per file; 3/3 replays of all six owning tooling shards and of core-tooling-2 for the cleanup test; tsgo test-root; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…e tests time out on loaded hosts while polling fixture files (openclaw#162696)

Update-command authority/custody, online-backup, managed-service handoff settlement, native Windows config write-effect, and QA Lab plugin-lifecycle/SSH-tunnel/TLS-pinning tests polled readiness files, PID files, and the process table against 2 s to 120 s wall-clock deadlines, so a fixture child or preparation step that outlasted the bound on a loaded host failed the test.

Waits now await producer receipts, owned stdout/discovery callbacks, retained child close, and completed runner settlement; a receipt that can lose the race against operation completion is confirmed against the durable record the producer writes first. Held waits are bound to the test signal, and the authority/TLS fixtures join their full lifetimes before hooks restore mocks, environment, or temp state. Native teardown waits without a surviving owner signal are unchanged. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: class-A delay probes fail the original bytes and pass these bytes, forced-abort probes reach cleanup, 160/160 standalone runs (20 per touched test file), 3/3 replays of each of the seven owning shards, targeted tsgo, type-aware lint; Codex autoreview and ClawSweeper clean. The converted native Windows test passed in CI's checks-windows-node-test-4. checks-windows-node-test-1 failed only at dependency install (HTTP 504 downloading the @matrix-org/matrix-sdk-crypto-nodejs postinstall binary); that is hosted infrastructure, unrelated to this test-only change.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…ldren outlast polling deadlines (openclaw#162718)

Script-tooling tests for the CI platform checkout, Crabbox wrapper, lint status, npm security-scan runner, extension package-boundary artifact preparation, bounded Vitest runner, test-group report, live shards, and tsgo shard cancellation polled readiness files, PID files, and the process table against 2-12 s deadlines, or raced owned child-close promises against 5-15 s timers, so a fixture child that outlasted the bound on a loaded host failed the test.

Waits now await fixture readiness on owned stdout, test/helpers/fixture-receipts.ts receipts with a durable PID-record fallback where a receipt can trail the operation's settlement, and the existing close/process-group joins. Body waits are bound to the Vitest signal via withinTest so a timeout still reaches finally cleanup. Foreign PIDs whose owner has already exited keep one deadline-free, signal-bound check per file. Unused polling helpers are deleted and the timeout-race baseline shrinks by one site. No product source, test timeout, product grace, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delayed-startup probes fail the original bytes and pass these bytes, forced-abort probes reach cleanup, 180/180 standalone runs (20 per file), 3/3 replays of each owning shard including core-tooling-6 on the rebased head, targeted tsgo, type-aware lint, base-aware timeout-race ratchet; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…hosts when fixture children outlast polling deadlines (openclaw#162729)

Script-tooling tests for the SQLite reliability bench, CI workflow guards and git-owner auth fixture, Docker build helper, iOS node e2e, the OpenClaw e2e instance, Parallels smoke model, plugin SDK API diff, unchanged-plugin Docker update, Android Gradle runner, and Vitest worker-artifact verification polled files, ports, and PIDs against 500 ms to 15 s deadlines, and raced child readiness/exit against timers of up to 30 s, so a fixture child that outlasted the bound on a loaded host failed the test.

Waits now await child IPC, inherited readiness pipes, durable fixture receipts, native exit/close promises, and existing read-admission deferreds; Python fixtures join their retained subprocess handles under the caller's lifetime guard. Suspended test bodies are bound to the Vitest signal and fixture roots are retained until native children settle; the tracked Docker build awaits its inherited pipe EOF through close before its TERM record is checked. Where no reaper handle is owned, one deadline-free, signal-bound foreign-PID check remains per file. ci-git-owner-settlement's native Windows Job cases keep main's bytes until a Windows host can prove them. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delay probes fail the original bytes and pass these bytes, forced-abort probes reach cleanup, 20/20 standalone runs per touched file, 3/3 replays of each owning shard (core-tooling-12 on the rebased head), type-aware lint, base-aware timeout-race ratchet; Codex autoreview clean; ClawSweeper found no findings.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…il on loaded hosts when fixture children outlast polling deadlines (openclaw#162738)

Script-tooling tests for dist artifact ownership, the prepublish plugin registry shell, the Node lifecycle runner, tsgo runner, run-with-env, test-extension, and tsdown-build polled PID and readiness files or raced owned child completions against fixed timers, so a fixture child that outlasted the bound on a loaded host failed the test.

Waits now await child IPC readiness (the e2e npm registry fixture server also reports its port over process.send when a Node caller owns IPC; shell callers keep the atomic port file), fixture receipts from the native-runner signal fixture, an inherited readiness FIFO where the spawn interceptor must block synchronously before delivering SIGTERM, ordered direct reads after awaited operations, and completion promises bound to the Vitest signal via withinTest so a timeout still reaches finally cleanup. One deadline-free, signal-bound foreign-process observer remains per file where the test deliberately destroys the owner or rescues orphan groups whose handles are private to product code. Three retired sites drop out of the timeout-race baseline. No product source, test timeout, product grace, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delay faults fail the original bytes and pass these bytes, forced-abort probes reach cleanup, 140/140 standalone runs (20 per file), 3/3 replays of each owning shard (core-tooling-12 and core-tooling-16 on the rebased head), root-test typecheck, type-aware lint, base-aware timeout-race ratchet; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…g tests time out on loaded hosts while polling fixture files (openclaw#162688)

Tooling tests for the PR operation lock, PR git maintenance, CI platform checkout support, E2E temp-state directories, macOS app packaging, run-vitest, and Vitest fork OS diagnostics polled ready files, PID files, and the process table against 2-50 s deadlines, so a fixture process that outlasted the bound on a loaded host failed the test.

Waits now await the owned signal: retained child close promises registered at fork, the CI checkout fixture's existing ready() publication watcher, launcher write-before-exit contracts read directly once the launcher has exited, and fixture receipts or stdout readiness where the product owns the child. Escaped-group extinction keeps a signal-bound census, and vitest-fork-os-diagnostics drops out of the timeout-race baseline. The run-vitest conflict with main's openclaw#162584/openclaw#162613/openclaw#162627 keeps main's it.for structure and withinTest(context.signal) and adds this lane's native close promise and readiness gate. Waits needing a host-to-child release channel, Windows census budget-expiry assertions, and an operation-lock rescue that must outlive test abort stay unchanged as follow-ups. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delay probes fail the original bytes and pass these bytes, forced-abort probes reach cleanup, 20 standalone runs per touched file (run-vitest re-proven 20/20 on the resolved head), 3/3 replays of each owning shard, root-test tsgo, type-aware lint, base-aware timeout-race ratchet; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…e out on loaded hosts while polling fixture files (openclaw#162694)

src/infra tests for gateway locks, delivery-queue spooling, ports, session cost usage I/O, SQLite readonly/snapshot/schema workers, Tailscale parent loss, triage continuation, and the update run ledger / candidate state / database restore / managed-service handoff and triage polled marker files, PID files, and the process table against 1-10 s wall-clock deadlines, so a fixture child or worker that outlasted the bound on a loaded host failed the test.

Each wait now awaits the signal that owns it: retained ChildProcess close promises registered before the action (stop paths SIGKILL only if the child is still running in finally), pre-registered stdin finish events, worker/child readiness lines written after the fact they announce, fixture receipts with a durable-record fallback for product-owned children, and direct reads where an awaited operation guarantees the state. The managed-service handoff support gains an owned readiness relay, and the triage conflict with main's openclaw#162496 keeps its Bun preload adapter and timer ordering. Fake-clock/real-clock separation in the update tests is preserved. exec-host.native.test-support.ts (macOS-native) and the shared-state admission marker loop (the host blocks inside Worker.postMessage by design) stay unchanged. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delay probes fail the original bytes and pass these bytes, forced-abort probes reach cleanup, 20 standalone runs per touched file (triage files re-proven on the resolved head), 3/3 replays of each owning bundle, owning tsgo graphs, type-aware lint, base-aware timeout-race ratchet; Codex autoreview and ClawSweeper clean. The one red check, published-driver-update, hits its 10-minute job budget on every run including hourly main and its introducing PR openclaw#162629; openclaw#162765 owns that fix.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…oling tests fail on loaded hosts when fixture children outlast polling deadlines (openclaw#162747)

Script-tooling tests for the extension package tsc boundary check, full-release validation state, the kitchen-sink RPC walk, the plugin Gateway gauntlet, OpenClaw package-candidate resolution, upgrade-survivor registry identity, the Vitest pair benchmark, and the Vitest report owner polled readiness and PID files or raced process completion against 2-15 s deadlines while Node startup, worker admission, cancellation, or group cleanup was still pending, so a fixture child that outlasted the bound on a loaded host failed the test.

Waits now await durable fixture receipts, existing child close promises, stream callbacks, and stage stdout; one deadline-free, test-signal-bound foreign-PID observer remains per file where the owner cannot join the reap. Cleanup is memoized and also registered with onTestFinished, keeping PID files and fake clocks until the join, because Vitest could retire the worker before an aborted body's asynchronous finally cleanup completed. The plugin-gauntlet row drops out of the timeout-race baseline. The alpha/beta sibling-release gate in vitest-report-fixture.ts stays on its 15 s wait until the receipt helper gains a parent-to-child release channel. No product source, product timing, test timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: six old-fail/new-pass delay probes, fourteen clean forced-abort scenarios, 20 standalone runs of each owning test file, 3/3 replays of each owning shard (core-tooling-12 on the rebased head), root-test types, type-aware lint, base-aware timeout-race ratchet; Codex autoreview clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…l on loaded hosts when fixture children outlast polling deadlines (openclaw#162793)

Node-host tests for config worker readiness, the Claude agent CLI invocation cleanup, the invoke-worker supervisor, and the node-worker bundle installer polled for PID/marker files or raced readiness against fixed timers (1 s vi.waitFor defaults up to a 15 s withTestTimeout), so a fixture child or worker that outlasted the bound on a loaded host failed the test.

The config test awaits its workers' existing IPC ready promises through awaitGateBeforeSettlement and withinTest; the Claude CLI test forwards the real fs.rm completion callback, which the product reaches only after certified descendant extinction, then asserts directly; the supervisor and installer tests await fixture receipts sent after a durable PID write and consult that record when settlement beats the receipt. The config race drops out of the timeout-race baseline. Two PID-extinction checks where the product kills without joining child close, and the workspace-retention readiness/release pair that needs a host-to-child release signal, stay unchanged. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delayed-path probes fail the original bytes and pass these bytes, forced-abort probes reach cleanup, 80/80 standalone runs, 3/3 replays of each owning shard, targeted typecheck, type-aware lint, base-aware timeout-race ratchet; Codex autoreview clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…tests time out on loaded hosts while polling fixture files (openclaw#162674)

Extension tests for the browser Chrome internals, the Codex app-server transport, the 1Password secret-ref resolver, the QA Lab model catalog runtime, and the QA Lab test-file scenario command lifecycle polled marker and PID files against wall-clock deadlines, so a fixture child that outlasted the bound on a loaded host failed the test.

Waits now await fixture-owned readiness: owned stdout or IPC where the test spawns the child, and fixture receipts with a durable-record fallback where the product owns it. Extensions get the shared helpers (withinTest, awaitGateBeforeSettlement, openFixtureReceiptChannel, fixtureReceiptClientSource) through the local-only openclaw/plugin-sdk/test-fixtures facade, which is excluded from dist, instead of importing test/helpers or keeping per-plugin copies. The lifecycle test signals the retained leader with SIGTERM and awaits the existing command lifecycle's graceful cleanup, joining the same memoized cleanup from finally and onTestFinished because Vitest otherwise abandons a timed-out body before its async cleanup finishes. QA Lab drops its now-unused file/PID polling helpers. No product source, public SDK export, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delay probes fail the original bytes and pass these bytes, the forced-abort probe reproduces the leak before the cleanup join and finds no survivors after it, 100/100 then 50/50 standalone runs of the changed files, 7/7 owning extension bundles, qa-lab bundle (242 files, 2,656 tests), extension test boundary, plugin SDK subpath/broad-entry/core-import lints, deadcode, OpenGrep, extension tsgo, type-aware lint, base-aware timeout-race ratchet; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…fail on loaded hosts when fixture children outlast polling deadlines (openclaw#162791)

Script-tooling tests for E2E helper env limits, e2e-run-with-pty, the mobile release process, OpenClaw cross-OS release checks, plugin lifecycle measurement, the plugin release pre-tag pack check, plugin assertions, live tests, the UI script, and the upgrade-survivor systemd flow polled ready/PID files and the process table or raced child exit against fixed timers, so a fixture child that outlasted the bound on a loaded host failed the test.

Readiness now comes from child IPC, inherited stdout, or the existing fixture-receipt channel; where the product owns the child's output, a durable PID/readiness record written before the receipt is consulted when command settlement overtakes receipt delivery. Exact child close/exit promises are registered before signaling and retained through cleanup; direct liveness assertions are used only where the owner already joins the process tree. plugins-assertions consumes the npm registry fixture server's native IPC port message (added by openclaw#162738) instead of injecting its own readiness preload. The ClickClack stop path keeps its one-second SIGKILL escalation but waits for the actual child exit. Fixture bodies run inside the existing createFixtureLifetime owner so an aborted body's asynchronous cleanup is drained before temp-directory deletion. Six sites stay unchanged where the surviving leaf is detached or private to product code, or a host-to-child release handshake is missing. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: nine original-delay probes fail and pass on these bytes, eleven forced-abort checks reach cleanup, 200/200 standalone runs, 3/3 replays of each owning shard (core-tooling-12, core-tooling-16, and core-tooling-4 on the final head; plugins-assertions 20/20 after the IPC fix), root-test typecheck, type-aware lint, OpenGrep, base-aware timeout-race ratchet; Codex autoreview clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
… fail on loaded hosts when fixture children outlast polling deadlines (openclaw#162848)

Script-tooling tests for the bundled-plugin install/uninstall probe and runtime command, the ClawHub fixture server, compiler input snapshots, Crabbox staging, E2E mock config limits, full-release publication admission, kitchen-sink plugin assertions, the Parallels npm update smoke, the release CI summary, test-install-sh Docker, and the upgrade-survivor stop policy raced healthy fixture startup, file commitment, or teardown against 500 ms-20 s observation deadlines, so a slow but healthy fixture on a loaded host failed the test.

Waits now follow the producer: owned stdout/IPC (the ClawHub fixture server also reports its port over process.send when a Node caller owns IPC, after its existing atomic port-file write), fixture socket receipts reconciled against durable records, inherited pipe/FIFO receipts, existing deferreds, and process close joins. Crabbox staging uses distinct ready/release paths per recovery generation. Owners whose timed-out body Vitest would abandon register the same memoized cleanup with the test lifecycle and keep scoped directories until that join. The eight Darwin-native sites in pr-darwin-process-identity.test.py stay unchanged. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: deterministic delay probes fail the original bytes and pass these bytes, forced-abort probes verify first-finally markers and actual child extinction, 220 standalone runs, 3/3 replays of each of the eight owning shards, root types, type-aware lint, base-aware timeout-race ratchet; Codex autoreview clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
… polling outlasts its deadline (openclaw#162845)

TUI PTY e2e tests (harness, session identity, picker cancel, hyperlinks, reset transition, task suggestions, text wrap, and the shared PTY test support) repeatedly re-read JSONL fixture logs for callback and record-count assertions against 2, 20, or 60-second deadlines, so healthy PTY work that outlasted the bound on a loaded host failed the test.

119 of 120 sites now await suite-owned fixture receipts through a new tui-pty-receipts-test-support.ts that wires test/helpers/fixture-receipts.ts into the PTY fixtures, or read directly after an observed response that guarantees the fixture already committed its record. Fixtures commit each record before notifying the receipt channel, and when the owned PTY exit overtakes the socket the wait rechecks the durable log. Pending waits are bound to the Vitest context signal so a timeout still enters body cleanup, and submit decisions race the owned terminal-output callback. The 750 ms auth-child extinction poll stays until the receipt helper gains exit receipts. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: delay, abort, and durable-record probes; 160 final-byte standalone runs; 3/3 replays of core-runtime-tui-pty and core-runtime-media-ui-support; tsgo core and core-test; OpenGrep; type-aware lint; base-aware timeout-race ratchet; Codex autoreview clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant