Skip to content

test(cli): diagnose stalled Doctor test children - #151161

Merged
steipete merged 3 commits into
mainfrom
upd/flake-config-validate-child-hang
Sep 18, 2026
Merged

steipete merged 3 commits into
mainfrom
upd/flake-config-validate-child-hang

Conversation

@steipete

@steipete steipete commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Related: #151124, #150831

What Problem This Solves

Doctor process tests could time out without collecting diagnostics. After switching those tests to the shared asynchronous CLI harness, failure cleanup also needed to finish before their input, state, and diagnostic fixtures were deleted.

User Impact

Test infrastructure only. The intermittent CLI exit hang observed in CI remains unreproduced locally; this PR makes a future occurrence diagnosable and keeps failure cleanup from losing its evidence. Child execution deadlines, command order, runtime flags, output limits, and exit-code assertions are unchanged.

Why This Change Was Made

Built/source runtime tests use the existing diagnostic harness from #150288 and #151088, including main's shared Node report collector. The enclosing test budget covers sequential child deadlines plus diagnostic grace, a separate five-second cleanup allowance, and the existing setup/assertion margin. A timeout remains a failure even if the child exits during diagnostics or cleanup.

Cleanup joins forced direct-child exit and natural output EOF before closing local pipe endpoints. This preserves successful launcher handoff and detects a detached child that still owns inherited output. If cleanup cannot be verified, the original error is retained and the existing fixture-lifetime owner preserves diagnostic reports, HOME/state, input runtimes, and resource claims. All migrated callers use that owner with their existing afterEach/afterAll timing. No process-group kill, new supervisor, or deadline extension is introduced.

Evidence

Current head: 83151dfda804117818905887cffe7b6b450a828f.

  • Exact-head CI passed, including the Doctor composition lane. Current ClawSweeper review has no remaining actionable findings.
  • The integration with the shared report collector passed 28 focused cases, the complete selected sixteen-file check, and independent P2 review. All sixteen PR files match that qualified integration byte-for-byte; unrelated main changes make the complete Git trees different.
  • The earlier cleanup follow-up passed 100 selected scenarios across twelve files, including both July upgrade variants and every migrated fixture owner. Its final seventeen-case harness was rerun in the current integration proof. This earlier evidence remains source-scoped, not a claim that the entire earlier tree is current.
  • Regressions failed before repair for early child settlement, report/HOME/runtime deletion with live children, and both stalled inherited-output shapes. The finite handoff control passes. A rejected identity lookup also has a verified cleanup regression; synthetic descendants are explicitly stopped and joined.
  • The diagnostic-budget regression preserves its one-second child limit and verifies that the native timer report reaches Vitest. Earlier Linux proof passed 77 cases at a preceding revision: run 35279778709. It is historical evidence, not current-head proof.

The original Doctor timeout, the matching-main evidence in this PR's discussion, and the latest catalog occurrence remain recorded. The last occurrence printed the expected invalid-config report and timed out in the initial config-validation child, before Doctor ran. This change repairs diagnostic and cleanup ownership; it does not establish the cause of those hangs. No failed CI jobs were blindly retried.

@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 17, 2026 21:30
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes commands Command implementations size: M maintainer Maintainer-authored PR labels Sep 17, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 9:07 PM ET / September 18, 2026, 01:07 UTC (Revision 6).

ClawSweeper review

What this changes

Routes Doctor process tests through shared timeout diagnostics and preserves their temporary files until child cleanup is verified.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main lacks the Doctor harness migration and joined cleanup. The earlier budget and fixture-lifetime findings are addressed, and no remaining actionable defect was found.

Priority: P3
Reviewed head: 83151dfda804117818905887cffe7b6b450a828f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused harness repair with meaningful regression coverage and both earlier findings addressed.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-owned test-infrastructure PR is exempt from the external-contributor proof gate; reported subprocess regressions exercise diagnostics, joined cleanup, and fixture retention, without claiming to reproduce the production hang.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-owned test-infrastructure PR is exempt from the external-contributor proof gate; reported subprocess regressions exercise diagnostics, joined cleanup, and fixture retention, without claiming to reproduce the production hang.
Evidence reviewed 8 items Introduced scope: Reviewed the pinned merge-base-to-head changes, including all migrated callers, shared child cleanup, temporary-home retention, and regression coverage. The supplied verified test merge limits the merge result to these same test and test-support paths; unrelated base changes are not attributed to this PR.
Earlier findings addressed: Cleanup awaits forced direct-child exit and natural stdout/stderr EOF before closing local pipes. Enclosing test budgets reserve diagnostic grace, five seconds for cleanup, and setup/assertion time without extending child deadlines.
Fixture retention: Unverified cleanup propagates the existing unjoined-work marker. Temporary-home cleanup preserves state and its resource claim while restoring the parent environment; migrated runtime fixtures track child completion through the existing fixture-lifetime owner.
Findings None None.
Security None None.

