Skip to content

fix: prevent worker turns from stalling when group signals are denied - #160465

Merged
roboclaw-bot merged 10 commits into
mainfrom
openclaw/openshell-worker-process-ownership-repair
Sep 29, 2026
Merged

roboclaw-bot merged 10 commits into
mainfrom
openclaw/openshell-worker-process-ownership-repair

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: a completed worker can leave its physical reservation unresolved when the host prohibits process-group signals, preventing the next turn from starting. Command cleanup could also kill the reconciliation watchdog before final workspace validation.

User Impact

Workspace ownership is now negotiated per node connection. Updating the Gateway or node host first preserves the existing command route; the new route activates only when both peers support it on Linux with Node. Windows, macOS, and Bun do not advertise it. There is no operator setting to change.

Use matching current host/worker builds to obtain the repair on hosts that deny process-group signals. Refreshing only the portable bundle does not update node-host capabilities. Missing or uncertain cleanup evidence still retains custody.

The additive same-version SQLite certificate does not reinterpret legacy lineage receipts or backfill old launches. Released-npm upgrade/rollback and native Windows execution remain outside the bounded proof below.

Why This Change Was Made

A per-launch subreaper adopts descendants and uses retained child-wait ownership for positive-PID signals. Only kernel ECHILD certifies extinction. Portable workers receive the admitted host helper without native assets in their archive.

Negotiated workspace commands use the existing process supervisor; legacy commands retain their prior executor. A separate fixed-code recovery watchdog is held by the persistent workspace runtime through command gaps and app shutdown. Its exact PID/start and nonce remain validated; release recovers the lease before retiring the retained child over IPC. The node-host PID is never used as a killable watchdog reference.

Evidence

Current queued-follow-up persistence join — dd3ce05

CI run 36526613589 failed the synthetic queued WebChat timeout case when fixture deletion detected changed SQLite session state. Source tracing identified an unjoined producer: the definitive lifecycle event starts real persistence independently of WebSocket reply completion, and its failure-notice append can prepare outside the writer queue. The fixture now observes and joins the original persistence promise for that exact synthetic follow-up run before deleting its session. The observer delegates the real call unchanged and is restored after cleanup. SQLite deletion guards, delivery assertions, writer drains, and deadlines remain intact; production code is unchanged.

The log establishes a deletion-snapshot mismatch, not the exact racing field/interleaving. The missing producer join is source-supported; candidate runtime validation belongs to fresh CI. No additional local test/type/lint suite was run. On the preceding eae2f08 head, the native mixed-recovery assertion passed in compact-large-6 (job 109271950217); the registry fixture lane was cancelled and is not claimed passing.

Registry teardown fixture correction — eae2f08

CI run 36523102722 attempt 3 exposed two residual-root failures in the production spawn fixture after descendant model admission. The fixture called the zero-root assertion without supplying the shared settlement helper's owned-work callback. It now uses the existing finite root-work observer, as the registry's control and timing fixtures do, and joins completion tails before the same zero-root assertion. All model, authority, lifecycle, and cleanup assertions remain intact; no deadline, production code, broad mock, or skip changed. This is one test file (five additions, one deletion). No additional local test/type/lint suite was run; fresh CI and ClawSweeper will validate the candidate.

The preceding Koffi initialization crash on 63b20f4 did not reproduce in its single diagnostic hosted replay: all 24 Gateway files and 272 tests passed. Its precise cause remains unestablished; a passing replay is not claimed as a code fix. Other selected lanes were cancelled by fail-fast, and are not counted as passes.

Mixed-recovery fixture correction — 63b20f4

The stop-initialization fixture still expected owned-anchor on every supported host. It now strictly expects native cleanup on Linux/Node and the legacy contract otherwise. For native recovery it checks that the descendant certificate is absent before recovery and present afterward, rather than treating the legacy lineage bit as native extinction proof. The unrelated-container failure, preserved pending launches, owner death, and withheld-capacity assertions remain unchanged. The owner identity is retained before the mode assertion so cleanup can still run if that assertion fails. This is test-only; no local suite was rerun, and fresh CI will validate it.

Main-fix rebase — d194fc1

Main’s unrelated cron lint regression is resolved by 743c2ceb72e7. This branch is rebased onto main 1470a9bb092f, which contains that canonical fix. The redundant repair PR #160942 was closed, not merged.

