Skip to content

fix: keep bundled plugins with their updated core release - #205952

Merged
obviyus merged 2 commits into
mainfrom
update-fleet-plugin-owner
Nov 26, 2026
Merged

obviyus merged 2 commits into
mainfrom
update-fleet-plugin-owner

Conversation

@obviyus

@obviyus obviyus commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

A same-version Git update can leave bundled plugins pinned to an older release directory. The new core starts, but post-update plugin activation rejects the stale installation claim and can abort the reload batch.

Related: #204866, #205655.

User Impact

Packaged bundled plugins follow the selected core without a second path-install owner. User settings and explicit local/source-checkout selections stay intact; this does not uninstall plugins or delete their code. Existing registered Git-plugin peer-link repair stays in its current owner.

No schema, stored-record shape, launcher format, or public plugin API changes.

Why This Change Was Made

The existing stale-record owner ran after channel synchronization and required a different package version. Retire proven foreign compiled-bundle records before planning, using the existing physical ownership policy instead of version and path-string guesses. Dev synchronization also stops creating redundant records for packaged bundles. The late competing prune operation and its obsolete wrapper are removed.

Production code on this PR's three runtime files, measured with tokei against 81bc5ec79fe4: 848 → 829 lines (−19). Net test lines: +21. Record retirement and development-channel synchronization use one loop.

Evidence

  • Base regression: 9 intended assertion failures / 8 passes on 81bc5ec79fe4, covering same-version foreign bundles and dev image ownership.
  • Repaired source: 146 tests / 13 focused files pass in 295.98 s; core/plugin/Doctor type lanes, scoped lint and format checks pass.
  • Full build 327 s; canonical package and tarball integrity check 147 s, passed on the same source: https://crabbox.openclaw.ai/portal/runs/run_dc18498ac0ce67bf255a724603a87da8 . Normal transport carrier 52ac74c7ea423bf3ba7dc40fa7ede4f87d3a923e; qualified tree ab0be1d46d2b4479f5d61dab4caf3732957a006e is identical to committed head ed2da82d62dccacc41f779b61341714a98677c32. The build stamp names the carrier, not the eventual PR SHA.
  • Linux product proof is incomplete: published 2026.11.10 → first Git release → resident predecessor and predecessor plugin completion passed, but the harness's diagnostic plugin locator was refused before candidate activation. No candidate retirement/reload pass or zero-stale-record result is claimed. Raw failure and partial proof: fix: keep bundled plugins with their updated core release #205952 (comment) . Native profile was stopped/uninstalled, exact AWS lease released with --wait. The final proposed retry was cancelled before allocation under the direction to stop adding proof machinery.
  • Final head 075c60763f62537163644c935f22c166329cb419 only folds the two adjacent record loops into one, preserving updated source-owned records before the final retirement filter. Owner red/green tests and the clean review above qualify the behavior before this loop consolidation; CI runs on the final head. Main's accepted live follow-up is the next Peanutto nightly.

- Retire foreign compiled-bundle install records before channel planning, independent of package version.
- Keep packaged bundles image-owned while preserving explicit links and source checkout ownership.
- Remove the late competing prune path and cover fresh reload ownership at the channel boundary.
@clawsweeper

clawsweeper Bot commented Nov 26, 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 docs Improvements or additions to documentation commands Command implementations size: M labels Nov 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:auth-provider Auth, provider routing, model choice, or SecretRef resolution may break. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 26, 2026
@clawsweeper

clawsweeper Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Retire obsolete bundled-plugin install records before update planning and keep packaged bundles owned by their core release.

Example: A Git update replaces one 2026.11.10 release directory with another while brave retains its previous bundled path.

  • Before: The matching version prevents stale-record cleanup, leaving a competing installation claim.
  • After: Channel synchronization removes the proven obsolete claim so the selected release supplies brave.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The source change is coherent and has focused regression coverage, but required product-flow and upgrade compatibility proof is outstanding.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A same-version Git update can leave obsolete bundled-plugin installation claims that interfere with post-update activation.
Reason: The maintainer-authored direction restores release ownership without new configuration or public APIs and preserves the existing local-selection boundaries.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this maintainer-authored PR addresses a concrete update ownership problem that remains on current main; the pinned diff has no definite introduced defects.

Reviewed head: ed2da82d62dccacc41f779b61341714a98677c32

