Skip to content

fix(update): run copied config plugin Doctor contracts - #150978

Merged
RomneyDa merged 1 commit into
mainfrom
fix/update-canary-config-plugin-doctor
Sep 17, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/update-canary-config-plugin-doctor

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

Published-driver update rehearsal copied explicit custom-plugin payloads into private canary state, but the newer missing-plugin deferral owner classified every configured plugin as awaiting package convergence. Full Release Validation then skipped the copied plugin Doctor contract even though its private payload was complete.

User Impact

Custom plugins selected through plugins.load.paths execute their Doctor config-repair contracts inside the private update canary again. Missing, stale, and package-managed plugins remain deferred until package convergence.

Why This Change Was Made

Treat only config-selected plugin payloads contained by a recognized private update-rehearsal root as available without package convergence. Ordinary config paths remain deferred because their source can be stale during an update. This restores the exact behavior proven when the sibling-copy repair landed without weakening missing-plugin migration safeguards.

Evidence

  • Regression: Package Acceptance run 35239288546, job 105269421053, failed because no private-canary Doctor contract executed while the same private plugin runtime and sibling import succeeded.
  • Focused deferral suite: 21/21 passed, including the new recognized-rehearsal case and the existing stale-candidate control.
  • pnpm check:changed: passed all changed-file, type, lint, dead-code, database, and import-cycle gates.

The exact published [email protected] upgrade-survivor scenario will be rerun against this head combined with #150840 before either repair is landed.

@clawsweeper

clawsweeper Bot commented Sep 17, 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 commands Command implementations size: S maintainer Maintainer-authored PR labels Sep 17, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 17, 2026, 12:44 PM ET / 16:44 UTC (Revision 4).

ClawSweeper review

What this changes

Allow complete custom plugins copied into a private update rehearsal to run their Doctor configuration-repair contracts while retaining installation deferral elsewhere.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains a useful, focused repair absent from current main. No actionable defects remain; the supplied published-driver evidence resolves the prior compatibility and proof concerns.

Priority: P2
Reviewed head: 1f0763ae6525777ff8415e361dd4de1eb49ba169

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful regression coverage and convincing published-driver evidence; no blocking findings remain.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The published 2026.9.4 custom-plugin-siblings run exercises the changed Doctor availability path on a candidate directly containing this head. Captured runtime output, verified successful job and artifact identity, and inspected scenario assertions demonstrate private Doctor execution, sibling imports, preserved originals, and successful candidate runtime loading.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The published 2026.9.4 custom-plugin-siblings run exercises the changed Doctor availability path on a candidate directly containing this head. Captured runtime output, verified successful job and artifact identity, and inspected scenario assertions demonstrate private Doctor execution, sibling imports, preserved originals, and successful candidate runtime loading.
Evidence reviewed 7 items Verified introduced scope: The pinned merge-base-to-head delta contains only the availability owner and its regression test; the host-verified test merge preserves this same scope. The production change reuses the existing rehearsal recognizer and retains the unavailable-payload checks.
Current-main necessity: Fetched main still permits early availability only for bundled plugins, so complete config-selected rehearsal copies remain deferred. The merged companion #150840 changes SDK alias loading and does not replace this repair.
Production entrypoint and preserved controls: Doctor convergence requests deferred installation during rehearsals; pending IDs subsequently suppress Doctor contract loading. The patch changes that availability decision without changing serialized records, schemas, plugin APIs, activation policy, or configuration formats. The regression suite exercises full preflight and retains ordinary stale-candidate controls.
Findings None None.
Security None None.

How this fits together

Update rehearsals exercise a candidate OpenClaw installation against private copies of operator state and plugins. Doctor’s availability check determines which plugin repair contracts can run and which must wait for installation to finish.

flowchart TD
  A[Published updater] --> B[Private state and plugin copies]
  B --> C[Doctor availability check]
  C --> D{Complete config plugin inside rehearsal?}
  D -->|Yes| E[Run existing Doctor contract]
  D -->|No| F[Retain installation deferral]
  E --> G[Candidate compatibility result]
  F --> G
Loading

Before merge

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

Security

None.

PR surface

Source +13, Tests +46. Total +59 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 15 2 +13
Tests 1 46 0 +46
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 61 2 +59

Review metrics

