Repository navigation
fix(doctor): remove failed unsealed recovery captures - #189249
Conversation
Co-authored-by: steipete <[email protected]>
|
🦞👀 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. What this changesThis PR removes a failed standalone Doctor capture when its work has settled and maintenance ownership remains valid. Example: A standalone Doctor capture fails after writing incomplete backup payloads.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this maintainer-authored PR addresses a concrete capture leak still present on main; no introduced code defect was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherDoctor captures configuration, databases, and declared plugin resources before repair; the capture producer publishes a recovery manifest or reports failure to Doctor. flowchart TD
A[Doctor repair] --> B[Maintenance ownership]
B --> C[Original capture producer]
C --> D[Database and file backups]
D --> E[Published recovery manifest]
D --> F[Capture failure]
F --> G[Settlement and ownership checks]
G --> H[Remove fresh incomplete attempt or retain evidence]
Technical reviewBest possible solution: Keep disposal at the existing capture producer, limited to its settled fresh attempt under current maintenance custody. Do we have a high-confidence way to reproduce the issue? Current main retains failed attempts and excludes unsealed captures from automatic retention; supplied regressions report base failure and head success, but this read-only review ran no reproduction. Is this the best way to solve the issue? The change fixes the leak at its producer with existing ownership and settlement contracts, without broadening historical retention or creating another cleanup owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 61f3e9310ac0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +23, Tests +93, Docs +5, Other +2. Total +123 across 6 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 Reviewed October 31, 2026, 5:39 AM ET / 09:39 UTC. |
|
Merged via squash.
|
Co-authored-by: steipete <[email protected]>
Related: #189225
What Problem This Solves
Failed fresh standalone Doctor recovery captures leave unsealed copies that later retention does not retire.
User Impact
Doctor removes its own incomplete attempt once backup work has settled and maintenance authority remains current. It preserves every previous sealed recovery set, final-name publication evidence, and attempts with uncertain work or ownership. Existing abandoned captures remain protected; this does not introduce a historical orphan sweep.
Why This Change Was Made
The original-capture producer already owns a fresh exclusive directory and its retained pin. Standalone Doctor now opts into disposal at that owner using its outer live-custody guard, which remains valid when the capture's private deadline expires. Generic updater captures keep their existing policy. Cleanup failures preserve both errors in the error graph.
Evidence
8b1efb47c130: actual Doctor caller and capture-owner tests both find the failed unsealed directory still present. GREEN: that attempt is absent while the previous sealed manifest and database remain intact.pr-simplify: one producer-owned disposal path with the existing pin; no global retention relaxation, new store, public config, or deletion of a sealed original. Net production +23, regression +93, exactly allocated for the two actual boundaries and distinct preservation controls; docs +5.ea3671a19ba2against parent8b1efb47c130, with intact committed capture/caller sources and owner context: scoped-clean, zero findings. All six changed files were assessed; the reviewer did not execute tests. A separate complete-candidate review also passed. The final pass filled a surrounding-source limitation in the first per-commit assessment.Work sessions
Co-authored-by: steipete [email protected]