How this fits together

Doctor process tests launch isolated CLI commands against temporary configuration and state. The shared child harness captures output and diagnoses timeouts, while fixture owners control when test files can be removed.

flowchart TD
  A[Doctor process tests] --> B[Isolated CLI child]
  B --> C[Output and deadline monitor]
  C --> D[Timeout diagnostics]
  D --> E[Verify child exit and output EOF]
  E --> F{Cleanup verified?}
  F -->|Yes| G[Release temporary fixtures]
  F -->|No| H[Retain fixtures and original failure]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +633. Total +633 across 16 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 16 1400 767 +633
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 1400 767 +633

Review metrics

Metric Value Why it matters
Production versus test growth Production +0; tests and test support +633 net lines Growth supports diagnostics, fixture ownership, and regressions without changing production Doctor behavior.

Technical review

Best possible solution:

Use the existing child and fixture owners to preserve diagnostic evidence and command deadlines, while investigating the original intermittent hang separately.

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

Yes for the harness defects: source shows cleanup can settle before child exit, and focused regressions cover stalled children and retained fixtures. The original intermittent production Doctor hang remains unreproduced; no tests were executed during this review.

Is this the best way to solve the issue?

Yes. Reusing the existing diagnostic, child-stop, and fixture-lifetime owners repairs the test boundary while preserving command deadlines, launcher handoff, and production behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 00e7e263a157.

Labels

Label justifications:

  • P3: This improves test diagnostics and cleanup without changing user-facing runtime behavior.
  • 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 maintainer-owned test-infrastructure PR is exempt from the external-contributor proof gate; reported subprocess regressions exercise diagnostics, joined cleanup, and fixture retention, without claiming to reproduce the production hang.

Evidence

What I checked:

  • Introduced scope: Reviewed the pinned merge-base-to-head changes, including all migrated callers, shared child cleanup, temporary-home retention, and regression coverage. The supplied verified test merge limits the merge result to these same test and test-support paths; unrelated base changes are not attributed to this PR. (83151dfda804)
  • Earlier findings addressed: Cleanup awaits forced direct-child exit and natural stdout/stderr EOF before closing local pipes. Enclosing test budgets reserve diagnostic grace, five seconds for cleanup, and setup/assertion time without extending child deadlines. (src/cli/cli-process-child.test-helpers.ts:31, 83151dfda804)
  • Fixture retention: Unverified cleanup propagates the existing unjoined-work marker. Temporary-home cleanup preserves state and its resource claim while restoring the parent environment; migrated runtime fixtures track child completion through the existing fixture-lifetime owner. (src/plugin-sdk/test-helpers/temp-home.ts:101, 83151dfda804)
  • Still necessary on main: Fetched main still runs built/source Doctor fixtures with spawnSync, and its shared CLI failure cleanup requests termination and pipe destruction without joining completion. The merged diagnostic predecessors do not implement this remaining work. (src/commands/doctor-config-preflight.process.test-support.ts:39, 00e7e263a157)
  • Latest release comparison: The v2026.9.4 source also uses synchronous Doctor child execution. Local release-blob retrieval failed, so the tagged source was inspected through GitHub's contents API. (src/commands/doctor-config-preflight.process.test-support.ts:35, 3a9d69db306c)
  • Re-review continuity: GitHub source comparison with previously reviewed f53ec2148a921a8972114a91a89a7645fafe7cc0 shows the harness now consumes main's extracted diagnostic collector with the same minimum grace. The harness regression file has the identical blob 0bd38b1f9afe2ebaa6ec5eb02577f0c64744c66b. Local access to the earlier commit failed; GitHub contents supplied the comparison. (src/cli/cli-process-child.test-helpers.ts:345, 83151dfda804)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

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

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

