Skip to content

fix(doctor): explain Codex plugin health failures - #144813

Merged
steipete merged 1 commit into
mainfrom
fix/update-plugin-preparation
Sep 11, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/update-plugin-preparation

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

Codex Doctor reported the same installation command when the plugin was missing or its selected source was untrusted. Broken health APIs could instead expose an implementation error.

Why This Change Was Made

Distinguish missing plugins, unverified sources, unloadable health APIs, and incomplete health checks. Each failure gives an appropriate installation or inspection command and repair guidance. Preserve trust enforcement and underlying causes. Update snapshot failures also use plain update terminology.

The reported old-updater failure was reproduced against 853d0c0: its snapshot projector changed bundled plugin ownership to an untrusted global copy and selected the old payload. The producer fix is already on main in #143190, including the reported target 6aab56d5; this PR improves diagnosis without adding another projection path.

User Impact

Doctor explains why the selected Codex plugin cannot provide health checks, instead of incorrectly treating every failure as a missing installation.

Evidence

  • Six diagnostic regression cases failed before this change.
  • 117 focused tests passed across health registration, Doctor, and snapshot/provenance behavior.
  • Full build, changed checks including typechecks, targeted infrastructure lint, and git diff --check passed.
  • Independent P1 review: no findings.

Related: #144808 preserves public package names; #144811 surfaces the health error once in update output.

@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 size: S maintainer Maintainer-authored PR labels Sep 11, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review September 11, 2026 09:25
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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, 6:19 AM ET / 10:19 UTC (Revision 2).

ClawSweeper review

What this changes

Doctor distinguishes missing, untrusted, unloadable, and incomplete Codex plugin health checks with actionable guidance, and update snapshot errors use clearer wording.

Merge readiness

⛔ Blocked before merge - 1 item remains

No actionable findings. The diagnostic improvement remains useful, and source inspection supports the discussion’s dismissal of the previous migration blocker: this patch changes no stored state or upgrade policy.

Priority: P3
Reviewed head: 3bb292e0e5d0d6ff027c86d2171b8968b0d9d42f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable diagnostic repair with relevant regression coverage and no supported merge blocker.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported focused tests exercise health-registration diagnostics; no live after-fix run was claimed or independently executed, and the diff introduces no material authority change.
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 PR is exempt from the external-contributor proof gate. Its reported focused tests exercise health-registration diagnostics; no live after-fix run was claimed or independently executed, and the diff introduces no material authority change.
Evidence reviewed 8 items Introduced behavior preserves existing admission: The verified merge-base-to-head patch separates existing rejection cases, retains the selected plugin root and trust predicate, preserves the capability guard, and attaches underlying load errors as causes. The two update modules change error strings only.
Current main still has the diagnostic gap: Fetched main uses one installation message for missing and untrusted owners and directly invokes the loaded export without the proposed diagnostic classification.
Latest supplied release retains older diagnostics: The v2026.9.4 source also conflates missing and untrusted plugin failures and lacks the new load/export diagnostics. GitHub contents inspection succeeded after local release-blob inspection failed.
Findings None None.
Security None None.

How this fits together

Doctor uses configured runtime and plugin metadata to register health checks. This change explains registration failures before those checks run, while preserving plugin selection and trust requirements.

flowchart TD
  A[Configured runtime] --> B[Selected plugin metadata]
  B --> C{Present and trusted?}
  C -->|No| F[Actionable diagnostic]
  C -->|Yes| D{Health capability declared?}
  D -->|Yes| E[Load and validate health API]
  D -->|No| G[Continue other checks]
  E -->|Valid| H[Register health checks]
  E -->|Failure| F
Loading

Before merge

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

Security

None.

PR surface

Source +22, Tests +2. Total +24 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 3 42 20 +22
Tests 1 7 5 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 49 25 +24

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/flows/bundled-health-checks.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep actionable diagnostics at the existing health-registration owner while retaining selected-plugin trust, capability compatibility, and underlying error causes.

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

Yes, from source: Doctor registration on current main emits the same installation advice for missing and untrusted selected plugins and exposes raw API failures. Runtime reproduction was not executed in this read-only review.

Is this the best way to solve the issue?

Yes. The patch improves errors where the failure is identified, reuses existing inspection and triage commands, and leaves plugin selection, trust, and compatibility behavior intact.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 441435b5066c.

Labels

