Skip to content

fix(cli): update plugins doctor clean message (#115073) - #117160

Merged
vincentkoc merged 3 commits into
openclaw:mainfrom
MasterSwords1:fix/115073-doctor-clean-message
Aug 1, 2026
Merged

vincentkoc merged 3 commits into
openclaw:mainfrom
MasterSwords1:fix/115073-doctor-clean-message

Conversation

@MasterSwords1

@MasterSwords1 MasterSwords1 commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #115073

What Problem This Solves

openclaw plugins doctor previously printed No plugin issues detected. when plugin discovery, module loading, compatibility, and configuration checks passed. That wording implied runtime health even though the command does not query the running Gateway.

This PR makes the boundary explicit:

  • openclaw plugins doctor reports its local plugin checks.
  • openclaw health reports the running Gateway's runtime quarantines and fallbacks.

User Impact

Operators now receive a truthful success message with the correct next command for runtime diagnosis:

Plugin discovery, module loading, compatibility, and configuration checks passed. Run "openclaw health" to check the running Gateway, including runtime quarantines and fallbacks.

The plugin CLI documentation explains the same control-plane/runtime boundary.

Evidence

  • node scripts/run-vitest.mjs src/cli/plugins-cli.list.test.ts - 20 tests passed
  • pnpm docs:check-mdx docs/cli/plugins.md - passed
  • pnpm docs:check-links - 6,348 internal links checked, 0 broken
  • targeted oxfmt --check - passed
  • git diff --check origin/main...HEAD - passed
  • autoreview through P1 - clean, confidence 0.99

AI-Assisted PR Disclosure

The original contribution was authored with Antigravity AI. The maintainer repair tightened the operator copy, documentation, and regression-test contract without widening the runtime behavior.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes size: S labels Aug 1, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 1:52 AM ET / 05:52 UTC.

ClawSweeper review

What this changes

This PR replaces the clean openclaw plugins doctor message, documentation, and tests so operators are directed to openclaw health for Gateway runtime quarantine and fallback state.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

The PR is still necessary: current main prints an unqualified clean result after static plugin checks, while the existing health command is the runtime owner for context-engine quarantine and fallback status. The focused wording, documentation, and regression coverage are a correct boundary-preserving repair with no actionable patch defect found.

Priority: P2
Reviewed head: 1e862973451546b73f5bbb32e14103b3db8a7760

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-scoped repair with matching docs and regression assertions; only the normal exact-head merge/check refresh remains.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The supplied PR context records successful exact-head real-behavior proof and a proof: sufficient label; the submitted terminal validation also covers the focused CLI test and docs checks.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The supplied PR context records successful exact-head real-behavior proof and a proof: sufficient label; the submitted terminal validation also covers the focused CLI test and docs checks.
Evidence reviewed 6 items Current misleading success path: Current main runs local plugin diagnostics and logs No plugin issues detected. whenever install-tree and configuration warnings are absent; it does not invoke a Gateway health check on that path.
Runtime-health owner exists: The health command is registered as a running-Gateway request, and its text renderer emits an explicit warning when context engines are quarantined and downgraded to the legacy engine.
Documented health contract: Current health documentation states that the command fetches a Gateway RPC snapshot and that JSON includes context-engine quarantine state.
Findings None None.
Security None None.

How this fits together

openclaw plugins doctor evaluates plugin discovery, module loading, compatibility, and configuration without contacting a running Gateway. openclaw health instead requests the Gateway health snapshot, which includes context-engine quarantine and fallback state from live runtime execution.

flowchart LR
  A[Operator runs plugins doctor] --> B[Local plugin diagnostics]
  B --> C{Checks clean?}
  C -->|Yes| D[Scoped success message]
  D --> E[Operator runs health]
  E --> F[Gateway RPC health snapshot]
  F --> G[Context-engine quarantine and fallback status]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind current main; the supplied context says GitHub considers it mergeable, but maintainers should refresh the exact-head merge result and required checks before landing.
  • Complete next step (P2) - No repair lane is needed because the patch has no concrete actionable defect; it awaits normal exact-head merge and check refresh.
Agent review details

Security

None.

PR surface

Source +3, Tests +4, Docs 0. Total +7 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 4 1 +3
Tests 1 16 12 +4
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 21 14 +7

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: docs/cli/plugins.md. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #115073
Summary: This PR is the focused candidate repair for the linked report: it corrects the static doctor claim and routes runtime diagnosis to the health surface that already exposes quarantine state.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep plugins doctor as a fast local control-plane diagnostic, land this scoped disclosure, and retain openclaw health as the single runtime-health surface for quarantines and fallbacks.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep plugins doctor as a fast local control-plane diagnostic, land this scoped disclosure, and retain openclaw health as the single runtime-health surface for quarantines and fallbacks.

Do we have a high-confidence way to reproduce the issue?

Yes, from current source: a clean local plugin report takes the unqualified success branch, while the runtime health path separately renders quarantined context engines and their legacy fallback. The review did not execute a live Gateway session because this is a read-only inspection.

Is this the best way to solve the issue?

Yes. Updating the local command's success claim is the narrowest maintainable fix because openclaw health already owns the Gateway RPC snapshot and visible context-engine quarantine output; adding a runtime probe to plugins doctor would collapse the documented control-plane/runtime boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 80b0e78d62fa.

Labels

Label justifications:

  • P2: The misleading clean message can hide a runtime fallback from operators, but the existing health command provides a bounded diagnostic path and the PR is a focused repair.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The supplied PR context records successful exact-head real-behavior proof and a proof: sufficient label; the submitted terminal validation also covers the focused CLI test and docs checks.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied PR context records successful exact-head real-behavior proof and a proof: sufficient label; the submitted terminal validation also covers the focused CLI test and docs checks.

Evidence

What I checked:

  • Current misleading success path: Current main runs local plugin diagnostics and logs No plugin issues detected. whenever install-tree and configuration warnings are absent; it does not invoke a Gateway health check on that path. (src/cli/plugins-cli.runtime.ts:360, 80b0e78d62fa)
  • Runtime-health owner exists: The health command is registered as a running-Gateway request, and its text renderer emits an explicit warning when context engines are quarantined and downgraded to the legacy engine. (src/cli/program/register.status-health-sessions.ts:193, 80b0e78d62fa)
  • Documented health contract: Current health documentation states that the command fetches a Gateway RPC snapshot and that JSON includes context-engine quarantine state. Public docs: docs/cli/health.md. (docs/cli/health.md:10, 80b0e78d62fa)
  • Candidate repair and regression coverage: The PR changes only the clean-message branch and updates the focused doctor test to require the scoped message that directs operators to runtime health. (src/cli/plugins-cli.runtime.ts:398, 1e8629734515)
  • Current-path provenance: The current doctor implementation, including the unqualified clean message, dates to the current file introduction in the main-history commit shown by line history. (src/cli/plugins-cli.runtime.ts:399, a5d89e169eac)
  • Provided exact-head validation: The supplied PR context records a successful latest Real behavior proof check, proof: sufficient, and successful focused CI/security checks for the candidate head. (1e8629734515)

Likely related people:

  • steipete: Line history attributes the current plugin-doctor implementation and its clean-message branch to the commit that introduced this current path; the same current history owns the health documentation and runtime-health route. (role: current command-path author; confidence: high; commits: a5d89e169eac; files: src/cli/plugins-cli.runtime.ts, docs/cli/health.md, src/commands/health.ts)
  • vincentkoc: Recent history touches the plugin CLI path, and the latest candidate commit narrows the message to the existing health-command boundary. (role: recent adjacent contributor; confidence: medium; commits: b2b3515e04e9, 1e8629734515; files: src/cli/plugins-cli.runtime.ts, src/cli/plugins-cli.list.test.ts, docs/cli/plugins.md)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh GitHub’s merge result and required checks for the current head before landing.

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 (6 earlier review cycles)
  • reviewed 2026-08-01T02:10:32.580Z sha 0049032cb11ecd1ecccb8ae36ffc6de23ba88218 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-01T02:25:27.922Z sha 0049032cb11ecd1ecccb8ae36ffc6de23ba88218 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T02:40:37.602Z sha 5611fa9df2aa58c269204fc2ba823399774a208d :: needs changes before merge. :: [P2] Address the person running the command directly
  • reviewed 2026-08-01T03:22:22.470Z sha e47deef26dce7775477e56057a65b3ef0fd9ba77 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T03:27:12.363Z sha e47deef26dce7775477e56057a65b3ef0fd9ba77 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T03:45:59.291Z sha 05ead92fe3eb7bf2a060fed1ace209ff3ec7e0a0 :: needs maintainer review before merge. :: none

@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 1, 2026
@clawsweeper clawsweeper Bot added 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 Aug 1, 2026
@MasterSwords1
MasterSwords1 force-pushed the fix/115073-doctor-clean-message branch from a91ba94 to e47deef Compare August 1, 2026 03:11
@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 1, 2026
MasterSwords1 and others added 3 commits August 1, 2026 13:11
Root cause: plugins doctor reports 'No plugin issues detected.' even when a selected context-engine plugin is quarantined at runtime, because doctor is a fast static control-plane check.
Architectural owner: plugins-cli.runtime.ts
Canonical fix: Change clean status message to direct operators to 'openclaw health' for active runtime quarantine/fallback status.
Production LOC delta: +2 LOC
Root cause: Refine the diagnostic text message to run openclaw health directly.
Architectural owner: src/cli/plugins-cli.runtime.ts
@vincentkoc
vincentkoc force-pushed the fix/115073-doctor-clean-message branch from 05ead92 to 1e86297 Compare August 1, 2026 05:14
@vincentkoc vincentkoc self-assigned this Aug 1, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Aug 1, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Final rank-up disposition: satisfied. Exact-head CI is terminal green (59 success, 12 skipped), real behavior proof is green, durable ClawSweeper is exact-head with no findings, and the current origin/main refresh at 0cd33bad88c7af167d4a907955c4795b264d5a77 has zero touched-file drift, clean merge tree 2e99469d2698b92f00e8a5cf5989e3d48515b4c2, and zero unresolved review threads.

@vincentkoc
vincentkoc merged commit 732c574 into openclaw:main Aug 1, 2026
204 of 211 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
…claw#117160)

* fix(cli): update plugins doctor clean message (openclaw#115073)

Root cause: plugins doctor reports 'No plugin issues detected.' even when a selected context-engine plugin is quarantined at runtime, because doctor is a fast static control-plane check.
Architectural owner: plugins-cli.runtime.ts
Canonical fix: Change clean status message to direct operators to 'openclaw health' for active runtime quarantine/fallback status.
Production LOC delta: +2 LOC

* fix(cli): update plugins doctor clean message wording (openclaw#115073)

Root cause: Refine the diagnostic text message to run openclaw health directly.
Architectural owner: src/cli/plugins-cli.runtime.ts

* fix(cli): clarify plugin doctor scope

---------

Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

[Bug]: plugins doctor reports healthy while an active context engine is quarantined at runtime

2 participants