Skip to content

fix: preserve newer data across failed update rollback - #145169

Closed
fuller-stack-dev wants to merge 81 commits into
mainfrom
openclaw/migration-rollback-preservation-20260911
Closed

fuller-stack-dev wants to merge 81 commits into
mainfrom
openclaw/migration-rollback-preservation-20260911

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Atomic-update split tracking

Public PR state checked 2026-09-24T18:29:59.776424+00:00. Shared original tracking: #144005 and #145169.

Status: split in progress, not fully published or landed. The 19 rows below are retained behaviors, not 19 completed PRs. The original public containers remain 209 and 411 files. Existing destinations do not imply that all narrow hunks are accepted or that the published PR is already reduced.

This index is the current split-delivery plan; older whole-stack/omnibus delivery wording below is historical. No-loss requirements, attribution, meaningful tests, independent review, required CI, and applicable isolated native acceptance remain binding. Raw baseline restore must not land as a lossy substitute.

Published PRs and dependencies

PR Role in the split Public head / files State Dedicated Atomic worker
#149068 Supported review-correction publication prerequisite; not capture/recovery/no-loss delivery Landed c86ef04bf095; merge 78d5bedb34de Merged 2026-09-22; exact-head required CI and independent API-direct review retained. Odin was the only used host; both worktrees and registrations are absent. Exact worker incarnation archived. Listed-owner/org-admin acceptance remains a separate canonical-owned obligation, not an open PR or blanket landing hold; Jason explicitly authorized landing. Publish reviewed PR corrections truthfully · #149068 — archived; same 2f273919 / 5d7da881
#144005 Original capture/restore; producer and durable binding still open Public 4146d06f8a32 / 209 original paths Same d4 continued narrowly owned stopped-C producer, durable attestation and reverse-binding work; ee96 primitive retained. No shared-receiver writes, new passing acceptance or LAND inferred. Existing semantic map retains all original source/goals and meaningful acceptance. Restore migration state on rollback · #144005
#145169 Original preservation; complete recovery and newer-write goals still open Public f6feb6b75d08; unpublished reviewed CLI completion c9413cbb88e6 / d25e6d13; receiver checkpoint add7adbf1f5b CLI command/cleanup completion repaired without import-cycle deadlock: 6/6 focused tests, scoped API-direct review clean through P2; five source postimages and three patch hashes independently verified. Entry and required adapter must compose together; physical-store/native qualification remains open. Existing owners are advancing real maintenance exclusion, original-run admission/fence and joined terminal cleanup for sealed resume, with one receiver writer. Current receiver export gate still fails (4 production / 3 full-tree); broad source checks, complete capture/recovery/newer-write preservation, installed no-loss, public conflicts and exact-head CI/LAND remain open. No original goal is marked complete. Preserve newer data after failed updates · #145169
#145043 Staging/convergence, R29 consumers and original-lineage publication Public 644ef9cdc9a9; receiver caller source 03acab67 accepted by #145169 Actual receiver 03acab67 / da13b8f4 includes the accepted caller and retained-reader correction; no duplicate e93 patch is needed. Existing lower/upper owners supply the missing early-entry/writer and terminal/retirement/receipt closure for guarded integration by the same #145043 owner. Current producer bytes and original full-recovery/newer-write goals are preserved; receiver export gate still fails 17 production / 11 full-tree. Independent primary 8de6df2 native aggregate remains running (build/check passed, no aggregate pass); natural terminal collection, narrow publication, exact-head CI/review and LAND remain open. Unblock upgrades with stale Codex plugins · #145043
#144318 Sealed package-publication recovery; original-lineage shipping Public draft 73cf3fd44ecd; private candidate 4caf5778e7ad, tree d9ceda1b3dcd Same e384/ceb1 continues the admitted local native prepare-gates operation: build and check passed; the same full-suite operation is running, including its native private-QA runtime preparation. Exact-candidate source review and the two-case source-bundled replay pass; these do not prove installed full-CLI recovery. Parent/child/worker isolation controls passed, but whole-suite physical SQLite/handoff/state-path witnesses and final descendant/resource settlement remain required. Actual capacity includes other active claims; 16 GiB growth remains reserved. Historical Testbox native exit 1 / remote 255 remains failed, cause unresolved; no provider-fix claim or new allocation. Correction mode and all ten mappings plus 2221/f832/e93 custody, original 19+3 goals/10 gaps and genuine Linux-only acceptance remain intact. Native qualification, correction publication, exact-result-head review/CI/ClawSweeper, applicable installed acceptance and verified LAND/cleanup remain open. No full-recovery/no-loss credit or live deployment. Recover interrupted package publication · #144318
#144319 Post-core executor custody and upper recovery Public 44f32040f0f7; owned 07aad1b4 qualified; receiver extraction 989a6188 pending Two-file post-core conflict integration on owned tree 07aad1b4: 56 passing cases (31 post-core, 13 sibling custody, 12 native custody), 11 static/type checks and scoped-clean full-file API-direct review. Accepted receiver 03acab67 / da13b8f4 uptake is bound; extraction preview 989a6188 preserves receiver cleanup but changes the test postimage, so its composed-source tests/review remain pending. Same #144319 owner advances that independent qualification; existing #144318 owner supplies the qualified minimal lower frontier for final integration. Public PR remains draft/DIRTY; required checks, publication and landing are not complete. Receiver export gate still fails 17 production / 11 full-tree findings; original capture-before-mutation, full recovery and newer-write acceptance remain open. Keep executor custody through post-core recovery · #144319
#155544 Doctor startup copies; original update prerequisite Public 1c9303cea9e90; private signed fdb6266d40a6 / tree bb44b254 Repaired task-private route qualified with scoped independent API-direct review; exact candidate remains clean. Existing selectors-unset native gate passed build/check and is still running full tests: three completed summaries total 156 files / 2,111 tests, with no failure observed at the checkpoint. No terminal full-gate pass, publication or landing. Same7ab retains the existing process completion wake, then terminal isolation/resource settlement, failure repair if needed, signed publication and exact-head CI/runtime/LAND. Earlier exit-130 failures remain historical evidence; narrowed passes do not establish their causes. Avoid repeated startup database copies · #155544
#156853 Intentional agents.delete size-drop fix; required native-gate prerequisite for #155544 5df3cd354cec / 4 files Merged 2026-09-23 as 376d13b6c778. 442 affected tests plus 3 exact-head native regressions, required CI and API-direct review passed; whole touched-test files audited. Owned worktrees/scratch removed and exact worker incarnation archived. Receiver adoption and #155544 composed native acceptance remain open. Fix intentional agent deletion rejected by config guard · #156853 (archived)
#156211 Published ordinary-backup completeness supplier; not full update recovery capture 1b01b2b9d62d / 6 Merged 2026-09-23; 28d3296aaf2b Detect missing databases in backup archives · #156211
#156265 Published three-file schema-preflight cleanup successor extracted from #144005; prerequisite for #155544 81d1f3424349 / 3 Merged 2026-09-23 as a976c5cb3f71; exact-head CI and required security status passed; native accepted intent reconciled; owned worktrees and residual snapshot/registry entries verified removed; dedicated worker archived Stop updates when schema snapshot cleanup fails · #156265
#156298 Durable-receipt persistence and private/public projection predecessor; one required packaging inventory repair, no capture/generation/restore implementation 748ef9efdf13 / 11 Merged 2026-09-23 as 44b5df106030; required CI and review passed; owned cleanup verified Preserve update recovery receipts · #156298
#156366 Recovery-manifest parser plus registered read-only update-status inspection, including terminal/forward-generation validation 8d21ae0f6248 / 8 published Merged 2026-09-23 as c7ee253e2c4c. Exact-head review, required CI and native landing passed; owned native checkout removed. Prior managed snapshot/registry retirement independently verified; exact dedicated worker archived after all-host owned cleanup, with transcript history preserved. This parser/status leaf is not complete capture/recovery acceptance Validate update recovery manifests · #156366
#156326 Typed legacy-plugin warnings and guarded Doctor rehearsal inventory consuming paths and warnings 8a8f90eb2f28 / 23 files; merge 4c468412dfef Merged 2026-09-23; exact-head required CI and three published-updater cells pass, with package-source equivalence preserved. Both worktrees, eight hosted artifacts and the exact managed snapshot are removed; the exact worker session is archived, with closure independently verified. Full original capture/recovery/newer-write goals remain separate Warn about undeclared plugin recovery resources · #156326

| #156421 | Private stores before update/Doctor; explicit direct-update leaf | Public 98f4a930459d; unchanged private 8b457ff2 | Same6ea bounded diagnosis settled: adjacent-order 36/36 and exact shared-worker prefix 224/224 selected cases passed under frozen guard; warnings reproduced without timeouts. Original 48-file replay remains exit 1 with three unresolved RPC timeouts; no loader/crash/native clearance or source fix claimed. Reviewed guard restored; consumed private fixtures/helpers removed. Same594 completed static native-source diagnosis: registration returns before coverage, and ADD/REMOVE rebuild with SinceNow does not preserve existing-watch continuity. Distinct owner 0e1e1909 published qualified libuv#5296 at 98ccd0db63ce: 59 native checks, 51 TSAN checks with zero warnings, scoped API-direct review and 49/49 exact-head upstream CI passed. Upstream maintainer review/merge is required because authenticated access is read-only. Same6ea is consuming the source for isolated Node 24.20.0 integration and unchanged receiver acceptance; no repaired Node binary or receiver clearance yet. No further unchanged replay. Receiver native acceptance, exact-source API-direct review/publication, required CI (currently failed) and LAND remain open; no whole-#147281 or composition blanket hold. | Bind private stores before update and Doctor · #156421 |
| #156459 | Three copied tooling-fixture/workflow repairs required by update qualification; Peter Steinberger attribution retained | bca82d882107 / 3 | Closed as superseded, not merged: all three outcomes are in merged #156136, ceb109668b43. Same owner verified 58/58 on main and whole-file API review; original PR CI was not green. Owned control/native checkout and registrations verified absent; exact dedicated worker incarnation archived with transcript retained | Repair copied CI fixtures · #156459 |
| #147781 | Captured-output closure supplier for independent Doctor/update qualification; Vincent Koc attribution retained | Public b2bbd40cdb98 | Repaired and published; local behavior checks and scoped independent API-direct review passed. Native preparation used github_pending, not a native-test pass. Same63bf reran exact-head CI run 36059277744 after the release-priority variable was verified absent; attempt 2 is queued, and the prior release-deferral failure is not clearance. No accepted auto-merge or landing yet. Preserve main's separate nested Error.errors improvement during any downstream composition. #147281 merged at f53cce01b45a on September 24; same594 is verifying delivered scope, residual private custody and cleanup. All original recovery/receiver goals remain mapped separately. | Keep child ownership until output closes · #147781 — 63bf24ae |
| libuv/libuv#5296 (successor to issue #3866) | Native watcher prerequisite for #156421: admission coverage and existing-watch continuity across stream rebuilds | Published 98ccd0db63ce; tree f73905d9e7fe | Qualified source: 59 native checks, 51 TSAN checks with zero warnings and eight existing skips, scoped independent API-direct review, 49/49 upstream CI checks passed. Public ABI unchanged; libuv #5283 allocation and #5287 failed-init scope preserved. OPEN and mergeable; upstream maintainer review/merge required by read-only access. Same6ea has resumed supported isolated Node 24.20.0 integration; no Node/receiver clearance or live-runtime changes. Same upstream worker retains ownership through landing. | Preserve macOS watcher events · libuv #5296 — 0e1e1909 |

Retained behavior checklist

Unchecked means the complete retained behavior is not yet verified landed; narrow component publication or a merged prerequisite is not full-outcome completion.

  • Capture and verify the complete recovery manifest — #156366 landed the bounded parser and real read-only update-status consumer as c7ee253e2c4c from reviewed 8d21ae0f6248. Original #145169 retains the capture/verification producer, complete recovery and newer-write preservation; those outcomes are not proved by the landed parser/status leaf.
  • Capture real config/Doctor writes before mutation — #145043 retains the sole receiving composition. Private schema transport b9917c2de1cf has verified postimages, 2/2 receiving cases, types and scoped API review; the unchanged lifetime bridge passes 21/21. Guarded caller/lower adoption is next. These source checks do not prove capture-before-mutation, installed no-loss recovery or current-head CI.
  • Admit and settle the installed original updater — #145169 — existing destination; remaining narrow-piece acceptance/qualification open.
  • Typed warnings for supported legacy plugin declarations — #156326 merged as 4c468412dfef from reviewed head 8a8f90eb2f28; all 23 landed file postimages verified. The guarded Doctor rehearsal consumes declared resource paths and persisted/reported warnings before migration, retaining malformed-resource and physical-locality refusals. Required CI is green; three actual published-updater cells pass (2026.9.2 and 2026.9.4 configured-plugin installs, plus 2026.9.4 Workshop Doctor recovery). Hosted qualification used fa349d3c2ccc; all non-test product source is identical to final head, whose only later change is the reviewed producer test. Whole touched-test-file audits and API review are recorded; Peter’s source credit is preserved. Both worktrees and eight hosted artifacts are gone. Exact snapshot retirement and worker archival are independently verified complete, with retained source and native merge outcome preserved; complete live capture/recovery/newer-write acceptance is not claimed by this leaf.
  • Account for retained capture and actual remaining-copy capacity — Successor PR not yet published; current integration owner is the #145043 worker, with package-copy facts from #144318.
  • Prepare recovery generations without losing newer writes — #145169 retains guarded caller 29d830e5f2b0; test-only d040300a6376 still exposes two valid DELETE/WAL failures because preserved SQLite snapshot bytes differ from stopped-C bytes. The original fix(update): back up state before migrations and restore it on rollback #144005 capture owner supplied reviewed source-image primitive tree ee96e21303fc (7 native tests pass), not a complete binding fix. Existing fix: preserve newer data across failed update rollback #145169 producer adaptation 2be66849fca9 now forwards the required original-capture proof through the original generation adapter; its 12 owned files plus five accepted lower files are source-verified, with clean scoped API review and 11 writer/2 binding tests reported passing. The eight dependency preimages are restored. The qualified two-manifest package correction is now adopted, with exact resulting manifest hashes verified and full producer/writer import-closure type checks reported exit 0; subsequent automatic-caller edits still require affected requalification. Actual original-producer execution remains blocked at baseline capture/plugin discovery, and automatic caller integration is not accepted. The feat(update): add sealed package-publication recovery #144318 lower attestation base b61618542e5c remains unchanged; its later scoped-qualified correction c2dc5f3692fb intentionally changes three guards and preserves five, with exact pre/postimage evidence. That correction is not yet accepted as producer/composed integration. Canonical has routed its required binding.sourceAttestation ref and first-admission original-capture proof to the same producer and fix(doctor): finish state migration after legacy install repair #145043 composition owner; real producer/durable-journal integration is not yet accepted. Immutable source attestation preserves the landed manifest payload-digest contract without changing fix(update): inspect retained recovery sets safely #156366. Actual C→T/resource assembly must retain original publication maintenance, exhaustive inventory/sidecars and newer-write refusal. Composed regressions, installed no-loss acceptance and exact-head CI/LAND remain open; caller/lower adoption continues independently. Two source-bound producer findings from the excluded historical implementation remain with the same fix: preserve newer data across failed update rollback #145169 owner for current-source applicability and proof: directory-child B/C/T protected-path metadata divergence and interruption between terminal-receipt hardlink publication and temporary unlink. Neither is declared fixed; strict lower equality and newer-write protections remain binding.
  • Safely publish the selected recovery generation — #145169 — existing destination; remaining narrow-piece acceptance/qualification open.
  • Recover interrupted package publication — #144318 retains guarded eight-file helper/journal/Worker protocol ec8a496f82a9 (92 scoped native cases and independent API review). Private current-main preparation f7de79df07f2 preserves all 40 lower paths/eight guards; overlap review is scoped-clean, not new runtime or CI evidence. The sealed three-file generic snapshot-child transport fe75f7f93cc7 is integrated into the existing fix(update): preserve executor custody across post-core continuation #144319 receiver at 6932c8011df5: transport 3/3 and scoped review pass, with zero shared-store attempts. Receiver native 11/12 followed by diagnostic 12/12 does not resolve the first cancellation-readiness failure or prove full recovery acceptance. The existing fix(doctor): finish state migration after legacy install repair #145043 composition owner must supply the immutable minimal caller/recovery/native/bridge closure against diagnostic-only receiver 1f7a80297c13. Sealed delta 7c82a8d79398 has 14 source-verified paths, but its cumulative 61-path import is rejected because five of eight protected receiver files differ. The original-adapter capture-proof forwarding correction is now adopted in shared 83be4ca33d5f (two exact source/test paths verified; 37 scoped tests, types, lint and formatting pass). The completed composed review confirmed the adapter-forwarding correction but required continuing publication authority and last-await pre-effect proof. The lower owner has now sealed c2dc5f3692fb on unchanged b61618542e5c, tree d5e950948d833: all 27 pre/postimage mappings (14 production, 13 test/private-harness paths) and eight guards are parent-verified. Swap, activation and activation-journal have three intentional reviewed corrections; five other guards remain byte-identical, and retained f7/b616 trees are unchanged. The c2 lower checkpoint retains its 51 scoped cases and clean API-direct review as historical evidence. The subsequent sealed inline native adapter 7ab5c2127080 on c2, tree d8c2b940d4e2, now passes the unchanged selected-pair/provider displacement oracle and 37 affected cases (15 native composition, 14 journal/transaction, 8 source proof). Its exact 28-input TypeScript qualification has zero total diagnostics without filtering; the old 45-diagnostic custom-host result is superseded, not counted as a pass. API-direct review is clean P0–P2; lint and format exit zero, with one unsuppressed existing inline-size warning. Parent verified all 12 delta pre/postimages, eight guards (three intentional changes and five unchanged against b616), both patch hashes and 24 evidence hashes. Lower remains fail-closed. The fix(doctor): finish state migration after legacy install repair #145043 shared supplier has now qualified b3868fb92058, tree adaf6f4f03cd: an exact three-file delta on 83be4ca33d5f, nine passing native controls, two meaningful red-to-green regressions, affected types/lint/format and final API-direct review clean. Parent verified all 19 reviewed source files and all eight unchanged shared guards. The ninth lexical-scope cleanup correction is included; old 836e203a7b72 is superseded. The qualified inline adapter retains original executor displacement and successor selection, exact-once onDisplaced, captured original authority and authenticated durable-journal synchronization; a private one-shot dispatch latch refuses foreign/replaced providers, and legacy rollback refuses before poisoning native reverse state. This is not a donor-module transplant or accepted receiver envelope. The same fix(doctor): finish state migration after legacy install repair #145043 supplier has prepared a provisional 25-path envelope (24 production paths and one regression test), tree da2f31a87c5d, patch SHA256 8f82b1180bf1c84874431d97e5b710d3d0539fc0c70665f77045a5d4387f6dd0. Parent verified all 25 pre/post source mappings, 15 guards and seven native source pins; four receiver corrections and three transport files remain unchanged. It is not qualified for import. The additive parser bridge has 8/8 tests, actual-preimage 7-fail/1-pass evidence, lint/format and scoped API-direct review; the ordinary backup implementation remains byte-identical. All 15 native controls on the common pre-parser closure fail at missing receiver exports, and final 25-path native/type qualification is unrun. The same fix(update): preserve executor custody across post-core continuation #144319 owner has sealed the current authority/currentStores contract on clean 7e9abd880e87 / tree c0fe01f7: captureUpdateCommandRecoveryGenerationAuthority(fence, runId) takes two arguments, shares the original admitted-authority/run registries and currentStores, and re-admits the original generation before commitInvocation/ready. All 22 current source pins and 120 return artifacts are parent-verified; no donor executor registry is imported. Full build and isolated CLI smoke pass; 52 distinct cases pass with scoped static/API-direct evidence reuse, but three inventory maintenance-lease failures and two original B/C/T 120-second deadlines remain open. A heartbeat worker’s shared coordinator SQLite attempt was correctly refused before open; same2221 is continuing owned private resolver/worker binding qualification without weakening that guard. Existing e384 lower-native qualification remains running and is preserved. Latest-main clean merge preview is not runtime evidence. Same e93 retains original-caller adaptation; rollback dispatch, pre-C config receipt settlement, startup admission and state preparation remain with their actual owners. Original-caller recovery publication, actual native cancellation, exact-head CI/native acceptance and LAND are not cleared. The same fix(doctor): finish state migration after legacy install repair #145043 owner retains envelope custody and will qualify the affected composition after the immutable native export handoff. No donor executor transplant, declaration stub, changed refusal or broad import is accepted. The 12-path private harness export and old cumulative 61-path import must not be transplanted wholesale. Same e384 retains lower source/PR custody; same e93 retains stopped-C/C→T/DELETE/WAL/newer-write producer acceptance. Scoped lower-provider positives/refusals do not establish installed-runtime, receiver, full-CLI or no-loss acceptance. Four receiver corrections and three transport files are untouched by this lower delta. The diagnostic-only receiver remains 1f7a80297c13; original native cancellation readiness and composed lifetime/API acceptance remain open. The old cumulative 61-path import remains rejected; only five needed unchanged donor prerequisites are retained, not the whole historical transport. Original-native maintenance admission/ancestor capture, source-proof retention, atomic original journal binding and owner-preserving publication/completion remain required. Publication, actual-candidate CI and applicable recovery acceptance remain open; no unrelated whole-stack landing hold applies.
  • Fence terminal effects and retire completed recovery — #145169 — existing destination; remaining narrow-piece acceptance/qualification open.
  • Protect first-store initialization and every helper writer — #156421 publishes the bounded update/Doctor before-first-access leaf at 98f4a930459d (12 files; not landed); frozen correction 8b457ff2 remains local under the same6ea owner. Historical native 05665e497cc5 passed build/check but failed tests (exit 139; 15/610 shards failed); the later full attempt also failed (143/SIGTERM). The exact original 48-file, one-worker Gateway replay has now settled: exit 1, 667 passes and three custom-provider RPC timeouts, with no SIGSEGV in that replay. Its processes and private fixtures were settled and removed. Task-only compute bootstrap qualification has causal two-case 16 MiB OOM red/green and 73 affected passes; QA source-tsconfig/worker bootstrap has causal red/green, the original lifecycle case passing, and scoped API-direct review. These results do not explain the retained RPC timeouts or clear either historical crash/full-gate failure. Same6ea completed the bounded predecessor-order RPC discriminator against the frozen guard: adjacent-order 36/36 and original shared-worker prefix 224/224 selected cases passed with original assertions and timeouts; both listener warnings reproduced without timeouts. The three historical RPC failures remain unresolved, with no justified source fix or crash/native clearance. Reviewed guard restored and consumed fixtures/helpers removed; no further unchanged replay. The earlier three-file watcher repair from the existing #147281 owner was adopted with exact postimages, receiver 11/11 and changed checks; a later full-native watcher-link failure remains open. Same594 has bounded native close/reacquire event-loss evidence, including without receiver hooks, under the original 3000 ms assertions; historical receiver causality is unproved. Same594’s independently reviewed static diagnosis identifies libuv v1.52.1 registration returning before coverage and shared-stream ADD/REMOVE rebuilds using SinceNow without preserving existing-watch continuity; no owned-JavaScript repair is justified. Distinct libuv owner 0e1e1909 published libuv#5296 for issue #3866, preserving adjacent allocation/failed-init work. Exact head 98ccd0db63ce passed 59 native checks and 51 TSAN checks with zero warnings (eight existing skips), independent API-direct review and 49/49 upstream CI checks. The public ABI is unchanged. Upstream maintainer review/merge remains external because authenticated upstream access is read-only. This source qualification does not establish a repaired Node binary, receiver acceptance or historical RPC causality. Same6ea has resumed supported isolated Node 24.20.0 integration, with exact source/receiver hashes, Vitest 5.0.1 and the unchanged 704/708, symlink-refusal, ordinary-restoration and 3000 ms contracts. Same594 retains residual private-source custody while closing merged #147281, merged at f53cce01b45a on September 24; its merge does not deliver all original recovery obligations. This is not whole-fix(doctor): release isolated state before cleanup #147281 acceptance or a blanket composition hold. Exact-candidate native qualification, independent API-direct review, supported correction publication and resulting-head required CI/landing remain open; public required CI is failed. The three-file fixture prerequisite #156459 is closed as evidence-backed superseded by merged #156136, ceb109668b43 (58/58 on tested main); dependent exact-candidate qualification remains required. #145043 retains broader invocation/lifetime integration; every actual helper/daemon/Worker/terminal private-store binding and composed original recovery acceptance remain separately required. A scoped leaf or source test is not proof of the complete outcome.
  • Avoid repeated startup database copies — #155544 remains OPEN at public 1c9303cea9e9; signed private fdb6266d40a6 / tree bb44b254 remains unpublished and clean. The earlier native attempt passed build/check but stopped with exit 130 after seven failures; two harness incompatibilities were identified, while the other original timeout causes remain unresolved. Same7ab qualified the changed task-private route with compatibility controls and scoped independent API-direct review; four exact running-route postimages and the review receipt were verified. The existing selectors-unset full-native process passed build/check and remains in tests: three completed summaries total 156 files / 2,111 tests, with no failure observed at the checkpoint. This is not terminal full-native or hosted-CI clearance. The prior appended-byte isolation census had zero unsafe admissions; a current terminal census and child/resource settlement remain required. Existing same-owner native completion notification continues into actual-failure diagnosis or supported signed correction publication, exact-head review/required CI/runtime and LAND/cleanup. Preserve physical private handoff-store binding in every helper; no blind unchanged rerun, forged stamp, weakened isolation/assertion, unrelated whole-stack hold or complete-recovery credit. Previously consumed 1.59 GB caches and the old operation lock were removed; current gate resources remain owned. No live deployment.
  • Inventory declared capture resources and boundaries — #145169 — existing destination; remaining narrow-piece acceptance/qualification open.
  • Publish staged plugin inventory under caller authority — #145043, same dedicated owner. Canonical bound the narrow read-only staging/convergence seam and attributed fix(update): back up state before migrations and restore it on rollback #144005 preview source against 15 verified receiving preimages. Implement guarded post-validation publication; prove unchanged canonical state on refusal and preservation of newer writes. Source, behavioral qualification, review, current-head CI/publication and landing remain open, independently of the native lane.
  • Retain inspection/cancellation and snapshot-cleanup failures — #156265 merged 2026-09-23 as a976c5cb3f71 from reviewed head 81d1f3424349; ten focused behavioral cases, independent API review and required CI passed, with required security status successful. Native accepted intent reconciled without redispatch. Peter Steinberger’s original PR and Jason’s cleanup implementation attribution are preserved. Dedicated owner: Stop updates when schema snapshot cleanup fails · fix(update): stop schema admission when snapshot cleanup fails #156265, owned cleanup verified complete and exact worker session archived. Other original capture/recovery outcomes remain separately open.
  • Durably store and read operational capture receipts — #156298 merged as 44b5df106030 from reviewed head 748ef9efdf13: 11 files, +555/−15. Exact-head CI, required aggregate review, native preparation, and independent API review passed. The wrapper regression was reproduced and repaired with one inventory entry; the original ten product/test files remain unchanged. Peter Steinberger’s original capture-design credit is preserved in the landed commit. Dedicated owner: Preserve update recovery receipts · fix(update): preserve recovery receipts across progress updates #156298, owned cleanup verified; dedicated worker archived with transcript history preserved. This is only the receipt predecessor; fix: preserve newer data across failed update rollback #145169 retains generation and all untransferred capture/restore outcomes.
  • Preserve forward/manual recovery and driver lifetime — #145169 — existing destination; remaining narrow-piece acceptance/qualification open.
  • Preserve logical no-loss restore semantics — #145169 — existing destination; remaining narrow-piece acceptance/qualification open.
  • Keep private capture data out of ordinary exports — #145169 — existing destination; remaining narrow-piece acceptance/qualification open.
  • Settle children and finalization before terminal publication — #145043 — existing destination; remaining narrow-piece acceptance/qualification open.

Additional linked components: #144319 supplies post-core executor custody; #156211 supplies ordinary-backup completeness. Neither is counted as complete recovery/no-loss coverage.

Original-goal details retained across the split

The 19 broad outcomes are a baseline, not proof of exhaustive delivery. Their acceptance also includes these explicit original requirements:

Each coherent piece may land independently after its actual dependencies, exact-head behavioral/integration checks, whole-touched-test-file audit, independent API review, required CI and applicable runtime acceptance pass. An unrelated whole-stack/native hold is not a landing dependency. Newer-write preservation and full recovery remain composed acceptance obligations, not ordinary-backup or package-rollback equivalents.

Already merged prerequisites

  • #140339 — feat(update): retain compatible package rollback and safe recovery admission; merged 2026-09-10.
  • #145547 — fix(update): keep the candidate capability probe free of state migration so ownership never refuses it; merged 2026-09-12.
  • #149449 — fix(update): avoid rehearsal failures while databases are active; merged 2026-09-19.
  • #153839 — fix(update): prevent live SQLite inspection from aborting updates; merged 2026-09-21.
  • #154160 — refactor(update): simplify update execution and finalization; merged 2026-09-21.
  • #143799 — fix(backup): exclude private update captures from ordinary exports; merged 2026-09-10.
  • #143899 — fix: keep moved capture directories out of exports; merged 2026-09-10.
  • #147908 — fix(update): check snapshot capacity before staging; merged 2026-09-14.
  • #146571 — fix(state): await private SQLite snapshot cleanup; merged 2026-09-13.
  • #145360 — fix(state): retain read-only snapshots until native cleanup succeeds; merged 2026-09-11.

