Skip to content

fix: keep unavailable plugin requirements visible after updates - #145369

Merged
fuller-stack-dev merged 4 commits into
mainfrom
fix/plugin-required-payload-assessment
Sep 12, 2026
Merged

fuller-stack-dev merged 4 commits into
mainfrom
fix/plugin-required-payload-assessment

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

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

  • The author's regression evidence recorded 10 failures and 11 passes before the status-contract correction, followed by 35 selected passing cases covering assessments, real cohort behavior, CLI integrity warnings, config provenance, and source-Gateway archive restoration. The author also recorded a passing eight-file changed gate.
  • The lead's review was scoped-clean at P1. The assessment declaration and implementation at c0df102967cb5763154634479ce3a6e2b5b5024c are byte-identical to reviewed revision b54485f5f8e8938b477d320740f7bb8287498d18. Inspection of the merge resolution confirms that warning formatting and status calculation retain main's behavior; test expectations were aligned with that behavior.
  • Landing verification: node scripts/run-vitest.mjs src/cli/update-cli/update-command-plugins.degradation.test.ts passed all 21 tests on the pinned head.
  • Fresh CI for the pinned head: https://github.com/openclaw/openclaw/actions/runs/34670226446. The exact-head watcher confirmed green; all fresh checks completed successfully.
  • No installed-target activation or end-to-end published-driver update completion is claimed by this PR's source tests.

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.

@clawsweeper

clawsweeper Bot commented Sep 11, 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 gateway Gateway runtime cli CLI command changes size: L maintainer Maintainer-authored PR labels Sep 11, 2026
@fuller-stack-dev
fuller-stack-dev marked this pull request as ready for review September 11, 2026 22:52
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 11, 2026, 11:33 PM ET / September 12, 2026, 03:33 UTC (Revision 6).

ClawSweeper review

What this changes

Adds 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
Reviewed head: c0df102967cb5763154634479ce3a6e2b5b5024c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, accepted diagnostic change with useful regression coverage and no remaining correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The member-authored diagnostic-only change is exempt from ordinary contributor proof and introduces no authority change. Inspected coverage exercises plugin reconciliation and source-Gateway recovery; the explicitly documented published-driver campaign exception is retained without treating source tests as upgrade proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored diagnostic-only change is exempt from ordinary contributor proof and introduces no authority change. Inspected coverage exercises plugin reconciliation and source-Gateway recovery; the explicitly documented published-driver campaign exception is retained without treating source tests as upgrade proof.
Evidence reviewed 8 items Introduced production behavior: The pinned introduced diff adds assessment construction and an internal requirements argument. The existing warning/ok calculation, persistence operations, integrity callback, and authority guards remain unchanged.
Caller contract preserved: Resume, convergence, and finalization callers continue consuming status and changed; none uses assessment to authorize repair or reject completion. Post-plugin validation preserves additional fields while retaining its existing invalid-config decision.
Maintainer disposition and review continuity: The discussion explicitly accepts unknown requirements as diagnostic information when status remains unchanged: #145369 (comment). The captured body corrects the warning-policy description and explicitly records skipping the additional published-driver campaign for the approved diagnostic-only scope. The live body matches that disposition; it does not claim published-driver proof.
Findings None None.
Security None None.

How this fits together

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

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +103, Tests +450. Total +553 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 2 106 3 +103
Tests 6 454 4 +450
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 560 7 +553

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +103 net lines; tests +450 net lines Production growth is confined to the accepted diagnostic classifier and integration; most growth covers classification, recovery, and preserved state.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/cli/update-cli/update-command-plugins-internals.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This is a bounded update-diagnostics improvement that preserves existing completion behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored diagnostic-only change is exempt from ordinary contributor proof and introduces no authority change. Inspected coverage exercises plugin reconciliation and source-Gateway recovery; the explicitly documented published-driver campaign exception is retained without treating source tests as upgrade proof.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • jalehman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-11T22:59:47.089Z sha 9f3c128 :: blocked before merge. :: none
  • reviewed 2026-09-11T23:29:13.714Z sha 8a70db9 :: blocked before merge. :: [P1] [P1] Align finalization before promoting advisories to errors
  • reviewed 2026-09-12T00:51:48.989Z sha b54485f :: blocked before merge. :: none
  • reviewed 2026-09-12T02:24:31.107Z sha b54485f :: blocked before merge. :: none
  • reviewed 2026-09-12T03:07:45.769Z sha c0df102 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 11, 2026
@steipete

Copy link
Copy Markdown
Contributor

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 assessPluginUpdate, any unavailable plugin whose requirement is not explicitly optional yields unsafe (plugin-requirement-unknown), and unsafe flips the post-core result to error. pluginRequirements is new and no caller supplies it ("Missing is not optional"), so on every real installation every unavailable plugin is "unknown" and the update fails again for exactly the case #145045 fixed: core is already updated, the plugin outcome is recorded, and the operator should get a working Gateway plus a warning, not doctor-failed.

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:

  • Default for a missing requirement must be optional (warning + visible outcome), not unknown → unsafe.
  • required may only come from an explicit, owner-supplied fact. There is no approved surface for that today (no config option, manifest field, or install record), so please leave required handling out of this PR, or propose the surface first in an issue; adding a config option needs explicit approval before implementation.
  • Consent, integrity drift, unowned payloads, and invalid config stay as they are: those are real risks, and the typed reasons for them are a good addition.
  • Keep optional-repair-needed and the disabled-after-repair visibility; that is the part operators are missing today.

If you trim the PR to the visibility improvement plus the typed reasons for the existing hard failures, with the default set to optional, I will land it today with credit. Happy to do that trim on the branch myself if you prefer; say so and I will push it.

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.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 12, 2026
@steipete

Copy link
Copy Markdown
Contributor

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 openclaw update still completes. That is exactly the policy. Keeping plugin-requirement-unknown as a diagnostic classification is fine as long as it stays diagnostic; whenever an owner-supplied requirement surface is proposed, it goes through the config-option approval first.

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.

@steipete steipete closed this Sep 12, 2026
@steipete steipete reopened this Sep 12, 2026
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
@steipete steipete closed this Sep 12, 2026
@steipete steipete reopened this Sep 12, 2026
@fuller-stack-dev
fuller-stack-dev merged commit 67e68e9 into main Sep 12, 2026
366 of 368 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the fix/plugin-required-payload-assessment branch September 12, 2026 03:58
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

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

Labels

cli CLI command changes gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

2 participants