Skip to content

fix(plugins): surface actionable doctor diagnostics - #117357

Merged
steipete merged 1 commit into
mainfrom
codex/qa400-plugin-doctor-visible-warnings
Aug 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa400-plugin-doctor-visible-warnings

Conversation

@steipete

@steipete steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

openclaw plugins doctor claimed plugin discovery, loading, compatibility, and configuration checks passed while real discovery and manifest problems already existed. Missing required plugins, unreadable plugin roots, incompatible plugin hosts, and other actionable warnings disappeared entirely; reports containing both errors and warnings also silently dropped the warnings.

Why This Change Was Made

The canonical doctor renderer threw away every diagnostic except errors. Existing producers intentionally model many real discovery and compatibility failures as warnings, so that severity filter broke the doctor's existing promise. Select every actionable diagnostic at the doctor owner and exclude only deliberately handled, config-selected duplicate-shadow diagnostics; their dedicated failure section remains authoritative.

User Impact

  • Actionable discovery and manifest warnings are visible with or without an associated plugin id; warnings and errors appear together instead of producing false healthy output.
  • Healthy intentional duplicate-source selection remains quiet; broken selected sources keep their specialized shadowing details without duplicate messages.
  • Clean doctor runs, existing error/config/compatibility rendering, exit status, and zero configuration-write behavior are preserved.

Evidence

  • Authentic immutable production-baseline regression: 3 failed / 20 passed before the production change.
  • Frozen candidate: 23/23 existing Commander/doctor owner tests in one cache-disabled single-worker run.
  • A source-blind harness independently loads immutable baseline/candidate production owners, runs 6 real Commander/defaultRuntime subprocess cases each, and passes 6 baseline RED + 7 candidate GREEN stdout/stderr/exit/no-write assertions.
  • Four fresh independent hostile P0-P3 audits are clean; the sole official full strict autoreview with real TruffleHog is clean at 0.91 confidence.
  • Exact root-approved two existing files; production +1/-1, net 0. No discovery, config, manifest schema, SDK, SQLite, auth, security policy, severity, or doctor exit-contract changes.
  • Current main dabba0ce108f556a498c206a690436f9e6279776 retains all 15 reviewed owner/caller/docs/root blobs unchanged; synthetic merge is clean.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: S maintainer Maintainer-authored PR labels Aug 1, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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, 6:52 AM ET / 10:52 UTC.

ClawSweeper review

What this changes

This PR makes openclaw plugins doctor print actionable plugin warning diagnostics alongside errors while continuing to suppress intentionally healthy config-selected duplicate-source notices.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this PR open for normal maintainer handling. The patch fixes a source-proven false-healthy plugins doctor result, preserves the dedicated config-selected shadowing path, and introduces no correctness or security finding; the protected maintainer label prevents automated cleanup.

Likely related people: Peter Steinberger is the high-confidence routing candidate from recent current-main work on the same plugin CLI path.

Priority: P2
Reviewed head: bdf01e7ee64307891e14e37abcbcba250e0dab3c

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-local fix with direct regression coverage and command-level behavior proof.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR records after-fix Commander/defaultRuntime subprocess proof covering output, exit, and no-write assertions, and the supplied check context includes a successful Real behavior proof run.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR records after-fix Commander/defaultRuntime subprocess proof covering output, exit, and no-write assertions, and the supplied check context includes a successful Real behavior proof run.
Evidence reviewed 5 items Current-main defect: The current doctor renderer selects only diagnostics whose level is error; warning-only discovery failures therefore do not set hasInstallTreeIssues and can lead to the clean-result message.
Actionable warning producers: Plugin discovery deliberately emits warning diagnostics for invalid plugin API metadata, incompatible plugin API hosts, unreadable extension directories, and dependency-related discovery failures, so filtering warnings at the renderer hides real operator guidance.
Owner-local fix and regression coverage: The PR changes the canonical renderer to exclude only config-selected shadow diagnostics, then adds warning-only and warning-plus-error assertions; existing shadowing tests cover the intentional healthy and failed selected-source cases.
Findings None None.
Security None None.

How this fits together

openclaw plugins doctor asks the plugin status layer to load and inspect the effective plugin set, then combines discovery diagnostics with compatibility and stale-configuration checks. Its terminal report tells an operator whether to repair plugin installation, configuration, or source selection before restarting the Gateway.

flowchart LR
  A[Plugin manifests and configuration] --> B[Plugin discovery and status report]
  B --> C[Doctor diagnostic selection]
  D[Compatibility and stale config checks] --> E[Doctor report assembly]
  C --> E
  E --> F[Operator repair guidance]
  E --> G[Healthy plugin result]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed because the PR already contains the narrow, source-aligned fix; the maintainer label and routine remaining checks keep final handling with a human reviewer.
Agent review details

Security

None.

PR surface

Source 0, Tests +49. Total +49 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 49 0 +49
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 50 1 +49

Review metrics

None.

Stored data model

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

Technical review

Best possible solution:

Merge the owner-local diagnostic selection change after the normal required checks complete, keeping config-selected duplicate-source diagnostics exclusively in their specialized shadowing section.

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

Yes. Current main filters doctor diagnostics to errors only at src/cli/plugins-cli.runtime.ts:378, while plugin discovery emits actionable warnings; the added regression cases directly model warning-only and mixed warning/error output.

Is this the best way to solve the issue?

Yes. The fix belongs in the canonical doctor renderer: it preserves diagnostic producer severities and filters only the duplicate-shadow category that already has a dedicated authoritative output section.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: Hidden plugin discovery and compatibility guidance creates a real but bounded operator-diagnostics failure without evidence of data loss, security exposure, or core-runtime unavailability.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR records after-fix Commander/defaultRuntime subprocess proof covering output, exit, and no-write assertions, and the supplied check context includes a successful Real behavior proof run.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR records after-fix Commander/defaultRuntime subprocess proof covering output, exit, and no-write assertions, and the supplied check context includes a successful Real behavior proof run.

Label justifications:

  • P2: Hidden plugin discovery and compatibility guidance creates a real but bounded operator-diagnostics failure without evidence of data loss, security exposure, or core-runtime unavailability.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster 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 PR records after-fix Commander/defaultRuntime subprocess proof covering output, exit, and no-write assertions, and the supplied check context includes a successful Real behavior proof run.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR records after-fix Commander/defaultRuntime subprocess proof covering output, exit, and no-write assertions, and the supplied check context includes a successful Real behavior proof run.

Evidence

What I checked:

  • Current-main defect: The current doctor renderer selects only diagnostics whose level is error; warning-only discovery failures therefore do not set hasInstallTreeIssues and can lead to the clean-result message. (src/cli/plugins-cli.runtime.ts:376, a88f3ffc9609)
  • Actionable warning producers: Plugin discovery deliberately emits warning diagnostics for invalid plugin API metadata, incompatible plugin API hosts, unreadable extension directories, and dependency-related discovery failures, so filtering warnings at the renderer hides real operator guidance. (src/plugins/discovery.ts:900, a88f3ffc9609)
  • Owner-local fix and regression coverage: The PR changes the canonical renderer to exclude only config-selected shadow diagnostics, then adds warning-only and warning-plus-error assertions; existing shadowing tests cover the intentional healthy and failed selected-source cases. (src/cli/plugins-cli.runtime.ts:378, bdf01e7ee643)
  • Recent area history: Recent current-main commits touching the plugin CLI runtime and adjacent test path are authored by Peter Steinberger, supporting him as the current routing candidate for this behavior. (src/cli/plugins-cli.runtime.ts, b5f1bdb88600)
  • Patch hygiene and reported command proof: git diff --check reports no whitespace errors. The PR body describes post-fix Commander/defaultRuntime subprocess cases checking output, exit status, and no-write behavior, and the supplied check context includes a successful Real behavior proof run. (src/cli/plugins-cli.list.test.ts:103, bdf01e7ee643)

Likely related people:

  • Peter Steinberger: Recent current-main history on the same plugin CLI runtime and nearby tests is authored by Peter Steinberger, and the proposed PR follows that existing owner boundary. (role: recent area contributor; confidence: high; commits: b5f1bdb88600, 02419ed1998f, bdf01e7ee643; files: src/cli/plugins-cli.runtime.ts, src/cli/plugins-cli.list.test.ts)

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.

@steipete
steipete merged commit 7bd7d7d into main Aug 1, 2026
130 of 139 checks passed
@steipete
steipete deleted the codex/qa400-plugin-doctor-visible-warnings branch August 1, 2026 11:51
@steipete

steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

chenyangjun-xy pushed a commit to chenyangjun-xy/openclaw that referenced this pull request Aug 1, 2026
* origin/main:
  refactor(doctor): unify legacy auth migration ownership (openclaw#117361)
  fix(plugins): surface actionable doctor warnings (openclaw#117357)
  fix(ci): use corrected Kova release evaluator (openclaw#116920)
  fix(ci): stabilize release validation assertions (openclaw#117377)
  refactor(memory): use sqlite transcript identities (openclaw#117334)
  fix(plugins): require tracked owners for targeted updates (openclaw#117333)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main:
  refactor(doctor): unify legacy auth migration ownership (openclaw#117361)
  fix(plugins): surface actionable doctor warnings (openclaw#117357)
  fix(ci): use corrected Kova release evaluator (openclaw#116920)
  fix(ci): stabilize release validation assertions (openclaw#117377)
  refactor(memory): use sqlite transcript identities (openclaw#117334)
  fix(plugins): require tracked owners for targeted updates (openclaw#117333)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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.

1 participant