Repository navigation
fix(doctor): distinguish current recovery findings - #155376
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 21, 2026, 10:53 PM ET / September 22, 2026, 02:53 UTC. ClawSweeper reviewWhat this changesDoctor recovery reports distinguish current findings from historical evidence, add an optional current-findings JSON field, and document and test the distinction. Merge readiness⛔ Blocked before merge - 1 item remains The reporting fix remains useful and is not present on fetched main or the latest release. No actionable correctness or security defect was found; the related recovery changes address distinct behavior. Priority: P2 Review scores
Verification
How this fits togetherDoctor repairs and diagnoses OpenClaw session storage. Its report writer combines migration records with fresh recovery results to produce private JSON and Markdown artifacts used for support. flowchart TD
A[Migration records] --> C[Recovery report writer]
B[Fresh recovery results] --> C
C --> D[Match inspected targets]
D --> E[Sanitize and separate findings]
E --> F[Private JSON and Markdown]
F --> G[Support issue preparation]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +19, Tests +61, Docs +5. Total +85 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep current findings explicit at the existing report owner while preserving historical evidence, sanitization, and immutable published artifacts. Do we have a high-confidence way to reproduce the issue? Yes, from source: a failed manifest with historical errors and a matching clean recovery target still produces a nonzero undifferentiated Issues count on fetched main. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes. Separating fresh findings at the existing report writer is a focused repair that preserves the combined evidence and publication lifecycle. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eac221ae78bd. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Related: #155340, #155194. Thanks @lojasarah for the recovery report.
What Problem This Solves
A fresh session SQLite recovery report can show a repaired migration's old errors beside current findings under one Issues count. In #155340, that includes a historical settlement error naming another agent's transcript.
User Impact
Reports now show current recovery findings separately from recorded migration and recovery evidence. A clean recovery explicitly shows zero current issues; a target not inspected in that recovery is labeled accordingly. The JSON report preserves its combined
issuesevidence and addsrecoveryIssuesfor inspected targets.Already claimed or published report artifacts remain immutable. This does not change session import, verification, plugin handling, update admission, or rollback behavior. There are no new flags, configuration options, dependencies, or SQLite schema changes.
Why This Change Was Made
The live cross-agent failure producer was already fixed by #154413, present on main and #155194. Its old messages remain valuable forensic evidence. The report owner merged historical manifest issues with fresh recovery findings without identifying which were current; this patch keeps that evidence and labels the current result at the same owner.
This branch starts from main
eb20f68c1e96309a76a05c124be1c93db85804a3. It does not modify the #155194 branch or any settlement owner. Its P1 review found no actionable findings.Evidence
doctor-session-sqlite.failure-reports,receipt-recovery,active-settlement, andretained-source-verification. The four-file run used 37.81 s wrapper wall / 36.21 s Vitest wall with one worker.no-map-spread; explicit fields replaced the object spread. The final report file passed 12/12 again in 13.13 s wrapper wall / 11.68 s Vitest wall (1.221 s executing tests, including 20 ms for the three new cases), followed by the complete changed gate.check:changed: passed on the final patch, including all 25 core-test type graphs and zero lint warnings/errors. The combined final report-test + check command exited 0 in 24m20.176s.Testbox:
tbx_01m33cv2jk4y7ddhm7qbb1sz0n(run); stopped after proof, with terminal state independently verified.LOC: production +40/−21 (net +19); tests +61/−0; docs +6/−1.