Skip to content

fix(test): ACPX, Anthropic CLI, ONNX, voice, WhatsApp, and SQLite flip-proof tests fail on loaded hosts when fixtures outlast polling deadlines - #163013

Merged
steipete merged 2 commits into
mainfrom
steipete/poll-w2-ext-2
Oct 1, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/poll-w2-ext-2

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: 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 fail on a loaded host when a fixture child or worker outlasts a wall-clock wait (1–60 s), because they poll files, PIDs, and process groups.

User Impact

No user-visible change. These suites stop failing spuriously on slow machines; a missing readiness or exit now fails at its owning step or the Vitest test timeout.

Why This Change Was Made

Part of the polling audit from #162274, following #162674 and its local-only openclaw/plugin-sdk/test-fixtures facade. Extensions import withinTest, awaitGateBeforeSettlement, and the fixture-receipt channel only through that 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.

Deliberately unchanged (12 sites): iMessage and OpenShell waits that need a host-to-child release, ONNX blocking-thread cases needing an acknowledged socket flush, the memory worker's BroadcastChannel receipt (not in the extension facade), and the Gateway managed-tree/pipe joins whose deadlines drive TERM-to-KILL escalation. 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 are the work-order anchors. Categories: 1 existing owned completion; 2 test-owned child readiness; 3 product-child fixture receipt; 4 ordered direct assertion; 5 deadline-free cancellation-bound residual.