Workflow

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

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-17T21:38:53.944Z sha 9e0e65f :: needs changes before merge. :: [P2] [P2] Reserve enclosing-test time for child diagnostics
  • reviewed 2026-09-17T22:00:52.895Z sha 9e0e65f :: blocked before merge. :: [P2] [P2] Reserve enclosing-test time for child diagnostics
  • reviewed 2026-09-17T22:27:02.605Z sha e614edc :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T22:44:36.532Z sha e614edc :: blocked before merge. :: [P2] Join child cleanup before releasing Doctor fixtures
  • reviewed 2026-09-18T00:20:55.072Z sha f53ec2148a921a8972114a91a89a7645fafe7cc0 :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Addressed this finding: getCliProcessTestTimeout now derives enclosing budgets from all sequential child deadlines plus the harness diagnostic grace and fixed margin in e614edcb7ec9ba6645a89068e71aacc484439d9a, without changing any child deadline.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

I found a cleanup ownership gap in the migrated CLI child harness: timeout/error rejection can reach fixture teardown after SIGKILL and pipe destruction are requested, but before the direct child exits. If forced cleanup fails, the temporary-home owner can also remove state while that child is still live.

I have a five-file follow-up that joins bounded direct-child and pipe cleanup through the existing stop helper, preserves the original diagnostic cause, and uses the existing unjoined-work marker to retain the home and its Vitest resource claim when cleanup cannot be confirmed. It preserves detached-service handoff and every child deadline. I am composing it with e614edc, reserving cleanup separately in the derived enclosing test budget. The underlying intermittent Doctor exit hang remains unreproduced.

The cleanup and retention regressions fail before their repairs and pass afterward. I am coordinating the follow-up here before updating this existing PR; please flag any ongoing branch edits so we can serialize the update.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 Sep 17, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

No edits in flight on this branch from my side — the last push was e614edcb7ec9 and its lane is idle. The branch is yours to update with the cleanup follow-up; I'll re-review the new head once it's pushed and land it through the wrapper after CI, unless you say you're landing it. The finding is right: rejecting after SIGKILL/pipe destruction without joining the child's exit lets fixture teardown race a live child.

@steipete

Copy link
Copy Markdown
Contributor Author

The cleanup follow-up is now in f53ec2148a921a8972114a91a89a7645fafe7cc0. It joins direct-child exit and natural output EOF, and retains reports plus every migrated input/state fixture when cleanup is unverified. The final cutover covers fourteen files; the earlier five-file patch alone was insufficient. Command deadlines and successful launcher handoff remain unchanged.

Validation passed: 100 selected scenarios, the final 17-case harness, the full selected fourteen-file check, and fresh independent P2 review. The original exit hang remains unreproduced. The PR body now distinguishes current cleanup proof from historical Linux/CI results.

I will handle native landing after fresh CI and review, coordinated with the dependent catalog work in #150831; no separate merge action is needed from the earlier author lane. A review of this new head is welcome.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 18, 2026
Route shared built/source fixtures through the existing CLI child diagnostic
owner and await all callers. Preserve deadlines, runtime flags, command order,
and output limits while reporting active resources and native timeout reports.

Instrument the unreproduced occurrence from #151124, run 35271931496,
job 105373599081. This is test instrumentation, not a production exit-path fix.
Derive enclosing test budgets from the sequential child execution windows,
the harness diagnostic grace, and a fixed setup/assertion margin. Preserve
all child deadlines while allowing their diagnostic failures to reach Vitest.

Cover the three reviewed deadline collisions and cumulative variants across
14 cases. Prove the former equal-deadline failure with a retained timer under
Vitest's actual enclosing timeout.
Join forced child exit and natural output EOF before settling failures. Keep diagnostic reports and migrated Doctor input/state fixtures when inherited output or cleanup remains unverified, without changing command deadlines or successful launcher handoff.
@steipete
steipete force-pushed the upd/flake-config-validate-child-hang branch from f53ec21 to 83151df Compare September 18, 2026 01:00
@jalehman

Copy link
Copy Markdown
Contributor

Additional matching-main evidence for the existing Doctor exit-hang investigation (from readiness work on #151232):

The logs and main-run identity were independently checked. They locate the incomplete validation subprocess, but do not distinguish a stuck disposer, live handle, descendant, or inherited output pipe. No timeout increase or retry is proposed as a substitute for diagnosis.

Routing this evidence to your existing diagnostic/cleanup effort rather than creating a competing repair. Please include this occurrence in the underlying-hang follow-up and link any established cause/fix back to #151232. The current PR description correctly distinguishes diagnostic/cleanup improvements from a proven hang fix. I will not modify or merge this branch; its existing owner retains landing responsibility.

@steipete

steipete commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Update: I am taking native landing of the unchanged head 83151dfda804117818905887cffe7b6b450a828f under the original author's offer to stop its lander at the head check. This supersedes my temporary handoff below. Please hold any other push or merge; if an accepted dispatch already exists, report its retained outcome so I can reconcile it before proceeding.

Exact-head CI passed, and the current ClawSweeper review has no before-merge findings. All sixteen PR files are byte-identical to my independently qualified integration with the shared diagnostic-report collector; package, lockfile, and workspace inputs also match. Fresh local validation passed 28 focused cases, the complete selected sixteen-file gate, and independent P2 review. These results cover the matching files; the complete Git trees are not identical. My local integration remains retained as evidence, and 83151d is the sole landing candidate.

The underlying exit hang remains unproven. Another occurrence is recorded in the catalog run: Node 24.19.0, explicit local model=true. As in the matching-main evidence above, the initial config validate printed its expected invalid-config output and then timed out before Doctor ran. This PR improves diagnostics and cleanup ownership; it does not establish the cause of that hang.

Coordination history: my original version of this comment returned landing custody to the earlier author while CI was pending. The bounded ownership lookup found no identified active lane or confirmed accepted dispatch. The current ownership is the takeover stated above.

@steipete
steipete merged commit e5398b8 into main Sep 18, 2026
210 checks passed
@steipete
steipete deleted the upd/flake-config-validate-child-hang branch September 18, 2026 01:51
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete steipete self-assigned this Sep 18, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
Doctor process tests could time out without diagnostics, then release fixtures before child cleanup completed. Route built/source fixtures through the shared CLI diagnostic harness, join direct-child exit and natural output EOF, and retain reports, input/state fixtures, and resource claims when cleanup is unverified. Preserve the original failure, command deadlines, command order, flags, output limits, and successful launcher handoff.

Use getCliProcessTestTimeout to reserve enclosing diagnostic and cleanup time without extending child execution deadlines. This changes tests and test support only; the intermittent production exit hang remains unreproduced. Signal delivery to the CLI respawn wrapper rather than the command grandchild remains a report-only follow-up.

Related: openclaw#151124, openclaw#150831. Thanks to @jalehman for additional matching-main timeout evidence.

Validation: exact-head CI run 35293520168 is green; approved committed-branch review is scoped-clean through P1; exact-head ClawSweeper review has no actionable findings or remaining Rank-up moves. The integration owner also reported 28 focused cases and the selected sixteen-file gate passing on byte-identical changed files.
steipete added a commit that referenced this pull request Sep 18, 2026
…151339)

Restore filesystem import-boundary, workflow-routing, and full-suite inventory guards after the changes in #151302, #151282, and #151001. Route native filesystem configuration through the existing facade, register the recovery and Codex attempt tests in their existing owners, and select those guards when their inventory inputs change. Includes the reviewed routing repair from #151340 with its original human authorship preserved.

Finalize the existing Gateway serial admission and two-worker ceiling before runtime placement reads recipient policy. This preserves compact worker limits when inventory changes without changing timing measurements, original compaction assertions, configuration, dependencies, or user-facing runtime behavior.

Validation: exact-head CI run 35306657804 completed green; the native watcher exited 0 with no pending checks. Retained focused proof passed 1,591 tests across six files, with both new placement regressions failing before the repair and all four placement cases passing after it. Committed-branch review found no actionable defects. The pre-existing diagnostics test-support lint issue from #151161 remains an explicitly nonblocking follow-up.
steipete added a commit that referenced this pull request Sep 18, 2026
Bind the diagnostic preload dispatcher to process and add a discovery project limited to source CommonJS test support. Exercise the installed linter to prove both TypeScript and CommonJS support report unbound methods while unrelated JavaScript remains outside the project.

Related: #151161, #150959.
steipete added a commit that referenced this pull request Sep 18, 2026
Bind the diagnostic preload dispatcher to process and add a discovery project limited to source CommonJS test support. Exercise the installed linter to prove both TypeScript and CommonJS support report unbound methods while unrelated JavaScript remains outside the project.

Related: #151161, #150959.
steipete added a commit that referenced this pull request Sep 18, 2026
Bind the diagnostic preload dispatcher to process and add a discovery project limited to source CommonJS test support. Exercise the installed linter to prove both TypeScript and CommonJS support report unbound methods while unrelated JavaScript remains outside the project.

Related: #151161, #150959.
steipete added a commit that referenced this pull request Sep 18, 2026
Extend the existing type-aware core lint checks to CommonJS CLI test support through a bounded discovery project. Preserve TypeScript coverage and exclude unrelated JavaScript, with installed-linter regression coverage and CI documentation.

Main already contains the diagnostic dispatcher binding; this change closes the remaining lint discovery gap. No user-visible runtime behavior changes.

Related: #151161, #150959.

Validation: exact-head CI run 35354844001 was green with zero pending jobs; scoped Codex review and the latest ClawSweeper review found no actionable correctness issues.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…penclaw#151339)

Restore filesystem import-boundary, workflow-routing, and full-suite inventory guards after the changes in openclaw#151302, openclaw#151282, and openclaw#151001. Route native filesystem configuration through the existing facade, register the recovery and Codex attempt tests in their existing owners, and select those guards when their inventory inputs change. Includes the reviewed routing repair from openclaw#151340 with its original human authorship preserved.

Finalize the existing Gateway serial admission and two-worker ceiling before runtime placement reads recipient policy. This preserves compact worker limits when inventory changes without changing timing measurements, original compaction assertions, configuration, dependencies, or user-facing runtime behavior.

Validation: exact-head CI run 35306657804 completed green; the native watcher exited 0 with no pending checks. Retained focused proof passed 1,591 tests across six files, with both new placement regressions failing before the repair and all four placement cases passing after it. Committed-branch review found no actionable defects. The pre-existing diagnostics test-support lint issue from openclaw#151161 remains an explicitly nonblocking follow-up.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…aw#151385)

Extend the existing type-aware core lint checks to CommonJS CLI test support through a bounded discovery project. Preserve TypeScript coverage and exclude unrelated JavaScript, with installed-linter regression coverage and CI documentation.

Main already contains the diagnostic dispatcher binding; this change closes the remaining lint discovery gap. No user-visible runtime behavior changes.

Related: openclaw#151161, openclaw#150959.

Validation: exact-head CI run 35354844001 was green with zero pending jobs; scoped Codex review and the latest ClawSweeper review found no actionable correctness issues.
steipete added a commit that referenced this pull request Sep 19, 2026
Capture bounded process and Linux thread state before requesting child diagnostics. Preserve the original deadlock failure and cleanup when JavaScript cannot answer SIGUSR2. Related to #151161.
steipete added a commit that referenced this pull request Sep 19, 2026
Stalled CLI test children can miss both JavaScript diagnostic signals, leaving the deadlock guard without OS evidence. Capture bounded PID ancestry, process state, and Linux thread wait channels, stacks, and signal status in the shared CLI test harness before requesting Node diagnostics. Preserve the existing deadline failure and joined child/pipe cleanup.

Test instrumentation only; no user-visible runtime change. The intermittent CLI exit failure remains unproven. Related: #151161.

Validation: 18/18 helper tests, busy-loop and SIGSTOP regression checks on macOS and Linux, 30 full-shard runs (1,260 cases), and 200 focused repetitions. Exact-head CI passed; campaign review and ClawSweeper found no actionable defects. Production LOC: 0; tests and test support: +165/-33.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
Stalled CLI test children can miss both JavaScript diagnostic signals, leaving the deadlock guard without OS evidence. Capture bounded PID ancestry, process state, and Linux thread wait channels, stacks, and signal status in the shared CLI test harness before requesting Node diagnostics. Preserve the existing deadline failure and joined child/pipe cleanup.

Test instrumentation only; no user-visible runtime change. The intermittent CLI exit failure remains unproven. Related: openclaw#151161.

Validation: 18/18 helper tests, busy-loop and SIGSTOP regression checks on macOS and Linux, 30 full-shard runs (1,260 cases), and 200 focused repetitions. Exact-head CI passed; campaign review and ClawSweeper found no actionable defects. Production LOC: 0; tests and test support: +165/-33.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

2 participants