The seven commits replayed without conflicts. Every file changed by the worker PR is byte-identical to its 12b4ed3bbe92 version, and the resulting tree exactly matches the independently computed composition with pinned main. Both human co-author trailers are preserved throughout. No local test suite was rerun; previous evidence remains source-bound, and fresh current-head CI/security/review gates still apply.

Lifecycle fixture corrections — 12b4ed3bbe92

The remaining broker lifecycle assertion on 22377977a146 assumed an intermediate relay on every platform. It now uses the adapter’s admitted treeOwnership to require the correct, exact broker-parent relationship for native versus process-group ownership. Root-result, retained-lineage, cancellation, and extinction assertions remain intact. A targeted source audit found the same shared-caller ancestry assumption in the completed-exec cleanup fixture; it now excludes only the exact test-host/broker identities while still requiring every recorded owned process to exit. These are two test-only corrections, with no platform fallback, skipped assertions, timeout changes, or new local suite run.

The follow-up on this head removes the unnecessary object spread in the freshly decoded fixture record, addressing CI’s oxc/no-map-spread error on 437fcc317156. The PID set, assertions, and production behavior are unchanged.

The two app-server/CLI discovery cases in compact-large-12 on 86d3f207cc4e assumed every MCP server had an owned relay grandparent. With the direct native owner, that grandparent is the shared test host or spawn broker. The fixture now excludes only those exact caller identities, obtained from process.pid and the active broker owner, from its per-server PID accounting. It still checks every recorded server-owned process for retention and extinction, including a real relay when present. This test stays on the normal native path; no platform override, production change, timeout change, or skipped assertion. No local suite was rerun; fresh CI validates the correction.

MCP cleanup fixture correction — 86d3f207cc4e

The remaining compact-small failure on 86235f929aed was six cases in mcp-stdio-client.cleanup.real.test.ts: their fault injector specifically intercepts the retained two-process relay, while Linux now selects the native owner directly. This fixture now explicitly selects the POSIX process-group contract via the existing platform mock, restored by its existing teardown. All six cases, cleanup assertions, deadlines, and real subprocess operations remain intact; production selection is unchanged. No local test suite was rerun. The fresh hosted run will validate this correction.

Prior lint-only correction — 86235f929aed

CI check-lint-core-2 on 60f69c15f310 reported one error: typescript(unbound-method) on the new expect(process.kill) assertion. The assertion now uses the captured vi.spyOn result instead. This is a two-line test-only correction; production behavior, probe arguments, and assertions are unchanged. The accompanying file-size diagnostics were warnings, not the failing condition. No local test suite was rerun; fresh CI and ClawSweeper review remain the landing gates.

Retained-descendant fix and conflict rebase — 60f69c15f310

The two failed compact-small shards exposed real contract issues, not CI noise. Ordinary commands now retain background descendants after their root exits; owned-worker exit still triggers immediate native cleanup. Process-group fixtures select that contract explicitly, retain their uncertainty assertions, and reject native certificates. Real lifecycle fixtures launch the canonical compiled native owner instead of giving a loader/compiler child access to its exclusive wait ownership. Native escaped-descendant cancellation remains covered.

The failing shapes reproduced first. 231 focused tests across 13 complete files passed in 187 s wall, including the unchanged Claude prompt-retention regression, native owned-worker cleanup, denied-group subreaper proof, and legacy lifecycle siblings. Core production typechecking passed. Further local static checks did not complete (exit 137); no passing test-type/lint result is claimed for this follow-up. At @sallyom’s request, further local checks stopped and the remaining validation is assigned to fresh ClawSweeper review and CI.

Rebased onto main 4187710037fc, resolving only the runner-inventory and connection-test conflicts. Main’s disabled-host diagnostics/normalization and this PR’s quiescence capability and tests are both preserved. All eight fix files match the successful pre-rebase proof byte-for-byte; both human co-author trailers are retained. No additional local test suite was run after the rebase.

Prior main-fix rebase — 9cfd86b00b95

Rebased at @sallyom’s request onto main 80864601bf9e, including the upstream retired runtime-API guard fix. That fix owns the unrelated diffs/lobster inventory mismatch in CI run 36506017284 (including attempt 2); the previous red/cancelled run is not relabeled green.

The bot-authored branch history was consolidated before replay to preserve its reviewed merge resolutions. The rebased tree exactly matches the independently computed conflict-free composition with pinned main. All worker implementation and test files match reviewed head 1749fc7cd815 byte-for-byte; among the PR’s 64 touched paths, the only inherited difference is two upstream documentation lines. Both human co-author trailers and publication attribution are preserved. No local suite rerun was performed, as requested; prior source-bound proof below is retained. Fresh current-head CI/security and ClawSweeper completion remain required for landing.

Prior cancellation/CI follow-up — 1749fc7cd815

The abandoned-acquisition P2 is repaired: the host retains exact lease custody while recovering an undelivered acquisition; fresh-nonce retries join that recovery. An aborted duplicate cannot revoke an already-delivered lease. The Gateway reconciles the original nonce through the existing release contract and clears its capability pin only after a real successful release. Recovery uncertainty still retains custody. No protocol, schema, configuration, timeout, or security guard changed in this follow-up.

  • Fresh independent review of the complete six-file follow-up is scoped-clean through P2. Production typechecking, both affected test-type graphs, six-file scoped lint (zero warnings/errors), and formatting passed on the reviewed tree.
  • 36 targeted regressions passed across native lifecycle (13), Gateway quiescence (10), negotiation (5), and Windows-selected controller paths (8). Published code failed the cancellation/retry and missing-release regressions first. These controller selections ran on Linux; Sally's native Windows testing remains separately attributed below.
  • CI run 36503214174, failed job 109199216163 exposed an old crash-test expectation: killing the native wait owner cannot legitimately free capacity without an extinction certificate. The same failure reproduced locally. The corrected test still proves death of all three witnessed PIDs, and additionally verifies the missing certificate, retained durable launch/slot, and refusal of shutdown to invent cleanup. Legacy and other crash paths still require normal capacity release. All 80 worker-runtime tests passed in original order (54.30 s Vitest / 59.91 s wrapper); scoped lint and its test-type graph passed. No CI rerun, skipped assertion, timeout inflation, or production relaxation was used.
  • The preceding conflict integration includes main through 27de2f8 and warm-worker retention perf(nodes): reuse warm workers so node session turns start as fast as local ones #160265. Earlier connected A/B and package results remain bound to their recorded trees; no current-head stock OpenShell/live-model or published-driver upgrade result is claimed.
  • The inherited supervisor size finding remains disclosed: main has 1,322 counted lines versus the 700 cap; the two lifecycle integration lines make 1,324. No limit, suppression, or baseline was changed. This is not described as locally green.

Maintainer disposition: retain this PR's existing additive companion-table design and its documented older-reader and uncertain-cleanup behavior. @sallyom explicitly directed landing this implementation on green CI after the blocking cancellation fix, considers the available qualification sufficient, and reports Windows regression testing. The unfinished released-driver upgrade/backup-restore rehearsal is deferred, not claimed as a pass. Decision discussion. Required current-head CI/security/review gates still apply; this is not an admin exception.

Compatibility review follow-up — 43db862 (implementation 1924676)

  • P1: The Gateway no longer unconditionally sends typed quiescence to older hosts. A server-capability-gated node declaration selects lease and foreground ownership together. The lease dialect stays pinned; capability withdrawal is rechecked at dispatch. A legacy acquisition remains on its prior route even if the node gains support between selection and invocation.
  • Windows mitigation: Windows stays on the existing script-based SQLite lease and command route. Platform-selector tests are not native Windows acceptance. The defensive control-owner shutdown fix and its regression tests are retained; an actual Windows runner could not be provisioned because the request lacked operator-admin scope.
  • P2: Launch operations carry the SQLite owner's admitted schema facts through optional joins, pruning, and settlement, refreshing after first-use companion DDL. No new schema, transaction, receipt, or retention change. Regression proof cuts freshness probes from 42 to 21 for nine launch queries (get/list/direct receipt); both versions execute zero schema queries. Rollback, foreign commits, active snapshots, and missing certificates remain covered.
  • Validation: 301 focused tests passed; one native-Windows-only test skipped. This includes the full 33-case launch store, 18-case turn store, 150-case Gateway group, all six transport/reconciliation cases with Git 2.53.0, and the real denied-group kernel case. Production types, three affected test-type graphs, scoped lint/format and the canonical assertion-safety ratchet pass. Five brace-only lint findings in two tests were corrected; no production changes followed review. Separate probes with the exact prechange parser and quiescence-script blobs passed in both directions at the wire/command boundary; these are not four full deployed Gateway/node installations. Fresh canonical P0/P1/P2 AutoReview completed scoped-clean on this incremental repair before the mechanical brace cleanup; it is not a full-PR merge-readiness verdict. The combined canonical test wrapper took 197.56 s including cold compilation; new negotiation cases took 22/5/3 ms, and the real legacy-script survival case took 139 ms. The three schema regressions took 195 ms (1.58 s targeted Vitest wall); exact-prechange probes took 94.21 s, dominated by compilation. CI timings remain pending.

Earlier watchdog qualification

Real reconciliation failed at 85e because command cleanup retired its detached watchdog. The persistent owner fixes that composition. Nine native lifecycle regressions and the retained-process/remote-script siblings passed; affected paths were rerun in this follow-up. On earlier tree 786cfc05c7bd, actual runtime-owner SIGKILL left the exact helper and lease intact until original expiry; the lease disappeared 11 ms after the deadline and pidfd confirmed helper exit 4 ms later, without renewal, helper signals, or clock manipulation. This is not native Windows or restart/reacquisition proof.

Earlier process-ownership qualification — 85e772a

112 focused tests, core types, scoped lint and generated Kysely checks passed. Separately built prechange 2da0e9a and 85e passed all four host-relay/deployed-worker start, EOF and extinction combinations. Real schema-19 rollback/re-upgrade, certificate preservation, unrelated writes, cascade pruning and unknown custody passed; 11,608 compiler inputs matched source. This does not qualify released-npm rollback or full Gateway enrollment. The compiled owner also passed under the unchanged stock OpenShell filter with group signals still denied. Later CI fixture/errno corrections used no scanner exceptions or guard bypasses.

Matching-build OpenShell boundary proof (earlier combined tree 3a3000e386ba, not this follow-up): all 50,440 tracked inputs matched; the full package build and tarball integrity passed, and 11,201 installed dist files matched inside a stock OpenShell sandbox at Ready/ConfigurationAccepted. The matching isolated Gateway returned TLS-verified readyz 200. Through the real stock broker, the packaged native owner passed terminal output, fork/setsid cancellation with descendant reaping, owner-control loss, and sibling isolation. Group signals still returned EPERM; output drain delivered exactly 262,144 bytes.

Remaining qualification: connected Gateway/enrollment failed at the private bridge's Pasta network-namespace permission boundary, and the task-authorized native provider/model route was unavailable. Full model A/B, retained background across turns, restart/unknown receipt, and complete workspace lifecycle remain unrun. No security relaxation, host-network fallback, or substituted model proof. All owned runtime resources were cleaned up. Separately, the task-private stock healthcheck preflight passed two checks roughly 30 seconds apart; the later full-sandbox run did not capture successful scheduled checks. Neither result qualifies native Windows or the current follow-up package.

Local testing

Sally ran manual update locally:

  • Tested fa48b100811e → PR 768fc0312d1e.
  • Migrated copied databases to state schema 19 and agent schema 23.
  • Preserved all 16,524 transcript events byte-for-byte and all 117 sessions. Doctor filled one missing session title.
  • Database integrity, foreign keys, Gateway startup, and RPC health passed.
  • Sally additionally reports Windows regression testing. This is human-reported coverage; no new agent-run native Windows result is claimed.

The earlier 453-byte UI startup overrun did not recur in that later combined package: startup JS was 362,992 bytes against a 372,347-byte limit. A CSS advisory remained. This independent PR does not modify the feature-stack branches.

Thanks to @sallyom for reporting the stalled second turn and providing reproduction context.

Worked on by

Work sessions


View the OpenClaw team session

@clawsweeper

clawsweeper Bot commented Sep 28, 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 docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: L labels Sep 28, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 29, 2026, 2:01 AM ET / 06:01 UTC (Revision 24).

ClawSweeper review

What this changes

The branch adds negotiated Linux node-worker cleanup, a durable descendant-cleanup certificate, a persistent workspace watchdog, documentation, and lifecycle tests.

Warning

SQLite table change

This PR modifies persisted SQLite tables in src/state/openclaw-state-schema.sql. Prefer a design that avoids changing persisted SQLite tables. If the change is necessary, verify migration and upgrade compatibility against an existing database before merge.

Merge readiness

⛔ Blocked before merge - 5 items remain

Current main still relies on process-group cleanup in the affected path, so this PR remains a distinct repair. The remaining merge question is whether to require a rehearsal using the shipped updater and copied existing state; the PR reports that this was deferred, but the reviewed GitHub discussion does not independently establish that acceptance.

Priority: P1
Reviewed head: dd3ce050836499a0d149dbd5824173185298e7c3
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The native cleanup path has substantial real-boundary evidence and no supported line-level defect, but shipped-updater compatibility remains a material merge uncertainty.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR reports a packaged native process owner exercised through the stock OpenShell broker with process-group signals denied, observing output delivery and descendant cancellation after the repair; later head changes are test-only. The new SQLite certificate also has focused older-reader and reopen checks, but the published v2026.9.6 updater, candidate startup, and rollback on copied existing state remain unverified, so stored-data upgrade compatibility is insufficient.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR reports a packaged native process owner exercised through the stock OpenShell broker with process-group signals denied, observing output delivery and descendant cancellation after the repair; later head changes are test-only. The new SQLite certificate also has focused older-reader and reopen checks, but the published v2026.9.6 updater, candidate startup, and rollback on copied existing state remain unverified, so stored-data upgrade compatibility is insufficient.
Evidence reviewed 9 items Current-main boundary: Current main has no process-scope companion table; the proposed durable certificate remains unique to this branch.
Introduced persistent contract: The branch adds a launch-bound SQLite table for Linux descendant-extinction evidence without increasing the state schema version.
Older-reader behavior: The new writer records native cleanup as an older-reader-compatible owned-anchor row; the focused test checks that representation, reopen, and pruning.
Findings None None.
Security None None.

How this fits together

The Gateway assigns session work to a paired node host, which starts worker processes and manages their workspace. Cleanup evidence determines when the host can release a physical worker slot for the next turn.

flowchart LR
  A[Session turn] --> B[Gateway placement]
  B --> C[Node capability check]
  C --> D[Worker and workspace owners]
  D --> E[Process cleanup]
  E --> F[SQLite cleanup receipt]
  F --> G[Available worker slot]
Loading

Decision needed

Question Recommendation
Must this PR demonstrate the v2026.9.6 updater-to-candidate and rollback path on copied existing state before merge, or is the disclosed gap explicitly accepted for this change? Require the release rehearsal: Record candidate startup, worker-journal and capacity outcomes, and rollback using the shipped updater and copied existing state.

Why: The repository requires a published-driver proof cell for state and lifecycle changes, while the PR body reports a deferral without a directly verifiable maintainer disposition in the reviewed GitHub discussion.

Before merge

  • Resolve merge risk (P1) - The shipped v2026.9.6 updater has not been shown starting this candidate and rolling back on copied existing state containing the new same-version cleanup table; a refusal or incomplete recovery could leave node-worker capacity unavailable.
  • Complete next step (P2) - Provide the published-updater candidate and rollback rehearsal on copied existing state, or record direct maintainer acceptance of deferring that proof.
  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +1309, Tests +1952, Docs +26, Generated +7. Total +3294 across 78 files.

View PR surface stats
Area Files Added Removed Net
Source 35 1601 292 +1309
Tests 39 2135 183 +1952
Docs 3 41 15 +26
Config 0 0 0 0
Generated 1 7 0 +7
Other 0 0 0 0
Total 78 3784 490 +3294

Review metrics

Metric Value Why it matters
Implementation and test growth production +1562/−279; tests +2178/−196 lines The production growth implements a native process owner and persistent workspace watchdog; the separate test total makes that cost visible.
Upgrade surfaces 1 SQLite companion table; 1 negotiated node capability These are the persisted and fleet-compatibility boundaries relevant to the remaining merge decision.

Stored data model

Persistent data-model change detected: database schema: src/state/openclaw-state-schema.sql. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Prove the published update path (recommended)
    Run the released updater against copied existing state and record candidate startup, capacity, and rollback outcomes.
  2. Explicitly accept the gap
    A maintainer can document why the remaining released-driver and rollback uncertainty is acceptable for this rollout.

Technical review

Best possible solution:

Retain the negotiated native cleanup design and verify candidate startup, worker-journal custody, and rollback through the published updater on a copied existing database.

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

Yes. Current main still uses process-group signaling in the affected owner, and the PR records a stock OpenShell case where those signals were denied; I did not execute current main in this read-only review.

Is this the best way to solve the issue?

Yes for the process-ownership repair: it uses the existing supervisor and launch journal with negotiated rollout. Merge readiness still depends on resolving the published-updater proof question.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4d8c9bddda7f.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: Denied process-group signals can strand a physical worker reservation and block subsequent turns.
  • merge-risk: 🚨 compatibility: The PR adds a same-version persisted cleanup certificate whose shipped-updater and rollback path remains unverified.
  • merge-risk: 🚨 availability: Unresolved cleanup custody can keep a node-worker slot occupied and delay later turns.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; 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 PR reports a packaged native process owner exercised through the stock OpenShell broker with process-group signals denied, observing output delivery and descendant cancellation after the repair; later head changes are test-only. The new SQLite certificate also has focused older-reader and reopen checks, but the published v2026.9.6 updater, candidate startup, and rollback on copied existing state remain unverified, so stored-data upgrade compatibility is insufficient.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR reports a packaged native process owner exercised through the stock OpenShell broker with process-group signals denied, observing output delivery and descendant cancellation after the repair; later head changes are test-only. The new SQLite certificate also has focused older-reader and reopen checks, but the published v2026.9.6 updater, candidate startup, and rollback on copied existing state remain unverified, so stored-data upgrade compatibility is insufficient.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • sallyom: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vitor Cepeda Lopes: 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.

  • Record the released v2026.9.6 updater, candidate startup, and rollback result on copied state, including launch-journal and capacity outcomes.

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 (23 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-29T02:45:52.924Z sha 86235f929aed94bf2e7ecf8a0828378555f7b5e8 :: blocked before merge. :: none
  • reviewed 2026-09-29T02:57:59.439Z sha 86d3f207cc4e79da80adcf35b1296d137da4dd82 :: blocked before merge. :: none
  • reviewed 2026-09-29T03:12:14.056Z sha 437fcc317156307a4198db103db625a7f04da292 :: blocked before merge. :: none
  • reviewed 2026-09-29T03:34:07.465Z sha 22377977a1461e5af3483f8f6c153cf9f52a4bb3 :: blocked before merge. :: none
  • reviewed 2026-09-29T03:52:05.389Z sha 12b4ed3bbe92e316864f190c056a29fd9ae2860d :: blocked before merge. :: none
  • reviewed 2026-09-29T04:41:29.407Z sha d194fc1 :: blocked before merge. :: none
  • reviewed 2026-09-29T04:55:59.321Z sha 63b20f4 :: blocked before merge. :: none
  • reviewed 2026-09-29T05:41:19.992Z sha eae2f08 :: blocked before merge. :: none

@sallyom
sallyom marked this pull request as ready for review September 28, 2026 13:45
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 28, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 28, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 28, 2026
roboclaw-bot and others added 5 commits September 29, 2026 04:30
Keep the legacy ownership probe assertion without passing an unbound process method to expect.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
Exercise the two-process POSIX relay explicitly instead of allowing Linux native-owner selection to bypass the injected relay faults. Preserve every cleanup assertion and deadline.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
Preserve native discovery and extinction checks without treating the test host or its shared spawn broker as a per-server relay. Keep all server-owned processes in the recorded PID set on both native and process-group paths.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
Avoid the unnecessary map spread in the discovery PID-accounting helper while preserving the same server-owned PID set and assertions.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
Use the adapter ownership contract for broker ancestry and exclude only shared caller identities from exec cleanup accounting. Preserve native selection, server-owned process extinction, lineage, and cancellation assertions.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/openshell-worker-process-ownership-repair branch from 12b4ed3 to d194fc1 Compare September 29, 2026 04:31
roboclaw-bot and others added 3 commits September 29, 2026 04:46
Keep native cleanup selected on qualified Linux hosts and assert descendant reaping rather than a legacy lineage receipt. Preserve the mixed-container failure and withheld-capacity assertions, and retain legacy receipt expectations on other supported runtimes.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
Reuse the existing finite root-work observer in the production spawn fixture before its zero-root assertion. Keep all scenario assertions, deadlines, and real registry cleanup intact; no production changes. Hosted CI owns validation under the requested no-additional-local-suite workflow.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
Observe and join the real persistence promise for the synthetic follow-up run before the fixture deletes its session. This includes the failure-notice append that can prepare outside the writer queue. Preserve deletion guards, delivery assertions, deadlines, and production behavior. Fresh hosted CI owns candidate validation; no additional local suite run.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) September 29, 2026 06:12
@roboclaw-bot
roboclaw-bot merged commit 2aed866 into main Sep 29, 2026
209 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/openshell-worker-process-ownership-repair branch September 29, 2026 06:14
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

@RomneyDa

Copy link
Copy Markdown
Member

Post-merge follow-up for the ClawSweeper update/rollback request:

  • Candidate identity: built from landed commit 2aed86671065f0f73cf78032dcecc95e287dda09; packed tarball SHA-256 925e2ad69c45fc8497f853c326b44a2ea678c9cb80ce4a24951d203ac7973d65. Installed build metadata matched that commit and artifact.
  • Released updater → candidate: the published-upgrade-survivor sqlite-volume cell passed from released [email protected] through its installed updater to that exact tarball. State schema migrated 18 → 19 and agent schema 23 → 24. It preserved 4,800 sessions, 23,890 transcript events, 2,200 cron jobs, and 512 plugin rows. Candidate startup, health/readiness/status, Gateway history RPC, idempotence, restart, and post-restart survival all passed; both Gateway probes sampled 8 conversations across 2 agents.
  • Rollback: the canonical published-baseline backup/restore verifier passed on copied legacy operator state after candidate startup, cron ownership, agent-turn, and plugin checks. The retained v2026.9.6 runtime restored three SQLite databases; both agent preflights reported exact, baseline session reads returned 2 and 1 sessions, and raw transcript restoration was verified.
  • Worker journal/capacity contract: node-worker-supervisor.recovery.test.ts plus node-worker-launch-store.test.ts passed 61/61 tests in 103.36s, covering old-journal reopen, exact-tree death, stale-owner cleanup, and capacity retention.

The high-volume cell completed green. The legacy-operator cell intentionally ran the unchanged canonical rollback verifier before a known unrelated fixture mismatch, then stopped because its exact expected advisory text still says without OPENCLAW_HOME while current product output says OPENCLAW_HOME either unset or pointing at that same home. No product assertion was weakened; rollback had already passed.

Result: the requested released-driver upgrade, candidate runtime/state, journal/capacity, and rollback evidence is now complete. I found no production-code follow-up needed for this PR; the stale advisory-text expectation is a separate harness cleanup.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
…openclaw#160465)

* fix: prevent worker turns from stalling when group signals are denied

Worked on by:
- @sallyom
- @steipete

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 83ccfa62-38b5-4e5f-9b9c-97193ffc76b4

* fix: retain background descendants after command exit

Preserve natural descendant lifetime for ordinary commands while owned-worker exit still triggers native cleanup. Align process-group fixtures with their actual contract and launch the canonical compiled native owner in real lifecycle fixtures.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>

* fix(test): assert against the captured process signal spy

Keep the legacy ownership probe assertion without passing an unbound process method to expect.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>

* fix(test): select the retained relay contract for MCP cleanup faults

Exercise the two-process POSIX relay explicitly instead of allowing Linux native-owner selection to bypass the injected relay faults. Preserve every cleanup assertion and deadline.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>

* fix(test): exclude shared hosts from MCP server cleanup accounting

Preserve native discovery and extinction checks without treating the test host or its shared spawn broker as a per-server relay. Keep all server-owned processes in the recorded PID set on both native and process-group paths.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>

* fix(test): update decoded MCP fixture records in place

Avoid the unnecessary map spread in the discovery PID-accounting helper while preserving the same server-owned PID set and assertions.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>

* fix(test): follow declared process ownership in lifecycle fixtures

Use the adapter ownership contract for broker ancestry and exclude only shared caller identities from exec cleanup accounting. Preserve native selection, server-owned process extinction, lineage, and cancellation assertions.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>

* fix(test): assert the negotiated worker recovery certificate

Keep native cleanup selected on qualified Linux hosts and assert descendant reaping rather than a legacy lineage receipt. Preserve the mixed-container failure and withheld-capacity assertions, and retain legacy receipt expectations on other supported runtimes.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>

* fix(test): join descendant completion before registry teardown

Reuse the existing finite root-work observer in the production spawn fixture before its zero-root assertion. Keep all scenario assertions, deadlines, and real registry cleanup intact; no production changes. Hosted CI owns validation under the requested no-additional-local-suite workflow.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>

* fix(test): await queued follow-up lifecycle persistence

Observe and join the real persistence promise for the synthetic follow-up run before the fixture deletes its session. This includes the failure-notice append that can prepare outside the writer queue. Preserve deletion guards, delivery assertions, deadlines, and production behavior. Fresh hosted CI owns candidate validation; no additional local suite run.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>

---------

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed 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