Repository navigation
fix(update): let 2026.6 updaters finish plugin convergence again - #190857
Conversation
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.
|
🦞👀 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. |
|
Codex review: needs real behavior proof before merge. What this changesAllow 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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 optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No concrete authorization bypass was found, but the relaxed executor guard needs final-effect authority evidence. EvidenceSecurity concerns:
What I checked:
Likely related people:
PR surfaceSource +5, Tests +15. Total +20 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 11:41 PM ET / November 2, 2026, 04:41 UTC. |
|
Native proof on a Linux Crabbox lease (AWS, systemd user Gateway, published 2026.6.34 snapshot with the Gateway ready at update start,
The same day's native lanes from 10.9, 10.8, 10.7, 9.9, 9.36 ( |
|
Merged via squash.
|
…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]>
What Problem This Solves
Since #188978 (
6fd646e86cd), every update from the 2026.6 line to current main fails during post-core plugin convergence:2026.6.x updaters predate the update-run ledger. They start the post-core child with
OPENCLAW_UPDATE_POST_CORE=1but never setOPENCLAW_UPDATE_RUN_ID(verified in the published 2026.6.34dist).resumePostCoreUpdatetherefore takes its run-less branch, which has no executor fence, and the guard #188978 added toconvergePostCoreUpdatePluginsrefuses.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
withUpdatePluginCohortConfigCapturealready runs the operation directly when there is no run or fence. Exempting only that case (noopts.run, no run id in the environment, norequiresCohort) 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
afbe0a8e8f2(run 41381443817):update-migration-2026.6.34legacy-operator-statefails 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).update-command-plugins.persistence.test.tsfails on the base and passes with the fix; the run-bearing case still asserts the refusal. The file passes 18/18.$autoreviewscoped-clean; independentcodex execreview: no findings.