Repository navigation
fix(update): clear model retirement warnings after repair completes - #187208
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 clears settled model-retirement warnings from update results and Doctor history using the selected run’s existing completion receipt. Example: Run
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current warning-reconciliation bug and has no actionable code or security findings; exact-head CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherDoctor records model-retirement completion in the update ledger; shared reconciliation consumes that receipt and collected warnings to produce current update results and historical warning displays. flowchart TD
A[Update or repair CLI] --> B[Doctor repair]
B --> C[Existing update ledger]
B --> D[Collected warnings]
C --> E[Shared warning reconciliation]
D --> E
E --> F[Final results and Doctor history]
Technical reviewBest possible solution: Use the existing same-run completion receipt through one shared warning reconciler while preserving unresolved warnings and execution outcomes. Do we have a high-confidence way to reproduce the issue? Current main’s plugin-only warning matcher cannot retire the model warning after its completion receipt is recorded; the added registered-CLI regression targets that path, but no target code was executed during this review. Is this the best way to solve the issue? The patch repairs warning reconciliation at the existing owner, removes the replaced helper, and updates all its consumers without adding storage or changing retirement execution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e49387a7673e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +92, Tests +244, Other +1. Total +337 across 17 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes: No label 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 HistoryReviewed October 29, 2026, 1:56 AM ET / 05:56 UTC (Revision 3). |
Baseline-Refresh: 45aaa8f401c76371409e12bad4486754537d23e9
|
@clawsweeper re-review The completed owner repair is now at |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Final head |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…penclaw#187208) * test(update): reproduce settled model retirement warnings * test(update): isolate bundled discovery in retirement fixture * fix(update): retire settled model warnings across reports * test(update): preserve complete Doctor fixture steps
What Problem This Solves
A completed update repair can still report “Model retirement deferred until configured plugin installation converges.” The same stale warning can survive in final results, indexed update warnings, and later Doctor history.
User Impact
The warning clears when the selected update run has durably completed model retirement. Unfinished, failed, missing, or unreadable completion evidence keeps the warning. Unrelated advisories and execution failures retain their meaning.
Why This Change Was Made
The retirement owner already records completion, but the shared warning reconciliation only recognized plugin-specific migration warnings. This change uses that existing same-run receipt across finalization, convergence, Doctor publication, and selected historical reports. Historical records remain intact.
Incoming structured steps and their indexed warning rows are reconciled together. An explicitly empty current warning list is authoritative, while advisory kind, nonzero advisory exit classification, raw output, and failure facts remain available. The existing shared helper replaces the plugin-only helper; there is no new storage, schema, configuration, or timeout policy.
Evidence
9f172cf0e96a99f8b20048cb122cdcdece7eb0bfand its qualified dependency inputs. Each runtime intentionally excludes 37 unrelated lifecycle cases. Production remains unchanged in the final fixture correction. The worker had 4 CPUs and 16 GB RAM.548014f0084d6fb8c00a23e69a93d1e66711fdc4passes targeted lint (0 warnings/errors) and all three affected convergence cases on both Node and pinned Bun. The complete step now goes directly through the existing advisory producer, resolving the CI map-spread error without changing production or assertions. This native wrapper exited 0 with settled cleanup; these six executions are separate from the prior 98-test run.