These merged PRs provide their bounded component behavior only; they do not close the 19 retained outcomes by themselves.

Tracking and closure rule

Maintain this section on both originals whenever a successor is published, reassigned, superseded, or merged. Every distinct open split PR keeps its own named session in Atomic update workers. Link the parent tracking from each successor. Keep unpublished pieces explicit; do not drop them when a worker turn ends. Close the originals only after every retained outcome is verified landed or explicitly superseded with semantic evidence. Verify cleanup before archiving the corresponding completed worker.


Related: #144005, #142770.

What Problem This Solves

Failed protected updates can trap Doctor recovery or overwrite newer user state when recovery falls back to an older baseline. The published 2026.9.3/2026.9.4 updater records its Doctor step only after its candidate child returns, so candidate-side correlation must use the actual live driver/run/activation facts.

User Impact

Doctor repairs current state and admits a later protected update while preserving acknowledged inserts, edits, deletions, operator configuration, retained recovery generations, and the original failed-update history. Unsafe recovery remains a reported refusal.

Solution

  • Bind recovery to current config, plugin, database, executor and emitted-runtime owners; revalidate ancestry and physical identity immediately before effects.
  • Preserve the baseline capture across the shipped updater's second Doctor, including the migrated worker that adopts the same run. Bind adopted reuse to the live immediate predecessor recorded in both the capture and run history, and recheck active verification across waits. Yield during runtime inventory without weakening maintenance or settlement checks.
  • Preserve parent executor exclusion, and distinguish shipped parents that lack a retirement producer. Candidate-owned recovery reconciliation finishes capture settlement only after the real parent settles and durable readiness is verified. Check retirement child exit and cleanup before parsing receipts.
  • Hold canonical writer admission/exclusion through irreversible capture retirement, admitting only the matching verified healthy Gateway. Keep the registered cutover handshake tied to live executor and process-lifecycle authority.
  • Correct wrapper packaging, test worker/prerequisite declarations, and isolated Doctor fixtures. The regression fixtures preserve their bundled-plugin coverage, real capacity accounting, timeouts and safety assertions.

The original capture contribution by @steipete and its authorship remain in this stack. This PR contains the complete #144005 ancestry and owns the combined current-main qualification. #144005 must not land independently of the generation/publication correction and pre-mutation cutover work.

Verification

Prior reviewed follow-up head: f158d29ad020f1a3a6f00e3989e8eaa46ea6856b.

  • Fresh independent review of the final integrated 17-file follow-up found no actionable P0-P2 issues; the reviewed source was unchanged at exit.

  • All 35 selected changed-source check stages passed, with the separate warning-only temporary-creation report preserved. The final fixture correction also passed affected Doctor test types, scoped lint and diff checks.

  • Native delegated-retirement regression: before repair, only the delegated case failed and 4 controls passed; after repair, 5/5 passed. The full lifecycle suite previously passed 17/17 with original bundled coverage. Synthetic child-diagnostic/ownership controls passed 13/13 after reproducing 4 failures.

  • Runtime prerequisite admission passed 125/125. The isolated legacy Doctor correlation cases passed 3/3 after the original development-checkout inventory timeout was corrected.

  • Final Doctor recovery and ledger callers passed 100/100. The retained-forward producer initially hit its unchanged 120-second timeout while traversing obsolete generated worker trees. After ownership-checked cleanup, the exact uninstrumented reviewed source passed both retained-forward cases (2/2); the original failure and diagnostic run are retained separately.

  • Retained built acceptance for the earlier 13-file follow-up passed the unmodified published 2026.9.4 first hop, separately built Doctor and a distinct second protected update preserving newer acknowledged state. Those accepted runs were not replayed or retroactively extended to the subsequent fixes.

  • The published 4bc320a head had 145 passing hosted jobs but failed the 2026.9.3 Docker lane. The unchanged local native Docker harness reproduced the pending-capture refusal after a migrated worker adopted the run. The follow-up reproduced that refusal through the real Doctor/capture boundary, then passed both Doctor suites (102/102). A separate authority-lifetime regression reproduced acceptance after verification had settled; final affected-route tests passed 36/36 after fixing the shared predicate. Fresh independent review of this five-file follow-up found no actionable P0-P2 issues. The corrected native Docker scenario passed end to end on f158d29: unmodified published 2026.9.3 updater, adopted-worker Doctor, plugin convergence, fixture restart/readiness, state survival, cron owners, agent turn, second-update no-op, and clean Doctor. The hosted Docker job also passed. The 2026.9.3 harness explicitly marks its backup-rollback probe not applicable; the retained 2026.9.4 no-loss proof keeps its separate scope.

Combined Candidate and Remaining Landing Gates

Current combined source: eadc86689c8994e0a364f1c7caa72c97cf8f6f0b, tree 1ebccfa77bf3fc9c0ffc17a2ccd7f47c0d5a273c. This preserves the complete #144005 ancestry and integrates main 929bafb35f5628f11bc9464a41951c52f69df1b6, including already-landed Windows, native-scope, clone and linked-runtime prerequisites.

  • API-only review of the integration repair and both subsequent fixture deltas is scoped-clean at P0–P2, with exact source integrity verified at exit.
  • Current-source authority coverage passed 21/21, retained-forward recovery 2/2, built candidate canary 1/1, and Doctor health 51 selected cases. The helper selection passed 154 cases, with its five failed cases repaired and individually passing; two cases were skipped. These selections overlap earlier work and are not summed into a single total.
  • All 21 affected test-type graphs, final scoped lint, staged line-cap ratchet and diff checks passed. Earlier transient authority failures remain recorded; their cause was not established.
  • Cold-process 4/4 and shipped-parent candidate settlement proof from the preceding combined head are retained with their original scope. The latter used synthetic readiness and is not a full shipped automatic-restart claim.
  • New exact-head CI has started. The exact-source package and serial published 2026.9.4/2026.9.3 Docker lanes are next. Those lanes invoke the shipped updater with --no-restart, followed by candidate self-update/authenticated restart; they do not prove shipped-driver automatic restart.
  • Prior f158 CI and component acceptance remain retained evidence, not combined-candidate CI. Required new CI, packaged acceptance, native preparation and merge remain open gates. fix(update): back up state before migrations and restore it on rollback #144005 must not land independently.

No combined end-to-end success or native LAND is claimed yet. No live Odin Gateway restart/update was performed; original recovery captures remain unchanged. Historical CI and fixture failures remain failures, not waivers.

@clawsweeper

clawsweeper Bot commented Sep 11, 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 cli CLI command changes commands Command implementations size: XL maintainer Maintainer-authored PR labels Sep 11, 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 26, 2026, 5:59 AM ET / 09:59 UTC (Revision 74).

ClawSweeper review

What this changes

The branch adds update-state captures, Doctor and plugin resource inventory, rollback preparation, recovery records, Gateway admission guards, tests, and recovery documentation.

Warning

SQLite table change

This PR modifies persisted SQLite tables in extensions/memory-core/src/migration/doctor-memory-sidecar-sources.ts, extensions/memory-core/src/migration/doctor-memory-sidecar.ts. 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 - 15 items remain

