Repository navigation
fix: recover completed package updates with changed rollback evidence - #167302
Conversation
…dence Reuse verified external-publication settlement for publication-complete recovery and preserve obsolete package evidence. Co-authored-by: Copilot <[email protected]> Copilot-Session: 48048ed7-2041-4fcc-86bc-6bc442140ddd
|
🦞👀 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, 12:05 PM ET / 16:05 UTC (Revision 2). ClawSweeper reviewWhat this changesAllows explicit update repair to settle completed external-helper package publications after verifying the installed candidate while preserving changed rollback evidence. Example: Run update repair after a completed publication whose retained previous package changed
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review This PR remains useful: current main still excludes completed publications from verified settlement, and no actionable patch defect was found. The added live evidence addresses the earlier proof request within the stated scope; recovery bootstrapping for older drivers remains separate. Priority: P1 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherNative package updates record publication and recovery in a durable journal. Explicit repair uses that journal, current update ownership, and installed-package verification to safely release pending recovery without replacing the running package. flowchart TD
A[Explicit update repair] --> B[Read publication journal]
B --> C[Acquire current update ownership]
C --> D[Verify installed candidate and sealed helper]
D -->|Verification fails| E[Keep recovery armed]
D -->|Verification passes| F[Archive original recovery evidence]
F --> G[Record settlement and admit next update]
Technical reviewBest possible solution: Keep this focused settlement extension and track supported first-hop recovery for older installed drivers in the linked issue. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the narrow failure: a completed publication with the recorded live candidate is excluded from verified settlement and remains pending. The contributor reports a failing base regression and passing head; this read-only review did not execute it. Is this the best way to solve the issue? Yes, reusing the existing verification and custody owner is the narrowest repair for supported external-helper operations. It correctly avoids claiming to retrofit older sealed drivers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against af1b0641a2e3. Provenance checked
TestingProof path: shipped entry point. Added test files: 1. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests +44, Docs +9. Total +54 across 3 files. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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]>
…dence (openclaw#167302) Reuse verified external-publication settlement for publication-complete recovery and preserve obsolete package evidence. Co-authored-by: Scott Hanselman <[email protected]> Co-authored-by: Copilot <[email protected]> Copilot-Session: 48048ed7-2041-4fcc-86bc-6bc442140ddd
…es the candidate (#183479) A 2026.9.33 to 2026.9.34 update or repair that found a package activation journal at publication-complete, with the live package already serving the recorded candidate and the executor lease intact, refused with "Package publication recovery is pending". settlePendingPackageActivation only settled a prepared operation for an installed candidate, so automatic admission and openclaw update repair both dead-ended. Extend the existing external-publication settlement to publication-complete: the publication owner verifies the closure and evidence through its retire preflight, the original executor authority is still acquired, and the operation is retired without republishing files. Dry-run admission accepts the same verified state. Publishing and other incomplete phases stay blocked. Minimal 2026.9.x port of the publication-complete settlement that main carries in 3ed1e21 (#167302), fb84dd5 (#165607), and 0679b18 (#181307); main's separate settlement verifier and custody modules are not ported.
Related: #164074
What Problem This Solves
Fixes: future package updates remain blocked after a completed publication when the retained previous package changes and the original sealed recovery helper refuses retirement.
User Impact
Explicit
openclaw update repaircan settle an external-helperpublication-completeoperation after verifying the live candidate, preserving the previous package and original helper as recovery evidence instead of deleting them or restoring obsolete bytes.Older installed drivers and sealed helpers do not acquire this behavior automatically. In-anchor legacy recovery remains owned by its original helper.
Why This Change Was Made
Admit
publication-completeinto the existing verified external-publication settlement owner, already used forpublishingand interrupted settlement. This reuses candidate inventory, manifest, launcher, sealed-helper, executor, and custody checks without reinterpreting the obsolete tree fingerprint or introducing a force option.Evidence
check-changed.mjs --timedpassed: formatting, lint, production and test type checks, SQLite/schema guards, dead-export scans, import-cycle checks, and other selected invariants.