Repository navigation
fix(update): report unresolved repair ownership accurately - #156472
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: needs real behavior proof before merge. Reviewed September 23, 2026, 7:41 AM ET / 11:41 UTC. ClawSweeper reviewWhat this changesThe PR makes update repair report unresolved recorded ownership, including driver details and hostname-recovery guidance, instead of claiming an update resumed. Merge readiness⛔ Blocked before merge - 3 items remain The diagnostic fix remains necessary on current main and has no identified blocking code defect. After-fix evidence currently covers a mocked finalizer scenario, so real behavior proof remains a merge gate. Priority: P2 Review scores
Verification
How this fits togetherUpdate repair reads recorded update runs and checks driver liveness before reconciling abandoned work. Its finalizer reports unresolved ownership without acknowledging those runs as successfully recovered. flowchart TD
A[Update repair request] --> B[Recorded update runs]
B --> C[Driver liveness checks]
C --> D[Repair and reconciliation]
D --> E{Ownership resolved?}
E -->|Yes| F[Report recovery result]
E -->|No| G[Report recorded owner and guidance]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +42. Total +44 across 7 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one shared, factual ownership diagnostic while preserving the existing conservative recovery checks. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the failure mechanism: an unresolved running row triggers a resumption claim even when hostname mismatch makes driver liveness unknown. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. Reusing the existing ownership formatter is a narrow correction that avoids introducing a second recovery policy or changing cross-host safety. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c357d827bab5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Related: #141562
Related: #150959
What Problem This Solves
Fixes: update repair says “An update resumed” when reconciliation merely leaves an ownership record unresolved, including after a same-machine hostname change.
User Impact
User impact: operators see the recorded run, phase, PID, hostname, and observed liveness; the message no longer claims a resume that was never observed and gives safe next steps for a foreign host or machine rename.
Why This Change Was Made
The finalizer inferred “resumed” only because a captured ledger row was still
runningafter reconciliation. It now reuses the canonical ownership formatter for that unresolved row. The conservative hostname guard and all reconciliation/persistence semantics remain unchanged, preserving cross-machine safety.Automatic recovery after hostname drift would require an approved durable machine-identity design, so this PR intentionally does not add one.
Production LOC: +8/-6 (net +2) | Tests: +59/-17
The two-line production growth exports and reuses the existing canonical owner formatter instead of duplicating ownership language.
Evidence
An update resumed while repair was running; wait for that update before retrying repair.No updater had resumed; the locally cancelled driver was recorded under the Mac’s prior hostname.node scripts/check-changed.mjs: pass, including production/test types, format, lint, dead exports, DB/schema/storage guards, boundaries, and import cycles.origin/main: scoped-clean, no actionable findings.