Metric Value Why it matters
Published-driver coverage 1 upgrade scenario; 6 observed private-canary plugin executions The supplied trace covers actual Doctor and runtime execution during a published 2026.9.4 upgrade.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor/shared/plugin-migration-availability.ts, unknown-data-model-change: src/commands/doctor/shared/plugin-migration-availability.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep one Doctor availability owner that recognizes complete private rehearsal copies while preserving ordinary update deferral and retained migration obligations.

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

Yes: current main’s rehearsal convergence path requests installation deferral, which excludes complete config-selected copies from Doctor execution. Source and the supplied failing acceptance scenario establish the mechanism; no tests were executed in this read-only review.

Is this the best way to solve the issue?

Yes: the patch narrows the existing availability decision using established rehearsal markers and payload checks, and the published-driver scenario demonstrates the intended recovery.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This restores custom-plugin update rehearsal coverage with a narrow eligibility change and no demonstrated production outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The published 2026.9.4 custom-plugin-siblings run exercises the changed Doctor availability path on a candidate directly containing this head. Captured runtime output, verified successful job and artifact identity, and inspected scenario assertions demonstrate private Doctor execution, sibling imports, preserved originals, and successful candidate runtime loading.
  • proof: sufficient: Contributor real behavior proof is sufficient. The published 2026.9.4 custom-plugin-siblings run exercises the changed Doctor availability path on a candidate directly containing this head. Captured runtime output, verified successful job and artifact identity, and inspected scenario assertions demonstrate private Doctor execution, sibling imports, preserved originals, and successful candidate runtime loading.

Evidence

What I checked:

  • Verified introduced scope: The pinned merge-base-to-head delta contains only the availability owner and its regression test; the host-verified test merge preserves this same scope. The production change reuses the existing rehearsal recognizer and retains the unavailable-payload checks. (src/commands/doctor/shared/plugin-migration-availability.ts:137, 1f0763ae6525)
  • Current-main necessity: Fetched main still permits early availability only for bundled plugins, so complete config-selected rehearsal copies remain deferred. The merged companion fix(plugins): keep SDK alias validation on demand #150840 changes SDK alias loading and does not replace this repair. (src/commands/doctor/shared/plugin-migration-availability.ts:134, a1cc9b38c1c8)
  • Production entrypoint and preserved controls: Doctor convergence requests deferred installation during rehearsals; pending IDs subsequently suppress Doctor contract loading. The patch changes that availability decision without changing serialized records, schemas, plugin APIs, activation policy, or configuration formats. The regression suite exercises full preflight and retains ordinary stale-candidate controls. (src/commands/doctor-config-preflight-plugin-verification.ts:103, 1f0763ae6525)
  • Published-driver behavior evidence: Captured comment fix(update): run copied config plugin Doctor contracts #150978 (comment) supplies raw output showing the published 2026.9.4 baseline loading the plugin, six private-canary executions resolving sibling source, preserved original files, and successful candidate loading. The inspected scenario explicitly requires Doctor-contract execution, Gateway registration, private module URLs, unchanged source hashes, enablement, and memory-slot selection. (scripts/e2e/lib/upgrade-survivor/custom-plugin-siblings.mjs:125, 1f0763ae6525)
  • Acceptance artifact identity: GitHub verifies artifact 10507730763 belongs to run 35243361810 at candidate b80da1c, is unexpired, and has the reported SHA-256 digest 13cf59ad8277e320538959bb50876d6d1fa7bb49a5e986bba823ed44a5643f29. The job API independently reports successful completion. The archive itself was not downloaded during this review. (b80da1c519d6)
  • Combined candidate contains reviewed head: GitHub identifies the tested candidate’s direct parent as the exact reviewed PR head; its additional change is confined to plugin-module-loader-cache.ts, matching the companion repair. (b80da1c519d6)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: 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 (3 earlier review cycles)
  • reviewed 2026-09-17T16:00:07.577Z sha 1f0763a :: blocked before merge. :: none
  • reviewed 2026-09-17T16:25:50.600Z sha 1f0763a :: blocked before merge. :: none
  • reviewed 2026-09-17T16:35:37.227Z sha 1f0763a :: blocked before merge. :: none

@RomneyDa

Copy link
Copy Markdown
Member Author

Published-driver compatibility proof is now green on the exact combined candidate containing this head plus #150840: Package Acceptance 35243361810, job 105283976877. The pinned [email protected] → b80da1c519d607d0bd9997a90c3446d5ed508bed custom-plugin-siblings lane passed in 185s. That scenario requires the copied private-canary Doctor contract and Gateway runtime registration to execute with the sibling value, both module URLs to remain inside private state, original plugin hashes and enablement to remain unchanged, and before/after runtime inspection to pass. Package integrity and npm 12 install also passed. This resolves the update-path and compatibility proof items on the reviewed head.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 17, 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.

Re-review progress:

@RomneyDa RomneyDa self-assigned this Sep 17, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Compatibility disposition: this patch changes no serialized schema, database table, config format, migration record shape, or persistent data model. plugin-migration-availability.ts only changes transient private-rehearsal eligibility for an already-copied config plugin. Existing operator state compatibility was nevertheless proven by the published [email protected] upgrade in run 35243361810: the scenario preserved original plugin hashes, enablement, slot selection, and config while executing both private Doctor and Gateway surfaces. The data-model classifier finding is therefore not applicable and the upgrade proof is complete.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 17, 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.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 17, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

ClawSweeper follow-up for the two remaining proof checkboxes:

Raw acceptance artifact: docker-e2e-published-upgrade-survivor artifact (SHA-256 13cf59ad8277e320538959bb50876d6d1fa7bb49a5e986bba823ed44a5643f29).

The downloaded immutable artifact's summary.json records:

  • exact selected/tooling SHA: b80da1c519d607d0bd9997a90c3446d5ed508bed
  • baseline: [email protected]
  • scenario: custom-plugin-siblings
  • lane status: 0, workflow status: passed, retries: 0

Decisive raw lane output:

Installing baseline package: [email protected]
baseline: enabled sibling-import plugin loaded
Updating baseline [email protected] to target tarball:file:/tmp/openclaw-current.tgz (2026.9.4)
canary: 6 actual plugin executions resolved sibling source; original files preserved
candidate: enabled sibling-import plugin loaded
Upgrade survivor Docker E2E passed [email protected] scenario=custom-plugin-siblings candidate=2026.9.4.

This is the requested migration/upgrade compatibility proof. The patch itself has no persistent data-model surface: it changes only transient Doctor eligibility for a complete config plugin copied under a recognized private rehearsal root. No schema, serialized record, config format, migration record, or database table changes.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 17, 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.

Re-review progress:

@RomneyDa
RomneyDa merged commit 33bde5d into main Sep 17, 2026
218 checks passed
@RomneyDa
RomneyDa deleted the fix/update-canary-config-plugin-doctor branch September 17, 2026 16:47
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
steipete added a commit that referenced this pull request Sep 18, 2026
Prepare cold outbound channel metadata asynchronously through the existing state worker. Preserve the shared plugin cache and selection owner, captured workspace/state context, and currentness checks before loading or queue admission. Cancellation and preparation failures retain one queue-owned terminal audit and message hook.

Keep synchronous bootstrap for callers outside this cut. Extract unchanged retry policy and the Matrix test adapter into internal siblings; preserve canonical catalog custody and complementary regression coverage. No new configuration, stored format, or migration.

Validation: exact-head CI run 35343214882 passed; focused metadata/worker controls, relevant types, line-cap checks, and fresh P2 review passed. Historical updater proof remains bound to source 7dd / package f66; no new installed-update or live-provider proof is claimed.

Related: #144592. Doctor #149381 was superseded by canonical #150978.
Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…#149304)

Prepare cold outbound channel metadata asynchronously through the existing state worker. Preserve the shared plugin cache and selection owner, captured workspace/state context, and currentness checks before loading or queue admission. Cancellation and preparation failures retain one queue-owned terminal audit and message hook.

Keep synchronous bootstrap for callers outside this cut. Extract unchanged retry policy and the Matrix test adapter into internal siblings; preserve canonical catalog custody and complementary regression coverage. No new configuration, stored format, or migration.

Validation: exact-head CI run 35343214882 passed; focused metadata/worker controls, relevant types, line-cap checks, and fresh P2 review passed. Historical updater proof remains bound to source 7dd / package f66; no new installed-update or live-provider proof is claimed.

Related: openclaw#144592. Doctor openclaw#149381 was superseded by canonical openclaw#150978.
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

commands Command implementations maintainer Maintainer-authored PR 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.

1 participant