File:old-line Old helper / deadline New signal / category Class Ordering or reason
extensions/acpx/index.test.ts:383 expect.poll / 10000ms Native session-new receipt + durable-record settlement check / 3 A owner-agent.mjs writes the entered marker before the receipt and any reply; withinTest releases held work on abort.
extensions/acpx/src/runtime-advertised-model.process.test.ts:176 expect.poll / 1000ms Both per-launch processLifecycle.onExit promises / 1 C acpx native ChildProcess exit observer forwards original launchId/PID; both rejected startup identities remain asserted.
extensions/anthropic/cli-process.test.ts:204 expect.poll / 1000ms Test-signal-bound descendant extinction check / 5 C Transport joins root exit and signal dispatch, but exposes no foreign-descendant extinction join; observation follows collected failure.
extensions/anthropic/cli-runtime.test.ts:329 vi.waitFor / 1000ms background.ready receipt + durable-record settlement check / 3 A Fixture records entry before protocol reply; separate receipt pipe may arrive late. Existing release/abort cleanup is reached through withinTest.
extensions/anthropic/cli-runtime.test.ts:421 vi.waitFor / 1000ms background.ready receipt + durable-record settlement check / 3 A Fixture records entry before protocol reply; separate receipt pipe may arrive late. Existing release/abort cleanup is reached through withinTest.
extensions/anthropic/cli-runtime.test.ts:668 vi.waitFor / 1000ms initialize.ready receipt + durable-record settlement check / 3 A Fixture records entry before protocol reply; separate receipt pipe may arrive late. Existing release/abort cleanup is reached through withinTest.
extensions/anthropic/cli-runtime.test.ts:150 vi.waitFor / 1000ms One file-local test-signal-bound process extinction check / 5 C Observation follows iterator.return; unchanged outer4000ms cancellation contract remains. No foreign descendant exit promise is exposed.
extensions/anthropic/cli-runtime.test.ts:494 vi.waitFor / 1000ms One file-local test-signal-bound process extinction check / 5 C Observation follows iterator.return and prepared.cleanup; rescue signaling remains afterward. No foreign descendant exit promise is exposed.
extensions/diagnostics-prometheus/src/install-runtime.e2e.test.ts:237 waitForFile / 10000ms Registry listening IPC message containing port / 2 A Existing npm-registry-server fixture publishes port only after listen; parent owns message/close observers and test signal.
extensions/discord/src/voice/voice-runtime.e2e.test.ts:296 vi.waitFor / 1000ms Session playbackQueue / 1 B receiveRecordedSpeech joins conversation enqueue before queue capture; segment.ts playback finally awaits releaseAudio.
extensions/imessage/src/send.handoff-native.test.ts:156 vi.waitFor / 10000ms group lookup fixture receipt + durable request-log check / 3 A Fixture appends request record before replies; settlement fallback reads that record, and withinTest reaches existing release cleanup.
extensions/imessage/src/send.handoff-native.test.ts:200 vi.waitFor / 10000ms threaded send fixture receipt + durable request-log check / 3 A Fixture appends request record before replies; settlement fallback reads that record, and withinTest reaches existing release cleanup.
extensions/imessage/src/send.handoff-native.test.ts:259 vi.waitFor / 10000ms caller A send fixture receipt + durable request-log check / 3 A Fixture appends request record before replies; settlement fallback reads that record, and withinTest reaches existing release cleanup.
extensions/imessage/src/send.handoff-native.test.ts:51 waitForRelease / 15000ms DEFERRED C Host-to-child release messages are explicitly unavailable; adding a second control mechanism is outside the supplied helper contract.
extensions/imessage/src/send.handoff-native.test.ts:62 waitForRelease / 15000ms DEFERRED C Host-to-child release messages are explicitly unavailable; adding a second control mechanism is outside the supplied helper contract.
extensions/imessage/src/send.handoff-native.test.ts:74 waitForRelease / 15000ms DEFERRED C Host-to-child release messages are explicitly unavailable; adding a second control mechanism is outside the supplied helper contract.
extensions/memory-core/src/dreaming-narrative.test.ts:196 vi.waitFor / 1000ms Existing completion log callback deferred / 1 B dreaming-narrative.ts success/fallback info logs follow awaited diary publication; same narrative/fallback assertions remain.
extensions/memory-core/src/memory/manager-publication-settlement.test.ts:139 performance.now/existsSync loop / 5000ms DEFERRED A Worker BroadcastChannel client exists internally but is absent from permitted SDK test-fixtures exports; no boundary expansion or duplicate encoder added.
extensions/onnx/src/worker-client.test.ts:144 fixture.waitFor / 10000ms Held-classification receipt + durable event log / 3 A Log precedes reply; socket receipt is awaited only for the asynchronous wait fixture, with release/stop in finally.
extensions/onnx/src/worker-client.test.ts:172 fixture.waitFor / 10000ms DEFERRED A Atomics.wait blocks the fixture immediately after recording; lazy socket receipt cannot connect/flush without an unavailable acknowledged-send capability.
extensions/onnx/src/worker-client.test.ts:202 fixture.waitFor / 10000ms DEFERRED A Atomics.wait blocks the fixture immediately after recording; lazy socket receipt cannot connect/flush without an unavailable acknowledged-send capability.
extensions/openshell/src/backend.e2e.test-support.ts:262 Python monotonic loop / 30000ms shared deadline DEFERRED B command/file release requires bidirectional remote fixture control; bridge file writes atomically replace files and cannot supply FIFO release/readiness semantics.
extensions/openshell/src/backend.e2e.test-support.ts:270 Python monotonic loop / 30000ms shared deadline DEFERRED B remote ready requires bidirectional remote fixture control; bridge file writes atomically replace files and cannot supply FIFO release/readiness semantics.
extensions/voice-call/src/tunnel.process.test.ts:158 readPid / 2000ms PID-ready receipt after signal-handler setup / 3 A withinTest + early-settlement gate precede the test-triggered startup timeout.
extensions/voice-call/src/tunnel.process.test.ts:78 waitForProcessExit / 1000ms DEFERRED B Rescue cleanup runs after the test signal may already be aborted; product-spawned child close handle/receipt is unavailable.
extensions/voice-call/src/tunnel.process.test.ts:128 readPid / 2000ms Direct PID read after tunnel readiness / 4 B withNgrok now writes PID before fixture ready stdout, which startTunnel awaits; positive-integer assertion retained.
extensions/voice-call/src/tunnel.process.test.ts:182 waitForProcessExit / 1000ms One file-local test-signal-bound extinction check / 5 C Observation follows startup timeout rejection; termination owner can return after bounded force-kill wait without exposing its close promise.
extensions/voice-call/src/tunnel.process.test.ts:130 waitForProcessExit / 1000ms One file-local test-signal-bound extinction check / 5 C Observation follows tunnel.stop completion; termination owner can return after bounded force-kill wait without exposing its close promise.
extensions/voice-call/src/tunnel.process.test.ts:171 expect.poll / 1000ms Direct SIGTERM receipt read after startup rejection / 4 C Synthetic SIGTERM handler writes synchronously; startup rejection follows the existing termination/force sequence in tunnel.ts.
extensions/voice-call/src/tunnel.process.test.ts:110 expect.poll / 2000ms Direct auth-evidence read after tunnel readiness / 4 C Fixture writes auth evidence before the stdout that resolves startTunnel.
extensions/whatsapp/src/auto-reply.web-auto-reply.connection-and-logging.e2e.test.ts:957 vi.waitFor / 1000ms One file-local test-signal-bound log check / 5 B Logger enqueue schedules asynchronous append; flushLogger is not exported by the permitted SDK. Existing message-specific assertions remain.
extensions/whatsapp/src/auto-reply.web-auto-reply.connection-and-logging.e2e.test.ts:995 vi.waitFor / 1000ms One file-local test-signal-bound log check / 5 B Logger enqueue schedules asynchronous append; flushLogger is not exported by the permitted SDK. Existing message-specific assertions remain.
extensions/whatsapp/src/inbound.media.test.ts:659 waitForLogLine / 2000ms One message-tagged test-signal-bound log check / 5 B Private logger flush has no plugin seam; listener cleanup is registered with onTestFinished, preserving direct/quoted diagnostics.
extensions/whatsapp/src/inbound.media.test.ts:726 waitForLogLine / 2000ms One message-tagged test-signal-bound log check / 5 B Private logger flush has no plugin seam; listener cleanup is registered with onTestFinished, preserving direct/quoted diagnostics.
extensions/whatsapp/src/send.test.ts:968 vi.waitFor / 2000ms Single test-signal-bound sent-poll log check / 5 B Private async logger flush is not exposed; unchanged redacted-target/JID/text assertions follow observation.
test/helpers/openclaw-test-instance.ts:558 waitForGatewayClose / <=1500ms per-stage default DEFERRED A This wait controls TERM-to-KILL escalation plus inherited pipes and exact group census; no deadline-free managed-tree join exists without changing the owner.
test/helpers/sqlite-sessions-transcripts-flip-proof.ts:648 withTimeout(closed) / remaining shared4000ms DEFERRED B Final cleanup must diagnose and retain unclosed pipe owners; no inherited-writer reclamation/join capability is exposed.
test/helpers/sqlite-sessions-transcripts-flip-proof.ts:640 stopChildProcess / 2000ms per signal,4000ms total DEFERRED B Deadline advances TERM-to-KILL and retains failed cleanup. Removing it would suppress escalation or hang final cleanup.
test/helpers/sqlite-sessions-transcripts-flip-proof.ts:1311 waitForFile / 60000ms Owned stdout lock-acquired line + durable ready file / 2 B Fixture writes ready after BEGIN IMMEDIATE before stdout; retained exit races via durable marker. readline preserves the typed3-stdio spawn contract.
test/helpers/sqlite-sessions-transcripts-flip-proof.ts:1330 waitForChildExit / 60000ms Exit event retained at child acquisition / 1 C Awaited import precedes natural-exit observation; code/signal identities preserved; test signal reaches existing cleanup.
test/helpers/sqlite-sessions-transcripts-flip-proof.ts:1448 pollUntil group census / 60000ms Single test-signal-bound exact group census / 5 C Managed owner exposes census, not a group-extinction event; dead is observed before inst.stopGateway can initiate extra cleanup.
test/helpers/sqlite-sessions-transcripts-flip-proof.ts:1432 withTimeout(exit+close) / 60000ms Existing pre-signal exit and close promises / 1 C Both observers are registered before the existing SIGKILL; withinTest unwinds and observer abort/join remains in finally.

