Repository navigation
fix(doctor): stop chat updates rolling back during cleanup (2026.10.3) - #170218
Merged
RomneyDa merged 1 commit intoOct 12, 2026
Merged
Conversation
Backport #170070 to the 2026.10.3 hotfix line, retaining the existing repair scope during post-check authority reads and the native owner after drainage. Adapt only the shared helper and its three post-repair callers to the stable layout; preserve nested-effect refusal and requester-revocation checks. Co-authored-by: hannesrudolph <[email protected]>
Contributor
|
🦞👀 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. |
RomneyDa
marked this pull request as ready for review
October 12, 2026 20:34
This was referenced Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #168750
Backport of #170070 for 2026.10.3.
What Problem This Solves
Fixes chat-requested updates rolling back, or leaving plugin upgrades unfinished, when activation Doctor fails with
Database maintenance authority check cannot admit a nested effect.User Impact
Doctor can complete post-repair cleanup without this false authority failure. Actual requester revocation still refuses writes. No schema, stored-data, permission, config-option, or rollback-policy changes.
Why This Change Was Made
Doctor must retain its existing database resource scope while rereading requester policy after its checks callback, then use its still-held native owner after drainage. This adapts the merged main fix to 10.2's synchronous maintenance layout and three existing post-repair callers, without importing main's broader Doctor/config refactors or changing the nested-effect guard.
The 2026.10.3 base is shipped 2026.10.2 plus canonical generated version alignment and release notes. This PR itself changes two files. Neither shipped 2026.10.2 nor 2026.10.5-beta.2 contains the main fix.
Original repair: #170070 (
fd4b09c0aca8a6a98b6ab12788b648edfaa44307). Thanks @hannesrudolph.Evidence
Object.assertAdmissionthroughobserveOpenClawDatabaseMaintenanceResource; both cases pass after this repair, including replacement and later requester-revocation refusal.pnpm test src/commands/doctor-maintenance.requester-authority.test.ts --maxWorkers=1passed 2/2 in 64.13 seconds wall time (including setup, transformation, and native worker preparation; the two reported test cases total 27.39 seconds). The earlier product-identical run took 37.91 seconds. This extends the existing real Doctor/storage/requester fixture; its native custody, file replacement, config promotion, and revocation behavior cannot be proved by a cheaper mock supplying the asserted outcome. CI seconds are pending.git diff --checkpassed. Canonical 10.3 version-preparation/preflight and changelog layout checks passed.This proves the production ownership boundary on isolated macOS state. It does not reproduce the reporter's large database or a real launchd/systemd chat handoff, and it does not reconcile historical anonymous child-command reservations. No live Gateway or operator state was changed. PR readiness is separate from final stable release qualification/publication.