Skip to content

fix(update): let 2026.6 updaters finish plugin convergence again - #190857

Merged
steipete merged 1 commit into
mainfrom
codex/update-legacy-unrun-parent-convergence
Nov 2, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/update-legacy-unrun-parent-convergence

Conversation

@steipete

@steipete steipete commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Since #188978 (6fd646e86cd), every update from the 2026.6 line to current main fails during post-core plugin convergence:

[openclaw] Reason: Plugin cohort convergence requires its live outer update executor.

2026.6.x updaters predate the update-run ledger. They start the post-core child with OPENCLAW_UPDATE_POST_CORE=1 but never set OPENCLAW_UPDATE_RUN_ID (verified in the published 2026.6.34 dist). resumePostCoreUpdate therefore takes its run-less branch, which has no executor fence, and the guard #188978 added to convergePostCoreUpdatePlugins refuses.

User Impact

Users on the 2026.6 line can update to a release containing this fix again; plugin convergence runs as it did before #188978. These parents never had plugin-cohort rollback and still don't get it (#188978 documents that older parents are not backported). Run-bearing post-core children without an executor fence still refuse.

Why This Change Was Made

The fence requirement protects cohort recovery, which needs a run id and an outer executor. A run-less parent cannot supply either, and withUpdatePluginCohortConfigCapture already runs the operation directly when there is no run or fence. Exempting only that case (no opts.run, no run id in the environment, no requiresCohort) restores the shipped behavior without weakening the modern path. Rejected alternative: reverting #188978, which no longer applies cleanly because later work (#189624) builds on it.

Evidence

  • CI Update Migration, pinned to main afbe0a8e8f2 (run 41381443817): update-migration-2026.6.34 legacy-operator-state fails after 413 s with the message above. The same lane passed in scheduled run 40158661304 (2026-10-25, before fix: restore npm plugins when core updates roll back #188978) and failed in scheduled run 41269014814 (2026-11-01).
  • Regression test: the run-less legacy parent case in update-command-plugins.persistence.test.ts fails on the base and passes with the fix; the run-bearing case still asserts the refusal. The file passes 18/18.
  • $autoreview scoped-clean; independent codex exec review: no findings.
  • Native Linux Crabbox proof (2026.6.34 → main vs → this head): see the follow-up comment.

2026.6.x updaters never pass a run id to the post-core child, so they cannot provide an outer executor fence or a plugin cohort. #188978 made post-core convergence require that fence and broke every update from the 2026.6 line (update-migration-2026.6.34 legacy-operator-state). Run-less legacy parents keep plain convergence; run-bearing post-core children without a fence still refuse.
@clawsweeper

clawsweeper Bot commented Nov 2, 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 cli CLI command changes size: XS labels Nov 2, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@steipete
steipete marked this pull request as ready for review November 2, 2026 04:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T04:27:42.218845Z 5383db2 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Allow pre-ledger updaters to finish plugin convergence without an update executor while retaining executor requirements for run-bearing updates.

Example: A published 2026.6.34 updater starts the candidate post-core child without OPENCLAW_UPDATE_RUN_ID.

  • Before: Plugin convergence throws “Plugin cohort convergence requires its live outer update executor.”
  • After: The child proceeds through the existing plugin convergence owner without cohort recovery.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused patch has no identified correctness defect, but changed-path runtime and upgrade evidence is absent.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Users upgrading with a pre-ledger published updater cannot finish candidate plugin convergence.
Reason: Restoring a shipped upgrade path has clear value, and the maintainer-authored direction preserves the previously accepted legacy recovery limitation.

Regression provenance

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

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this PR open: current main retains the reported legacy-update failure, and the focused exception preserves the modern guard without an identified code defect.

Priority: P1
Reviewed head: 5383db24bce8e6424d0b492053d247ae96aba0e6

Before merge

  • Add real behavior proof - Authority-chain proof required: show the published 2026.6.34 updater completing plugin convergence on this head and a run-bearing child with missing or revoked authority rejected before package/index/config writes. The promised native follow-up is absent from the current discussion; the supplied regression uses mocked convergence and earlier PR campaigns exercise different candidates. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security concern: Verify the legacy exception at the write boundary - The exception admits executor-free convergence before package, index, and config effects. Source retains modern checks, but supplied proof does not exercise an authorized legacy completion alongside missing or revoked modern authority through those effects.
  • Resolve merge risk - The PR owner must establish that the executor-free legacy exception cannot let a run-bearing or revoked update publish plugin artifacts, installation records, or configuration.
  • 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

  • [medium] Verify the legacy exception at the write boundary — src/cli/update-cli/update-command-resume.ts:529

Tests

  • Missing end-to-end proof: Supply the promised 2026.6.34 before/after CLI upgrade evidence, modern unauthorized-write refusal, and fresh-install/latest-stable upgrade results with existing settings and data intact; redact credentials and private endpoints.
Agent review details

How this fits together

The candidate CLI receives post-core context from the installed updater, converges plugin packages and configuration, and returns completion evidence to its parent.

flowchart TD
 A[Installed updater] --> B[Candidate post-core CLI]
 B --> C[Run and executor checks]
 C --> D[Plugin lifecycle lease]
 D --> E[Plugin convergence]
 E --> F[Config and installed index]
 F --> G[Parent completion result]
Loading

Technical review

Best possible solution:

Retain this narrow compatibility exception in the shared convergence owner, with verified legacy upgrade completion and modern final-effect authority preservation.

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

The run-less resume branch reaches a guard that unconditionally rejects post-core execution on current main; the matching published-updater migration lane failed, but no target code was executed during this read-only review.

Is this the best way to solve the issue?

The exception is the smallest complete source fix: it reuses existing convergence and lease owners, restores the documented legacy contract, and leaves run-bearing and explicitly required-cohort cases guarded.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Verify final-effect authority (recommended)
    The PR owner should supply production-path evidence that legacy convergence succeeds while missing or revoked modern authority prevents package, index, and config writes.

Provenance checked

  • Post-core executor admission and parent-contract regression changes intended behavior with a stated reason (6fd646e: Retain plugin artifacts and matching settings for safe core rollback under the live outer update executor.)
  • Shared candidate convergence and propagated authority keeps the original intent (1232d3f: Run finalization in the candidate runtime and stop writes when the original owner or destination changes, while preserving older published updater completion contracts.)

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete authorization bypass was found, but the relaxed executor guard needs final-effect authority evidence.

Evidence

Security concerns:

  • [medium] Verify the legacy exception at the write boundary — src/cli/update-cli/update-command-resume.ts:529
    The exception admits executor-free convergence before package, index, and config effects. Source retains modern checks, but supplied proof does not exercise an authorized legacy completion alongside missing or revoked modern authority through those effects.
    Confidence: 0.88

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e1c2a0b adds src/cli/update-cli/update-command-resume.ts:78 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e1c2a0b476e1; files: src/cli/update-cli/update-command-resume.ts)
  • Vincent Koc: Raw commit 1232d3f adds src/cli/update-cli/update-command-resume.ts:171 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1232d3f13ec0; files: src/cli/update-cli/update-command-resume.ts)