Category-4 ordering references: extensions/voice-call/src/tunnel.process.test.ts:79 writes PID before fixture stdout; its auth evidence is written before the ready line at :120-124; extensions/voice-call/src/tunnel.ts:153-180 resolves startup from that line. The synthetic SIGTERM handler at test :159 writes synchronously before the termination completion observed after startup rejection; termination is tunnel.ts:23-50. Exact process extinction is still checked separately. Registry listen/port IPC is owned by scripts/e2e/lib/plugins/npm-registry-server.mjs:439-446. Discord queue installation and release are documented with owner citations in inprocess-probes.md; publication logs follow diary writes in extensions/memory-core/src/dreaming-narrative.ts:99-110,258-278.

Stops, residuals, and deliberately unconverted sites

Evidence

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

Coordinator notes on the Gateway E2E replays

The lane's changed E2E files passed in every Gateway replay. The replays' failures were all in untouched tests: src/agents/model-fallback.reply-entry.e2e.test.ts (six non-OpenAI cases record zero provider attempts; reproduced on a fresh replay and isolated, likely a latent main regression not exercised by per-PR CI — tracked as a separate follow-up), test/e2e/gateway-transcripts-discord-capture.e2e.test.ts teardown, test/system-agent-managed-auth.e2e.test.ts, test/e2e/qa-lab/runtime/agent-sandboxed-exec-behavior.e2e.test.ts, src/agents/bash-tools.exec-gateway-approval.e2e.test.ts, and the managed-worktrees Workboard product proof. None of their files or support modules are touched here.

  • Codex autoreview (P1 threshold): scoped-clean.

Follow-up: ClawSweeper descendant finding and measured cost (coordinator)

ClawSweeper found that the Anthropic CLI test's stderr descendant exited on its own after 10 s (setTimeout(..., 10000)), so the new deadline-free extinction wait could pass a regression that omits the transport's tree kill. 9501ce9 makes the descendant live until terminated. A negative control reproduced the false pass on the old fixture; the repaired fixture fails with termination disabled, and the rescue cleanup still removes the PID. An audit of every other converted extinction wait in this branch found no other self-expiring fixture. Re-proof: cli-process.test.ts 20/20 standalone, owning bundle 1 clean replay (76 files / 1,039 tests), extension boundary and plugin SDK import lints, type-aware lint, base-aware ratchet.

Negative-control probes (Testbox):

Probe Result Wall (s) Process observation
original-short-wait FAIL: original short poll rejects missing cleanup (test exit1) 22.613 Alive entering rescue: true; PID absent afterward: true
reviewed-self-expiry PASS: reproduces the reviewed false positive after natural expiry (test exit0) 31.305 Alive entering rescue: false; PID absent afterward: true
fixed-owned-lifetime FAIL: persistent descendant reaches cancellation-bound error (test exit1) 35.821 Alive entering rescue: true; PID absent afterward: true

Measured CI=1 pnpm test <file> --maxWorkers=1 wall on final bytes, 20 runs each (seconds):

File Median Max Range Source
extensions/acpx/index.test.ts 30.593 35.327 26.044–35.327 Reused; identical bytes
extensions/acpx/src/runtime-advertised-model.process.test.ts 40.743 43.351 36.365–45.153 Reused; identical bytes
extensions/anthropic/cli-process.test.ts 19.484 23.494 17.884–23.622 Fresh 20/20
extensions/anthropic/cli-runtime.test.ts 32.395 36.104 27.776–36.104 Reused; identical bytes
extensions/diagnostics-prometheus/src/install-runtime.e2e.test.ts 31.895 38.954 25.687–38.954 Reused; identical bytes
extensions/discord/src/voice/voice-runtime.e2e.test.ts 37.322 50.987 31.792–50.987 Reused; identical bytes
extensions/imessage/src/send.handoff-native.test.ts 30.035 40.745 25.365–40.745 Reused; identical bytes
extensions/memory-core/src/dreaming-narrative.test.ts 31.365 45.103 27.350–45.103 Reused; identical bytes
extensions/onnx/src/worker-client.test.ts 25.944 32.484 22.391–35.139 Reused; identical bytes
extensions/voice-call/src/tunnel.process.test.ts 30.154 43.571 25.143–43.571 Reused; identical bytes
extensions/whatsapp/src/auto-reply.web-auto-reply.connection-and-logging.e2e.test.ts 24.759 44.820 22.916–44.820 Reused; identical bytes
extensions/whatsapp/src/inbound.media.test.ts 28.525 44.419 26.076–44.419 Reused; identical bytes
extensions/whatsapp/src/send.test.ts 26.225 39.585 18.046–39.585 Reused; identical bytes
test/scripts/e2e-mock-config-limits.test.ts 33.337 43.800 29.517–43.800 Reused; identical bytes
test/scripts/sqlite-sessions-transcripts-flip-proof.built-cli.e2e.test.ts 98.325 127.773 91.706–127.773 Reused; identical bytes
test/scripts/sqlite-sessions-transcripts-flip-proof.e2e.test.ts 89.825 114.034 82.776–114.034 Reused; identical bytes

Replace 1-60 second file/PID readiness and cleanup polling deadlines with
owned fixture receipts, child IPC/stdout, launch exit callbacks, playback
queues, and publication completion. Check durable records when unordered
receipt delivery races operation settlement. Bind waits to the test signal
so timeout unwinds existing cleanup; retain one deadline-free observation
where no descendant or logger completion is exposed.