Before merge

  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Supply the pending published-2026.11.10 upgrade and same-version Git release run showing successful ownership/reload and intact settings, explicit links, and persisted records; redact credentials and private endpoints.
Agent review details

How this fits together

Plugin channel synchronization consumes installed records and discovered bundles, then passes reconciled ownership into package maintenance, Doctor convergence, persistence, and runtime reload.

flowchart TD
A[Core release selected] --> B[Discover bundled plugins]
B --> C[Reconcile install records]
C --> D[Plan package maintenance]
D --> E[Doctor convergence]
E --> F[Publish records]
F --> G[Reload changed plugins]
Loading

Technical review

Best possible solution:

Keep retirement at channel planning under the existing physical ownership policy and complete the pending upgrade qualification.

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

Current main requires differing nonempty versions before detecting stale compiled-bundle records and performs pruning after cohort planning; the added regressions exercise the same-version ownership path, with base failures reported but no product reproduction inspected.

Is this the best way to solve the issue?

The change is focused: it reuses existing ownership checks, retires stale claims before their consumers run, and removes the superseded late prune operation.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Version-gated stale compiled-bundle detection changes intended behavior with a stated reason (4a360ac: Remove obsolete compiled shadows while preserving current, same-version, versionless, source-checkout, and arbitrary local records.)
  • Packaged bundled load paths keeps the original intent (76aabd1: Avoid update/Doctor configuration churn caused by redundant packaged-bundle load paths.)
  • Shared post-core convergence owner keeps the original intent (397f298: Centralize convergence for update and startup callers while preserving exact-pin semantics.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Jason (Json): Raw commit 4a360ac adds src/plugins/stale-local-bundled-plugin-install-records.ts:64 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4a360ac1cc18; files: src/plugins/stale-local-bundled-plugin-install-records.ts)
  • Ayaan Zaidi: Raw commit 76aabd1 adds src/plugins/update-channel.ts:119 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 76aabd1052a3; files: src/plugins/update-channel.ts)
  • Peter Steinberger: Raw commit a2eb27c adds src/plugins/update-channel.ts:79 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a2eb27c03a5d; files: src/plugins/update-channel.ts)

PR surface

Source -19, Tests +21, Docs +7. Total +9 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 37 56 -19
Tests 4 141 120 +21
Docs 1 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 185 176 +9

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The accepted ownership change retires existing persisted install records, including same-version records; tests alone do not settle existing-install upgrade behavior.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.

Label justifications:

  • merge-risk: 🚨 compatibility: The accepted ownership change retires existing persisted install records, including same-version records; tests alone do not settle existing-install upgrade behavior.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Provide the pending stable-upgrade and same-version reload evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 26, 2026, 7:57 AM ET / 12:57 UTC.

@obviyus

obviyus commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

Linux Git product proof is PARKED, not passed. The final corrected sibling-/work layout passed disjoint-path assertions, public installation-root selection, authenticated baseline/native service checks, the published 2026.11.10 → first Git release → resident predecessor hops, recorded predecessor plugin completion, and legitimate brave/codex installs. Before the candidate update, the diagnostic-plugin fixture was refused: unsupported git: plugin spec (a local git: locator). Candidate C and the changed retirement path were never reached. No locator repair or further D retry is being attempted. CI and the exact-head local review remain green; this product gate is unproven. Failure archive SHA256 cbe642c72ae66557aef5194211f726377acaa5648876662f3b490e9cb7af7c21; native stop/uninstall exited 0, AWS exact lease release is underway.

- Use one pass for record retirement and development-channel synchronization.
- Preserve source-owned links and filter the final updated install map once.
@obviyus
obviyus merged commit 05c15ac into main Nov 26, 2026
126 checks passed
@obviyus
obviyus deleted the update-fleet-plugin-owner branch November 26, 2026 15:04
@obviyus

obviyus commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as 05c15ac. A Git-release update now retires bundled-plugin install records that still point into an earlier release's directory, inside the existing dev-channel loop, before activation. So the plugins reload from the release that serves, and do not fail with 'Plugin brave changed after the installation batch' (fleet run 4de610c8). Production 848 → 829 lines (−19). Proof: the owner tests (146 in 13 files) fail on main and pass here; CI is green; the review is clean. The full Linux candidate run did not finish because of harness setup failures, so Peanutto's next nightly is the live check.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 27, 2026
…05952)

## What Problem This Solves

A same-version Git update can leave bundled plugins pinned to an older release directory. The new core starts, but post-update plugin activation rejects the stale installation claim and can abort the reload batch.

Related: openclaw#204866, openclaw#205655.

## User Impact

Packaged bundled plugins follow the selected core without a second path-install owner. User settings and explicit local/source-checkout selections stay intact; this does not uninstall plugins or delete their code. Existing registered Git-plugin peer-link repair stays in its current owner.

No schema, stored-record shape, launcher format, or public plugin API changes.

## Why This Change Was Made

The existing stale-record owner ran after channel synchronization and required a different package version. Retire proven foreign compiled-bundle records before planning, using the existing physical ownership policy instead of version and path-string guesses. Dev synchronization also stops creating redundant records for packaged bundles. The late competing prune operation and its obsolete wrapper are removed.

Production code on this PR's three runtime files, measured with `tokei` against `158fa1971e14`: **848 → 829 lines (−19)**. Net test lines: **+21**. Record retirement and development-channel synchronization use one loop.

## Evidence

- Base regression: **9 intended assertion failures / 8 passes** on `158fa1971e14`, covering same-version foreign bundles and dev image ownership.
- Repaired source: **146 tests / 13 focused files** pass in **295.98 s**; core/plugin/Doctor type lanes, scoped lint and format checks pass.
- Full build **327 s**; canonical package and tarball integrity check **147 s**, passed on the same source: https://crabbox.openclaw.ai/portal/runs/run_dc18498ac0ce67bf255a724603a87da8 . Normal transport carrier `52ac74c7ea423bf3ba7dc40fa7ede4f87d3a923e`; qualified tree `ab0be1d46d2b4479f5d61dab4caf3732957a006e` is identical to committed head `ed2da82d62dccacc41f779b61341714a98677c32`. The build stamp names the carrier, not the eventual PR SHA.
- Linux product proof is incomplete: published `2026.11.10` → first Git release → resident predecessor and predecessor plugin completion passed, but the harness's diagnostic plugin locator was refused before candidate activation. No candidate retirement/reload pass or zero-stale-record result is claimed. Raw failure and partial proof: openclaw#205952 (comment) . Native profile was stopped/uninstalled, exact AWS lease released with `--wait`. The final proposed retry was cancelled before allocation under the direction to stop adding proof machinery.
- Final head `075c60763f62537163644c935f22c166329cb419` only folds the two adjacent record loops into one, preserving updated source-owned records before the final retirement filter. Owner red/green tests and the clean review above qualify the behavior before this loop consolidation; CI runs on the final head. Main's accepted live follow-up is the next Peanutto nightly.

Co-authored-by: Ayaan Zaidi <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 28, 2026
## What Problem This Solves

A same-version Git update can leave bundled plugins pinned to an older release directory. The new core starts, but post-update plugin activation rejects the stale installation claim and can abort the reload batch.

Related: #204866, #205655.

## User Impact

Packaged bundled plugins follow the selected core without a second path-install owner. User settings and explicit local/source-checkout selections stay intact; this does not uninstall plugins or delete their code. Existing registered Git-plugin peer-link repair stays in its current owner.

No schema, stored-record shape, launcher format, or public plugin API changes.

## Why This Change Was Made

The existing stale-record owner ran after channel synchronization and required a different package version. Retire proven foreign compiled-bundle records before planning, using the existing physical ownership policy instead of version and path-string guesses. Dev synchronization also stops creating redundant records for packaged bundles. The late competing prune operation and its obsolete wrapper are removed.

Production code on this PR's three runtime files, measured with `tokei` against `81bc5ec79fe4`: **848 → 829 lines (−19)**. Net test lines: **+21**. Record retirement and development-channel synchronization use one loop.

## Evidence

