Repository navigation
fix(update): report historical repair acknowledgments accurately - #153291
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 20, 2026, 8:36 AM ET / 12:36 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR makes update repair report newly acknowledged history IDs accurately, sends additional historical recovery through full finalization, and adds regression coverage and documentation. Merge readiness⛔ Blocked before merge - 1 item remains The refreshed PR remains useful beyond the merged historical-selection fix. No actionable correctness or security defect was found; the recorded landing disposition addresses the previous review’s proof request. Priority: P2 Review scores
Verification
How this fits togetherUpdate repair reads OpenClaw’s SQLite update history and chooses lightweight reconciliation or Doctor/plugin maintenance. Successful recovery records acknowledgments that clear Doctor guidance and populate the CLI’s JSON result while preserving historical failures. flowchart TD
A[Operator requests repair] --> B[Check active updater ownership]
B --> C[Capture recent update history]
C --> D{Lightweight recovery eligible?}
D -->|Yes| E[Verify Gateway health]
D -->|No| F[Doctor and plugin finalization]
E --> G[Record new acknowledgments]
F --> G
G --> H[Accurate JSON and cleared Doctor guidance]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +10, Tests +304, Docs +9. Total +323 across 8 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep acknowledgment reporting with the existing ledger writer and finalization owner, preserving the documented landing exception for published-driver compatibility proof. Do we have a high-confidence way to reproduce the issue? Yes, from source: repairing an already-terminal abandoned row on current main writes its acknowledgment but omits its ID from reconciledRuns. Runtime reproduction was not executed in this read-only review. Is this the best way to solve the issue? Yes. Returning the existing writer’s actual mutation result fixes reporting without adding another state owner or stored format; the stricter maintenance route is documented and its proof exception is recorded. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8cd38b03ceb8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Separate historical acknowledgment from lightweight repair eligibility. Preserve failed outcomes, the 30-minute shortcut, and live-driver protections; acknowledge captured Doctor-visible history only after successful convergence. Fixes #153228 Co-authored-by: IWhatsskill <[email protected]>
f875e36 to
9d6ecce
Compare
|
Merged via squash.
|
…53291) Successful update repair now reports the historical run IDs whose acknowledgments were newly recorded, while preserving failed outcomes. The existing ledger writer returns whether it inserted the acknowledgment, and both repair paths use that result for JSON reporting. Additional captured historical candidates go through the existing full finalizer. The captured 100-row history, 30-minute lightweight boundary, and live-updater protections remain intact. No schema, configuration, CLI option, or dependency changes. Thanks to @IWhatsskill for the original report and discussion. Validation: 235 focused tests across seven affected files and 1,183 routing tests passed on an isolated Testbox; scoped-clean Codex review and exact-head CI passed. Published-driver/candidate maintenance recovery remains a documented validation gap. Related: openclaw#153228. Complements the historical-selection fix in openclaw#153261. Co-authored-by: IWhatsskill <[email protected]>
Related: #153228
Follow-up to #153261, which has now landed in main.
What Problem This Solves
Fixes missing historical run IDs in repair JSON after abandoned records have been acknowledged, and keeps additional historical recovery work out of the lightweight shortcut.
User Impact
Automation receives the IDs actually newly acknowledged by successful repair. Additional historical candidates require full finalization; failed outcomes, live-updater protections, the 30-minute shortcut boundary, and the captured 100-row history limit remain intact. No schema, configuration, or migration change is required.
Why This Change Was Made
The primary historical-selection fix is already in main. This refreshed PR preserves the complementary acknowledgment reporting, captured-history safeguards, and end-to-end boundary coverage without duplicating the landed fix. The new real-SQLite regression is registered with the existing host-broker test lane, used by both local routing and CI.
Evidence
d98c42737902bef513b951726cbae2f1e4bb9fd5; resolved overlapping changes while preserving current main finalization ownership and its freshness predicate.Worked on by: @IWhatsskill
Work sessions
Maintainer landing disposition
ClawSweeper reviewed
9d6eccefe3f25c394dc0d15670ef32e6b6460421on September 20 at 12:15 UTC and found no actionable correctness or security defect. Its single Rank-up move requests a redacted published-driver/candidate repair transcript covering newly acknowledged JSON IDs, preserved failures, cleared Doctor guidance, and maintenance recovery. Skipped for this landing under the maintainer's explicit instruction to land this reviewed head and record Rank-up dispositions. That published-driver compatibility scenario remains a validation gap; the real-SQLite command boundary tests and hosted CI do not replace it. The related compatibility-proof and maintenance-route evidence requests have the same disposition.The existing ledger acknowledgment writer remains the source of truth, and both repair paths report only new successful acknowledgments. Additional captured historical candidates use the existing full finalizer; failed outcomes, live-updater protections, the 30-minute shortcut boundary, and the 100-row captured history limit remain preserved. No schema, dependency, configuration, or CLI option changes are included.
Landing reuses the accepted scoped-clean Codex review of record and exact-head green CI. No semantic source changes are made in this landing. Production: +36/−26 (net +10); tests and test routing: +319/−15 (net +304); docs: +14/−5 (net +9).