Preserve escalation deadlines and defer fixture controls that need missing
release/close capabilities. Reuse E2E-prepared runtime in the Prometheus
installer so a child rebuild cannot delete a sibling Gateway's dist chunks.
@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.

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web extensions: memory-core Extension: memory-core extensions: acpx extensions: anthropic extensions: diagnostics-prometheus plugin: onnx size: L labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed October 1, 2026, 6:55 PM ET / 22:55 UTC (Revision 2).

ClawSweeper review

What this changes

The PR replaces short polling deadlines in plugin tests and the SQLite lifecycle proof with fixture receipts, owned completion signals, and cancellation-bound observations.

Merge readiness

⛔ Needs changes before merge - 1 item remains

The previous false-pass finding is resolved, and current main still lacks these useful test reliability changes. No new blocking correctness defect was found.

Priority: P2
Reviewed head: 9501ce9b4a0037954303c670aabb2ddebd8d7f07

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test reliability repair with the previous correctness finding resolved and useful negative-control evidence.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor proof gate does not apply to this verified maintainer’s test-only PR. The recorded Testbox negative control exercises the Anthropic transport with termination disabled and observes assertion failure plus rescue cleanup; measured test runs are supplemental validation. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor proof gate does not apply to this verified maintainer’s test-only PR. The recorded Testbox negative control exercises the Anthropic transport with termination disabled and observes assertion failure plus rescue cleanup; measured test runs are supplemental validation. No stored-data contract changes.
Evidence reviewed 10 items Pinned introduction scope: Inspected the merge-base-to-head introduced diff. Changes are confined to tests and test support; no production implementation, dependency manifest, public API, or stored-data schema changes are introduced.
Previous finding repaired: The descendant now uses a persistent interval instead of natural ten-second expiry. Cancellation-bound extinction observation and finally-owned SIGKILL rescue remain. The earlier reviewed version was independently read through GitHub to verify this exact correction.
Complete captured proof context: Read the complete PR body through GitHub and verified SHA-256 f0cb1e4fc09c5cf2214b8a9bbdad3d397727842c88a2ded951f275bbfbbf6d4e, matching the supplied snapshot. It records the old fixture’s false pass with termination disabled, the repaired fixture’s failure under the same fault, rescue PID removal, 20 standalone passes, measured runtimes, and one clean 76-file/1,039-test provider-owner replay.
Findings None None.
Security None None.

How this fits together

OpenClaw’s test fixtures exercise plugin transports, worker processes, logging, and Gateway storage lifecycle behavior. Their readiness and cleanup signals determine when tests can safely assert results.

flowchart TD
  A[Test scenario] --> B[Plugin or Gateway operation]
  B --> C[Fixture child or worker]
  C --> D[Receipt or owned completion]
  C --> E[Recorded fixture evidence]
  D --> F[Cancellation-aware wait]
  E --> F
  F --> G[Assertions and cleanup]
Loading

Before merge

  • Complete next step (P2) - Complete and record the two already-requested provider-owner bundle replays on the reviewed bytes to satisfy the three-replay validation bar.
Agent review details

Security

None.

PR surface

Tests +287. Total +287 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 18 627 340 +287
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 627 340 +287

Review metrics

Metric Value Why it matters
Follow-up validation 20 standalone passes; 1 of 3 provider-owner replays The negative-control repair has focused validation, with two already-requested shard replays still unrun.
Production versus test growth production net 0; tests and test support net +287 lines Growth supplies fixture synchronization and cancellation cleanup without expanding production behavior.

Technical review

Best possible solution:

Keep test synchronization with existing readiness and completion owners while preserving independent failure assertions and termination-owned fixture lifetimes.

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

Yes, source establishes short polling deadlines racing child and worker readiness on loaded hosts. This review did not execute a current-main reproduction; the submitted negative control separately demonstrates the repaired descendant assertion’s failure sensitivity.

Is this the best way to solve the issue?

Yes, reusing existing receipt and completion owners avoids increasing timeouts or adding production test seams, and the repaired descendant remains alive until cleanup terminates it.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2e022fc146b6.

Labels

Label changes:

  • add P2: This is a bounded test reliability repair for loaded hosts, with no user-facing runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor proof gate does not apply to this verified maintainer’s test-only PR. The recorded Testbox negative control exercises the Anthropic transport with termination disabled and observes assertion failure plus rescue cleanup; measured test runs are supplemental validation. No stored-data contract changes.

