Repository navigation
fix(update): preserve unsafe Doctor recovery guidance - #170207
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 maintainer review before merge. What this changesThis PR preserves Doctor recovery guidance when matching Gateway health cannot establish safe process settlement. Example: An update targets 2026.9.2, Doctor process group 41001 remains unsettled, and the Gateway answers as 2026.9.2.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a current-main reporting defect without changing recovery authority, and no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared update-report renderer consumes recorded update outcomes, projected steps, recovery verdicts, and current health to produce text and Markdown reports. flowchart TD
A[Doctor process settlement] --> B[Recovery owner verdict]
B --> C[Recorded update outcome]
C --> D[Shared report renderer]
E[Current Gateway health] --> D
D --> F[Text and Markdown recovery guidance]
Technical reviewBest possible solution: Keep settlement authority with the recovery owner and prevent the report projection from clearing its unsafe verdict based on health alone. Do we have a high-confidence way to reproduce the issue? Source establishes the failure: an unsettled or foreign Doctor receipt produces an unsafe runtime-verification verdict, but current main suppresses its saved action when target-version health responds; no target code was executed during this review. Is this the best way to solve the issue? The focused renderer guard is appropriate because report steps lack the identity needed to revalidate settlement; it preserves ordinary health reconciliation and leaves installed older updaters with their existing renderer behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 24dec4d6c370. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +70, Docs +2. Total +74 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 12, 2026, 4:24 PM ET / 20:24 UTC. |
|
Merged via squash auto-merge.
|
(cherry picked from commit a590510)
What Problem This Solves
A responding Gateway with the target version can make an update report clear its prioritized recovery guidance even when Doctor writers remain unsettled or their settlement receipt belongs to another installation. The detailed failure still retains its warnings, but the report incorrectly says the saved runtime verification failure no longer applies.
User Impact
Update reports keep the existing Doctor recovery instructions until the recovery owner verifies settlement. Ordinary runtime health recovery still clears stale restart warnings. No stored state, schema, service lifecycle, or update-driver changes are required.
Why This Change Was Made
The report projection omits the command and installation identity needed to authenticate a Doctor settlement receipt. Health alone therefore cannot overrule an unsafe recovery verdict when that receipt is present. Preserve the recovery owner's decision instead of independently granting safety from a matching version.
Evidence
The regression exercises the real custody refusal, next-action selection, report adapter, and renderer. Against the original code, unsettled and foreign-installation cases fail while accepted settlement passes. The repaired owner and sibling suites pass 82/82 tests, including ordinary stale-runtime recovery controls, warning preservation, and input immutability.
The focused single-worker invocation took 51.38s wall including shared worker compilation and transforms; the three new cases took 29/5/3ms (37ms total). Core and scoped test types, typed lint, formatting, test assertion and size checks, one-page documentation validation, and diff checks pass. Fresh isolated P2 review found no actionable issues. Current-head CI run 38302778398 passed. The three added cases took 28/5/3ms in CI; the containing 18-case file took 49.21s including transforms.
This is report-boundary proof using existing driver-shaped receipts; it does not claim a live update, service restart, or published-driver migration run.