PR surface

Source +5, Tests +15. Total +20 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 6 1 +5
Tests 1 27 12 +15
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 33 13 +20

Labels

Label changes:

  • add P1: The current candidate rejects post-core completion for published pre-ledger updaters, breaking an existing upgrade workflow.
  • add merge-risk: 🚨 security-boundary: The patch relaxes an executor admission condition before plugin and configuration side effects; final-effect authority separation needs proof.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P1: The current candidate rejects post-core completion for published pre-ledger updaters, breaking an existing upgrade workflow.
  • merge-risk: 🚨 security-boundary: The patch relaxes an executor admission condition before plugin and configuration side effects; final-effect authority separation needs proof.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

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

  • Publish the promised before/after legacy CLI upgrade trace with retained settings and data.
  • Add final-effect proof that missing or revoked modern executor authority prevents plugin, index, and config writes.

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 1, 2026, 11:41 PM ET / November 2, 2026, 04:41 UTC.

@steipete

steipete commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Native proof on a Linux Crabbox lease (AWS, systemd user Gateway, published 2026.6.34 snapshot with the Gateway ready at update start, openclaw update --yes --tag <tarball> run by the installed 2026.6.34 updater):

Target Result
main afbe0a8e8f2 rc=1 after 74 s: Plugin cohort convergence requires its live outer update executor. The new package is installed but the Gateway is left stopped (unit inactive, /readyz refused).
this head 5383db24bce rc=0 after 100 s; unit active, /readyz ready with coreReady: true, CLI and Gateway on the new build.

The same day's native lanes from 10.9, 10.8, 10.7, 9.9, 9.36 (--channel stable) and 9.5 to main all pass, so the regression is limited to run-less (2026.6.x) parents.

@steipete
steipete merged commit 88177be into main Nov 2, 2026
206 of 207 checks passed
@steipete
steipete deleted the codex/update-legacy-unrun-parent-convergence branch November 2, 2026 04:52
@steipete

steipete commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
…penclaw#190857)

2026.6.x updaters never pass a run id to the post-core child, so they cannot provide an outer executor fence or a plugin cohort. openclaw#188978 made post-core convergence require that fence and broke every update from the 2026.6 line (update-migration-2026.6.34 legacy-operator-state). Run-less legacy parents keep plain convergence; run-bearing post-core children without a fence still refuse.

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

Labels

cli CLI command changes merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant