Skip to content

fix(test): release-gated fixtures still poll release files; add release and exit receipts to the fixture receipt helper - #163063

Merged
steipete merged 1 commit into
mainfrom
steipete/poll-residual-a
Oct 1, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/poll-residual-a

Conversation

@steipete

@steipete steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: tests whose fixtures had to be told to proceed (a "release") or whose fixture exit could not be observed still polled generated release files 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.

User Impact

No user-visible change. These suites stop failing spuriously on slow machines; a fixture that never becomes ready now fails at its owning step or the Vitest test timeout.

Why This Change Was Made

Part of the polling audit from #162274. The shared fixture receipt helper (test/helpers/fixture-receipts.ts) was one-way: product-spawned fixtures could report to the test, but the test could not release a waiting fixture or observe the exit of a fixture whose process handle is private to product code, so these sites were left on file-polling loops in earlier batches. The helper now owns both directions, instead of a second broker:

  • release(source, token) sends a retained release over the existing socket to connections associated with source; fixtures call awaitRelease(source, token), which keeps the fixture alive only while a release is pending.
  • waitForExit(source) resolves when every connection that announced source has closed. Node sockets are close-on-exec, so for a fixture that never ends its socket, close means process exit.
  • openFixtureReleaseFifo(directory, name) gives shell fixtures and synchronously blocked callers a POSIX FIFO release (read -r _ < "$FIFO") with no polling.

New test/helpers/fixture-receipts.test.ts covers exit receipts (normal exit and 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 from the original list was retired upstream by #162925, which moved that cancellation into the Python owner. Remaining checkout extinction polls observe native Bash/Python owners or zombie-reaping contracts that socket close cannot prove, and stay unchanged. No product source, test timeout, product timeout, or assertion meaning changed.

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

Per-site conversions

Old line numbers below are from the pinned base, rather than older-main approximations.

File:old line Retired wait/deadline New signal Why
test/scripts/run-vitest-progress.test.ts:106 Generated release-file wait, 15 s Socket release to each ready source Host controls exact worker progression without watched stdout
test/scripts/vitest-report-fixture.ts:223 beta.done file wait, 15 s Beta durable done + receipt; host releases alpha Separate fork pools need process-capable transport
src/node-host/node-worker-workspace-retention.test.ts:588 Generated release-file loop, 5 s Socket release Keeps command active throughout retention
Same file, :591 Readiness vi.waitFor, 1 s Ready receipt + durable-marker settlement fallback No independent scheduler deadline
test/scripts/release-preflight.test.ts:66 Peer-entry loop, 3 s Peer ready receipt, release held command Async fixture parent serves the side channel
test/scripts/upgrade-survivor-systemd.test.ts:574 Shell 200×10 ms file loop Startup receipt followed by FIFO release Shell blocks without polling; async PTY parent can observe readiness
test/scripts/check-deadcode-reporting.test.ts:54 Scanner barrier, 5 ms polling / 5 s timer All-scanner starts + ordered per-scanner releases/completions Product retains stdio ownership
test/scripts/fixtures/ci-platform-checkout.mjs:476 Backoff-release file wait, 60 s actor lease Barrier/site retired by #162925; scenarios retained via owner self-signaling Rebase drops obsolete conversion and its receipt/release wiring; fixture matches main
test/scripts/pr-git-maintenance.test.ts:97 Hook release-file loop, 10 s Socket release Independent of Git-owned stdin

Stops, residuals, and deliberately unconverted sites

Compiler-start and compiler-drain barriers are absent from check-deadcode-reporting.test.ts at both pinned base and fetched origin/main. The file has only the scanner barrier. No substitute sites were added.

Remaining checkout extinction polls observe native Bash/Python owners, pre-registration actors, or zombie/reaped process-group contracts. Node socket closure cannot prove these outcomes; replacing them would weaken assertions or require out-of-scope/native product seams. They remain unchanged. The remaining workspace vi.waitFor observes product supervisor state, not authored fixture readiness or exit.

vitest-report-owner.test.ts, ci-platform-checkout.test.ts, and ci-checkout.test-support.ts required no edits. Their consumer proof remains included. Actual backoff consumers are ci-git-owner.test.ts and openclaw-performance-git-lifecycle.test.ts; they are additionally selected for focused proof and owning shards.

Native group extinction remains intentionally stronger than socket closure. Socket and FIFO behavior was live-tested on Linux Testbox; no Windows-native proof was run. Named-pipe handling remains in the shared socket path, and FIFO-using tests retain explicit Windows skip guards.

Evidence

All proof ran on Blacksmith Testbox through node scripts/crabbox-wrapper.mjs one-shot runs; no local Vitest.

Standalone repetitions (flake-triage bar)

All nine files passed 20/20 runs, 180 total. Command: CI=1 pnpm test <file> --maxWorkers=1. Candidate repetitions used at most four different files concurrently, one invocation per file, with distinct filesystem module caches. Baseline was one serial run per file, so these are observed costs under different load/cache conditions, not a controlled speed comparison. All cost values below are wall seconds.

File Baseline Candidate median Candidate range Clean
test/helpers/fixture-receipts.test.ts new 2.157 1.703–2.497 20/20
test/scripts/run-vitest-progress.test.ts 4.650 4.617 3.845–5.828 20/20
src/node-host/node-worker-workspace-retention.test.ts 24.860 34.610 31.363–40.378 20/20
test/scripts/release-preflight.test.ts 5.930 10.076 8.371–12.182 20/20
test/scripts/vitest-report-owner.test.ts 62.230 62.449 52.495–87.170 20/20
test/scripts/upgrade-survivor-systemd.test.ts 23.960 37.352 28.778–43.381 20/20
test/scripts/check-deadcode-reporting.test.ts 16.440 25.691 22.851–31.723 20/20
test/scripts/ci-platform-checkout.test.ts 50.200 50.887 49.293–56.863 20/20
test/scripts/pr-git-maintenance.test.ts 2.750 3.367 2.686–3.784 20/20

The new helper file meets the requested <3 s standalone target on all 20 measured runs. Both actual checkout backoff consumers also passed -t backoff (2.883 s and 2.824 s). The existing longer integration files preserve their native process/PTY/worker contracts; the new helper itself adds no real timers, sleeps, or polling.

Proof (from the lane report)

180/180 standalone runs, 30/30 owning-shard replays, both actual backoff consumers, both owning tsgo lanes, graph boundary, deadcode, OpenGrep, ratchet, formatting, and whitespace checks completed. The changed TypeScript files pass type-aware lint. The MJS fixture's 32 lint diagnostics are inherited, with every location mapped to byte-identical origin/main code; see fifo-checkout-mjs-lint-baseline-map.json and its log. They were not suppressed or broadened into this lane.

All Vitest execution was Blacksmith Testbox, Linux/Node 24.19.0. No local Vitest, local dependency installation, browser automation, direct credential-store inspection, or key retrieval was performed. Every proof execution used a fresh one-shot wrapper, with no lease-reuse --id or kept warmup. One failed read-only download diagnostic used --id; details are explicit below.

Proof command shape:

DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer node scripts/crabbox-wrapper.mjs run --timing-json -- bash -c "$(cat <payload.sh>)" > <log> 2>&1

Payloads and logs are retained beside this report: residual-a-baseline.sh, residual-a-probes.sh, residual-a-full-proof.sh, residual-a-finish-proof.sh, residual-a-opengrep.sh, and matching logs. The wrapper was never piped; source edits were held while capsules froze.

The full planner used createNodeTestShardBundles with release-only plugin/tooling/runtime, PR-exempt runtime, and proof inclusion enabled. Exact selected groups/commands are in residual-a-plan.json. Each replay used:

OPENCLAW_NODE_TEST_GROUPS_JSON='[group]' CI=1 node --import tsx scripts/ci-run-node-test-shard.mts
Owning group Clean replays Walls (s)
core-unit-fast-2 3/3 117.255, 64.195, 66.834
core-tooling-1 3/3 165.985, 163.855, 176.100
core-tooling-14 3/3 220.320, 194.190, 237.042
core-tooling-15 3/3 246.322, 139.956, 136.916
core-tooling-16 3/3 189.832, 182.471, 175.294
core-tooling-2 3/3 235.391, 242.466, 241.177
core-tooling-3 3/3 212.821, 170.635, 170.575
core-tooling-8 3/3 131.121, 129.446, 146.428
core-tooling-9 3/3 169.610, 152.719, 145.614
bundle-infra-small-runtime-17 3/3 192.394, 172.855, 180.458

node scripts/check-changed.mjs --dry-run --base origin/main selected coreTests, testRoot, and tooling; the owning type lanes were pnpm tsgo:core:test and pnpm tsgo:test:root.

Check Result Wall (s)
pnpm lint:tmp:tsgo-core-boundary PASS 45.888
pnpm tsgo:core:test PASS 1023.748
pnpm tsgo:test:root PASS 175.954
pnpm deadcode:full PASS 113.444
node --import ./scripts/tsx.mjs scripts/check-test-timeout-race-ratchet.mts --base origin/main PASS 6.023
git diff --check PASS 0.012
scripts/run-opengrep.sh --changed --sarif --error PASS, 0 findings 7.210

Local oxfmt --check passed on all ten changed files. Final type-aware commands exited 0:

node scripts/run-oxlint.mjs --type-aware --threads=1 --tsconfig test/tsconfig/tsconfig.test.root.json <changed test-root TypeScript files>
node scripts/run-oxlint.mjs --type-aware --threads=1 --tsconfig config/tsconfig/oxlint.core.json src/node-host/node-worker-workspace-retention.test.ts

OpenGrep was initially absent on Testbox and the Mac. The final one-shot provisioned the exact CI-pinned v1.30.0 Linux binary and verified SHA-256 35779bdd72e92129c8df2a77f0c55e8c08356801ea92591ef32108d6b28d564c. The canonical changed scan reported 104 rules on one source test file, zero findings, and one ignore notice; root test/ paths retain the repository's normal scope/exclusions. The actual SARIF is opengrep.sarif; no ignore or rule changes were made.

Original/fixed and forced-abort probes

Probe lease tbx_01m3w58tr3jvz256g59238ff1p, run, wrapper exit 0 and stopped. Original source bytes loaded from the pinned Git commit were SHA-256 checked against captured origin/main bytes before mutation. Exact payload is residual-a-probes.sh, full output residual-a-probes-4.log, machine counts fault-summary.json. Every mutation was applied identically and restored byte-exactly on both versions.

Fault Original outcome Fixed outcome
Workspace readiness delayed 1.5 s past old 1 s wait Fails expected false to be true at readiness assertion Pass
Workspace release delayed 5.5 s past old 5 s loop Fails retained-workspace existence assertion Pass
Preflight peer delayed 3.5 s past old 3 s loop Ready work did not start while another command held a worker Pass
Last scanner delayed 5.5 s past old 5 s barrier Missing 0.completed / scan produced no export sections after barrier expiry Pass
Progress release delayed 15.2 s past old 15 s wait timeout waiting for .../release-0 Pass
Maintenance release delayed 10.1 s past old 10 s wait maintenance gate was not released Pass
Systemd fixture startup delayed 5 s past old 200×10 ms loop PTY exit assertion: expected 1 to be 0 Pass
Checkout observer clock advanced 60.001 s (supplemental) Timed out waiting for backoff cancellation acknowledgement Pass

The deadline errors in workspace/scanner/shell cases are surfaced by the existing assertion/marker diagnostics, rather than a newly added message. The report-fork real-delay probe remains infeasible under its unchanged 5 s timeout as documented above.

Three temporary tests used explicit 1 s Vitest timeouts. Each produced the first-finally marker and joined child close, then verified process.kill(pid, 0) threw ESRCH:

FORCED_ABORT_FINALLY socket-release pid=11766
FORCED_ABORT_CLEANED socket-release pid=11766 ESRCH
FORCED_ABORT_FINALLY exit-receipt pid=11774
FORCED_ABORT_CLEANED exit-receipt pid=11774 ESRCH
FORCED_ABORT_FINALLY fifo-release pid=11782
FORCED_ABORT_CLEANED fifo-release pid=11782 ESRCH
FORCED_ABORT_MARKERS_ALL_PRESENT
FORCED_ABORT_RESTORED byte-exact

The expected three timeout failures were the only forced-abort failures; command exit 1 was required. No fixture child remained alive. The test file was restored before final proof. The helper's eight-case smoke passed at 1.540 s wall (446 ms Vitest duration); final repeated cost follows below.

Investigation history: two remote command transport attempts were too large (382 KB, then 114 KB), the latter proving /bin/bash: Argument list too long. Reduced payload is 11 KB by loading Git originals plus SHA checks. The first executing helper smoke caught incorrect use of it.each for context-bearing parameterized tests. These cases now use it.for; the corrected smoke and all fault probes passed. No helper runtime workaround was needed.

Standalone walls

All nine files passed 20/20 runs, 180 total. Command: CI=1 pnpm test <file> --maxWorkers=1. Candidate repetitions used at most four different files concurrently, one invocation per file, with distinct filesystem module caches. Baseline was one serial run per file, so these are observed costs under different load/cache conditions, not a controlled speed comparison. All cost values below are wall seconds.

File Baseline Candidate median Candidate range Clean
test/helpers/fixture-receipts.test.ts new 2.157 1.703–2.497 20/20
test/scripts/run-vitest-progress.test.ts 4.650 4.617 3.845–5.828 20/20
src/node-host/node-worker-workspace-retention.test.ts 24.860 34.610 31.363–40.378 20/20
test/scripts/release-preflight.test.ts 5.930 10.076 8.371–12.182 20/20
test/scripts/vitest-report-owner.test.ts 62.230 62.449 52.495–87.170 20/20
test/scripts/upgrade-survivor-systemd.test.ts 23.960 37.352 28.778–43.381 20/20
test/scripts/check-deadcode-reporting.test.ts 16.440 25.691 22.851–31.723 20/20
test/scripts/ci-platform-checkout.test.ts 50.200 50.887 49.293–56.863 20/20
test/scripts/pr-git-maintenance.test.ts 2.750 3.367 2.686–3.784 20/20

The new helper file meets the requested <3 s standalone target on all 20 measured runs. Both actual checkout backoff consumers also passed -t backoff (2.883 s and 2.824 s). The existing longer integration files preserve their native process/PTY/worker contracts; the new helper itself adds no real timers, sleeps, or polling.

Leases, interruptions, and limitations

  • Baseline: tbx_01m3w3yr7h5ttcs0p26f09v200, run, wrapper exit 0, stopped; eight existing files passed.
  • Fault/abort proof: tbx_01m3w58tr3jvz256g59238ff1p, run, wrapper exit 0, stopped.
  • Long final pass: tbx_01m3w5y4cp1sqe6q73mtk8ek3m, run, wrapper exit 255 after 1h47m. It recorded 180 standalone passes, two consumer passes, and 25 shard passes, but no result for the in-flight replay and no failed-test result. The cause remains undetermined. The lease was absent from blacksmith testbox list --all; no process was signaled. This remains a named Testbox/Crabbox follow-up, not a claimed source fix.
  • Remaining proof: tbx_01m3wdbvvntsb2r4jwxs9yd8ws, run, ran only the five unfinished shard replays and static gates, on the identical source tree. All passed except the initially missing OpenGrep executable; wrapper exit 1 and lease stopped. Source fingerprint comparison reported no changes.
  • OpenGrep completion: tbx_01m3wg309hxt7v549vnyt74twx, run, wrapper exit 0 and stopped, same source tree.

The long-run monitor initially missed the wrapper's termination footer because it displayed only completed test rows. A read-only blacksmith testbox download --id … attempt then failed with “no SSH key found.” That diagnostic step was stopped without looking up or retrieving credentials. This is the explicit diagnostic deviation from the no---id instruction; no proof execution reused a lease. The continuation added live child output and completion-footer monitoring, preserved valid prior results, and did not change source or retry a reported test failure.

Two requested real wall-delay proofs remain infeasible under frozen surrounding timeouts: the report fork has a 5 s native Vitest timeout below its old 15 s polling deadline, and checkout has a 45 s supervisor lease below its old 60 s observer deadline. The latter has supplemental clock-advance evidence; neither limitation was hidden by changing timeouts. The remaining native process-group polls and absent compiler-start/drain sites are documented in section 4.

Coordinator follow-up

  • Rebased onto main 7b4623d. test: make baseline-v2 Bun failures runtime-neutral #162925 had already moved the CI checkout backoff/cleanup cancellation into the Python owner, so this branch keeps main's checkout fixture unchanged (that site is retired upstream). On the rebased head, on Blacksmith Testbox: 80/80 standalone runs (20 per remaining test file, including the new helper test), 9/9 owning-shard replays, ratchet, oxfmt, type-aware lint (both scopes), git diff --check, pnpm deadcode:full.
  • Codex autoreview focused on the helper contract (release delivery and retention, exit observation, socket ref lifetime, FIFO open/write/close ordering, Windows named pipes, existing receipt consumers, released fixtures after failed tests): scoped-clean.

Extend the shared fixture receipt channel with retained socket releases and
connection-close exit observation, plus POSIX FIFO releases for blocked shell
fixtures. Keep ordinary receipt sends unref'd and tie release waits to fixture
liveness.

Convert the remaining release-blocked progress, report, workspace, preflight,
scanner, PTY, checkout, and maintenance fixtures without changing product
source, product deadlines, or existing assertion meanings.

Validate with real-process helper tests, delayed original/fixed fault probes,
forced-abort cleanup proofs, 180 standalone runs, and 30 owning-shard replays.
Native process-group extinction remains on its existing census contract.
@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.

@clawsweeper clawsweeper Bot added 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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, 6:56 PM ET / 22:56 UTC.

ClawSweeper review

What this changes

The PR replaces timed file polling in test fixtures with retained socket releases, connection-close exit observations, and POSIX FIFO gates.

Merge readiness

✅ Ready for maintainer review

Keep open: current main still lacks these fixture coordination changes, and the branch contains useful, bounded work with convincing process-level evidence. No blocking correctness or security finding was identified.

Priority: P2
Reviewed head: 3ff1a04dae8d441b5710db4bd1cc0ce5ce92682b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable test-reliability patch with strong fault and cleanup evidence and no blocking finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The matching captured body records Linux Testbox probes through real workspace, tooling, Git, Vitest, and PTY process paths: delayed original fixtures fail while converted fixtures pass, and explicit abort traces show joined cleanup and vanished child PIDs. Repetition and shard results supplement those observations; report-fork delay and Windows coverage limits are disclosed. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The matching captured body records Linux Testbox probes through real workspace, tooling, Git, Vitest, and PTY process paths: delayed original fixtures fail while converted fixtures pass, and explicit abort traces show joined cleanup and vanished child PIDs. Repetition and shard results supplement those observations; report-fork delay and Windows coverage limits are disclosed. No stored-data contract changes.
Evidence reviewed 8 items Pinned introduction and merge scope: Reviewed the merge-base-to-head delta at 7b4623d..3ff1a04. Raw test-merge parents match the pinned base followed by the exact head; its result changes only the same test and test-support paths.
Shared coordination owner: The helper retains releases for later associations, refs sockets only during pending release waits, rejects pending observations on closure, and keeps FIFO support explicitly POSIX-only. Converted callers retain durable-marker checks for independently ordered receipt and process-output streams.
Still necessary on current main: At fetched main 37a8f34, the helper remains one-way and the progress and report fixtures still use their 15-second file waits. The latest release v2026.9.7 does not contain the receipt helper at all; no merged replacement establishes this requested behavior.
Findings None None.
Security None None.

How this fits together

OpenClaw's test fixtures run children through real process and tooling owners. The shared receipt channel lets tests observe readiness and control progression without taking over product-owned input or output.

flowchart LR
  A[Test controller] --> B[Shared fixture channel]
  C[Fixture child] -->|Readiness receipts| B
  B -->|Retained releases| C
  A --> D[POSIX FIFO gate]
  D --> E[Shell fixture]
  C --> F[Real process and tooling owner]
  E --> F
  F --> G[Outcome and cleanup assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +573. Total +573 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 9 678 105 +573
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 678 105 +573

Review metrics

Metric Value Why it matters
New helper test cost 2.157 s median; 1.703–2.497 s across 20 runs The reported standalone cost stays below the repository's five-second target.

Technical review

Best possible solution:

Use the existing fixture channel for deterministic progression while preserving durable assertions, process-owner cleanup, and stronger native extinction checks.

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

Yes: current-main fixtures visibly race healthy child work against short file-polling deadlines, and the inspected proof body records original/fixed injected-delay failures and recovery. This read-only review did not execute them independently.

Is this the best way to solve the issue?

Yes: extending the existing test-owned channel removes the scheduling races without new production seams or weaker native process assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 37a8f3486209.

Labels

Label changes:

  • add P2: This addresses bounded test-fixture failures on loaded hosts without changing user-facing runtime behavior.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The matching captured body records Linux Testbox probes through real workspace, tooling, Git, Vitest, and PTY process paths: delayed original fixtures fail while converted fixtures pass, and explicit abort traces show joined cleanup and vanished child PIDs. Repetition and shard results supplement those observations; report-fork delay and Windows coverage limits are disclosed. No stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The matching captured body records Linux Testbox probes through real workspace, tooling, Git, Vitest, and PTY process paths: delayed original fixtures fail while converted fixtures pass, and explicit abort traces show joined cleanup and vanished child PIDs. Repetition and shard results supplement those observations; report-fork delay and Windows coverage limits are disclosed. No stored-data contract changes.

Label justifications:

  • P2: This addresses bounded test-fixture failures on loaded hosts without changing user-facing runtime behavior.
  • 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): The matching captured body records Linux Testbox probes through real workspace, tooling, Git, Vitest, and PTY process paths: delayed original fixtures fail while converted fixtures pass, and explicit abort traces show joined cleanup and vanished child PIDs. Repetition and shard results supplement those observations; report-fork delay and Windows coverage limits are disclosed. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The matching captured body records Linux Testbox probes through real workspace, tooling, Git, Vitest, and PTY process paths: delayed original fixtures fail while converted fixtures pass, and explicit abort traces show joined cleanup and vanished child PIDs. Repetition and shard results supplement those observations; report-fork delay and Windows coverage limits are disclosed. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction and merge scope: Reviewed the merge-base-to-head delta at 7b4623d..3ff1a04. Raw test-merge parents match the pinned base followed by the exact head; its result changes only the same test and test-support paths. (3ff1a04dae8d)
  • Shared coordination owner: The helper retains releases for later associations, refs sockets only during pending release waits, rejects pending observations on closure, and keeps FIFO support explicitly POSIX-only. Converted callers retain durable-marker checks for independently ordered receipt and process-output streams. (test/helpers/fixture-receipts.ts:80, 3ff1a04dae8d)
  • Still necessary on current main: At fetched main 37a8f34, the helper remains one-way and the progress and report fixtures still use their 15-second file waits. The latest release v2026.9.7 does not contain the receipt helper at all; no merged replacement establishes this requested behavior. (test/helpers/fixture-receipts.ts:14, 37a8f3486209)
  • Complete captured proof body inspected: The full GitHub body was inspected, and its SHA-256 matches the captured source identity 80a86f75cdc76d9ebaca3d14a597a1f6ef660cc3f902fa59a1f144aa5cc96f51. It reports Linux Testbox original/fixed delay probes through workspace execution, release-preflight scheduling, scanner launch, Vitest progress, Git maintenance, and PTY startup: original deadline failures become passes. Forced-abort traces record finally entry, joined child closure, and ESRCH for socket-release, exit-receipt, and FIFO cases. The coordinator follow-up records post-rebase repetitions and shard checks. (3ff1a04dae8d)
  • Proof boundaries: The body explicitly distinguishes the infeasible report-fork delay probe, whose existing five-second native timeout precedes the old polling deadline, from successful repetition coverage. It also records no Windows-native proof and preserves stronger native process-group extinction checks. These limitations do not establish an introduced defect. (test/scripts/vitest-report-fixture.ts:454, 3ff1a04dae8d)
  • Merged feature history: Current-main history connects Peter Steinberger to the original receipt helper and subsequent broadcast, socket-path, and maintenance-fixture work. The original helper patch was checked against its raw recorded parent. The merged foundation at fix(test): MCP fixture tests fail on loaded hosts when child startup outlasts polling deadlines #162274 explicitly left fixture release polling for later work. (test/helpers/fixture-receipts.ts:5, 739f704f4d2b)

Likely related people:

  • Peter Steinberger: Raw commit 739f704 adds test/helpers/fixture-receipts.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 739f704f4d2b; files: test/helpers/fixture-receipts.ts)

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.

@steipete
steipete merged commit 10b6bf7 into main Oct 1, 2026
137 checks passed
@steipete
steipete deleted the steipete/poll-residual-a branch October 1, 2026 23:05
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…se and exit receipts to the fixture receipt helper (openclaw#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 openclaw#162925. No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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