Label justifications:

  • P2: This is a bounded test reliability repair for loaded hosts, with no user-facing runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor proof gate does not apply to this verified maintainer’s test-only PR. The recorded Testbox negative control exercises the Anthropic transport with termination disabled and observes assertion failure plus rescue cleanup; measured test runs are supplemental validation. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction scope: Inspected the merge-base-to-head introduced diff. Changes are confined to tests and test support; no production implementation, dependency manifest, public API, or stored-data schema changes are introduced. (9501ce9b4a00)
  • Previous finding repaired: The descendant now uses a persistent interval instead of natural ten-second expiry. Cancellation-bound extinction observation and finally-owned SIGKILL rescue remain. The earlier reviewed version was independently read through GitHub to verify this exact correction. (extensions/anthropic/cli-process.test.ts:214, 9501ce9b4a00)
  • Complete captured proof context: Read the complete PR body through GitHub and verified SHA-256 f0cb1e4fc09c5cf2214b8a9bbdad3d397727842c88a2ded951f275bbfbbf6d4e, matching the supplied snapshot. It records the old fixture’s false pass with termination disabled, the repaired fixture’s failure under the same fault, rescue PID removal, 20 standalone passes, measured runtimes, and one clean 76-file/1,039-test provider-owner replay. (9501ce9b4a00)
  • Remaining scoped validation: The repository’s flake-triage bar specifies 20 standalone runs and three original-shard runs. The follow-up commit explicitly reports one completed provider-owner replay and two requested replays left unrun after a proof-output parser stopped the payload. Public docs: docs/help/testing/writing-tests.md. (docs/help/testing/writing-tests.md:139, 9501ce9b4a00)
  • Still necessary on main: The pinned current-main Anthropic process test still uses the original short polling assertion and naturally expiring descendant. The related merged fixture PRs establish the shared approach but address different test families; neither supersedes this branch. No shipped fix is established. (extensions/anthropic/cli-process.test.ts, 2e022fc146b6)
  • Existing fixture ownership: The existing SDK facade exports cancellation and receipt helpers. Their implementation documents unordered receipt delivery; changed callers retain durable-record settlement checks. Registry IPC is published after listening, Discord playback releases audio in its finally block, and narrative completion logs follow diary publication. (src/plugin-sdk/test-fixtures.ts, 9501ce9b4a00)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete and record the two already-requested provider-owner bundle replays on the reviewed bytes using the existing isolated validation route.

Rating scale

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

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

Workflow

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

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-01T21:42:30.086Z sha 134e024 :: needs changes before merge. :: [P2] Keep the descendant alive until cleanup terminates it

Keep the inherited-stderr descendant alive until explicitly terminated.
Its previous ten-second lifetime could satisfy the cancellation-bound
extinction wait even when transport process-tree cleanup was missing.
Preserve the test signal and rescue cleanup after the observation.

A temporary no-kill control reproduces the reviewed false pass and makes
the repaired fixture fail with rescue cleanup verified. Final bytes passed
20 standalone runs and one complete provider owner replay; two requested
replays remain unrun after a proof-output parser stopped the payload.
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Owning-bundle replays on 9501ce9 now total 3/3 clean (coordinator, Blacksmith Testbox): replay 2 exit 0, 44.9 s, 76 files / 1,039 tests passed; replay 3 exit 0, 35.7 s, 76 files / 1,039 tests passed; extensions/anthropic/cli-process.test.ts ran in each (11 passed).

@steipete
steipete merged commit 8f9b234 into main Oct 1, 2026
136 of 138 checks passed
@steipete
steipete deleted the steipete/poll-w2-ext-2 branch October 1, 2026 23:38
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…p-proof tests fail on loaded hosts when fixtures outlast polling deadlines (openclaw#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 openclaw#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.
RomneyDa pushed a commit that referenced this pull request Oct 5, 2026
…p-proof tests fail on loaded hosts when fixtures outlast polling deadlines (#163013)

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

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

Part of the polling audit from #162274. Proof on Blacksmith Testbox: 320/320 standalone runs (cli-process.test.ts re-proven 20/20 after the descendant fix), 51/51 unit owner replays plus 3/3 owning-bundle replays on the final head, the changed Gateway E2E files passing in every Gateway shard replay (unrelated untouched-test failures there are tracked separately), extension and root tsgo, extension test boundary, plugin SDK import lints, deadcode, OpenGrep, type-aware lint, base-aware timeout-race ratchet; Codex autoreview clean.

(cherry picked from commit 8f9b234)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web extensions: acpx extensions: anthropic extensions: diagnostics-prometheus extensions: memory-core Extension: memory-core P2 Normal backlog priority with limited blast radius. plugin: onnx 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