Skip to content

fix(plugins): preserve startup release during repair - #120085

Merged
vincentkoc merged 2 commits into
mainfrom
fix/plugin-startup-compat-host-version
Aug 7, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/plugin-startup-compat-host-version

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where gateway startup could repair version-bound plugins against the executing binary version instead of the compatibility version selected by the startup environment. After an update, that mismatch could select the wrong plugin release during startup convergence.

Why This Change Was Made

The shared post-core convergence owner now accepts an optional compatibility host version. Gateway startup resolves and passes its environment-selected version, while the explicit update path omits the override and continues using the candidate runtime version.

User Impact

Plugin repair during gateway startup stays aligned with the selected OpenClaw release. Explicit updates retain their existing candidate-version behavior.

Evidence

@vincentkoc vincentkoc self-assigned this Aug 7, 2026
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes commands Command implementations size: XS maintainer Maintainer-authored PR labels Aug 7, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

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

@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. P2 Normal backlog priority with limited blast radius. labels Aug 7, 2026
@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 9:31 PM ET / August 7, 2026, 01:31 UTC.

ClawSweeper review

What this changes

The PR passes gateway startup’s resolved compatibility version into plugin repair while preserving candidate-version behavior for explicit updates.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for normal maintainer landing: exact-head source is unchanged from the prior clean review, exact-head CI succeeded, and no actionable finding or rank-up move remains.

Priority: P2
Reviewed head: 4f8fe79a185c5e788649031fc8e2e74b9d502f3f

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A narrow source-proven repair with focused sibling coverage and successful exact-head CI.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored internal convergence repair is supported by focused regression coverage and successful exact-head CI; the external-contributor proof gate does not apply.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored internal convergence repair is supported by focused regression coverage and successful exact-head CI; the external-contributor proof gate does not apply.
Evidence reviewed 5 items Exact-head continuity: The exact head is an empty merge-context refresh whose tree is identical to the previously reviewed source commit.
Startup repair boundary: Startup preflight resolves its environment-selected compatibility version and passes it to the shared convergence owner; that owner forwards it into configured-plugin repair.
Explicit-update sibling contract: The explicit-update caller omits the optional override, so convergence retains VERSION for the candidate runtime; repair derives its core version from the resulting environment.
Findings None None.
Security None None.

How this fits together

Gateway startup runs doctor preflight and repairs configured plugin installs before continuing. Plugin repair uses the compatibility-host version to select a compatible plugin release, while explicit updates retain the candidate runtime version.

flowchart LR
  A[Gateway startup environment] --> B[Doctor preflight]
  B --> C[Resolve compatibility version]
  C --> D[Plugin convergence]
  D --> E[Configured plugin repair]
  F[Explicit update] --> D
  E --> G[Compatible plugin release]
Loading

Before merge

  • Complete next step (P2) - This maintainer-owned protected PR needs no repair dispatch; its exact head is clean and has successful CI.
Agent review details

Security

None.

PR surface

Source +3, Tests +44. Total +47 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 4 1 +3
Tests 2 44 0 +44
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 48 1 +47

Review metrics

Metric Value Why it matters
Production vs. tests production +4/-1 (net +3); tests +44/-0 The small production change adds the startup-to-owner version boundary, with focused coverage for both startup and explicit-update behavior.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor-config-preflight-plugin-verification.ts, migration/backfill/repair: src/commands/doctor-config-preflight.state-migration.test.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Land the narrow startup-only handoff through normal maintainer gates, keeping one convergence owner and the explicit-update default intact.

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

Yes—the pre-patch path overwrites an explicit startup compatibility version with VERSION before repair, and exact-head tests cover the corrected startup and update paths.

Is this the best way to solve the issue?

Yes—the shared convergence owner accepts the already-resolved startup fact, avoiding duplicate repair policy while preserving explicit-update semantics.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: This repairs a bounded plugin-selection regression during startup without evidence of broad runtime unavailability.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored internal convergence repair is supported by focused regression coverage and successful exact-head CI; the external-contributor proof gate does not apply.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Current-main blame attributes the surrounding post-core convergence and startup preflight implementation to this commit. (role: introduced current convergence and startup path; confidence: high; commits: 913b53ad8087; files: src/cli/update-cli/post-core-plugin-convergence.ts, src/commands/doctor-config-preflight-plugin-verification.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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-07T00:31:50.527Z sha 357f5d3 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-07T00:39:12.114Z sha 357f5d3 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review August 7, 2026 00:33
@vincentkoc
vincentkoc marked this pull request as draft August 7, 2026 00:54
@vincentkoc
vincentkoc marked this pull request as ready for review August 7, 2026 00:54
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 7, 2026
@vincentkoc
vincentkoc merged commit b8b878e into main Aug 7, 2026
124 checks passed
@vincentkoc
vincentkoc deleted the fix/plugin-startup-compat-host-version branch August 7, 2026 01:37
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to VACInc/openclaw that referenced this pull request Aug 7, 2026
* origin/main: (58 commits)
  fix(test): restart shared gateway after migration convergence (openclaw#120089)
  fix(ui): make active-run steering reliable (openclaw#120083)
  fix(telegram): preserve voice fallback text
  test(swift): preserve queued websocket frames (openclaw#120106)
  fix: reject missing oxlint shard selectors (openclaw#120096)
  test(channels): align prerelease fallback catalog spec (openclaw#120092)
  fix(node-cli): warn when systemd user lingering is disabled after install (openclaw#118430)
  fix(diagnostics): preserve CLI turn usage totals (openclaw#120100)
  fix(gateway): derive lock and coordinator paths from the resolved state dir (openclaw#120110)
  fix(release): isolate private Telegram QA harness (openclaw#120088)
  test(agents): exercise execution attribution ingress guard
  fix(gateway): defer attribution until admission succeeds
  refactor(agents): centralize exact execution attribution
  fix(google): accept base64url provider media (openclaw#116204)
  fix(plugins): warn when registerHook uses a typed hook event name (openclaw#118601)
  fix(canvas): serve Content-Length on A2UI HEAD responses (openclaw#117961)
  fix(gateway): make doctor dreaming timestamp comparators NaN-safe (openclaw#118749)
  fix(heartbeat): explain target-none skips (openclaw#119689)
  fix(security): stop recommending retired install-policy bypasses (openclaw#120011)
  fix(plugins): preserve startup release during repair (openclaw#120085)
  ...

# Conflicts:
#	CHANGELOG.md
#	src/config/sessions/session-accessor.sqlite-transcript-write.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 7, 2026
* fix(plugins): preserve startup compatibility version

* chore(ci): refresh merge context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS 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