Label justifications:

  • P3: This is focused diagnostic polish that preserves runtime admission and update 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 PR is exempt from the external-contributor proof gate. Its reported focused tests exercise health-registration diagnostics; no live after-fix run was claimed or independently executed, and the diff introduces no material authority change.

Evidence

What I checked:

  • Introduced behavior preserves existing admission: The verified merge-base-to-head patch separates existing rejection cases, retains the selected plugin root and trust predicate, preserves the capability guard, and attaches underlying load errors as causes. The two update modules change error strings only. (src/flows/bundled-health-checks.ts:193, 3bb292e0e5d0)
  • Current main still has the diagnostic gap: Fetched main uses one installation message for missing and untrusted owners and directly invokes the loaded export without the proposed diagnostic classification. (src/flows/bundled-health-checks.ts:196, 441435b5066c)
  • Latest supplied release retains older diagnostics: The v2026.9.4 source also conflates missing and untrusted plugin failures and lacks the new load/export diagnostics. GitHub contents inspection succeeded after local release-blob inspection failed. (src/flows/bundled-health-checks.ts, 3a9d69db306c)
  • Relevant regression coverage: The existing six-case table exercises missing, untrusted, legacy-untrusted, missing-artifact, missing-export, and throwing-artifact states through registration. Neighboring cases preserve trusted bundled/external loading and retained plugins without health declarations. The PR reports 117 focused passing tests; this read-only review inspected tests without executing them. (src/flows/bundled-health-checks.test.ts:558, 3bb292e0e5d0)
  • Previous blocker resolved by source and discussion: The supplied comment explicitly dismisses the data-model flag at the unchanged reviewed head, consistent with the introduced hunks: fix(doctor): explain Codex plugin health failures #144813 (comment). The previous review contained no findings or published rank-up moves. (3bb292e0e5d0)
  • Related producer fix is distinct: GitHub confirms fix(update): keep bundled plugin aliases bundled in candidate rehearsal #143190 merged. Its supplied body describes bundled-alias projection repair, whereas this PR improves diagnostics for remaining plugin health failures; it does not supersede this contribution. (7c1824faa6c9)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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 (1 earlier review cycle)
  • reviewed 2026-09-11T09:31:48.568Z sha 3bb292e :: blocked before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor

Maintainer disposition of the data-model flag at head 3bb292e: not applicable. The two snapshot files change error text only, and the Doctor registration change preserves selected-owner trust and capability behavior without altering any schema or stored state; the patch distinguishes a missing plugin from an untrusted selected one at bundled-health-checks.ts where they were conflated. Source-reviewed and independently autoreviewed clean; landing once ClawSweeper refreshes.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit 9b16050 into main Sep 11, 2026
242 of 249 checks passed
@steipete
steipete deleted the fix/update-plugin-preparation branch September 11, 2026 11:55
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 11, 2026
Preserve the reviewed harness while incorporating the landed benchmark prerequisite.

Punchcard-Session: coral-orchard-orchard-d4

* commit '4407ed19ac63b1c1c84a0cfe6eb4bbeca9c2322c': (1196 commits)
  fix(perf): isolate benchmark subprocess transport (#144159)
  refactor(auth): await Copilot cache persistence (#144810)
  refactor(web-fetch): exercise URL normalization through the public tool (#144887)
  fix(ollama): preserve hosted subdomain model context (#144891)
  fix(doctor): explain Codex plugin health failures (#144813)
  fix(channels): honor pinned accounts in Mattermost model menus (#144880)
  fix(update): failed-update records hide the triggering error behind the excerpt tail (#144729)
  fix(logging): preserve OpenClaw package references in diagnostics (#144808)
  fix: retain plugin detail tab selections while inspection loads (#144647)
  fix: keep discovered models when sign-in tokens renew (#144861)
  fix(update): preserve local package overrides (#89985)
  fix(update): resolve compatibility bridges within the runtime graph (#144831)
  chore(i18n): refresh native locales (#144856)
  fix: preserve child signal termination during CLI respawn (#144838)
  fix(text): hide encoded MiniMax tool envelopes (#126307)
  fix(subagents): deliver child replies that match the empty placeholder (#130647)
  fix(cli): reject blank message channel selectors (#144802)
  fix(telegram): preserve mixed text order and pending stop (#144839)
  fix(memory): restore FTS fallback for same-name view collisions (#144783)
  chore(release): close out 2026.9.4 on main (#144708)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

2 participants