Skip to content

fix(update): clear model retirement warnings after repair completes - #187208

Merged
vincentkoc merged 5 commits into
mainfrom
fix/settled-model-retirement-warning-20261029
Oct 29, 2026
Merged

vincentkoc merged 5 commits into
mainfrom
fix/settled-model-retirement-warning-20261029

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

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

  • Red-first CI 40811694869 reproduces the historical warning on Node and Bun and reaches the intended real-repair warning assertions on Bun. The full repair regression now uses the established registered-CLI route, exercising real Doctor/config persistence under normal command budgets.
  • Native Testbox proof passed 49 selected tests on Node and 49 on pinned Bun at source 9f172cf0e96a99f8b20048cb122cdcdece7eb0bf and 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.
  • The original native wrapper exited 1 during final cleanup verification after all selected tests passed. One supported stop of that same allocation succeeded, and native inspection confirmed completed remote settlement. This reconciled cleanup outcome is recorded separately; the original failure is not relabeled as a successful wrapper run. Hosted PR CI remains a separate landing gate.
  • Fresh fixture correction proof at final source 548014f0084d6fb8c00a23e69a93d1e66711fdc4 passes 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.
  • Coverage includes same-run completed/skipped/failed/missing evidence, foreign active completion, unreadable history, unrelated advisories, real final repair output, Doctor publication, all three convergence paths, and preexisting indexed warning rows.
  • Production delta: +92 lines, required to keep current structured warnings and persisted warning indices consistent without losing execution classification. Regression test delta: +244 lines, allocated exactly for these owner-boundary and real-flow cases. No shared scalar ratchet edit.

@vincentkoc vincentkoc self-assigned this Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes commands Command implementations size: S labels Oct 29, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR clears settled model-retirement warnings from update results and Doctor history using the selected run’s existing completion receipt.

Example: Run openclaw update repair --yes --no-restart --json after model retirement was deferred.

  • Before: The completed repair still reports “Model retirement deferred until configured plugin installation converges.”
  • After: The stale warning disappears after durable completion, while unrelated advisories remain.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, useful repair with no identified defect; validation is integration-harness evidence rather than a standalone shipped-entry-point capture.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied evidence covers registered-CLI repair, Doctor publication, convergence, and selected history through integration tests, with the final fixture correction separated from earlier production validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A successful repair continues telling the operator that model retirement is deferred.
Reason: Accurate final warnings prevent unnecessary repair attempts, and the maintainer-authored direction preserves the existing completion and failure contracts.

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
Reviewed head: 548014f0084d6fb8c00a23e69a93d1e66711fdc4

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No standalone installed-CLI repair or latest-stable upgrade capture is supplied; the strongest supplied scenario runs the registered CLI inside the integration suite.
Agent review details

How this fits together

Doctor 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]
Loading

Technical review

Best 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

  • Shared deferred-warning reconciliation keeps the original intent (7039a32: Retire plugin warnings settled later in the same pass while retaining unresolved warnings and historical records.)
  • Selected-run model-retirement receipts keeps the original intent (81fd864: Use the admitted run’s identity and environment so unchanged plugin payloads still complete that run’s deferred repair.)
  • Explicit empty warning lists changes intended behavior with a stated reason (0e29319: Preserve advisory classification so supported warning conditions do not become update failures; this PR explains why an explicitly settled warning list must not fall back to advisory display text.)
  • Convergence result and ledger publication keeps the original intent (5d85ad5: Remove superseded intermediate warnings from successful reports while retaining current advisories and best-effort update behavior.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +92, Tests +244, Other +1. Total +337 across 17 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 10 178 86 +92
Tests 6 248 4 +244
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 17 427 90 +337

Review metrics

Metric Value Why it matters
Production versus regression-test growth Production +178/-86; tests/support +248/-4 Growth covers shared reconciliation, persisted warning-index settlement, and distinct finalization, publication, history, and advisory-classification regressions.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Successful repairs can display obsolete warnings, causing avoidable recovery attempts without preventing the update itself.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-29T03:17:04.073Z sha 3d28c95 :: needs changes before merge. :: [P2] Complete the production repair before merging the red regressions
  • reviewed 2026-10-29T05:27:35.947Z sha 9f172cf :: needs maintainer review before merge. :: none

Reviewed October 29, 2026, 1:56 AM ET / 05:56 UTC (Revision 3).

@vincentkoc
vincentkoc marked this pull request as ready for review October 29, 2026 05:22
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

The completed owner repair is now at 9f172cf0e96a99f8b20048cb122cdcdece7eb0bf. The PR body records the exact-input Node and pinned-Bun proof, including the original cleanup-only wrapper failure and its separate native settlement. Please review this final head.

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 29, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@vincentkoc
vincentkoc enabled auto-merge (squash) October 29, 2026 05:31
@vincentkoc
vincentkoc disabled auto-merge October 29, 2026 05:36
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Final head 548014f0084d6fb8c00a23e69a93d1e66711fdc4 corrects the test fixture's map-spread lint failure through the existing complete-step advisory producer. Production, cases, and assertions are unchanged. The PR body separates the prior 98 selected passes at 9f172cf from fresh final-head targeted lint and six Node/pinned-Bun executions; native cleanup completed successfully for the new proof. Please review this exact head.

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@vincentkoc
vincentkoc merged commit 8a8734e into main Oct 29, 2026
145 checks passed
@vincentkoc
vincentkoc deleted the fix/settled-model-retirement-warning-20261029 branch October 29, 2026 06:19
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 30, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant