Repository navigation
fix(test): MCP fixture tests fail on loaded hosts when child startup outlasts polling deadlines - #162274
Conversation
…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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Audit continued: class B, C, and N call sites (331)Same audit as the PR body (lines refer to Show 331 rows
|
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 1:04 AM ET / 05:04 UTC (Revision 4). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherOpenClaw'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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +224. Total +224 across 5 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
#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.
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.
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.
…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.
…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.
…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).
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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).
…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.
… 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.
…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.
… 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.
… 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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
… 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.
… 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.
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.tsfailed 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 againstLIST_TOOLS_SERVER_LOG_TIMEOUT_MS = 2_000/4_000. The awaited work is healthy but heavy — a fresh Node child, MCPinitialize, thentools/list— so a loaded runner pushes it past the deadline.docs/help/testing/writing-tests.mdalready forbids real timers, sleeps and polling for exactly this reason. #161691 fixed thewithTestTimeoutside 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.tsgives the test that missing signal: a test-owned Unix socket (named pipe on Windows) that generated fixtures report to with newline-delimited JSON receipts. Fixturelog()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 sideunref()s its socket so observation never keeps a product-owned child alive.Each wait was converted to the signal that actually owns it:
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.withinTestkeeps body-finallycleanup (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.tools/call,resources/listandprompts/listreplies are now held on a release gate that opens after the three cancellations; the timer knobs had no other users.getCatalog()/callTool()/listResources()resolve the state already exists. Child extinction aftermaterialized.dispose()andmanager.disposeSession()is asserted directly because both joinruntime.joinCleanup(), andcloseOwnedStdioProcessjoins the process group'swaitForExtinction().holdmarker (reload test): the${marker}.startedfile polled withexpect.poll(1 s default) becomes astartedreceipt; both readers moved, so the file write is gone.transport.onmessage), replacing a PID file polled withvi.waitFor(1 s default). Graceful shutdown asserts extinction right aftertransport.close(). The spontaneous-exit case deliberately does not callclose()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_changedconsumption, stale-while-recovering catalog publication, recovery after an external SIGKILL, recycle after repeated timeouts, App-view expiry retirement, HTTP session replacement). They use one localwaitForRuntimeState(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 thetest/helpers/process-wait.tsexports —waitForFile,waitForPidFile,waitForDead,waitForChildClose(event-based but timer-bounded),waitForFixtureFile, andisProcessAliveinside a caller-owned deadline loop — plus local copies of the same shape undersrc/agentsandsrc/process(waitForFileTextand friends, filesystem/processexpect.poll/vi.waitFor,src/test-utilswaitForPidToExit/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-effortafterEachPID 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 130ci.ymlruns 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 fromtest/helpers/process-wait.tsor from these helpers' messages. The onlyTimed out waiting …hits were a timer-based event waiter insrc/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.githubprocess-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):
src/agents/prepared-model-catalog-worker*.integration.test.ts: 8 class-Aexpect.pollsites at the 1 s default over worker dispatch; they need worker entry messages.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-receiptsserves the product-spawned cases.test/scripts/test-group-report.test.ts:1008: a 5 swaitForChildCloseguard that races the product's own 5 s termination grace.src/process/spawn-broker/restart.test.tsandsrc/process/supervisor/adapters/child.service-lifecycle.test.tsare 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).src/process/supervisor/supervisor.forced-settlement.real.test.ts:25src/agents/agent-bundle-mcp-reload.test.ts:821fixed heresrc/agents/prepared-model-catalog-worker.scope.integration.test.ts:307src/agents/prepared-model-catalog-worker.integration.test.ts:238src/agents/prepared-model-catalog-worker.pool.integration.test.ts:148src/agents/prepared-model-catalog-worker.pool.integration.test.ts:276src/agents/prepared-model-catalog-worker.pool.integration.test.ts:422src/agents/prepared-model-catalog-worker.pool.integration.test.ts:477src/agents/prepared-model-catalog-worker.pool.integration.test.ts:589src/agents/prepared-model-catalog-worker.pool.integration.test.ts:746src/agents/mcp-stdio-transport.process.test.ts:38fixed heresrc/agents/mcp-stdio-transport.process.test.ts:75fixed heresrc/process/supervisor/supervisor.readiness.real.test.ts:74src/agents/worktrees/filesystem-native.test.ts:161test/helpers/openclaw-test-instance.test.ts:1186src/process/supervisor/supervisor.no-detach.real.test.ts:198src/agents/agent-bundle-mcp-runtime.test.ts:3996fixed heresrc/agents/agent-bundle-mcp-runtime.test.ts:4068fixed heresrc/agents/agent-bundle-mcp-runtime.test.ts:4140fixed heresrc/agents/agent-bundle-mcp-runtime.test.ts:1001fixed heresrc/agents/agent-bundle-mcp-runtime.test.ts:1615fixed heresrc/agents/agent-bundle-mcp-runtime.test.ts:1677fixed heresrc/agents/agent-bundle-mcp-runtime.test.ts:4139fixed heresrc/agents/agent-bundle-mcp-runtime.test.ts:4231fixed heresrc/agents/agent-bundle-mcp-runtime.test.ts:4236fixed heretest/scripts/resolve-openclaw-package-candidate.test.ts:678test/scripts/tsdown-build.test.ts:1841test/scripts/check-deadcode-unused-files.test.ts:426test/scripts/run-additional-boundary-checks.test.ts:533test/scripts/check-extension-package-tsc-boundary.test.ts:560test/scripts/resolve-openclaw-package-candidate.test.ts:529test/scripts/resolve-openclaw-package-candidate.test.ts:624test/scripts/tsdown-build.test.ts:1562test/scripts/tsdown-build.test.ts:1705test/scripts/tsdown-build.test.ts:1772test/scripts/managed-child-process.test.ts:1323test/scripts/run-additional-boundary-checks.test.ts:439test/scripts/test-group-report.test.ts:1057test/scripts/check-extension-package-tsc-boundary.test.ts:468test/scripts/resolve-openclaw-package-candidate.test.ts:573test/scripts/check-deadcode-unused-files.test.ts:427test/scripts/managed-child-process.test.ts:1324test/scripts/tsdown-build.test.ts:1842src/process/terminal-pty-bun.test.ts:110src/agents/harness/acp-native-execution.process.test.ts:331src/commands/agent-exec.construction.test.ts:109src/agents/sessions/exec.real.test.ts:65src/agents/agent-bundle-mcp-runtime.test.ts:520fixed heresrc/agents/agent-bundle-mcp-runtime.test.ts:1397fixed heresrc/tui/tui-pty-local.e2e.test.ts:1624test/scripts/tsgo-core-test-shards.test.ts:881test/scripts/test-extension.test.ts:986test/scripts/test-extension.test.ts:987test/scripts/docker-all-harness.test.ts:245test/scripts/check-changed-cancellation.test.ts:131test/scripts/direct-run-entrypoints.test.ts:898test/scripts/test-live-shard.test.ts:688test/scripts/test-live-shard.test.ts:689test/scripts/run-vitest-bounded.test.ts:360test/scripts/run-node-lifecycle.test.ts:209test/scripts/run-node-lifecycle.test.ts:298test/scripts/run-node-lifecycle.test.ts:403test/scripts/profile-extension-memory.test.ts:1185src/infra/update-candidate-state.cleanup.test.ts:515src/process/supervisor/adapters/child.service-lifecycle.test.ts:229src/process/supervisor/adapters/child.service-lifecycle.test.ts:49src/process/supervisor/adapters/child.service-lifecycle.test.ts:514src/process/supervisor/supervisor.anchored-shell.real.test.ts:143src/agents/worktrees/service.provisioned.test.ts:472src/cli/cli-process-child.test-helpers.test.ts:367test/scripts/managed-child-process.test.ts:527test/scripts/profile-extension-memory.test.ts:1100test/scripts/plugin-npm-security-scan-runner.test.ts:236test/scripts/plugin-npm-security-scan-runner.test.ts:237test/scripts/full-release-validation-state.test.ts:3205test/scripts/full-release-validation-state.test.ts:3308test/helpers/openclaw-test-instance.test.ts:727src/process/spawn-broker/handoff-crash.test.ts:38test/scripts/vitest-e2e-global-setup.test.ts:186test/scripts/managed-child-process.test.ts:1767test/helpers/process-wait.test.ts:121test/scripts/test-group-report.test.ts:1008test/scripts/docker-all-harness.test.ts:283test/scripts/check-deadcode-unused-files.test.ts:432test/scripts/kitchen-sink-rpc-walk.test.ts:1401test/scripts/check-extension-package-tsc-boundary.test.ts:631test/scripts/vitest-worker-artifacts.ci.test.ts:284 first.pidtest/scripts/vitest-worker-artifacts.ci.test.ts:284 first.parentsrc/process/supervisor/adapters/child.service-lifecycle.test.ts:344src/process/exec.windows.integration.test.ts:142src/process/spawn-broker/restart.test.ts:77src/gateway/worker-environments/workspace-accepted-sync.test.ts:226src/gateway/worker-environments/workspace-accepted-sync.test.ts:232src/gateway/worker-environments/workspace-accepted-sync.test.ts:259src/gateway/worker-environments/workspace-accepted-sync.test.ts:377src/gateway/worker-environments/workspace-accepted-sync.test.ts:382src/gateway/worker-environments/workspace-accepted-sync.test.ts:428src/gateway/worker-environments/workspace-accepted-sync.test.ts:563src/gateway/worker-environments/workspace-accepted-sync.test.ts:568src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:26src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:128src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:154src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:286src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:321src/gateway/worker-environments/workspace-sync-manifest.test.ts:29src/gateway/worker-environments/workspace-sync-manifest.test.ts:399src/gateway/worker-environments/workspace-sync-manifest.test.ts:421src/gateway/worker-environments/workspace-sync-tunnel.test.ts:458src/gateway/worker-environments/workspace-sync-tunnel.test.ts:460test/e2e/qa-lab/runtime/gateway-ssh-tunnels.test.ts:229test/e2e/qa-lab/runtime/gateway-ssh-tunnels.test.ts:249test/scripts/managed-child-process.test.ts:317test/scripts/managed-child-process.test.ts:1790test/scripts/run-tsgo.test.ts:608test/scripts/direct-run-entrypoints.test.ts:241test/scripts/managed-child-process.windows.test.ts:152test/scripts/nested-retention.test-support.ts:106test/scripts/test-group-report.test.ts:1001test/scripts/test-group-report.test.ts:1002test/scripts/lint-status.test.ts:294test/scripts/dev-tooling-safety.test.ts:838test/scripts/plugin-npm-security-scan-runner.test.ts:232test/scripts/run-additional-boundary-checks.test.ts:542src/agents/sessions/settings-storage.test.ts:234src/agents/sessions/settings-storage.test.ts:422src/agents/sessions/settings-storage.test.ts:429Per-file rollup (114 files)
src/agents/agent-bundle-mcp-runtime.test.tsfixed heresrc/gateway/worker-environments/workspace-accepted-sync.test.tstest/scripts/managed-child-process.test.tssrc/agents/prepared-model-catalog-worker.pool.integration.test.tstest/scripts/tsdown-build.test.tssrc/gateway/worker-environments/workspace-mutation-remote-script.test.tssrc/process/supervisor/adapters/child.service-lifecycle.test.tstest/scripts/resolve-openclaw-package-candidate.test.tstest/scripts/test-group-report.test.tstest/scripts/run-node-lifecycle.test.tssrc/agents/sessions/settings-storage.test.tstest/scripts/check-extension-package-tsc-boundary.test.tstest/scripts/check-deadcode-unused-files.test.tstest/scripts/plugin-npm-security-scan-runner.test.tstest/scripts/run-additional-boundary-checks.test.tssrc/gateway/worker-environments/workspace-sync-manifest.test.tstest/scripts/docker-all-harness.test.tstest/helpers/openclaw-test-instance.test.tstest/scripts/vitest-worker-artifacts.ci.test.tstest/scripts/profile-extension-memory.test.tssrc/agents/mcp-stdio-transport.process.test.tsfixed heretest/scripts/full-release-validation-state.test.tstest/e2e/qa-lab/runtime/gateway-ssh-tunnels.test.tstest/scripts/direct-run-entrypoints.test.tssrc/gateway/worker-environments/workspace-sync-tunnel.test.tstest/scripts/test-extension.test.tstest/scripts/test-live-shard.test.tssrc/process/supervisor/supervisor.no-detach.real.test.tstest/scripts/dev-tooling-safety.test.tssrc/agents/prepared-model-catalog-worker.integration.test.tssrc/process/terminal-pty-bun.test.tstest/helpers/process-wait.test.tssrc/process/supervisor/supervisor.anchored-shell.real.test.tstest/scripts/nested-retention.test-support.tstest/scripts/run-tsgo.test.tstest/scripts/run-vitest-bounded.test.tssrc/agents/harness/acp-native-execution.process.test.tssrc/infra/update-candidate-state.cleanup.test.tssrc/process/exec.windows.integration.test.tssrc/process/supervisor/supervisor.forced-settlement.real.test.tssrc/process/supervisor/supervisor.readiness.real.test.tstest/scripts/vitest-e2e-global-setup.test.tssrc/agents/agent-bundle-mcp-reload.test.tsfixed heresrc/agents/prepared-model-catalog-worker.scope.integration.test.tssrc/agents/sessions/exec.real.test.tssrc/agents/worktrees/filesystem-native.test.tssrc/agents/worktrees/service.provisioned.test.tssrc/commands/agent-exec.construction.test.tssrc/tui/tui-pty-local.e2e.test.tstest/scripts/check-changed-cancellation.test.tstest/scripts/tsgo-core-test-shards.test.tssrc/cli/cli-process-child.test-helpers.test.tssrc/process/spawn-broker/handoff-crash.test.tssrc/process/spawn-broker/restart.test.tstest/scripts/kitchen-sink-rpc-walk.test.tstest/scripts/lint-status.test.tstest/scripts/managed-child-process.windows.test.tstest/scripts/prepare-extension-package-boundary-artifacts.test.tstest/scripts/run-oxlint.test.tssrc/gateway/gateway-cron-scheduler.live.test.tssrc/process/exec.test.tstest/scripts/plugin-gateway-gauntlet.test.tstest/scripts/vitest-worker-artifacts.test.tssrc/cli/update-cli/update-command-retained-custody.test.tstest/helpers/run-node-script.test.tstest/scripts/vitest-fork-shutdown.test.tstest/scripts/vitest-pair-benchmark.test.tstest/scripts/vitest-worker-shutdown.test.tstest/scripts/write-cli-startup-metadata.test.tssrc/agents/sessions/bash-output-spill.test-support.tssrc/infra/update-managed-service-handoff.test-support.tssrc/process/exec-spawn.test.tssrc/process/terminal-pty-node.test.tstest/scripts/control-ui-i18n.test.tstest/scripts/crabbox-wrapper.test.tstest/scripts/dist-artifact-ownership.test.tssrc/agents/provider-local-service.test.tssrc/commands/agent-exec-plugin.e2e.test.tssrc/config/io.write-effects.windows.test.tssrc/gateway/server.sessions.create.projects.test.tssrc/infra/sqlite-worker-preparation.test.tssrc/infra/update-managed-service-handoff-boundary.test-support.tssrc/infra/update-managed-service-handoff-settlement.test.tssrc/process/terminal-pty.test.tssrc/state/openclaw-agent-worker-store.test-support.tstest/scripts/bench-cli-startup.test.tstest/scripts/vitest-report-fixture.tssrc/agents/embedded-agent-subscribe.raw-stream.test.tssrc/agents/mcp-stdio-client.cleanup.real.test.tssrc/agents/prepared-model-catalog-worker.custody.integration.test.tssrc/agents/prepared-model-catalog-worker.retirement.integration.test.tssrc/agents/provider-local-service.shutdown.test.tssrc/agents/worktrees/service.hooks.test.tssrc/cli/update-cli/update-command-candidate-authority.process.test.tssrc/cli/update-cli/update-command-executor-legacy.test.tssrc/cli/update-cli/update-command-fresh-doctor-authority.test.tssrc/infra/tailscale.test.tssrc/infra/update-candidate-state.budget.test.tssrc/infra/update-managed-service-handoff-process.test-support.tssrc/infra/update-managed-service-triage.test-support.tssrc/process/exec-termination.test.tssrc/process/spawn-broker/host.test.tstest/e2e/qa-lab/runtime/gateway-heartbeat-session-routing.e2e.test.tstest/e2e/qa-lab/runtime/gateway-tls-pinning.tstest/scripts/ci-platform-checkout.test.tstest/scripts/docker-all-scheduler.test.tstest/scripts/fixture-lifetime.test.tstest/scripts/prepublish-plugin-registry-shell.test.tstest/scripts/run-vitest-profile.test.tstest/scripts/run-vitest-progress.test.tstest/scripts/run-with-env.test.tstest/scripts/tsgo-shard-cancellation.test.tstest/scripts/upgrade-survivor-missing-plugin-proxy.test.tstest/scripts/upgrade-survivor-registry-identity.test.tsClass 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:
Timed out waiting for recv tools/list in …/server.log; saw ""initialize, beforetools/list/notification handling (old lines 3996, 4068)Timed out waiting for tools/list cursor in …/server-1.log; saw "recv initialize\n"andTimed out waiting for notify tools/list_changed in …/invalidating-server.log; saw "recv initialize\n"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):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).agentic-agents-core-runtime(320 listed files; group rebuilt fromcreateNodeTestShardBundles(), run throughscripts/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 scopedagents-coreconfig and run in thecore-unit-fast-*shards, so Vitest executes 208 here.src/agents/*mcp*.test.tsfiles pass.pnpm tsgo:core:test --changed-paths-json …(agents-root) passes.oxfmt --check,oxlint,git diff --checkclean on all five files.Cost (
pnpm test <file> --maxWorkers=1wall 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
mainthrough the merge ref and touch no file in this PR:test/scripts/type-suppression-inventory.test.ts(a suppression added by #159873, inventoried onmaininbd1138797711) andtest/scripts/pr-wrappers.test.ts:444(a stale expectation after #162249 stopped expiring ClawSweeper reviews, fixed onmainin3988e4ac66bd). 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.