Keep open under the maintainer’s stated plan. The credited replacement at #158491 remains open with merge conflicts, and the complete no-loss recovery behavior has not landed on main.

Priority: P0
Reviewed head: f6feb6b75d08785dc61da204fa9b0d4ea581693c

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Historical installed evidence is useful, but this pinned branch has unresolved recovery defects and lacks complete current-head no-loss proof.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: earlier installed 2026.9.4 observations cover an earlier head, while this pinned branch’s capture, Doctor migration, reverse publication, and final package/SQLite effects have no current-head allowed-owner versus revoked-owner result. Existing capture-manifest and ledger-record upgrade compatibility is also unverified; redacted terminal traces or logs of an unchanged published updater driving this candidate would address the gap. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🧂 unranked krab (1/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: earlier installed 2026.9.4 observations cover an earlier head, while this pinned branch’s capture, Doctor migration, reverse publication, and final package/SQLite effects have no current-head allowed-owner versus revoked-owner result. Existing capture-manifest and ledger-record upgrade compatibility is also unverified; redacted terminal traces or logs of an unchanged published updater driving this candidate would address the gap. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 9 items Replacement remains unlanded: The maintainer said this original head was restored to preserve attribution and would be closed after the credited rewrite lands. REST metadata shows the replacement is open and dirty; its body reports source checks, not installed no-loss acceptance.
Current main retains a narrower rollback contract: Current main’s rollback guide says full-state recovery requires a backup and that the updater does not create or replay a full-state checkpoint. The current rollback implementation lacks this branch’s recovery-backup path.
Prior installed proof has a narrower source identity: The complete PR body matches the host-captured SHA-256. Its installed 2026.9.4 result belongs to an earlier head; the body explicitly leaves combined-source CI, packaged acceptance, and landing open.
Findings 5 actionable findings [P1] Preserve updates for plugins without a resource collector
[P1] Reject noncanonical resource paths before normalization
[P1] Complete reverse publication before claiming automatic rollback
Security Needs attention Prove revocation before recovery pruning deletes files: The new pruning path checks owner authority before calling asynchronous directory.remove without the final-mutation callback used by sibling retirement code. Verify that a revoked or reassigned owner cannot delete at the final filesystem effect.

How this fits together

The installed updater activates a candidate OpenClaw package while Doctor may migrate configuration and databases. Recovery must reconcile the package, persisted state, and Gateway startup before returning service to users.

flowchart LR
  A[Installed updater] --> B[Pre-update capture]
  B --> C[Doctor and plugin migrations]
  C --> D{Update succeeds?}
  D -->|Yes| E[New Gateway serves]
  D -->|No| F[Recovery admission]
  F --> G[Verified package and state]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: earlier installed 2026.9.4 observations cover an earlier head, while this pinned branch’s capture, Doctor migration, reverse publication, and final package/SQLite effects have no current-head allowed-owner versus revoked-owner result. Existing capture-manifest and ledger-record upgrade compatibility is also unverified; redacted terminal traces or logs of an unchanged published updater driving this candidate would address the gap. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Preserve updates for plugins without a resource collector (P1) - The new capture caller omits requireDeclaredResources, so the collector silently skips a plugin migration without an inventory method. Doctor can then mutate data that the recovery set never captured.
  • Reject noncanonical resource paths before normalization (P1) - The new collector accepts any absolute path and normalizes it before preserving the declaration. Paths containing parent segments can therefore change identity before capture ownership and overlap checks; reject them at the plugin contract boundary.
  • Complete reverse publication before claiming automatic rollback (P1) - The new recovery entry still rejects a retained full-state claim as deferred. A published updater cannot complete the promised package-and-state rollback through this entry, so preserve the pending record until a real reverse-publication path exists.
  • Bound recovery receipts before writing the update ledger (P2) - The new exact capture receipt is appended outside the 16 KiB origin bound, while the schema permits 512 config paths of up to 4096 characters each. Large valid receipts can therefore exceed the ledger’s established metadata budget.
  • Support current shared-state schema in recovery preparation (P1) - Late discovery on the unchanged reviewed head: this new preparer refuses every content version above 17, while the pinned PR base and current main declare schema 19. A current installation therefore cannot use this preparation path for its normal shared database.
  • Resolve security concern: Prove revocation before recovery pruning deletes files - The new pruning path checks owner authority before calling asynchronous directory.remove without the final-mutation callback used by sibling retirement code. Verify that a revoked or reassigned owner cannot delete at the final filesystem effect.
  • Resolve merge risk (P1) - The branch adds a versioned capture manifest and exact update-ledger receipts without verified upgrade behavior for existing recovery records and installed updater versions.
  • Resolve merge risk (P1) - Recovery pruning calls the asynchronous filesystem removal API without a final-mutation authority callback. Whether a revoked owner can reach deletion after internal awaits remains unproved; the dependency implementation was unavailable in this read-only checkout.
  • Resolve merge risk (P1) - No installed, unchanged published-updater × current-candidate result demonstrates complete rollback while preserving acknowledged newer writes.
  • Complete next step (P2) - Qualify and land the credited replacement, verify its no-loss recovery outcome, then close this original under the maintainer’s stated plan.
  • Improve patch quality - Qualify the credited replacement against unchanged published updater drivers, including schema-19 and existing recovery records.
  • Improve patch quality - Add final-effect proof for the allowed recovery owner and the nearest revoked or reassigned owner before filesystem and SQLite effects.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P1] Preserve updates for plugins without a resource collector — src/infra/update-recovery-backup-create.ts:165-169
  • [P1] Reject noncanonical resource paths before normalization — src/plugins/doctor-migration-resources.ts:43-47
  • [P1] Complete reverse publication before claiming automatic rollback — src/cli/update-cli/update-command-recovery.ts:15-20
  • [medium] Prove revocation before recovery pruning deletes files — src/infra/update-recovery-backup-restore.ts:61
Agent review details

Security

Needs attention: No dependency or workflow change was introduced, but recovery’s final filesystem authority requires verification.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Code and proof-harness growth production +16429/-2687; tests/harness +19447/-3030 The large production recovery path needs the stated no-loss justification to be demonstrated on the resulting installed candidate.
Persisted recovery contracts 1 v2 capture manifest and 1 update-ledger receipt field Both introduce existing-state and older-reader compatibility questions before merge.

Stored data model

Persistent data-model change detected: database schema: src/state/openclaw-state-recovery-preparation.ts, migration/backfill/repair: config/assertion-safety-baseline.txt, migration/backfill/repair: extensions/acpx/doctor-contract-api.ts, migration/backfill/repair: extensions/acpx/src/session-owner-migration.ts, migration/backfill/repair: extensions/canvas/doctor-contract-api.ts, migration/backfill/repair: extensions/canvas/src/config-migration.ts, and 23 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Qualify the credited replacement (recommended)
    Resolve its conflicts, prove installed recovery and existing-state compatibility, then close this original under the maintainer’s stated plan.
  2. Repair this original branch
    Retain it as a landing candidate only if its capture, schema, authority, and publication defects are repaired and the complete flow is proved.

Technical review

Best possible solution:

Ship one recovery owner that captures state before mutation, preserves newer writes across package and SQLite recovery, and proves safe refusal and restart through published updaters.

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

No high-confidence live reproduction was run in this read-only review. The pinned source directly exposes the omitted plugin resources, deferred recovery entry, and schema-19 refusal.

Is this the best way to solve the issue?

No. This original branch is not a safe landing path; the credited replacement should retain its design and attribution while qualifying the complete installed recovery flow.

Full review comments:

  • [P1] Preserve updates for plugins without a resource collector — src/infra/update-recovery-backup-create.ts:165-169
    The new capture caller omits requireDeclaredResources, so the collector silently skips a plugin migration without an inventory method. Doctor can then mutate data that the recovery set never captured.
    Confidence: 0.94
  • [P1] Reject noncanonical resource paths before normalization — src/plugins/doctor-migration-resources.ts:43-47
    The new collector accepts any absolute path and normalizes it before preserving the declaration. Paths containing parent segments can therefore change identity before capture ownership and overlap checks; reject them at the plugin contract boundary.
    Confidence: 0.84
  • [P1] Complete reverse publication before claiming automatic rollback — src/cli/update-cli/update-command-recovery.ts:15-20
    The new recovery entry still rejects a retained full-state claim as deferred. A published updater cannot complete the promised package-and-state rollback through this entry, so preserve the pending record until a real reverse-publication path exists.
    Confidence: 0.96
  • [P2] Bound recovery receipts before writing the update ledger — src/infra/update-run-codec.ts:93-96
    The new exact capture receipt is appended outside the 16 KiB origin bound, while the schema permits 512 config paths of up to 4096 characters each. Large valid receipts can therefore exceed the ledger’s established metadata budget.
    Confidence: 0.91
  • [P1] Support current shared-state schema in recovery preparation — src/state/openclaw-state-recovery-preparation.ts:279-285
    Late discovery on the unchanged reviewed head: this new preparer refuses every content version above 17, while the pinned PR base and current main declare schema 19. A current installation therefore cannot use this preparation path for its normal shared database.
    Confidence: 0.97
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.88

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 90869ccd9cfb.

Labels

Label changes:

No label changes.

Label justifications:

  • P0: A failed update can strand the Gateway beside incompatible state or lose acknowledged newer writes.
  • merge-risk: 🚨 compatibility: The branch changes recovery formats and update behavior across already installed updater versions.
  • merge-risk: 🚨 session-state: Rollback preparation and publication can replace SQLite and session state after candidate writes.
  • merge-risk: 🚨 security-boundary: Recovery and pruning consume owner authority before filesystem and database effects, with a final-effect revocation case unresolved.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦪 silver shellfish and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: earlier installed 2026.9.4 observations cover an earlier head, while this pinned branch’s capture, Doctor migration, reverse publication, and final package/SQLite effects have no current-head allowed-owner versus revoked-owner result. Existing capture-manifest and ledger-record upgrade compatibility is also unverified; redacted terminal traces or logs of an unchanged published updater driving this candidate would address the gap. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Prove revocation before recovery pruning deletes files — src/infra/update-recovery-backup-restore.ts:61
    The new pruning path checks owner authority before calling asynchronous directory.remove without the final-mutation callback used by sibling retirement code. Verify that a revoked or reassigned owner cannot delete at the final filesystem effect.
    Confidence: 0.78

What I checked:

  • Replacement remains unlanded: The maintainer said this original head was restored to preserve attribution and would be closed after the credited rewrite lands. REST metadata shows the replacement is open and dirty; its body reports source checks, not installed no-loss acceptance. (11d6baa0f0e2)
  • Current main retains a narrower rollback contract: Current main’s rollback guide says full-state recovery requires a backup and that the updater does not create or replay a full-state checkpoint. The current rollback implementation lacks this branch’s recovery-backup path. Public docs: docs/install/updating/rollback-and-recovery.md. (docs/install/updating/rollback-and-recovery.md:107, 90869ccd9cfb)
  • Prior installed proof has a narrower source identity: The complete PR body matches the host-captured SHA-256. Its installed 2026.9.4 result belongs to an earlier head; the body explicitly leaves combined-source CI, packaged acceptance, and landing open. (f6feb6b75d08)
  • Capture omits undeclared plugin resources: The introduced capture caller does not request declared resources, and the collector skips a migration with no resource collector. (src/infra/update-recovery-backup-create.ts:165, f6feb6b75d08)
  • Shared-state preparation excludes current schema: The introduced preparer admits only schema content versions 15–17. Current main declares shared-state schema 19, and the PR’s pinned base already had schema 19. (src/state/openclaw-state-recovery-preparation.ts:281, f6feb6b75d08)
  • Current schema contract: Current main declares OPENCLAW_STATE_SCHEMA_VERSION as 19. (src/state/openclaw-state-db-contract.ts:22, 90869ccd9cfb)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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 (73 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-25T07:19:37.124Z sha f6feb6b :: needs real behavior proof before merge. :: [P1] Preserve updates when a plugin has no resource collector | [P1] Reject noncanonical resource paths before normalization | [P1] Qualify the automatic state-rollback promise | [P2] Describe forward repair for unresolved captures | [P2] Bound recovery receipts before writing the ledger
  • reviewed 2026-09-25T07:55:33.192Z sha f6feb6b :: needs real behavior proof before merge. :: [P1] Preserve updates when a plugin has no resource collector | [P1] Reject noncanonical resource paths before normalization | [P1] Qualify the automatic state-rollback promise | [P2] Describe forward repair for unresolved captures | [P2] Bound recovery receipts before writing the ledger
  • reviewed 2026-09-25T10:52:06.998Z sha f6feb6b :: needs real behavior proof before merge. :: [P1] Preserve updates when a plugin has no resource collector | [P1] Reject noncanonical resource paths before normalization | [P1] Qualify the automatic state-rollback promise | [P2] Describe forward repair for unresolved captures | [P2] Bound recovery receipts before writing the ledger
  • reviewed 2026-09-25T11:20:40.803Z sha f6feb6b :: needs real behavior proof before merge. :: [P1] Preserve updates when a plugin has no resource collector | [P1] Reject noncanonical resource paths before normalization | [P1] Qualify the automatic state-rollback promise | [P2] Describe forward repair for unresolved captures | [P2] Bound recovery receipts before writing the ledger
  • reviewed 2026-09-25T11:43:12.794Z sha f6feb6b :: needs real behavior proof before merge. :: [P1] Preserve legacy updates without a plugin resource collector | [P1] Reject noncanonical resource paths before normalization | [P1] Qualify the automatic state-rollback promise | [P2] Describe forward repair for unresolved captures | [P2] Bound recovery receipts before writing the ledger
  • reviewed 2026-09-25T20:39:35.199Z sha 64c6c66 :: needs real behavior proof before merge. :: [P1] Capture the bundled Canvas migration's custom-root documents | [P2] Update rollback guidance for the new recovery path
  • reviewed 2026-09-25T21:39:48.961Z sha 08db0ae :: needs real behavior proof before merge. :: [P1] Capture Canvas documents before the migration moves them | [P2] Update the canonical rollback guide for checkpoint recovery
  • reviewed 2026-09-26T00:45:39.981Z sha f6feb6b :: needs real behavior proof before merge. :: [P1] Preserve updates for plugins without a resource collector | [P1] Reject noncanonical resource paths before normalization | [P1] Complete reverse publication before claiming automatic rollback | [P2] Bound recovery receipts before writing the update ledger

Integrate the reviewed allocation prerequisite and align update transport, cutover, and executable Windows cleanup fixtures with their current owners.
@steipete

Copy link
Copy Markdown
Contributor

@fuller-stack-dev I am reconciling #144005 and #145169 with current main while keeping capture and newer-write preservation together. Your updated split index references receiver 03acab67, lower candidate 4caf5778e7ad, and producer 209438c4; those objects are not available in the canonical repository. Could you point to the current published branch, full commits, or a reviewable patch, and identify which parts are actively being advanced? The private R31 work remains untouched.

Separately, #145043 now preserves its original ancestry and carries the remaining post-convergence config handoff repair at d50e7e798fb6c1d00091bdce45a5f427f652c4b2. Its real startup regression passes; current CI and the published-updater check are running. That narrow repair does not deliver the full checkpoint pair or qualify the private R31 receiver.

@fuller-stack-dev

fuller-stack-dev commented Sep 25, 2026 •

Copy link
Copy Markdown
Member Author

@steipete — you’re right: the index cited local snapshots without fetchable source. Those sources are now reviewable:

Source Public handoff
Historical receiver 03acab67204cfc9be90c52d664dbb47fc81d13f9 Exact source patch + README. Apply PETER-RECEIVER-03ACAB-SOURCE.patch to public base e7fbe5389e0bb46bdf2ba85f941ee3ffc818a7f6; reconstructed tree is da13b8f4a212078fe171dc6fd9d55a6a758ec7a8.
Current receiver work at 07:43 UTC PETER-RECEIVER-CURRENT-SOURCE.patch in the same handoff, against the same base; tree ae8a5b14a1226e3aebcf8051cac4c4037c371f5c. This is an owner-pinned working-source snapshot, not a commit or a merge-ready candidate.
Historical lower 4caf5778e7ada5b96d67ec3adddd6ad50d65dc80 Commit · review branch
Current lower 9a168b0a01c3467f66c6360be6303890bc9716da Commit · review branch

Identifier correction: 209438c4 was a file SHA-256, not a Git commit. The handoff includes the exact src/cli/update-cli/update-command-recovery-source.ts from 03acab: 16,075 bytes, SHA-256 209438c4b60d7c04757aa784b032413ec05932509195ca78817647e84d9094a6. Both patches reconstruct their stated trees; the public raw downloads were independently hash-verified. Use Raw for the full patches if GitHub truncates the preview. Attribution to the original contributors is retained in the handoff.

What is actively advancing:

  • Receiver / preservation: selected-runtime entry, writable-store guards and reverse-publication integration are in the current snapshot. The existing owner has scoped entry/writer/reverse results; affected checks and independent review remain open. Upper executor authority, terminal/retirement and config integration still need the qualified supplier handoff.
  • Lower feat(update): add sealed package-publication recovery #144318: initial-store transport/admission and durable publication have advanced to 9a168b0a. Doctor isolation and the three original-budget rollback cases still block native qualification/publication. The older 4caf full-suite run failed; it is not still running or evidence that the current candidate passed.
  • Original fix(update): back up state before migrations and restore it on rollback #144005 + fix: preserve newer data across failed update rollback #145169: capture before mutation, complete recovery and preservation of acknowledged newer writes remain together as the outstanding acceptance goal. Scoped checks, ordinary backups and package rollback are not substitutes.

Your public #145043 repair at d50e7e798fb6c1d00091bdce45a5f427f652c4b2 is separate and untouched. Nothing was pushed to that PR branch, and its narrow startup proof is not being counted as private-receiver/full-checkpoint qualification. These exports are review-only, not a request to merge the cumulative receiver. I’ve corrected the source/status entries in both original indexes accordingly; all retained behavior checklist entries are preserved.

@steipete

Copy link
Copy Markdown
Contributor

Thanks — I verified the complete raw current-source export independently:

  • PETER-RECEIVER-CURRENT-SOURCE.patch SHA-256 is fd36ea058fa04ff61a5a543a8a61e094b1ed7072ea373af1effbc2d316237c02.
  • It is the declared 204-path snapshot for tree ae8a5b14a1226e3aebcf8051cac4c4037c371f5c.
  • The source materially advances the public head: it includes original-entry-and-state-writers-v1, selected-original startup admission, writer guards, and reverse-generation binding.

I do not yet see a qualified handoff for the two contracts that blocked the prior receiver:

  1. Shared-state recovery preparation still accepts supported transitions only through schema 17, plus an exact schema 18→18 no-op shape; it refuses the current schema-19 case.
  2. Selected-original inspection launches --internal-update-recovery-startup-v1. Published 9.2/9.4 do not ship that entry/writer-enforcement dispatch, and the export does not include a proven compatibility route through their shipped entrypoint.

The README also correctly leaves affected checks, independent review, upper executor/terminal/config integration, and installed no-loss/newer-write acceptance open.

Please hand off the next candidate as either a signed commit/ref or another exact patch + reconstructed tree, with:

  • schema-19 preparation/revocation evidence,
  • an unchanged published-9.2/9.4 driver × candidate reverse-recovery proof (or an explicit narrowed compatibility decision),
  • the affected entry/writer/reverse and upper-lifecycle checks,
  • fresh independent review.

I have not touched the private R31 worktree or either public PR branch. Original authorship and the paired #144005/#145169 acceptance remain intact.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

@steipete — confirmed. Both contracts remain unresolved in the current receiver.

I rechecked openclaw-state-recovery-preparation.ts: it still admits only the supported 15–17 transitions and the exact 18→18 no-op shape. Schema-19 reader support elsewhere is not schema-19 recovery preparation or revocation evidence. The existing capture/recovery owners are now reconciling your review against the current source.

The next candidate handoff must include:

  • Schema-19 preparation and revocation behavior, including refusal/preservation on unsupported or unsafe transitions.
  • An unchanged published 9.2/9.4 driver × candidate reverse-recovery proof through the shipped entrypoint. The new internal startup flag alone cannot establish compatibility. Existing inspection also identified a supported 9.4 library writer outside the proposed admission boundary; that remains an open compatibility issue, not a passed case.
  • Affected entry/writer/reverse and upper executor/terminal/config lifecycle checks, plus fresh independent review bound to the delivered source.
  • A signed public commit/ref, or an exact patch with public base, complete hash and reconstructed tree, with passed, failed and unrun checks distinguished.

I have not narrowed legacy compatibility. If no supported route satisfies the unchanged-runtime contract, I’ll bring back a concrete compatibility proposal and its consequences for an explicit decision before changing support claims. Independent schema/recovery work continues in the meantime.

The existing ae8a5b14… export remains review-only; it is not the requested qualified successor. Capture before mutation, complete recovery and preservation of acknowledged newer writes remain paired across #144005/#145169. Your #145043 repair and original contributor attribution remain preserved.

@steipete

Copy link
Copy Markdown
Contributor

The current-owner repair required a full rewrite that no longer descends from this contributor branch. To preserve Jason's original ancestry and review record, I restored this PR to its f6feb6b75d08 head and moved the qualified rewrite to maintainer-owned #158491. The replacement keeps the original design and implementation credit through explicit source links, commit authorship, and co-author trailers. I’ll close this PR as superseded after the replacement lands and is verified.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Closing as superseded by the credited maintainer rewrite #158491 (merged 2026-09-28), per the plan above. Remaining no-loss recovery goals are tracked in the narrower split PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: line Channel integration: line channel: matrix Channel integration: matrix channel: msteams Channel integration: msteams channel: nostr Channel integration: nostr channel: reef Channel integration: reef channel: voice-call Channel integration: voice-call channel: zalouser Channel integration: zalouser cli CLI command changes commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: acpx extensions: active-memory extensions: browser extensions: canvas extensions: codex extensions: crabbox extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: memory-wiki extensions: qa-lab gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. plugin: workboard rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts security-sensitive-changed size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants