Repository navigation
fix: let updates finish when plugins change no config and openclaw.json is read-only - #201331
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. |
When plugin convergence after a core update changes no config path, publish the install records without writing openclaw.json. A config file the update cannot replace, such as a link to a provisioned read-only file, no longer fails an update whose plugin work converged, and the file keeps its bytes. A real config change against such a file is still refused. The update report for a healthy Gateway with unfinished maintenance now names `openclaw gateway stop --force`, the command that works in a non-interactive shell and the one repair names. Adds the published-driver-plugin-publication Docker lane: a published 2026.11.5 updater's first update with two official npm plugins and a symlinked read-only config.
7152694 to
7dacf06
Compare
|
Codex review: needs changes before merge. What this changesThis PR publishes plugin install records without rewriting unchanged configuration and corrects the managed-service stop command in recovery guidance. Example: Upgrade from openclaw 2026.11.5 with zalo and voice-call installed and openclaw.json symlinked to a provisioned read-only file.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR addresses a source-confirmed update failure, but a retained finalizer test fails because it still requires the config write this change intentionally removes. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe CLI updater feeds plugin convergence results into the existing install-index and config publication owner, then refreshes plugin metadata before final update verification. flowchart TD
A[Update command] --> B[Plugin convergence]
B --> C[Changed config paths]
C --> D[Records-only commit]
C --> E[Config and records commit]
D --> F[Plugin registry refresh]
E --> F
F --> G[Update verification]
Technical reviewBest possible solution: Keep the existing records-only publication owner and config-write refusals, and update the finalizer regression to verify publication from the fresh Doctor snapshot without requiring a config rewrite. Do we have a high-confidence way to reproduce the issue? Main's unconditional config publication and explicit symlink refusal establish the reported failure path; this read-only review did not execute the reproduction. Is this the best way to solve the issue? Skipping an empty config write at post-core publication fixes the cause using an existing persistence owner, preserves real-change refusals, and avoids changing exception policy or adding configuration. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 24c2e742bb0f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +82, Tests +246, Docs +11, Config +1, Other +439. Total +779 across 13 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
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 18, 2026, 11:32 AM ET / 16:32 UTC. |
…y-plugin-config-write
…ig path Check the config path proof captured for the update before and after the records-only publication, so a re-pointed config link cannot receive records planned for another config. The published-driver cell now pins its baseline plugin versions through a fixture registry and requires readable update history that names the update's own run.
…y-plugin-config-write
…cell Give the lane its own artifact directory, read readiness only from a successful probe in this run, bound fixture fetches by the cell deadline, and add a refused-channel-change mode: a real config write against the read-only config still fails the update, and the report names a Gateway stop that works unattended.
…y-plugin-config-write
…default The negative control now requires the symlink refusal in post-update verification, the wrapper selects the plugin publication cell's artifact directory with its entry point, and the plugin observation is named after the local inventory it reads.
…he refused control's plugins
…the config link itself
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…on is read-only (openclaw#201331) * fix(update): publish plugin records without an empty config write When plugin convergence after a core update changes no config path, publish the install records without writing openclaw.json. A config file the update cannot replace, such as a link to a provisioned read-only file, no longer fails an update whose plugin work converged, and the file keeps its bytes. A real config change against such a file is still refused. The update report for a healthy Gateway with unfinished maintenance now names `openclaw gateway stop --force`, the command that works in a non-interactive shell and the one repair names. Adds the published-driver-plugin-publication Docker lane: a published 2026.11.5 updater's first update with two official npm plugins and a symlinked read-only config. * test(e2e): record the published-driver plugin cell before asserting * test(update): keep the post-Doctor publication check on a real config change * fix(update): bind records-only plugin publication to the planned config path Check the config path proof captured for the update before and after the records-only publication, so a re-pointed config link cannot receive records planned for another config. The published-driver cell now pins its baseline plugin versions through a fixture registry and requires readable update history that names the update's own run. * test(e2e): isolate and bound the published-driver plugin publication cell Give the lane its own artifact directory, read readiness only from a successful probe in this run, bound fixture fetches by the cell deadline, and add a refused-channel-change mode: a real config write against the read-only config still fails the update, and the report names a Gateway stop that works unattended. * test(e2e): pin the refused channel write and the cell's own artifact default The negative control now requires the symlink refusal in post-update verification, the wrapper selects the plugin publication cell's artifact directory with its entry point, and the plugin observation is named after the local inventory it reads. * test(e2e): default the plugin publication cell to a release and pin the refused control's plugins * test(e2e): stamp lane plugin fixtures with the core target and check the config link itself
* improve(ci): avoid duplicate release source guard scans * fix(ci): classify recovery browser test server ownership (#200402) (cherry picked from commit a62e4e1) * fix(ci): restore package harness startup Copy the runtime process dependency manifest into the dependency-free packaging fixture so the CLI reaches argument validation. The existing startup assertion continues to reject missing modules. (cherry picked from commit 84262af) * test(facetime): preserve child process exports in audio fixture (#200419) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 36549cb) * test(browser): align fixtures with navigation and CLI contracts (#200428) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit d0daf88) * fix: restore Codex qualification fixture contracts (#200450) * fix: restore Codex run-attempt qualification coverage Use the complete typed transcript recorder fixtures and assert post-acceptance submission after prompt persistence, matching #199695. No production behavior or timeout changes. Co-authored-by: RomneyDa <[email protected]> * test: align Codex refresh callback fixtures Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 8f0d03f) * fix(crabbox): join heartbeat command cleanup before retirement (#200466) (cherry picked from commit 6247dc4) * fix(agents): retain ambiguous completed-answer receipts * fix(qa): ignore workspace context when detecting continuation --------- Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 60e0e21) Release adaptation: Preserve baseline authored-request continuation classifier and extractToolOutput import; newer #201244 behavior already exists. Apply runtime-context split and regression without downgrading it.: Backport review: #201130 selected by sibling; #201331 and #198760 are independent package script changes. #201244 classifier already present-equivalent on baseline.: (cherry picked from commit ad2ae0e0e2bf242ab0df9f9ca29f4f848caf478c)
…on is read-only (#201331) * fix(update): publish plugin records without an empty config write When plugin convergence after a core update changes no config path, publish the install records without writing openclaw.json. A config file the update cannot replace, such as a link to a provisioned read-only file, no longer fails an update whose plugin work converged, and the file keeps its bytes. A real config change against such a file is still refused. The update report for a healthy Gateway with unfinished maintenance now names `openclaw gateway stop --force`, the command that works in a non-interactive shell and the one repair names. Adds the published-driver-plugin-publication Docker lane: a published 2026.11.5 updater's first update with two official npm plugins and a symlinked read-only config. * test(e2e): record the published-driver plugin cell before asserting * test(update): keep the post-Doctor publication check on a real config change * fix(update): bind records-only plugin publication to the planned config path Check the config path proof captured for the update before and after the records-only publication, so a re-pointed config link cannot receive records planned for another config. The published-driver cell now pins its baseline plugin versions through a fixture registry and requires readable update history that names the update's own run. * test(e2e): isolate and bound the published-driver plugin publication cell Give the lane its own artifact directory, read readiness only from a successful probe in this run, bound fixture fetches by the cell deadline, and add a refused-channel-change mode: a real config write against the read-only config still fails the update, and the report names a Gateway stop that works unattended. * test(e2e): pin the refused channel write and the cell's own artifact default The negative control now requires the symlink refusal in post-update verification, the wrapper selects the plugin publication cell's artifact directory with its entry point, and the plugin observation is named after the local inventory it reads. * test(e2e): default the plugin publication cell to a release and pin the refused control's plugins * test(e2e): stamp lane plugin fixtures with the core target and check the config link itself (cherry picked from commit 5242bce) Co-authored-by: RomneyDa <[email protected]>
…on is read-only (openclaw#201331) * fix(update): publish plugin records without an empty config write When plugin convergence after a core update changes no config path, publish the install records without writing openclaw.json. A config file the update cannot replace, such as a link to a provisioned read-only file, no longer fails an update whose plugin work converged, and the file keeps its bytes. A real config change against such a file is still refused. The update report for a healthy Gateway with unfinished maintenance now names `openclaw gateway stop --force`, the command that works in a non-interactive shell and the one repair names. Adds the published-driver-plugin-publication Docker lane: a published 2026.11.5 updater's first update with two official npm plugins and a symlinked read-only config. * test(e2e): record the published-driver plugin cell before asserting * test(update): keep the post-Doctor publication check on a real config change * fix(update): bind records-only plugin publication to the planned config path Check the config path proof captured for the update before and after the records-only publication, so a re-pointed config link cannot receive records planned for another config. The published-driver cell now pins its baseline plugin versions through a fixture registry and requires readable update history that names the update's own run. * test(e2e): isolate and bound the published-driver plugin publication cell Give the lane its own artifact directory, read readiness only from a successful probe in this run, bound fixture fetches by the cell deadline, and add a refused-channel-change mode: a real config write against the read-only config still fails the update, and the report names a Gateway stop that works unattended. * test(e2e): pin the refused channel write and the cell's own artifact default The negative control now requires the symlink refusal in post-update verification, the wrapper selects the plugin publication cell's artifact directory with its entry point, and the plugin observation is named after the local inventory it reads. * test(e2e): default the plugin publication cell to a release and pin the refused control's plugins * test(e2e): stamp lane plugin fixtures with the core target and check the config link itself (cherry picked from commit 5242bce) Release adaptation: Adapted existing compensated install-record owner with beforePersistentEffect forwarding. Preserved target and authority guards; added only new source regressions and existing cohort support imports. Omitted absent sourceSnapshot API and new Docker workflow. Corrected malformed import insertion caught by formatter before capture. Final simplification removes unavailable automatic-cohort fixture imports and tests; preserves baseline-owned archive-record regression boundaries. Co-authored-by: RomneyDa <[email protected]>
…on is read-only (#201331) Baseline adaptation: Use the baseline records-only owner and its verification/compensation hook, retain Nix and path refusal, and reject real edits on a provisioned config link. (cherry picked from commit 5242bce) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
When
openclaw.jsonis a file the updater may not replace, such as a link to a provisioned read-only file, a core update with official npm plugins installed reportsfailed(post-update-failed) and tells you to stop the Gateway and runopenclaw update repair. That happens even though the update finished: the new core serves,/readyzis 200, and both plugins are installed at their new versions (install records, packages on disk, and the localplugins listinventory). The next plainopenclaw updatethen saysalready-currentand leaves the failed record in place. The failure report's instruction,openclaw gateway stop, also refuses in a non-interactive shell unless you add--force.User Impact
An update whose plugin work changes no configuration now succeeds on a config file it cannot write, and leaves that file byte-for-byte unchanged. A plugin update that does need a config change is still refused on such a file, exactly as before. When an update does leave maintenance unfinished, the report now names
openclaw gateway stop --force(for the managed service), the same commandopenclaw update repairnames.Why This Change Was Made
After plugin convergence, the updater published the plugin install records together with a config-file write, even when convergence had changed no config path. With nothing to write, that write only restamped the file, and a refused write failed an otherwise complete update. Now, when no config path changed, the updater publishes the install records alone through the existing records-only commit and skips the config write.
Root cause, and the hypothesis it replaced
captureConfigRootWriteTarget(src/config/io.write-safety.ts), reached from the publication'stransformConfigFileWithRetryinupdatePluginsAfterCoreUpdateWithLease. The error is a non-retryableConfigMutationConflictError, withpublishing: true,cohort: false,configChanged: falseandchangedPaths: []. The install records were already at the new versions before publication started, because without a cohort the plugin updater commits them plugin by plugin. So the publication's rollback had nothing to restore, and the state was consistent.pluginConvergenceFailureBlocksUpdatetreats a refused config write as blocking, and so doesstage.publishing. Both are deliberate (fix(update): a plugin step that throws after a core update rolls the whole update back #200507) and documented as never owed. Owing without a cohort would not change the outcome. This PR leaves both rules alone.updatePluginsAfterCoreUpdateWithLease. The new branch lives insrc/cli/update-cli/update-command-plugin-records.ts, which only that owner imports.assertConfigPathForWrite, the same check the config-write path runs), both before deciding and after the index write. So a config link re-pointed to another file mid-update fails the publication with "config target changed since last load", as a write would, and its records are not kept. It runs the samebeforeCommitand recovery authority checks before the index write. After the write it re-reads the config: if the config no longer reads as valid, the index write is restored and the phase reports the existingplugin-config-conflictdeferral. A valid unrelated edit in that window is kept, as the config-write path keeps it.recordspublication the same way on both branches. No config publication is recorded when no config was written, so a later rollback leaves the file alone; a written config is still restored.plugins.installsno longer reads as valid on main (it is rejected as a retired field), so a records-only branch for it is unreachable and none is kept.Behavior change for main-to-main updates
When plugin convergence changes no config path, the config file is no longer rewritten. That means no
meta.lastTouchedVersionrestamp, no backup rotation and no config-audit row for that no-op. I checked every reader ofmeta.lastTouchedVersion, and none needs this write:persistValidatedDowngradeConfig, which restamps a downgrade on its own;An update that changes no plugins already never reached this write, so a stamp the update did not refresh was already a normal state.
Update behavior for published drivers
The fix lives in the candidate, so it applies on the first update from published updaters. With migrated state, 2026.11.5 hands finalization to the candidate's
update-migrated-finalizeworker, and the candidate's own plugin publication runs there with no cohort; with this change it no longer writes the config. The published parent accepts the worker's result and keeps the candidate's terminal record. No marker, schema, protocol, config key or stored field changes.OPENCLAW_CONFIG_READONLY=1is unaffected: both 2026.11.5 and main refuseopenclaw updateup front in that mode, before any staging (observed: 2026.11.5 exits in 1.3 s with the read-only refusal).Evidence
End-to-end proof, in words. This is a real install driven by a real published updater, not a seeded fixture. In a disposable Docker container,
npm install -g [email protected]installs the published release from the npm registry.openclaw doctor --fixseeds state,openclaw plugins installinstalls the real official packages@openclaw/zaloand@openclaw/voice-callfrom npm, andopenclaw gateway installruns the Gateway as a managed service. Thenopenclaw.jsonbecomes a link to a read-only file. The installed 2026.11.5openclaw updatecommand then updates to a package cut from the candidate, through its shipped entry point, with no test hooks. The future plugin versions are the published 2026.11.5 packages restamped with a newer version and served from a local npm registry that proxies everything else to npmjs.org.After the update, the cell checks the shipped surfaces:
--jsonresult and its run record;openclaw update status --json;/readyzandopenclaw gateway probe, for the serving version;openclaw plugins list --json(the local plugin inventory, not a query of the running Gateway), and each plugin's install record against its package on disk;Then it removes the fault and runs a plain
openclaw updateagain. On the base, the published updater's update exits 1 and recordsfailed. On the head, it exits 0 and recordssucceeded, the Gateway serves the new version with/readyz200, and the local plugin inventory lists both plugins as loaded at the new version. A negative-control run of the same cell also requests another update channel, which is a real config write. That write is still refused end to end, and the failure report from the shipped CLI names the workinggateway stop --forcecommand.Red, green and negative-control recordings
All three recordings run the same lane as committed: published
[email protected], the two official npm plugins, andopenclaw.jsona link to a read-only file. Each first update goes to a future core cut from the candidate. Each recording ends with observations read from the cell's own captures. The cell asserts the update exit code and run record status. It also checks thatopenclaw update status --jsonis readable and names the update's own run, that no owed step was left, that a fresh/readyzprobe in that run succeeded, that the serving version matches, that the plugin records match their packages on disk and the localplugins listinventory lists them as loaded (this reads the local inventory; it does not query the running Gateway), and that the config bytes are unchanged.base/red,
3e0d3687c5d. The first update exits 1:error / post-update-failed, runfailed, rollbacknot-attempted: state-migrated-no-rollback, while the Gateway serves the new version with/readyz200 and the local plugin inventory lists both plugins as loaded at the new version. The report saysopenclaw gateway stop, which refuses an unattended shell.published-driver-plugin-publication-base-red-3e0d3687c5d-r2.mp4
head/green,
a8b99203816(candidate packed at90ac53240b9; the commits after it change only the e2e harness, a lane script entry and a comment). The first update exits 0 with the runsucceeded, and the same serving and plugin observations hold. The next plainopenclaw updateexits 0 asalready-current, with no failed record and nothing owed.published-driver-plugin-publication-head-green-a8b99203816.mp4
head/negative control,
a8b99203816(OPENCLAW_PUBLISHED_DRIVER_PLUGIN_FAULT=refused-channel-change). The same first update also passes--channel beta, which needs a real config write against the read-only config.failed, with the sameis a symlinkrefusal from the shipped CLI./readyz200. The plugins stay at 2026.11.5, because the refusal comes before plugin convergence.openclaw gateway stop --forcefor the managed service, so the new wording is captured from the shipped CLI.published-driver-plugin-publication-negative-control-a8b99203816.mp4
What changed after the recordings.
git diff a8b99203816..HEADis a merge ofmain(2840dc974fc) plus three harness-only commits,d1da62a9520,e612b2363e0and91dbd6bfb77, which touch onlyscripts/e2e/published-driver-update-docker.sh,scripts/e2e/lib/upgrade-survivor/published-driver-plugin-publication.mjs, the shared plugin fixture packerscripts/e2e/lib/update-first-hop-package-fixtures.mjs(an optional target version), its test, and the lane'spackage.jsonscript entry. The four production files are byte-identical between90ac53240b9(the recorded candidate) and the head. The mergedmaincommits change no update, config-write, plugin install-record or harness code; the closest is #201220, which adds a plugin manifest field for the Customize sidebar.The final harness was rerun on head
91dbd6bfb77with the same candidate, both the green cell and the negative control. See "Recorded lane cells" under Commands and results.Full raw logs are not attached because the Crabbox artifact store rejected uploads (
crabbox artifacts publish:http 401 Unauthorized). The decisive excerpts below come from the sanitized captures. Container hostnames and the synthetic gateway token are redacted; nothing else is changed.base/red: first update result and run record (3e0d368)
head/green: first update and the next update (a8b9920)
head/negative control: a real config write is still refused (a8b9920)
Stack from the process that ran plugin convergence (diagnostic candidate, logging only)
A diagnostic copy of a base candidate packed at
f8727fdcd3alogged these facts from the plugin publication catch block. It changes no behavior. The process is the candidate's adopted finalization driver, which a 2026.11.5 updater hands the run to after state migration.Published-driver Docker cell (new lane
published-driver-plugin-publication): a first update from published[email protected], with@openclaw/zaloand@openclaw/voice-callinstalled, whileopenclaw.jsonis a link to a read-only file in a read-only directory.3e0d3687c5da8b99203816openclaw update --yes --jsonerror/post-update-failed, runfailed, rollbacknot-attempted: state-migrated-no-rollbacksucceeded/readyz200/readyz200plugins list)openclaw.jsonopenclaw updatealready-current; the failed record stayssucceeded, a per-plugin warning forvoice-call, and the next update converges it.src/cli/update-cli/update-command-plugins.persistence.test.tsrun the realupdatePluginsAfterCoreUpdatewith real config and index stores:is a symlinkerror and publishes no records (negative control);plugin-config-conflictand restores the index;is a symlinkrejection, and the writable no-change row fails because the file gets restamped. Mutation checks: removing the post-write freshness check, or the authority hook before the index write, each fails its test.Commands and results
node scripts/run-vitest.mjs src/cli/update-cli/update-command-plugins.persistence.test.ts src/cli/update-cli/update-command-config-fence.test.ts src/cli/update-cli/update-recovery-guidance.test.ts test/scripts/docker-e2e-plan.test.ts: 35, 15, 27 and 46 passed.update-cli.plugin-convergence,update-command-{contention,convergence-authority,doctor-*,finalize-refusal,killed-run.process,lifecycle,plugin-caller,plugins.degradation,post-update},update-command.test,update-config-provenance.integration,install-record-commit{,.retention},update-cohort-recovery).test/scripts/eager-import-closure.test.ts(23 passed) andtest/scripts/update-restart-module-outcome.test.ts(1 passed).pnpm tsgo:all: passed.oxlint --type-awareon the touched files: clean.pnpm check:docs: passed.git diff --check: clean.pnpm check:baseline-ratchets --base 3e0d3687c5d --no-merge-base: all ratchets ok, including test-lines, max-lines and session-identity.91dbd6bfb77, same candidate, under the Docker lock: the greensymlinked-configcell passed in 459 s (plugins stamped with the core target2026.11.6-first-hop.0, the config still the same link with unchanged managed bytes, the next update clean), and therefused-channel-changecell passed in 329 s.e612b2363e0, same candidate (packed at90ac53240b9):OPENCLAW_PUBLISHED_DRIVER_PLUGIN_PUBLICATION=1 OPENCLAW_PUBLISHED_DRIVER_PLUGIN_FAULT=refused-channel-change bash scripts/e2e/published-driver-update-docker.sh <candidate.tgz> <artifacts>with no driver argument. It defaulted todriver=2026.11.5and passed in 330 s. The channel write was refused with the symlink error. Both plugins stayed at 2026.11.5 in records, on disk and in the local inventory.update statusnames the runfailedwith nothing owed, and the Gateway serves the new core with/readyz200.a8b99203816): head symlinked passed in 353 s, head refused-channel-change passed in 277 s, and base symlinked failed atThe first update succeedsin 254 s. All stayed inside the wrapper's 1125 s envelope.OPENCLAW_PUBLISHED_DRIVER_PLUGIN_PUBLICATION=1 [OPENCLAW_PUBLISHED_DRIVER_PLUGIN_FAULT=corrupt-plugin] bash scripts/e2e/published-driver-update-docker.sh <candidate.tgz> <artifacts> 2026.11.5: head symlinked passed in 344 s (391 s while recorded alongside the base cell), head corrupt-plugin passed in 426 s, base symlinked failed atThe first update succeedsin 261 s (303 s recorded). The wrapper envelope is 1125 s.Changes to existing tests
test/scripts/update-first-hop-package-fixtures.test.ts: one new case for the plugin fixture packer's target version; existing cases unchanged.test/scripts/docker-e2e-plan.test.ts: the new lane's plan test no longer runs the package script against a fake wrapper that only echoed its arguments; that could not detect dispatch to the wrong entry, and the real Docker cell proves dispatch. The planner assertion, including the lane command, stays.src/cli/update-cli.finalizer.test.ts: "refreshes post-Doctor state with requested channel undefined" checks that plugin publication writes against the post-Doctor config (baseHashpost-doctor). Its sync result changed no config, so it now took the records-only branch, wrote nothing, and failed in CI. It now syncs a real config change and still proves the write uses post-Doctor state. Before the next push, all 25 top-levelsrc/cli/update-cli.*.test.tsfiles were run locally: 342 tests passed.update-command-config-fence.test.ts: thepluginsflow fences an executor revocation inside the plugin config write. Its convergence result changed no config, so it now took the records-only branch and never reached that write. It now returns a real config change, so it still proves the config-write fence. The records-only fence has its own new test.update-command-plugins.persistence.test.ts: "rolls back the tentative index after a config failure" and "preserves reference activation only with explicit intent" each changed no config, so they would have passed without writing anything. Each now carries a real config change and still proves its original behavior. The cases that pin "a refused config write fails" and "no cohort keeps failing" are untouched.Nearby fix
openclaw gateway stoprefuses a non-interactive shell without--force(runDaemonStop,src/cli/daemon-cli/lifecycle.ts). The red recording shows the old instruction as the shipped CLI prints it. The negative-control recording shows the new instruction printed by the shipped CLI on the head, after a refused channel write. The update report for a healthy Gateway with unfinished maintenance now namesopenclaw gateway stop --forcefor the managed service, matching repair's own next action. Its test is red on base. The same plaingateway stopwording remains instatus.ts,update-command-service-plan.ts,update-maintenance-error.ts,update-command-service-publication.ts,update-recovery-guidance.ts(cleanup guidance) andupdate-repair-command.ts. That is a follow-up.Review
A fresh, independent read-only review (separate agent, given the diff and the behavior contract) found no blockers.
autoreviewdoes not run on this machine, so it was not run.ClawSweeper rating
The local ClawSweeper review (GPT 6.2 Sol) runs offline against this branch.
2423fb365fc): overall D, proof D, patch C. Three P2 findings, all verified as real and fixed:assertConfigPathForWritecheck the write path uses, with a failing-first test.lastRunis the update's own run, with the expected status and no owed rows.latest. A fixture registry now pins them to the published 2026.11.5 packages.gateway stop --forcewording is stated under "Nearby fix".90ac53240b9): overall D, proof D, patch C. Three P2 findings in the new lane, all verified as real and fixed:.artifacts/published-driver-updatewith its sibling lanes. It now uses its own directory.npm packand fixture packing had no timeout. Both are now bounded by the cell deadline.2840dc974fc): overall C, proof B (sufficient real-behavior proof), patch C. One P2 and two P3 findings in the lane, all verified as real and fixed ind1da62a9520after the round limit, so they have not been re-rated:openclaw.json is a symlinkrefusal in post-update verification, so an unrelated failure cannot pass it. On the captured runs this assertion matches the negative control and rejects the green capture.d1da62a9520, landing review): overall C, proof B, patch C. One P2 and two P3 findings, again only in the lane and the proof wording. All were verified, and the two lane findings were real:latestas the fixture package version. The wrapper now defaults this mode to2026.11.5, and the cell rejects anything that is not a concrete release version. Red:node .../published-driver-plugin-publication.mjs <tgz> <dir> latestgot past argument checks ond1da62a9520. Green: it now fails at once with "Expected a concrete driver release version".update statusnames this run asfailedwith nothing owed. The earlier recorded negative-control capture already satisfied these facts.plugins listreads the local plugin inventory, not the running Gateway. The body now says so wherever it reports plugins as loaded.e612b2363e0(harness only) and rerun as a Docker cell (see Commands and results).e612b2363e0): overall C, proof B, patch C. Two new lane findings, both verified as real and fixed in91dbd6bfb77; the production change again drew none:mainmoves past the driver release. Fix: the sharedpackFuturePluginFixturetakes an optional target version, and the lane stamps each plugin with the core target, then asserts the packed version equals what the registry advertises. Its new test intest/scripts/update-first-hop-package-fixtures.test.tswas red before the change (a 2026.11.5 plugin packed for a2026.11.7-first-hop.0core came out as2026.11.6-first-hop.0) and is green now; without a target the packer behaves as before for its other callers.openclaw.jsonbytes through the link but does not assert the entry is still a symlink to the managed file (the owner unit tests do). Fix: the green cell and the negative control both assert withlstat/readlinkthatopenclaw.jsonis still the link to the managed file, and compare the managed file's own bytes.91dbd6bfb77): overall B, proof B, patch B, "patch is correct". One P3 lane finding, left open:observethrows while reading that package'spackage.json, before it savesupdate status, readiness and the plugin inventory. The cell still fails in that case; it only loses some diagnostics. This is a lane diagnostics follow-up, not a correctness gap in the production change.CI on
91dbd6bfb77Run 44408383488, tested merge
8caa21cf8ff(91dbd6bfb77intomainatc5ef395ba72).git diff --name-only c5ef395ba72 8caa21cf8fflists exactly this PR's files. Every other job passed or was skipped.checks-fast-baseline-ratchets: on attempt 1 "The hosted runner lost communication with the server" and the ratchet step was cancelled before it ran. That is infrastructure, so it was rerun once and passed. Locallypnpm check:baseline-ratchets --base 6018bc9ce69 --no-merge-baseis also all ok.main:checks-node-changed-compact-large-13-1:src/gateway/server.cron-session-cleanup.test.ts(revoked operator authority) and fivesrc/agents/openclaw-tools.sessions-steering.test.ts"persists steering provenance" cases.checks-node-changed-compact-large-2:src/gateway/server-methods/agent.visitor-access.test.ts(revoked before and after commit).checks-node-changed-compact-large-39-2:src/gateway/server.sessions-send-owner-continuation.test.ts("enforces owner authority at the final plugin write after an inline wait expires (success)", a timeout).checks-node-changed-extensions-bundle-32:src/gateway/server.talk-consult-history.test.ts("keeps host-authenticated node approval cancellation", both callback cases; Linux-only cases).95d6e4b6fe7, Linux) fails exactly these cases, every one of them.mainatc5ef395ba72(the tested merge's main parent), the same nine cases in the first three jobs fail. The talk-consult cases are Linux-only and skip on macOS, so the scheduled main run is their baseline.openclaw update:updatePluginsAfterCoreUpdate, the records-only publication, and the recovery guidance. The one shared function,commitPluginInstallRecordsOnly, gained an optional parameter that its other callers do not pass. None of the failing tests runs an update.Earlier heads had the same inherited Gateway failures, an
android-ktlintfailure from a Maven Central "429 Too Many Requests", and single unrelated extension flakes. No job was rerun just to get green.Not proven
--no-restartfirst update and Windows/macOS service managers were not exercised.