Repository navigation
fix: keep unavailable plugin requirements visible after updates - #145369
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: blocked before merge. Reviewed September 11, 2026, 11:33 PM ET / September 12, 2026, 03:33 UTC (Revision 6). ClawSweeper reviewWhat this changesAdds a typed assessment of unavailable plugins to update results, with classification and recovery coverage, while preserving update completion decisions. Merge readiness⛔ Blocked before merge - 1 item remains The accepted diagnostic improvement remains distinct from current main. The earlier status-policy blocker is resolved, the compatibility wording is corrected, and no actionable introduced defect remains. Priority: P2 Review scores
Verification
How this fits togetherAfter updating core, OpenClaw reconciles installed plugins and verifies their payloads. This change summarizes those outcomes for diagnostics; existing callers still own validation, restart, and completion. flowchart TD
A[Installed plugins and configuration] --> B[Plugin reconciliation]
B --> C[Payload verification]
B --> D[Failed repair outcomes]
C --> E[Diagnostic assessment]
D --> E
E --> F[Update result]
F --> G[Existing completion and restart policy]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +103, Tests +450. Total +553 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep unavailable-plugin diagnostics additive while leaving repair authority, authored settings, and completion policy with their existing owners. Do we have a high-confidence way to reproduce the issue? Source-level coverage identifies unavailable-payload classification scenarios, but no failing current-main runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. The accepted producer-only assessment preserves the existing warning policy and avoids introducing a competing repair or restart decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dda647045420. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
Thanks, the visibility half of this is right and wanted: a plugin left disabled by a failed cohort repair must stay listed as unavailable with its reason instead of vanishing from the final active-payload check. The admission half reverses the policy we landed in #145045, so I cannot take it as is. In The rule we are holding the updater to: only concrete data at risk may fail an update; everything else is a recorded warning. Unknown state is not evidence of risk. So:
If you trim the PR to the visibility improvement plus the typed reasons for the existing hard failures, with the default set to |
Keep the new producer assessment additive. Preserve convergence and capability-consent errors, invalid-config failure, integrity aborts and authority exceptions. Retain required and unknown assessments without changing existing caller restart decisions. Complete affected result and provenance fixtures.
|
Revision b54485f resolves my concern: the assessment is now separate evidence, and the caller's status contract is unchanged, so an unavailable plugin without requirement information yields a visible, recorded outcome while I am running the lead review on this head now and will land it once it is clean and the lint lane is green (that lane may be main's own red from #145183, which a fix is in flight for). Thanks for the fast turnaround. |
Preserve the accepted evidence-only assessment while retaining main's warning formatting, update status, plugin enablement, and outcome summary. Combine the conflicting owner additions and align test expectations with the behavior already landed on main. Refs #145369
|
Merged via squash.
|
…claw#145369) * fix(update): keep unavailable plugin requirements visible * fix: preserve legacy plugin update status with strict assessments Keep the new producer assessment additive. Preserve convergence and capability-consent errors, invalid-config failure, integrity aborts and authority exceptions. Retain required and unknown assessments without changing existing caller restart decisions. Complete affected result and provenance fixtures.
Related #145045
What Problem This Solves
Resolves a problem where a plugin left unavailable after an update could disappear from final active-payload verification after a failed cohort repair disabled it. The update result needs to retain that unavailable capability and its reason.
Why This Change Was Made
Add a typed producer assessment that includes active payload failures and plugins still disabled after failed repair. The assessment is diagnostic evidence only: it does not authorize repair or change caller restart, finalization, or update-completion decisions.
The integrated head preserves main's warning policy. For valid configuration, warnings or final plugin error outcomes produce a warning result; otherwise the result is ok. Invalid configuration retains its existing early hard error. Integrity-drift callbacks still abort the affected plugin operation, and authority exceptions still propagate. Required or unknown classifications in the assessment do not promote these warnings into update failures.
User Impact
A plugin left unavailable after an update stays visible in the update result with its reason; the update outcome itself is unchanged. Authored settings, installation records, repair authority, and the existing best-effort update policy remain owned by their current paths. No configuration option or persistence contract is added.
Evidence
c0df102967cb5763154634479ce3a6e2b5b5024care byte-identical to reviewed revisionb54485f5f8e8938b477d320740f7bb8287498d18. Inspection of the merge resolution confirms that warning formatting and status calculation retain main's behavior; test expectations were aligned with that behavior.node scripts/run-vitest.mjs src/cli/update-cli/update-command-plugins.degradation.test.tspassed all 21 tests on the pinned head.ClawSweeper review
The exact-head review reported no actionable code findings. Applied its wording correction: the compatibility description above now reflects main's warning policy. Skipped the requested additional published-driver × integrated-candidate campaign for this explicitly approved diagnostic-only landing; that proof remains a limitation, and the source tests are not presented as published-driver evidence. No code changed during landing, so no re-review request is needed.
Thanks to @fuller-stack-dev for the implementation and regression coverage.