Repository navigation
fix: completed recovery history blocks future updates - #167358
Conversation
Inspect validated historical receipts for admission without granting execution authority. Ignore terminal typed retirement cleanup, but preserve blockers for unfinished restoration and ambiguous package effects. Keep named execution decoding strict and prevent CLI completion fallback from writing while another recovery remains pending.
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed October 8, 2026, 3:59 PM ET / 19:59 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR allows completed recovery history to coexist with future updates while preserving refusals for unfinished restoration and ambiguous mutations. Example: Run another update with a completed legacy recovery record
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This useful maintainer-authored fix remains necessary on current main. No actionable patch defects remain, and the updated qualification addresses the earlier review blocker. Priority: P1 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherOpenClaw’s updater stores recovery evidence and update outcomes in SQLite. Admission checks distinguish unfinished recovery from historical records before allowing another update. flowchart TD
A[Next update request] --> B[Saved recovery records]
B --> C[Validate historical evidence]
C --> D{Recovery unfinished?}
D -->|Yes| E[Preserve state and refuse update]
D -->|No| F[Run update under existing ownership]
F --> G[Publish matching update outcome]
Technical reviewBest possible solution: Keep one validated history-inspection owner for admission and retain strict, operation-specific execution and finalization. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the failure: current main execution-decodes every historical record before admission and treats terminal retirement cleanup as pending. Focused regressions cover those inputs; this review did not run them. Is this the best way to solve the issue? Yes, reusing the existing validated inspection codec removes the historical-admission failure without creating another recovery owner or weakening named execution decoding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4f33fe7402bf. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +11, Tests +90. Total +101 across 9 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
|
Backport all required recovery fixes to 2026.10.1: #167302, #167330, #167358, and #167377. Include their missing settlement prerequisites #164997, #165238, and #165607. Close obsolete recovery custody durably before best-effort evidence archival; keep unfinished rollback and current mutation authority strict. Completed history cannot block subsequent updates. Qualify authentic interruptions from pinned 9.8/9.9 updaters plus the unchanged 9.7-to-9.8 negative control. Adapt donor APIs to the release-owned publication and lease database owners. No version, dependency, budget, permission, or publication changes. Proof:619 focused tests passed, including14 release-profile cases; fresh complete69-file P0-P2 review clean. Complete changed gate passed. Exact combined release build and stable/all/soak qualification remain pending. Sources: 3ed1e21 (#167302) 4821885 (#167330) 8879e5e (#167358) bc860ad (#167377) 9497527 (#164997) 5ae6497 (#165238) fb84dd5 (#165607) Co-authored-by: Scott Hanselman <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
Keep the canonical completed-history repairs from #167330 and #167358 rather than duplicate their owners. Retain the reviewed Git, native, and optional restart-install-history fixes. Integrated focused validation: 429 infrastructure and 61 CLI tests passed; independent review clean through P2. Co-authored-by: fuller-stack-dev <[email protected]>
…penclaw#167358) Inspect validated historical receipts for admission without granting execution authority. Ignore terminal typed retirement cleanup, but preserve blockers for unfinished restoration and ambiguous package effects. Keep named execution decoding strict and prevent CLI completion fallback from writing while another recovery remains pending.
What Problem This Solves
Fixes updates being blocked by completed recovery history from an older reader format or by unfinished cleanup of an obsolete package.
User Impact
Completed history no longer prevents the next update. Unfinished restoration, unknown or corrupt records, and active mutations still require recovery; retained evidence is not deleted or rewritten.
This changes the installed updater. It cannot run inside an unchanged older updater that refuses before fetching the candidate.
Why This Change Was Made
Admission needs to determine whether recovery is pending, not execute every historical record. Use the existing validated inspection codec for history and strict execution decoding only for the operation being acted on. Typed terminal package retirement is cleanup; unfinished restore progress remains blocking. Preserve the matching operation’s finalizer and prevent CLI fallback from completing over unrelated unfinished recovery.
This is complementary to Scott’s package-publication repair and package receipt/cleanup repair, not a replacement for either.
Evidence
Completed packed-candidate qualification (2026-10-08)
All five maintained Docker cells passed on their first attempt, with no timeout; final scheduler status is
passedand cleanup joined. The parent independently reranassertPackageRecoveryEvidenceon all five structured receipts.Positive cells used the exact composed candidate
1aa57206f693d5e2fbce607289d0bbeefbff32d1, tarball SHA-25620f5375db04391e3155d1a1386843e8aeb80cade377193b71e7221e5b7d490f7. This is a local qualification package labeled 2026.9.9, not a published release. Runtime owners match #167330 at2c6986b123f8ce44bbeb9c714ab20a3515a73a30and #167358 atd3932c61a3517bb171d4c1242a2699897bae1ee8.Each authentic released writer created its own journal and helper and reached
publication-complete. Installed-candidate public repair and repeated repair exited 0. Full retained-tree inventory, identity and original helper digest, unchanged candidate bytes, and authored settings were preserved. Every positive cell then installed the distinct expected package/build identity2026.9.10-first-hop.0through the updater, with retained evidence and settings still preserved. This supplies the requested shipped-writer compatibility/repair/next-update proof; focused unfinished-restoration refusal regressions remain separate supporting evidence.The negative control confirms unchanged 9.8 blocks before staging/accessing the deliberately absent candidate:
update-recovery-pending,candidateCodeInvoked:false. It does not claim candidate-only rescue of a stranded old updater. Old-reader → external-new-repair → old-reader remains uncovered, and no full release upgrade or release publication is claimed.Frozen trusted harness:
ec0a4e67d8a3ae45e0311cb27a62f4e00b745820. At final harness head6c05dc5bfebacd61b25333d5b07a3a3913c52f80, recovery-specific modules, policy and Docker planner remain byte-identical; shared main phase-logging/restart-fixture changes are covered by focused conflict tests, not claimed byte-identical. Aggregate cell time is 3,490 s (58m10s), excluding setup. These are local Docker measurements, not CI seconds.Current-head required CI is green on all three PRs. Exact-head ClawSweeper reviews completed with no code findings; their outstanding qualification requests are addressed by these results. Existing independent source-review dispositions and the harness's inherited local Knip failure remain recorded, not relabeled as clean checks.