Repository navigation
fix(doctor): resolve ClawHub plugin drift targets from ClawHub - #145103
fuller-stack-dev merged 13 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5d711d0527
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if ( | ||
| resolveOpenClawReleaseCohortVersion(latestVersion) === | ||
| resolveOpenClawReleaseCohortVersion(entry.installedVersion) | ||
| ) { | ||
| return null; |
There was a problem hiding this comment.
Keep incompatible latest ClawHub installs in the drift report
When the installed plugin is already ClawHub's latest release but that release declares a pluginApiRange or minGatewayVersion incompatible with entry.gatewayVersion, this branch returns null solely because the versions match. The ClawHub install path explicitly rejects the same compatibility mismatch in validateClawHubPluginPackage, so doctor and deep status now suppress the drift entry even though that Gateway/plugin pairing may not run; consult the existing compatibility owner before dropping the entry.
AGENTS.md reference: AGENTS.md:L31-L32
Useful? React with 👍 / 👎.
| try { | ||
| return { | ||
| version: resolveLatestVersionFromPackage( | ||
| await fetchClawHubPackageDetail({ name: packageName }), |
There was a problem hiding this comment.
Resolve the target from the install record's ClawHub URL
When OPENCLAW_CLAWHUB_URL or CLAWHUB_URL points to a custom registry while this persisted official install came from https://clawhub.ai, omitting baseUrl makes this lookup query the environment-selected registry. The actual update path passes record.clawhubUrl, so an equal, different, or missing package on the custom registry can suppress the warning or advertise a target that the suggested update will not use; carry the recorded URL into the drift entry and pass it here.
AGENTS.md reference: AGENTS.md:L55-L56
Useful? React with 👍 / 👎.
|
Codex review: blocked before merge. Reviewed September 19, 2026, 2:45 PM ET / 18:45 UTC (Revision 19). ClawSweeper reviewWhat this changesDoctor and deep Gateway status resolve ClawHub plugin repair targets from the recorded registry, preserve update-channel intent, explain registry lag, and avoid recommending downgrades. Merge readiness⛔ Blocked before merge - 1 item remains Keep open for landing: the diagnostic fix remains absent from current main and the latest release. No actionable patch defects were found, and the supplied upgrade evidence resolves the previous compatibility concern. Priority: P2 Review scores
Verification
How this fits togetherPlugin diagnostics compare installed plugin records with the Gateway version and registry metadata. Doctor and Gateway status turn those results into repair commands or explanations without changing installed plugins. flowchart TD
A[Installed plugin records] --> C[Plugin drift diagnostics]
B[Gateway version and update channel] --> C
C --> D[Existing update selector]
D --> E[Recorded ClawHub registry]
E --> F[Compatibility and version checks]
F --> G[Doctor and deep status]
G --> H[Repair command or explanation]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +267, Tests +677. Total +944 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep diagnostics aligned with the existing update selector, showing attainable targets and explicit non-actionable outcomes while leaving install state untouched. Do we have a high-confidence way to reproduce the issue? Yes, from source: a ClawHub plugin whose latest release trails the Gateway receives an unattainable host-version target on current main. Supplied runtime transcripts corroborate the failure and repaired behavior; this review did not execute it. Is this the best way to solve the issue? Yes. Reusing the update selector and version-ordering owners is a focused repair, and the inspected native handoff evidence supports preservation of existing operator state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0e9181234a42. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (18 earlier review cycles; latest 8 shown)
|
Plugin restart readiness compared every active official external plugin against the running OpenClaw version, including installs whose upgrade target lives in ClawHub. ClawHub publishes on its own release train, so its latest version can sit below the host version. Doctor then named an expected version that no update can reach and suggested a command that cannot clear the warning. Resolve the upgrade target for ClawHub installs from ClawHub itself. An install that already holds the newest version ClawHub offers is not drift and is dropped from the report. When ClawHub cannot answer, the drift stays reported with an unresolved target so a real gap is never hidden. The status line now names the registry-confirmed target instead of the host version.
5d711d0 to
fcd01e1
Compare
|
Pushed Changes since
Red/green per finding (each test was first red against the unfixed code):
Focused suite: 44/44 PASS. Sibling shards: 2 Vitest shards, 3/3 PASS in After-fix runtime evidence (the piece that was missing). Run against an isolated profile with real installed packages and a synthetic config on an unused port, seeded through the real owner, never against a live Gateway:
That second case is the regression this PR is about: previously the unresolvable target disappeared from the report; now it is reported with its reason.
One honest caveat: An independent automated review of the working tree returned "patch is correct" (confidence 0.68). Its two P2 findings applied only to a stale index, not to the committed tree; I staged exactly the reviewed tree and confirmed no unstaged difference. Remaining lower-priority observations: the env probe is mocked, and no |
|
@DasX I'm taking the two narrow diagnostic follow-ups on this existing PR, preserving your branch and credit: carry configured update-channel intent into post-upgrade probes while keeping the persisted plugin index authoritative for enablement, and make Doctor show the registry-confirmed target. Both gaps remain at |
Two maintainer P1 findings on the ClawHub drift diagnostic: 1. A stale recorded ClawHub pin got no executable repair. The diagnostic read the recorded selector literally, so an exact pin never reached the registry and the unresolved-target guard then suppressed the update command. Resolution now goes through the update owner (resolveClawHubUpdateSpecs) with the catalog spec carried from admission, so a pin at or below the target Gateway resumes the catalog's release policy here exactly as it does during an update. The prescribed repair is the plugin id, which the ClawHub update-selection owner accepts. A pin above the target Gateway stays unresolved. 2. Registry lag was dropped instead of explained. When the installed and registry-latest versions matched but the expected Gateway version was newer, the entry was removed from every downstream diagnostic. It now carries a registry-current outcome with the observed registry version and the expected Gateway version; only the no-op update command is suppressed. Doctor reports it as an informational finding without a fix hint, deep Gateway status explains it outside the repair-failure surface, and post-upgrade states that no release reaches the expected version yet.
|
@steipete Thanks, both P1s reproduced from source and both are fixed on 1. Stale recorded ClawHub pins ( 2. Registry lag dropped ( Test status on this head: 409 passed, 1 skipped across Still open, and I would rather say so than paper over it: the real-CLI qualification ClawSweeper keeps asking for is not done. The evidence here is test-level plus the original real-package run at |
|
The head is reconciled, and reviewed-head post-upgrade and configured-channel CLI proof is now in the body. The published OpenClaw updater handoff and managed-service diagnostics remain unproven. Head. The fix commit Proof. All runs are on an isolated OpenClaw instance at that head: its own state directory, its own config file, a synthetic workspace, sidecars disabled. The production Gateway and its configuration were not modified or restarted. A separate deep-status attempt resolved the host's service metadata instead of the test instance; it is excluded from the isolation proof. Package metadata comes from the public ClawHub registry, so the versions are real published ones.
What I did not prove, stated rather than skipped.
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…ugin-drift-target
status.print.test.ts exceeded the line-cap ratchet. The five plugin version drift renderer cases move into a sibling file unchanged, except for the explicit loaded: true that the old wrapper supplied. No assertion was removed or weakened. Line-cap ratchet against origin/main passes with no new violation. status.print and the new sibling run green: 59 tests, 1 existing skip.
Keep distinct correction releases and build metadata actionable while suppressing only exact installed package versions. Preserve the current plugin update selector and rejection contracts.
…ugin-drift-target # Conflicts: # src/commands/doctor-post-upgrade.ts
|
Merged via squash.
|
…law#145103) * fix(doctor): resolve ClawHub plugin drift targets from ClawHub Plugin restart readiness compared every active official external plugin against the running OpenClaw version, including installs whose upgrade target lives in ClawHub. ClawHub publishes on its own release train, so its latest version can sit below the host version. Doctor then named an expected version that no update can reach and suggested a command that cannot clear the warning. Resolve the upgrade target for ClawHub installs from ClawHub itself. An install that already holds the newest version ClawHub offers is not drift and is dropped from the report. When ClawHub cannot answer, the drift stays reported with an unresolved target so a real gap is never hidden. The status line now names the registry-confirmed target instead of the host version. * fix(doctor): preserve ClawHub compatibility and update intent * fix(doctor): preserve ClawHub diagnostic targets * style(plugins): format ClawHub drift diagnostics * test(plugins): cover resolved ClawHub status targets * fix(doctor): repair stale ClawHub pins and explain registry lag Two maintainer P1 findings on the ClawHub drift diagnostic: 1. A stale recorded ClawHub pin got no executable repair. The diagnostic read the recorded selector literally, so an exact pin never reached the registry and the unresolved-target guard then suppressed the update command. Resolution now goes through the update owner (resolveClawHubUpdateSpecs) with the catalog spec carried from admission, so a pin at or below the target Gateway resumes the catalog's release policy here exactly as it does during an update. The prescribed repair is the plugin id, which the ClawHub update-selection owner accepts. A pin above the target Gateway stays unresolved. 2. Registry lag was dropped instead of explained. When the installed and registry-latest versions matched but the expected Gateway version was newer, the entry was removed from every downstream diagnostic. It now carries a registry-current outcome with the observed registry version and the expected Gateway version; only the no-op update command is suppressed. Doctor reports it as an informational finding without a fix hint, deep Gateway status explains it outside the repair-failure surface, and post-upgrade states that no release reaches the expected version yet. * test(cli): split plugin version drift cases into their own file status.print.test.ts exceeded the line-cap ratchet. The five plugin version drift renderer cases move into a sibling file unchanged, except for the explicit loaded: true that the old wrapper supplied. No assertion was removed or weakened. Line-cap ratchet against origin/main passes with no new violation. status.print and the new sibling run green: 59 tests, 1 existing skip. * fix(doctor): preserve exact ClawHub correction targets Keep distinct correction releases and build metadata actionable while suppressing only exact installed package versions. Preserve the current plugin update selector and rejection contracts. * fix(plugins): reject registry rollback repair targets --------- Co-authored-by: Peik S. <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Jason (Json) <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: Richard355168 <[email protected]> Co-authored-by: ggbond <[email protected]> Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: VACInc <[email protected]> Co-authored-by: njuboy11 <[email protected]> Co-authored-by: Alix-007 <[email protected]> Co-authored-by: Altay <[email protected]> Co-authored-by: xydt-juyaohui <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Jason Sy <[email protected]>
Current integration candidate — a3ce3af
Current head: a3ce3af, directly above the contributor's d1a847f merge of main 1e8ba48. Contributor history, authorship, and renderer test split are preserved. The full source tree is exactly 5cfc00884b0505d2445dca0ffc81f69800011dff, matching the independently API-reviewed candidate; the redundant private merge commit was not pushed.
Data-model and upgrade compatibility
PR #145103 introduces no persistent schema, migration, backfill, install-record layout, config shape, or new writer. The resolver consumes existing install records and existing update-channel intent. Added target-resolution fields are transient diagnostic output, not persisted state. Doctor post-upgrade reads the persisted installed-plugin index; it does not recreate or overwrite it. Existing updater and plugin installer remain the only state owners.
Both accepted packaged aa42 native cells began with actual installer-created records under untouched published OpenClaw 2026.9.4. After its real updater handed off to aa42, ordinary Doctor, deep status, and post-upgrade JSON preserved records, plugin bytes, selected config/enablement, and global plugin policy. A real first-hop registry outage was limited to the retained-record scenario and fully removed before diagnostics and repair. The ordinary normal-network first hop separately succeeded with documented auto-update behavior. Neither is a fabricated migration fixture.
Current-main integration keeps ordinary Doctor, deep rendering and contributor test split byte-identical to aa42. It incorporates main's post-upgrade manifest-readability probe and tests; the textual conflict was adjacent imports and both are retained. Fresh independent review additionally identified advice to downgrade when the registry latest tag moves backward. The resolver now uses the updater's existing isPackageVersionDowngrade helper to leave those targets explicitly unresolved. Four new downgrade regressions failed before this fix; seven affected cases passed after, including valid correction/build-metadata updates. This guard does not change the accepted native cells' equal/newer target inputs. The integrated post-upgrade command suite passed all 50 tests, including stable/beta/extended-stable behavior, persisted enablement, unreadable/missing/optional manifests, cached existence transitions, and explicitly unchanged installed-index records. There is no new data-model migration requiring operator approval.
The accepted native package is still exactly aa42, not relabeled as the integration head. The narrow integration is covered by new entrypoint tests, independent review, and required fresh hosted CI. No native registry-lag cell is replayed.
Retained packaged/native qualification at aa42f79 — 2026-09-19
Head
aa42f796d4a7c93079bdf7b569cd09041ee9d73a. This section supersedes the earlier unexecuted package/managed-service gaps below; the contributor’s earlier observations remain historical evidence.[email protected]drove the first hop to the maintained package built from this exact head (version2026.9.5). No installed-updater patch, source launcher, synthetic plugin version, or hand-seeded/reseeded plugin index was used.062d0693033f92cc4c41c22ce060a551f9164705e5c1fde84d7d4bef8083ae82; build identity:2026.9.5-aa42f796d4a7-2026-09-19T17-26-33.256Z. All shipped regular bytes were checked after installation; source hashes were verified before and after the maintained build.diffs2026.9.2→2026.9.5, as the existing updater contract permits. That success is not counted as retained-stale diagnostic proof.clawhub.ai:443destinations was applied only during the first hop. Direct TCP and metadata probes confirmed refusal. Exact firewall state was restored before diagnostics/repair and real registry metadata was fetched again. The updater succeeded with plugin-unavailable notices, preserving the genuine baseline installer records and plugin bytes. This is outage-qualified handoff evidence, not an assertion that normal core updates never update plugins.stale-repair — PASS
Published installer selected
[email protected]from ClawHub. Exact install-record hash before/after core handoff:f98b273fd4a508d899ccdfdf2dacd97e27860a8d0b54c2ffc4dd6acaacd16043. Candidate service PID/build identity, plugin load, selected enablement/config, plugin bytes, and global plugin-selection policy were checked. All six stable/beta diagnostic commands exited 0, retained records/bytes, and observed the owned active managed service.Real
openclaw doctor --non-interactiveon stable:update.channel=stable; realopenclaw gateway status --deep:Real
openclaw doctor --post-upgrade --json:[ { "level": "warn", "code": "plugin.version_drift", "plugin": "diffs", "message": "Plugin diffs is 2026.9.2, but OpenClaw is 2026.9.5. Run `openclaw plugins update diffs`, then restart the Gateway." } ]Real
openclaw doctor --non-interactiveon beta:update.channel=beta; realopenclaw gateway status --deep:Real
openclaw doctor --post-upgrade --json:[ { "level": "warn", "code": "plugin.version_drift", "plugin": "diffs", "message": "Plugin diffs is 2026.9.2, but OpenClaw is 2026.9.5. No confirmed repair target is available; check registry availability and rerun this command." } ]The ID-only command advertised by the stable diagnostics,
openclaw plugins update diffs, was then executed unchanged. It reached real registry version2026.9.5; artifact bytes and ClawHub ownership were verified, followed by managed restart and successful plugin load.Teardown verified the user service, listener, runtime tree, default state, and temporary lease path absent; the exact prior firewall rules were restored.
registry-current-lag — PASS
Published installer selected
[email protected]from ClawHub. Exact install-record hash before/after core handoff:4b43a1a6691e3959bef46f3fca72b9b14c577e6c2dee279da6b251ec6c02d78f. Candidate service PID/build identity, plugin load, selected enablement/config, plugin bytes, and global plugin-selection policy were checked. All six stable/beta diagnostic commands exited 0, retained records/bytes, and observed the owned active managed service.Real
openclaw doctor --non-interactiveon stable:update.channel=stable; realopenclaw gateway status --deep:Real
openclaw doctor --post-upgrade --json:[ { "level": "warn", "code": "plugin.version_drift", "plugin": "tokenjuice", "message": "Plugin tokenjuice is 2026.9.3, but OpenClaw is 2026.9.5. The registry already serves 2026.9.3; no release reaches 2026.9.5 yet, so no update applies." } ]Real
openclaw doctor --non-interactiveon beta:update.channel=beta; realopenclaw gateway status --deep:Real
openclaw doctor --post-upgrade --json:[ { "level": "warn", "code": "plugin.version_drift", "plugin": "tokenjuice", "message": "Plugin tokenjuice is 2026.9.3, but OpenClaw is 2026.9.5. No confirmed repair target is available; check registry availability and rerun this command." } ]The stable ordinary Doctor and deep-status explanation offered no update command. Beta remained explicitly unresolved. The no-op path retained the install record and every installed plugin byte.
Teardown verified the user service, listener, runtime tree, default state, and temporary lease path absent; the exact prior firewall rules were restored.
Remaining landing gate
At native-qualified head aa42f79, CI run 35457821789 and Security Review now both passed. The sole failed npm503 audit job was retried once after a fresh HTTP200 advisory-endpoint probe; GitHub reran dependent jobs. No passed CI or native cells were manually replayed. This clearance is bound to aa42, not the later integration head.
What Problem This Solves
openclaw doctorreports under Plugin restart readiness a target version that the plugin's own registry does not offer. Measured on 2026-09-11 against OpenClaw 2026.9.4:For the two npm plugins the target was reachable, and they are on 2026.9.4 now. For the two ClawHub plugins it is not. Running the suggested command reports:
After the update they sit on 2026.9.3, which is the newest version ClawHub publishes, and doctor keeps reporting them as drifted:
openclaw plugins inspect lobster --jsonshowsinstallSpec: clawhub:@openclaw/lobster, so this is a floating install with no version pin. The result is a warning that cannot be cleared plus a fix hint that cannot reach the version it names.Cause
detectPluginVersionDriftcompares every active official external install against the running OpenClaw version.resolveEntryTargetthen confirms an attainable target only for exact npm pins; ClawHub installs never get one, soresolvePluginVersionDriftUpdateCommandreturns an id-only update and the renderer prints the host version asexpected. ClawHub publishes plugins on its own release train, so its latest version can sit below the host version.Related: #139718 describes the same unclearable loop for a pinned install.
Why This Change Was Made
The diagnostic and the update owner disagreed about what an update would actually do, in two ways that the maintainer review at
bed372823a1identified as P1.1. A stale recorded ClawHub pin got no executable repair. Target resolution read the recorded selector literally, so an exact pin never reached the registry, and the unresolved-target guard then suppressed the update command. That left the reporter's case in #139718 with a visible warning and no confirmed repair. Resolution now goes through the update owner (
resolveClawHubUpdateSpecs) with the catalog spec carried from admission, so a pin at or below the target Gateway resumes the catalog's release policy here exactly as it does during an update. The prescribed repair is the plugin id, which the ClawHub update-selection owner (src/cli/plugins-update-selection.ts) accepts for ClawHub installs. A pin above the target Gateway stays unresolved, because moving off it is not obviously the repair.2. Registry lag was dropped instead of explained. When the installed version and the registry latest matched but the expected Gateway version was newer, the entry was removed from the report and therefore from every downstream diagnostic. That hid the precise case documented above. The entry now carries a
registry-currentoutcome with the observed registry version and the expected Gateway version, and only the no-op update command is suppressed.Earlier revisions on this branch resolve the ClawHub target from ClawHub rather than assuming the host version exists there, preserve plugin API and minimum Gateway compatibility before suppressing drift, use the installation's recorded registry, and honor the configured update channel. The two diagnostic follow-ups at
bed372823a1(configured update-channel intent in post-upgrade probes, and the registry-confirmed target in Doctor output) were pushed by @vincentkoc on this branch.User Impact
openclaw doctorreports it as an informational finding with no fix hint,gateway status --deepexplains it outside the repair-failure surface, anddoctor --post-upgradestates that no release reaches the expected version yet. No surface offers an update command that cannot change anything.info, so it does not turn into an unfixabledoctor --lintfailure.Evidence
Head
5be45672ff43279896a24a01929805243e47c074. The PR head now matches this commit; the earlier mismatch was a stale PR record on GitHub, not a missing push, and it was resynced without rewriting history.Real CLI behavior on an isolated instance
Measured on 2026-09-15 against head
5be45672ff43279896a24a01929805243e47c074, Node 24.21.0 on Linux. The candidate CLI runs from the reviewed checkout through the repository's own tsx loader and reports itself asOpenClaw 2026.9.4 (5be4567). Each run uses its own state directory, its own config file and a synthetic workspace; channel, cron, Gmail, browser and canvas sidecars are disabled. Package metadata comes from the public ClawHub registry, so the observed versions are real published ones; no credentials are used. The host's own OpenClaw configuration, state and Gateway service were left untouched.1. Published package handoff, not seeded records
The real installer downloads and installs two published ClawHub packages into the isolated instance, and the installer itself writes the install index. Nothing is hand-seeded in this run.
The install records the installer persisted, which are the input the diagnostic actually reads:
{"pluginId":"diffs","source":"clawhub","spec":"clawhub:@openclaw/[email protected]", "clawhubPackage":"@openclaw/diffs","clawhubUrl":"https://clawhub.ai","clawhubChannel":"official"} {"pluginId":"lobster","source":"clawhub","spec":"clawhub:@openclaw/[email protected]", "clawhubPackage":"@openclaw/lobster","clawhubUrl":"https://clawhub.ai","clawhubChannel":"official"}Two honest notes on this run. The
lobsterinstall exits 1 and both plugins fail to load in a source checkout withTypeError: Cannot read properties of undefined (reading 'argvDirectories'), andlobsteradditionally collides with the bundledlobsterin the checkout'sdist/. Neither affects what is being proven here: both installs persist their records ("installation is saved"), and the drift diagnostic consumes install records rather than loaded plugin instances. I am not claiming the plugin runtime load path is green in this environment.2. Doctor rendering on that instance
@openclaw/diffsis installed at2026.9.2with a recorded exact pin, and ClawHub publishes2026.9.3: the stale-pin case.@openclaw/lobsteris installed at2026.9.3, which is the newest version ClawHub publishes, while the Gateway is2026.9.4: the registry-lag case.The same run with
--json:{ "probesRun": ["plugin.index_unavailable","plugin.entry_unresolved","plugin.manifest_drift","plugin.version_drift"], "findings": [ {"level":"warn","code":"plugin.version_drift","plugin":"diffs", "message":"Plugin diffs is 2026.9.2, but OpenClaw is 2026.9.4. Run `openclaw plugins update diffs`, then restart the Gateway."}, {"level":"warn","code":"plugin.version_drift","plugin":"lobster", "message":"Plugin lobster is 2026.9.3, but OpenClaw is 2026.9.4. The registry already serves 2026.9.3; no release reaches 2026.9.4 yet, so no update applies."} ] }3. The same instance on the parent commit, before this fix
The identical scenario, identical state seed, run against
bed372823a17(OpenClaw 2026.9.4 (bed3728)), on the stable channel:That is both P1s in real output. The stale pin gets no executable repair, and the registry-lag entry for
lobsteris absent from the report entirely rather than explained.4. Configured update channel reaching the probe
Only
update.channelin the isolated config file changes between these two runs; the instance, the install records and the registry are the same.On
betathe update owner selects@beta, which latest metadata cannot confirm, so both entries stay unresolved and neither offers a command. The configured channel therefore reaches the drift target resolution through the CLI, and the stable-channel results above are a property of the fix rather than of the channel default.Test-level evidence
New and updated cases in
src/plugins/plugin-version-drift.test.ts:2026.9.2, registry latest2026.9.3, Gateway2026.9.4. The registry is queried, the target resolves to2026.9.3, and the command isopenclaw plugins update whatsapp.2026.9.5against Gateway2026.9.4stays unresolved, and no registry request is made.registry-currentwithversion 2026.9.3andrequestedTarget 2026.9.4, and no update command.@betaspec on the stable channel, an unpinned spec on the beta channel, and a@latestspec on extended-stable all stay unresolved with no registry request.Rendered output:
src/commands/doctor-workspace-status.plugin-version-drift.test.tscovers the resolved, registry-current, and unresolved cases through the health findings and the note text. The registry-current case asserts severityinfo, no fix hint, noopenclaw plugins updatein the note, and no repair-failure wording.src/cli/daemon-cli/status.print.test.tsadds the registry-current case forgateway status --deep, asserting the explanation line and that nothing reaches the error surface.src/commands/doctor-post-upgrade.test.tsnow distinguishes the stable-channel case (registry reached, nothing newer published) from the beta and extended-stable cases (selector cannot be confirmed as latest).Local runs on this head:
vitest runoverplugin-version-drift,doctor-workspace-status.plugin-version-drift,doctor-post-upgrade,status.print,install-channel-specs, andplugins/update: 6 files, 409 passed, 1 skipped.tsc --noEmit -p tsconfig.core.json: no errors in any changed file.oxfmtandoxlinton the eight changed files: clean.pnpm check:import-cycles: 0 runtime value cycles, including the new import from the drift diagnostic into the update owner.pnpm check:max-lines-ratchet: OK.CI diagnosis and remaining qualification request (2026-09-15)
ClawSweeper revision 11 accepts the reviewed-head post-upgrade CLI observations, the before/after comparison, and configured-channel propagation as real evidence. It reports no actionable code or security findings, but explicitly keeps the published-updater handoff and managed-service diagnostics open.
check-lint-core-5failed in job 104540878450:extensions/codex/src/app-server/run-attempt.model-attribution.test.ts, duplicatethread/backgroundTerminals/listcase. This is present unchanged in that CI run's base, not introduced by this PR: both base54dc4a8988179748b8709ff17215fc2d6c9e3c40and merge candidate9945dfc25e0359e0b2181691e13061485ae23dd7have blob0e039e520f32aed6417cf6df3a610a69e85987e9, including the duplicate cases at lines 173 and 179. No unrelated test change is included here. Other CI jobs were still running when this note was added; the complete run is not claimed green.I also inspected this run's
dist-runtime-buildartifact. Its build identity is the CI merge commit9945dfc25e0359e0b2181691e13061485ae23dd7, not standalone reviewed head5be45672ff43; it contains runtime build outputs, not a validated installable candidate package. I have not mixed those outputs into the reviewed source or counted that download as upgrade proof.Remaining request for a package-capable isolated CI/maintainer runner: qualify published
[email protected]updating to a package containing this reviewed change, with a managed Gateway belonging entirely to the test environment. Install the stale pinned and registry-current plugin cases through the published CLI, retain those records through the actual updater handoff, then capture candidatedoctor,gateway status --deep, anddoctor --post-upgradeon stable and beta. Record the exact candidate commit/package identity, plugin enablement and install records before/after, exit codes, and rendered findings. Do not reseed the index after the update. Expected stale-pin and registry-lag findings are the ones shown above. No production data or credentials are needed. The existing evidence remains partial until that run is available.What This Does Not Solve
doctorworkspace-status health finding (severity: info,src/commands/doctor-workspace-status.ts) and the deepgateway statusline (src/cli/daemon-cli/status.print.ts) both reach the diagnostic through daemon status gathering, which binds itself to the default install identity and the loaded native Gateway service (src/cli/daemon-cli/status.gather.ts,useNativeServiceTargetContextandtargetServiceCommand). The state/config overrides used for this attempt did not isolate that service lookup:openclaw gateway status --deepreported the host's service instead. A complete test needs a separate managed-service environment, such as an isolated container or VM with its own service manager. I did not redirect the production service to the candidate. They remain covered by the unit and rendering tests listed above.npm packtarball installed into a prefix.pnpm build:packagerefuses under the memory budget available here:[tsdown-build] The resolved OpenClaw build heap is 2263MB, and a full build needs 4352MB, peaking near 4.7GB once rolldown's native allocations are counted. These are published-plugin installation observations, not a published OpenClaw updater-to-candidate handoff. The host is the reviewed source, launched asnode --import ./scripts/tsx.mjs src/index.ts, not the supported package-installation flow.import-meta-resolve,@openclaw/fs-safe/copy) are installed in the checkout used for the runs above, which is why the CLI starts at all, but I did not re-run the whole suite locally. Remote CI remains the gate.latest, an exact version above the target Gateway, or the extended-stable core cohort is reported as unresolved with its reason rather than resolved against latest metadata.