Repository navigation
fix(update): inspect retained recovery sets safely - #156366
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 23, 2026, 8:06 AM ET / 12:06 UTC (Revision 3). ClawSweeper reviewWhat this changesAdds validated, read-only recovery-set reporting to update status, including retained manifests, recorded outcomes, and inspection guidance. Merge readiness⛔ Blocked before merge - 1 item remains Both prior blockers are resolved, and no new actionable defects were found at the pinned head. The work remains useful and absent from fetched main; keep it open for normal landing. Priority: P2 Review scores
Verification
How this fits togetherUpdate status combines installation information with retained update history. This change reads recovery manifests and ledger receipts to report recovery status without restoring or modifying captured data. flowchart TD
A[Update status command] --> B[Inspect capture directory]
B --> C[Recognize ordinary artifacts]
B --> D[Validate recovery manifests]
E[Update ledger receipts] --> F[Classify recovery status]
D --> F
F --> G[JSON and terminal guidance]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +772, Tests +755, Other +1. Total +1528 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep recovery inspection within update status, preserve existing artifacts and archive contracts, and leave capture and restoration implementation with their separate owners. Do we have a high-confidence way to reproduce the issue? Not applicable as a new inspection capability. Source comparison confirms fetched main lacks the reporting path; the previous patch defects have targeted regressions, which were inspected but not rerun. Is this the best way to solve the issue? Yes. The change extends the existing status command, reuses receipt and filesystem owners, and preserves ordinary update availability when recovery inspection fails. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3f7b01867bba. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles) |
Integrate the read-only status consumer extracted from original #145169 source f6feb6b, retaining Peter Steinberger capture design provenance from #144005 (afaf382). Compose landed receipt schema #156298, retain the corrected parser import, validate durable identity even with terminal outcomes, and include the shared driver schema in native wrapper materialization.
|
@clawsweeper re-review Current head: The real registered This remains read-only inspection with unchanged ordinary archive/ledger validation and no new persisted writer or migration. Required receiving-head CI is running; the original capture/full-recovery/newer-write goals remain with their original PRs. Please reassess the concrete findings and current candidate, without initiating repair or automerge. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Current head: Resolved the exact shared-root finding: regular Doctor archives and canary rehearsal directories no longer suppress recovery-set reporting. Classification checks file type, continues validating any present manifest under a canary-like name, and still rejects incomplete captures. Both reported cases fail on the previous head; the privacy-marker control passes. All 24 real-status consumer cases now pass with every SQLite open prohibited (75.45s runner; 60.88s shard). Whole 412-line consumer and unchanged 343-line parser test audits are complete. Independent review assessed the full corrected candidate and found no additional P0-P2 defects after the reviewed working bytes replaced the old index layer. The data-model warning is not applicable: this remains a read-only parser/inspection consumer, adds no persisted writer or schema migration, and uses already-landed #156298 receipt definitions unchanged. Existing v1/v2, ordinary archive and driver-validator coverage remains intact. No full recovery/runtime proof is claimed. Previous-head CI failures in install-smoke identity, lint-fixture json5, and changelog-helper fixtures match exact fixes already landed in #156136 ( |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Bounded recovery of an observed publication failure, same unchanged head Exact review run35855139770 completed and its artifact binds this head with review_status complete and no requested next step. The deterministic publication stage returned skipped_runtime_budget at 11:38:07Z: GitHub repository_actions rate limit, fallback reset11:39:07Z. The public review still points to ef84 despite the completed artifact. Required current-head CI35855042317 is now SUCCESS. Please complete a fresh exact-head review/publication through the normal queue and freshness guards. This is one retry after a diagnosed transient publication failure, not a request for repair, autofix, rebase, automerge, or relaxed gates. The classification correction and all24 consumer cases remain unchanged; no duplicate supplier work is requested. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* fix(update): validate recovery manifest inventories Extract the recovery manifest parser prerequisite from openclaw#145169; retain the original recovery and generation work there. Preserve the existing ordinary archive and update-run driver contracts. Capture design derives from Peter Steinberger’s openclaw#144005. * fix(update): retain the filesystem policy import boundary * fix(update): distinguish retained recovery artifacts
Related: #145169, #144005. Uses the landed receipt schema from #156298.
What Problem This Solves
openclaw update statusneeds to show retained recovery sets, including sets captured by an older installation, without changing or restoring them. Recovery manifests also need validation before their inventory and recorded outcomes can be trusted.User Impact
Adds recovery-set JSON/text status: unresolved, ambiguous, stale, or forward-resolved, with an inspection or repair next step. Malformed or contradictory evidence is reported separately without hiding ordinary update availability. Inspection does not write captures or receipts. Ordinary backup archives retain their existing contract; no migration or operator action is required.
Why This Change Was Made
The registered status command now uses the validated recovery manifest parser through the original read-only inspection flow. It checks configuration/database inventories, manifest location and identity, terminal outcomes, and forward-generation receipts. Durable identity is checked even when a terminal marker exists. The extracted shared driver validator is included in native wrapper materialization. Existing Doctor archives and canary rehearsal directories are recognized in the shared capture root without hiding incomplete captures or bypassing any present recovery manifest.
This is extracted from Jason’s #145169 (
f6feb6b75d08785dc61da204fa9b0d4ea581693c), preserving Peter Steinberger’s capture design from #144005 (afaf382b8bb32d49a6bc6ecfeb845c63e6496341). Neither original PR is closed. Capture-before-mutation, durable capture publication, complete recovery, and preservation of newer writes remain distinct original-program work; this PR does not claim to deliver them.Evidence
pnpm deadcode:fullpasses: both parser exports now have a real reachable production consumer. No dummy references or unused-export exemptions.ceb109668b4396181205e330a2b466c132fede89). They are not repaired or weakened here. Exact-head CI 35855042317 is successful. Published ClawSweeper revision 3 reviews this exact head and finds both prior defects resolved with no new actionable findings. No native/full-recovery runtime proof is claimed by this read-only inspection leaf.Compatibility review disposition
The remaining generated “data-model compatibility proof” checkbox in the completed review is addressed by the existing source and passing compatibility coverage, not by a schema waiver:
backup-verify-manifest.update-recovery.test.ts:41covers all v2 generation forms; line 52 retains legacy v1 readability without invented metadata and rejects mixed-version contracts. Line 331 verifies ordinary archives retain their separate parser contract. All 14 parser cases pass; their reviewed source is unchanged.update-run-schema.tsonly imports the extracted driver validator. Its host, PID, and start-identity constraints are identical to the prior inline validator. Landed fix(update): preserve recovery receipts across progress updates #156298 receipt definitions and persisted records are unchanged.isRecordimport. The exact-head review independently confirms no stored-data contract changes. No migration or upgrade action is needed.Native review/merge admission and all enforced GitHub checks remain required. This disposition does not claim full-recovery runtime acceptance or change the manifest payload-digest meaning.