Repository navigation
fix(doctor): explain update lint supervisor refusals - #156547
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
Codex review: blocked before merge. Reviewed September 24, 2026, 3:19 PM ET / 19:19 UTC (Revision 14). ClawSweeper reviewWhat this changesThe branch labels Doctor lint supervisor refusals in update reports and extends the Docker upgrade-survivor scenario to check saved failure history, process cleanup, and a healthy retry. Merge readiness⛔ Blocked before merge - 1 item remains Current main still gives a generic Doctor lint refusal. This PR provides a distinct diagnostic fix, and the previously outstanding published-updater scenario has now passed at the reviewed head. Priority: P2 Review scores
Verification
How this fits togetherDuring an update, the installed updater runs candidate Doctor lint in an isolated rehearsal and records the result in update history. A Docker survivor scenario exercises that path with a published updater and a custom plugin. flowchart LR
A[Published updater] --> B[Candidate Doctor rehearsal]
B --> C[Lint supervisor]
C --> D{Checks and cleanup}
D --> E[Update result]
E --> F[Saved run history]
G[Docker survivor scenario] --> A
G --> F
Before merge
Agent review detailsSecurityNone. PR surfaceSource +19, Tests +200, Other +257. Total +476 across 10 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the diagnostic in the existing Doctor supervisor and use the published-updater survivor scenario to guard refusal persistence, state retention, and cleanup. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main collapses the observed refusal conditions into a generic error, while the canary consumes a labeled CLI reason. I did not execute a failing current-main update. Is this the best way to solve the issue? Yes. The existing supervisor owns the observed facts, and the existing canary reason parser carries them into update history; the survivor scenario checks that product boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 37783fcbcf78. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (13 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review Signed head |
|
🦞👀 Re-review progress:
|
Supply the policyConfig required by SessionRowReadView after scoped session authorization was introduced. This restores the gateway-root type check without weakening the production contract or changing lifecycle assertions. (cherry picked from commit 0901260)
|
@clawsweeper re-review Exact head: |
|
🦞👀 Re-review progress:
|
Completion now crosses asynchronous SQLite work, but two steer-restart fixture cases still polled callbacks every millisecond with a one-second deadline. The assertion could expire while valid completion work remained admitted; the existing teardown join then observed the missing announcement. Join the existing lifecycle and cleanup roots before the unchanged assertions, restore observers in finally, and remove the timed-poll helper. The original CI failure and two local failures reproduced the race; a local diagnostic observed zero announcements before owner settlement and one after. Natural isolated and loaded Linux baselines passed, so no natural Linux before-failure is claimed. After the repair, the full file passed 20 times and its exact 86-file Linux child shard passed three times. Changed checks and P2 review passed. The existing 22-test file measured 27.99 seconds wall with one worker; no new tests, retries, or timeouts were added. (cherry picked from commit 1f067fa)
|
@clawsweeper re-review Please review exact head |
Carry the existing supervisor diagnostic changes onto the fixed main owners. Extend the custom-plugin survivor fixture to check the published 9.6 updater records the actual refusal and retains its installation and operator state, then exercises the existing healthy retry. Co-authored-by: Vincent Koc <[email protected]>
Use the existing survivor preload path so inspection budget admission cannot skip the diagnostic refusal fixture. Preserve refused update and process evidence separately from the healthy retry through the maintained diagnostics publisher. Retain the original successful-update fixture failure as evidence; production Doctor semantics remain unchanged. Co-authored-by: Vincent Koc <[email protected]>
Start both survivor containers with Docker init so orphaned worker children are reaped by the namespace owner. Retain process parentage and PID 1 identity in the refusal witnesses, and include HostConfig.Init in failure diagnostics. Keep the supervisor refusal and completed-cleanup assertions unchanged. Co-authored-by: Vincent Koc <[email protected]>
|
Merged via squash auto-merge.
|
* commit '0484d7a3ecf52589b0d3d98741e58e5f6b5bf661': (68 commits) fix(subagents): stop completion transcript retry loops (#157571) perf(sessions): remove duplicate foreground history reference scans (#157572) improve(typesafe): defer startup work until the first decision (#157380) fix(update): restore npm-pack helper typechecking (#157659) fix(packaging): avoid heap exhaustion on large bundles (#157471) refactor(infra): share process error handler registries (#157632) chore(ui): refresh control ui locales (#157573) fix(gateway): release remote Skills subscriptions when shutdown drains (#157592) perf(plugins): reuse declared tool membership during resolution (#156205) fix(ui): pasted text previews fail before sending (#157390) fix(agents): wait for database resources during deletion (#157631) improve: move operator profile database reads off the Gateway thread (#155800) fix: explain rejected settings without losing edits (#157549) fix: keep Gateway responsive while recording trajectory events (#157598) fix(auth): show SIWC email and selected model account identity (#157629) docs: explain Codex app approval precedence (#155089) refactor(wizard): share select prompt requests (#157607) fix(ui): omit empty sections from conversation Markdown exports (#157590) fix(doctor): explain update lint supervisor refusals (#156547) fix(ui): GitHub folder links lose repository context (#157619) ...
* commit '0484d7a3ecf52589b0d3d98741e58e5f6b5bf661': (68 commits) fix(subagents): stop completion transcript retry loops (#157571) perf(sessions): remove duplicate foreground history reference scans (#157572) improve(typesafe): defer startup work until the first decision (#157380) fix(update): restore npm-pack helper typechecking (#157659) fix(packaging): avoid heap exhaustion on large bundles (#157471) refactor(infra): share process error handler registries (#157632) chore(ui): refresh control ui locales (#157573) fix(gateway): release remote Skills subscriptions when shutdown drains (#157592) perf(plugins): reuse declared tool membership during resolution (#156205) fix(ui): pasted text previews fail before sending (#157390) fix(agents): wait for database resources during deletion (#157631) improve: move operator profile database reads off the Gateway thread (#155800) fix: explain rejected settings without losing edits (#157549) fix: keep Gateway responsive while recording trajectory events (#157598) fix(auth): show SIWC email and selected model account identity (#157629) docs: explain Codex app approval precedence (#155089) refactor(wizard): share select prompt requests (#157607) fix(ui): omit empty sections from conversation Markdown exports (#157590) fix(doctor): explain update lint supervisor refusals (#156547) fix(ui): GitHub folder links lose repository context (#157619) ...
* refactor(ai): share Mistral text delta appends * Merge main to incorporate the upstream update type fix * commit '0484d7a3ecf52589b0d3d98741e58e5f6b5bf661': (68 commits) fix(subagents): stop completion transcript retry loops (#157571) perf(sessions): remove duplicate foreground history reference scans (#157572) improve(typesafe): defer startup work until the first decision (#157380) fix(update): restore npm-pack helper typechecking (#157659) fix(packaging): avoid heap exhaustion on large bundles (#157471) refactor(infra): share process error handler registries (#157632) chore(ui): refresh control ui locales (#157573) fix(gateway): release remote Skills subscriptions when shutdown drains (#157592) perf(plugins): reuse declared tool membership during resolution (#156205) fix(ui): pasted text previews fail before sending (#157390) fix(agents): wait for database resources during deletion (#157631) improve: move operator profile database reads off the Gateway thread (#155800) fix: explain rejected settings without losing edits (#157549) fix: keep Gateway responsive while recording trajectory events (#157598) fix(auth): show SIWC email and selected model account identity (#157629) docs: explain Codex app approval precedence (#155089) refactor(wizard): share select prompt requests (#157607) fix(ui): omit empty sections from conversation Markdown exports (#157590) fix(doctor): explain update lint supervisor refusals (#156547) fix(ui): GitHub folder links lose repository context (#157619) ... Co-authored-by: Vincent Koc <[email protected]>
* fix(doctor): explain update lint supervisor refusals * test(gateway): complete placement read policy fixture Supply the policyConfig required by SessionRowReadView after scoped session authorization was introduced. This restores the gateway-root type check without weakening the production contract or changing lifecycle assertions. (cherry picked from commit 46ed43b) * test(agents): join owned cleanup before fixture assertions Completion now crosses asynchronous SQLite work, but two steer-restart fixture cases still polled callbacks every millisecond with a one-second deadline. The assertion could expire while valid completion work remained admitted; the existing teardown join then observed the missing announcement. Join the existing lifecycle and cleanup roots before the unchanged assertions, restore observers in finally, and remove the timed-poll helper. The original CI failure and two local failures reproduced the race; a local diagnostic observed zero announcements before owner settlement and one after. Natural isolated and loaded Linux baselines passed, so no natural Linux before-failure is claimed. After the repair, the full file passed 20 times and its exact 86-file Linux child shard passed three times. Changed checks and P2 review passed. The existing 22-test file measured 27.99 seconds wall with one worker; no new tests, retries, or timeouts were added. (cherry picked from commit 9332304) * test(update): arm Doctor refusal at the worker entry Use the existing survivor preload path so inspection budget admission cannot skip the diagnostic refusal fixture. Preserve refused update and process evidence separately from the healthy retry through the maintained diagnostics publisher. Retain the original successful-update fixture failure as evidence; production Doctor semantics remain unchanged. Co-authored-by: Vincent Koc <[email protected]> * test(e2e): reap orphaned upgrade survivor fixture children Start both survivor containers with Docker init so orphaned worker children are reaped by the namespace owner. Retain process parentage and PID 1 identity in the refusal witnesses, and include HostConfig.Init in failure diagnostics. Keep the supervisor refusal and completed-cleanup assertions unchanged. Co-authored-by: Vincent Koc <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
* refactor(ai): share Mistral text delta appends * Merge main to incorporate the upstream update type fix * commit 'dda1f68bfa102cb804392c0e7cc22c0566a0944a': (68 commits) fix(subagents): stop completion transcript retry loops (openclaw#157571) perf(sessions): remove duplicate foreground history reference scans (openclaw#157572) improve(typesafe): defer startup work until the first decision (openclaw#157380) fix(update): restore npm-pack helper typechecking (openclaw#157659) fix(packaging): avoid heap exhaustion on large bundles (openclaw#157471) refactor(infra): share process error handler registries (openclaw#157632) chore(ui): refresh control ui locales (openclaw#157573) fix(gateway): release remote Skills subscriptions when shutdown drains (openclaw#157592) perf(plugins): reuse declared tool membership during resolution (openclaw#156205) fix(ui): pasted text previews fail before sending (openclaw#157390) fix(agents): wait for database resources during deletion (openclaw#157631) improve: move operator profile database reads off the Gateway thread (openclaw#155800) fix: explain rejected settings without losing edits (openclaw#157549) fix: keep Gateway responsive while recording trajectory events (openclaw#157598) fix(auth): show SIWC email and selected model account identity (openclaw#157629) docs: explain Codex app approval precedence (openclaw#155089) refactor(wizard): share select prompt requests (openclaw#157607) fix(ui): omit empty sections from conversation Markdown exports (openclaw#157590) fix(doctor): explain update lint supervisor refusals (openclaw#156547) fix(ui): GitHub folder links lose repository context (openclaw#157619) ... Co-authored-by: Vincent Koc <[email protected]>
* refactor(ui): share slash-command failure results * Merge main to incorporate the upstream update type fix * commit '0484d7a3ecf52589b0d3d98741e58e5f6b5bf661': (68 commits) fix(subagents): stop completion transcript retry loops (#157571) perf(sessions): remove duplicate foreground history reference scans (#157572) improve(typesafe): defer startup work until the first decision (#157380) fix(update): restore npm-pack helper typechecking (#157659) fix(packaging): avoid heap exhaustion on large bundles (#157471) refactor(infra): share process error handler registries (#157632) chore(ui): refresh control ui locales (#157573) fix(gateway): release remote Skills subscriptions when shutdown drains (#157592) perf(plugins): reuse declared tool membership during resolution (#156205) fix(ui): pasted text previews fail before sending (#157390) fix(agents): wait for database resources during deletion (#157631) improve: move operator profile database reads off the Gateway thread (#155800) fix: explain rejected settings without losing edits (#157549) fix: keep Gateway responsive while recording trajectory events (#157598) fix(auth): show SIWC email and selected model account identity (#157629) docs: explain Codex app approval precedence (#155089) refactor(wizard): share select prompt requests (#157607) fix(ui): omit empty sections from conversation Markdown exports (#157590) fix(doctor): explain update lint supervisor refusals (#156547) fix(ui): GitHub folder links lose repository context (#157619) ... * Merge frozen main to include the question fixture authority fix * commit '229ab8a1fe957d3d4822309a39ddf9c7ec616395': (25 commits) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) fix(codex): honor configured tool PATH in native commands (#157290) refactor(msteams): share approval kind labels (#157705) fix(sessions): keep session results current during cold reads (#156121) fix(testing): capture bounded upgrade integrity diagnostics (#157535) refactor(i18n): reuse native branch candidate extraction (#157636) fix(update): preserve recovery files after ownership refusal (#148890) fix(test): prevent late announcements from contaminating registry tests (#157681) fix(e2e): scan full onboarding logs for prompts (#157624) refactor(session-tools): derive contracts from schemas (#156365) refactor(channels): derive config contracts from schemas (#156367) perf(test): reuse MCP archives and batch worker fixture copies (#157689) refactor: reuse prepared fixtures in slow core tests (#157685) refactor(codex): reuse marketplace reference selection (#157621) chore(ui): refresh control ui locales (#157710) docs(gateway): show how we build OpenClaw on Team (#157675) refactor: verify IRC surrogate chunking over loopback (#157580) ... * chore: merge frozen main prerequisite repairs Co-authored-by: Vincent Koc <[email protected]>
* refactor(ui): share slash-command failure results * Merge main to incorporate the upstream update type fix * commit 'dda1f68bfa102cb804392c0e7cc22c0566a0944a': (68 commits) fix(subagents): stop completion transcript retry loops (openclaw#157571) perf(sessions): remove duplicate foreground history reference scans (openclaw#157572) improve(typesafe): defer startup work until the first decision (openclaw#157380) fix(update): restore npm-pack helper typechecking (openclaw#157659) fix(packaging): avoid heap exhaustion on large bundles (openclaw#157471) refactor(infra): share process error handler registries (openclaw#157632) chore(ui): refresh control ui locales (openclaw#157573) fix(gateway): release remote Skills subscriptions when shutdown drains (openclaw#157592) perf(plugins): reuse declared tool membership during resolution (openclaw#156205) fix(ui): pasted text previews fail before sending (openclaw#157390) fix(agents): wait for database resources during deletion (openclaw#157631) improve: move operator profile database reads off the Gateway thread (openclaw#155800) fix: explain rejected settings without losing edits (openclaw#157549) fix: keep Gateway responsive while recording trajectory events (openclaw#157598) fix(auth): show SIWC email and selected model account identity (openclaw#157629) docs: explain Codex app approval precedence (openclaw#155089) refactor(wizard): share select prompt requests (openclaw#157607) fix(ui): omit empty sections from conversation Markdown exports (openclaw#157590) fix(doctor): explain update lint supervisor refusals (openclaw#156547) fix(ui): GitHub folder links lose repository context (openclaw#157619) ... * Merge frozen main to include the question fixture authority fix * commit 'dc64cc3a3a3cf38fff1e44c1d7af42a32929d7e4': (25 commits) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (openclaw#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (openclaw#139131) refactor(msteams): share stored service URL validation (openclaw#157706) fix(codex): honor configured tool PATH in native commands (openclaw#157290) refactor(msteams): share approval kind labels (openclaw#157705) fix(sessions): keep session results current during cold reads (openclaw#156121) fix(testing): capture bounded upgrade integrity diagnostics (openclaw#157535) refactor(i18n): reuse native branch candidate extraction (openclaw#157636) fix(update): preserve recovery files after ownership refusal (openclaw#148890) fix(test): prevent late announcements from contaminating registry tests (openclaw#157681) fix(e2e): scan full onboarding logs for prompts (openclaw#157624) refactor(session-tools): derive contracts from schemas (openclaw#156365) refactor(channels): derive config contracts from schemas (openclaw#156367) perf(test): reuse MCP archives and batch worker fixture copies (openclaw#157689) refactor: reuse prepared fixtures in slow core tests (openclaw#157685) refactor(codex): reuse marketplace reference selection (openclaw#157621) chore(ui): refresh control ui locales (openclaw#157710) docs(gateway): show how we build OpenClaw on Team (openclaw#157675) refactor: verify IRC surrogate chunking over loopback (openclaw#157580) ... * chore: merge frozen main prerequisite repairs Co-authored-by: Vincent Koc <[email protected]>
Related: #45233 and #149882
What Problem This Solves
Update Doctor lint could refuse cancellation, output, or cleanup without explaining which condition it observed.
User Impact
The existing refusal now carries fixed condition labels and recorded termination facts through the update report and saved failure history. Acceptance, readiness JSON, budgets, process cleanup, and exit behavior stay unchanged. No configuration, persisted schema, SDK, or process-result API changes are required.
Why This Change Was Made
The supervisor introduced in #153679 owns these facts. Reporting them there preserves CLI reason precedence without exposing raw errors, paths, or process identifiers. The longest reachable wrapped reason is 198 characters, within the existing 200-character capture limit.
The maintained custom-plugin survivor scenario exercises the published 2026.9.6 updater against the candidate: an actual lint-worker output-limit refusal must survive in both the update result and saved run, retain the installation and operator data, and leave no owned child behind. The existing healthy sibling-import retry follows. The fixture attaches at the compiled worker entry through the existing Node preload mechanism. Both survivor containers now request Docker init to reap orphaned children; retained witnesses record process parentage and namespace PID 1 identity, and failure diagnostics include the daemon's actual init setting. All refusal and cleanup assertions remain strict.
Evidence
98ad4fc6b2b3680298a9202dc03ef940a997bc93preserves Vincent Koc's implementation and ancestry plus fixed main3fb84b05. All 16 Doctor supervisor and 11 canary tests passed. Restoring only the original supervisor caused all 11 new diagnostic assertions to fail while five existing acceptance/refusal cases passed. The combined one-worker command took 57.76 seconds. Selected checks, including types, lint, and all three dead-export scans, passed after correcting one fixture sort call. Fresh full-candidate review found no actionable P0–P2 findings against the independently verified published 9.6 caller.787f11c2.Doctor lint settlement refused: output-limit,cleanup-uncertain; kill-issued-by-abort,termination=signal.Its output child remained a zombie after the worker disappeared. The Docker launcher did not request an init reaper. This failed run is preserved; saved-status, installation-retention, and healthy-retry assertions were not reached and are not credited as passing.0f4e1b168c70c872ff4c6f6107db20437f9477b7, tree0ddbecc627cf2c77f787be897355312779cdad68, with sole parent787f11c2. Four maintained harness tests passed, followed by all 14 selected three-file checks, including formatting, line-cap, scripts lint, and all three dead-export scans. Fresh independent review found no actionable P0–P2 findings. Normal commit hooks and signature verification passed.98ad4fc6and harness0f4e1b16. Integrity and npm 12 installation passed. The 788-second survivor lane verifiedDoctor lint settlement refused: output-limit; kill-issued-by-abort,termination=signal.in both the failed update result and savedlastRun, retained the prior installation/config/operator data, and confirmed no surviving worker or output child. The witness recordsdocker-initas namespace PID 1. The healthy retry then passed with six actual plugin executions resolving the copied sibling source and the installed plugin loading successfully.dc8d1f95c2a7bef62e4c62beca738d4ee028dc08ce3f98eaf3cdd18b8d0053d1, original artifact10812581494. No product rebuild was performed. The retained diagnostic archive has service-verified SHA-256513b549bdb0ab23498c73d04f7cfe5f5a593c402bf967e1ddfed852336fccaec. Its normal 16 KiB output bound truncates the full update JSON, but preserves the complete failing step and matching run ID; the saved run parses fully, and the live fixture checked the complete raw result before publication. Exact-head CI, attempt 3 passed after recovery from an unassigned runner and release-priority deferral. The automatic Security Review refresh passed, and the native workflow verified merge0a6f1fa28b7312b767bd25e6cfef01e25bd75414on main and completed PR-owned cleanup.The candidate remains version 2026.9.5, so this is a published 9.6 driver × candidate compatibility cell, not a version-upgrade claim. No baseline Gateway-serving liveness or current FreeBSD success is claimed. Historical interrupted-run evidence does not prove current cleanup.
Thanks to @vincentkoc for the original fix.