- Base regression: **9 intended assertion failures / 8 passes** on `81bc5ec79fe4`, covering same-version foreign bundles and dev image ownership.
- Repaired source: **146 tests / 13 focused files** pass in **295.98 s**; core/plugin/Doctor type lanes, scoped lint and format checks pass.
- Full build **327 s**; canonical package and tarball integrity check **147 s**, passed on the same source: https://crabbox.openclaw.ai/portal/runs/run_dc18498ac0ce67bf255a724603a87da8 . Normal transport carrier `52ac74c7ea423bf3ba7dc40fa7ede4f87d3a923e`; qualified tree `ab0be1d46d2b4479f5d61dab4caf3732957a006e` is identical to committed head `ed2da82d62dccacc41f779b61341714a98677c32`. The build stamp names the carrier, not the eventual PR SHA.
- Linux product proof is incomplete: published `2026.11.10` → first Git release → resident predecessor and predecessor plugin completion passed, but the harness's diagnostic plugin locator was refused before candidate activation. No candidate retirement/reload pass or zero-stale-record result is claimed. Raw failure and partial proof: #205952 (comment) . Native profile was stopped/uninstalled, exact AWS lease released with `--wait`. The final proposed retry was cancelled before allocation under the direction to stop adding proof machinery.
- Final head `075c60763f62537163644c935f22c166329cb419` only folds the two adjacent record loops into one, preserving updated source-owned records before the final retirement filter. Owner red/green tests and the clean review above qualify the behavior before this loop consolidation; CI runs on the final head. Main's accepted live follow-up is the next Peanutto nightly.

Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit 05c15ac)
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
## What Problem This Solves

A same-version Git update can leave bundled plugins pinned to an older release directory. The new core starts, but post-update plugin activation rejects the stale installation claim and can abort the reload batch.

Related: #204866, #205655.

## User Impact

Packaged bundled plugins follow the selected core without a second path-install owner. User settings and explicit local/source-checkout selections stay intact; this does not uninstall plugins or delete their code. Existing registered Git-plugin peer-link repair stays in its current owner.

No schema, stored-record shape, launcher format, or public plugin API changes.

## Why This Change Was Made

The existing stale-record owner ran after channel synchronization and required a different package version. Retire proven foreign compiled-bundle records before planning, using the existing physical ownership policy instead of version and path-string guesses. Dev synchronization also stops creating redundant records for packaged bundles. The late competing prune operation and its obsolete wrapper are removed.

Production code on this PR's three runtime files, measured with `tokei` against `81bc5ec79fe4`: **848 → 829 lines (−19)**. Net test lines: **+21**. Record retirement and development-channel synchronization use one loop.

## Evidence

- Base regression: **9 intended assertion failures / 8 passes** on `81bc5ec79fe4`, covering same-version foreign bundles and dev image ownership.
- Repaired source: **146 tests / 13 focused files** pass in **295.98 s**; core/plugin/Doctor type lanes, scoped lint and format checks pass.
- Full build **327 s**; canonical package and tarball integrity check **147 s**, passed on the same source: https://crabbox.openclaw.ai/portal/runs/run_dc18498ac0ce67bf255a724603a87da8 . Normal transport carrier `52ac74c7ea423bf3ba7dc40fa7ede4f87d3a923e`; qualified tree `ab0be1d46d2b4479f5d61dab4caf3732957a006e` is identical to committed head `ed2da82d62dccacc41f779b61341714a98677c32`. The build stamp names the carrier, not the eventual PR SHA.
- Linux product proof is incomplete: published `2026.11.10` → first Git release → resident predecessor and predecessor plugin completion passed, but the harness's diagnostic plugin locator was refused before candidate activation. No candidate retirement/reload pass or zero-stale-record result is claimed. Raw failure and partial proof: #205952 (comment) . Native profile was stopped/uninstalled, exact AWS lease released with `--wait`. The final proposed retry was cancelled before allocation under the direction to stop adding proof machinery.
- Final head `075c60763f62537163644c935f22c166329cb419` only folds the two adjacent record loops into one, preserving updated source-owned records before the final retirement filter. Owner red/green tests and the clean review above qualify the behavior before this loop consolidation; CI runs on the final head. Main's accepted live follow-up is the next Peanutto nightly.

Co-authored-by: Ayaan Zaidi <[email protected]>

(cherry picked from commit 05c15ac)

Release adaptation: Retain bundled selection at the existing channel update and Doctor convergence owners; adapt documentation and assert the complete stable install-record set instead of importing the absent main reload batch. Existing discovered-owner and Doctor convergence assertions remain.

Companion audit: PR #205952 is selected; keep bundled update/Doctor consumer changes together and preserve explicit links and npm installations.

Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation impact:auth-provider Auth, provider routing, model choice, or SecretRef resolution may break. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant