Repository navigation
fix: let a pnpm install update again after an update died after activating - #203486
fuller-stack-dev merged 10 commits into
Conversation
…tallation that replaced it
|
🦞👀 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. |
…lement without naming its outcome
|
Codex review: blocked before merge. What this changesThis PR lets a replacing pnpm installation settle verified plugin recovery left by a dead updater. Example: A pnpm update activates 2026.11.20-beta.8, verifies its Gateway, then exits before settling recovery.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this PR repairs a concrete pnpm recovery dead end that current main still has; no definite introduced code defect was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe CLI update recovery owner reads saved installation, driver, verification, and lease facts, then admits settlement through the existing plugin cohort and history owners. flowchart TD
A[Update or repair command] --> B[Saved recovery and run history]
B --> C[Installation replacement check]
C --> D[Installation executor leases]
D --> E[Existing plugin cohort settlement]
E --> F[History reconciliation]
F --> G[Next update admitted]
Technical reviewBest possible solution: Use the shared replacement check and existing settlement owners to restore supported recovery without changing lease admission or stored installation identity. Do we have a high-confidence way to reproduce the issue? The base's path comparisons establish the refusal directly, and the supplied installed-package cells describe the matching failure; no target code was executed during this review. Is this the best way to solve the issue? The change is focused: one shared installation decision serves both callers, while existing executor, plugin settlement, and history owners retain their responsibilities. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 450441b90403. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +160, Tests +255, Docs +20. Total +435 across 8 files. Added test files: 1. 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. LabelsLabel 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 22, 2026, 7:37 AM ET / 12:37 UTC. |
…s the original core gone
Raw log: Red, base, pnpm 12 (cell
|
| Step | Command | Exit |
|---|---|---|
update (harness: A → B) |
openclaw update --yes --json --tag /home/appuser/um/openclaw-candidate.tgz |
0 |
cmd-0-dump-before |
node /tmp/um-input/extra/dump-update-state.mjs; node /app/scripts/e2e/lib/upgrade-survivor/update-matrix-marker.mjs check $HOME/.openclaw/agents/main/agent/openclaw-agent.sqlite |
0 |
cmd-1-update-b-to-c |
s=$(date +%s%N); openclaw update --yes --json --tag /tmp/um-input/extra/openclaw-b1.tgz; e=$?; echo "exit $e wall $(( ($(date +%s%N) - s) / 1000000 ))ms" >&2; exit $e |
1 |
cmd-1w |
s=$(date +%s); for i in $(seq 1 60); do openclaw gateway status --deep 2>/dev/null | grep -q "Connectivity check: ok" && break; sleep 5; done; echo "waited $(( $(date +%s) - s ))s" |
0 |
cmd-2-dump-stuck |
node /tmp/um-input/extra/dump-update-state.mjs; node /app/scripts/e2e/lib/upgrade-survivor/update-matrix-marker.mjs check $HOME/.openclaw/agents/main/agent/openclaw-agent.sqlite |
0 |
cmd-3-next-update-x-to-y |
s=$(date +%s%N); openclaw update --yes --json --tag /tmp/um-input/extra/openclaw-b2.tgz; e=$?; echo "exit $e wall $(( ($(date +%s%N) - s) / 1000000 ))ms" >&2; exit $e |
1 |
cmd-4-repair-from-x |
s=$(date +%s%N); openclaw update repair --yes --json; e=$?; echo "exit $e wall $(( ($(date +%s%N) - s) / 1000000 ))ms" >&2; exit $e |
1 |
cmd-4d |
node /tmp/um-input/extra/dump-update-state.mjs; node /app/scripts/e2e/lib/upgrade-survivor/update-matrix-marker.mjs check $HOME/.openclaw/agents/main/agent/openclaw-agent.sqlite |
0 |
cmd-5-update-x-to-y |
s=$(date +%s%N); openclaw update --yes --json --tag /tmp/um-input/extra/openclaw-b2.tgz; e=$?; echo "exit $e wall $(( ($(date +%s%N) - s) / 1000000 ))ms" >&2; exit $e |
1 |
cmd-5w |
s=$(date +%s); for i in $(seq 1 60); do openclaw gateway status --deep 2>/dev/null | grep -q "Connectivity check: ok" && break; sleep 5; done; echo "waited $(( $(date +%s) - s ))s" |
0 |
cmd-v |
openclaw --version |
0 |
cmd-st |
openclaw update status 2>&1 | tail -6 |
0 |
cmd-dump-end |
node /tmp/um-input/extra/dump-update-state.mjs; node /app/scripts/e2e/lib/upgrade-survivor/update-matrix-marker.mjs check $HOME/.openclaw/agents/main/agent/openclaw-agent.sqlite |
0 |
cmd-gs |
openclaw gateway status --deep 2>&1 | grep -E "Runtime:|Connectivity" |
0 |
after-commands-update-status |
openclaw update status --json |
0 |
Redactions: host scratch paths are <host-scratch>, container hostnames are <container-host>, and the container's systemd machine ID inside recorded process namespaces is <machine-id>. Nothing else is changed or cut. The text is raw as saved by the harness: its log, then each command's stdout (JSON where the command prints JSON) and stderr, then the final openclaw update status --json.
Cell environment (UM_* variables; host paths omitted)
UM_CANDIDATE_VERSION=2026.11.20-beta.2
UM_DB_MIB=256
UM_INSTALLED=2026.11.20-beta.1
UM_INSTALLED_TGZ=openclaw-m-a.tgz
UM_LOAD=busy
UM_MARKER_ROWS=1000
UM_NO_STAMP=1
UM_PATH=stable
UM_PKG_MANAGER=pnpm
UM_REAL_SYSTEMD=1
UM_REPEAT=0
UM_TRIGGER=cli
UM_UPDATE_TAG_CANDIDATE=1
UM_WRITE_KIB_S=1024
Empty (no output): cmd-0-dump-before stderr, cmd-1w stderr, cmd-2-dump-stuck stderr, cmd-4d stderr, cmd-5w stderr, cmd-v stderr, cmd-st stderr, cmd-dump-end stderr, cmd-gs stderr, Final openclaw update status --json stderr.
Harness log (cell.log)
degraded
active
srw-rw-rw- 1 appuser appuser 0 Nov 22 11:57 /run/user/1001/bus
[2026-11-22T11:57:46.464Z] cell-start {"path":"stable","trigger":"cli","load":"busy","dbMiB":256,"rateKiB":1024,"installed":"2026.11.20-beta.1","candidateVersion":"2026.11.20-beta.2","distTags":"","channel":"","devTarget":"","repeat":false}
[2026-11-22T11:57:46.466Z] install-start {}
pnpm-version: exit=0 signal= 1042ms
install: exit=0 signal= 5243ms
[2026-11-22T11:57:52.753Z] install-done {}
candidate-extract: exit=0 signal= 1912ms
candidate-pack: exit=0 signal= 6462ms
systemd-user: exit=0 signal= 6ms
gateway-install: exit=0 signal= 3140ms
session-create: exit=0 signal= 1116ms
session-inject: exit=0 signal= 594ms
[2026-11-22T11:58:15.048Z] gateway-ready {}
[2026-11-22T11:58:16.063Z] load-ready {}
before-observe-static: exit=0 signal= 5ms
before-version: exit=0 signal= 28ms
before-probe: exit=0 signal= 1329ms
before-update-status: exit=0 signal= 1721ms
before-service: exit=0 signal= 4ms
before-launcher: exit=0 signal= 91ms
marker-write: exit=0 signal= 262ms
[2026-11-22T11:58:34.531Z] update-start {}
update: exit=0 signal= 127919ms
[2026-11-22T12:00:42.451Z] update-end {"exitCode":0,"durationMs":127919}
[2026-11-22T12:00:42.453Z] after-settle {}
after-version: exit=0 signal= 27ms
after-probe: exit=0 signal= 1266ms
after-update-status: exit=0 signal= 1582ms
after-service: exit=0 signal= 4ms
after-launcher: exit=0 signal= 84ms
after-observe-static: exit=0 signal= 3ms
[2026-11-22T12:00:45.427Z] after-commands-start {}
cmd-0-dump-before: exit=0 signal= 94ms
cmd-1-update-b-to-c: exit=1 signal= 123312ms
cmd-1w: exit=0 signal= 1679ms
cmd-2-dump-stuck: exit=0 signal= 95ms
cmd-3-next-update-x-to-y: exit=1 signal= 1844ms
cmd-4-repair-from-x: exit=1 signal= 1385ms
cmd-4d: exit=0 signal= 90ms
cmd-5-update-x-to-y: exit=1 signal= 1796ms
cmd-5w: exit=0 signal= 1716ms
cmd-v: exit=0 signal= 27ms
cmd-st: exit=0 signal= 1676ms
cmd-dump-end: exit=0 signal= 92ms
cmd-gs: exit=0 signal= 1633ms
[2026-11-22T12:03:00.875Z] after-commands-end {}
after-commands-version: exit=0 signal= 25ms
after-commands-probe: exit=0 signal= 1270ms
after-commands-update-status: exit=0 signal= 1622ms
after-commands-service: exit=0 signal= 4ms
after-commands-launcher: exit=0 signal= 87ms
after-commands-observe-static: exit=0 signal= 4ms
stop-service: exit=0 signal= 365ms
cell-exit=0
update (harness A → B) stdout
{
"status": "ok",
"mode": "pnpm",
"root": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"before": {
"version": "2026.11.20-beta.1",
"buildId": "2026.11.20-beta.1-795efe2eebda-2026-11-22T08-03-55.108Z"
},
"after": {
"version": "2026.11.20-beta.2",
"buildId": "2026.11.20-beta.2-4f4f38695ec2-2026-11-22T08-03-55.164Z"
},
"steps": [
{
"name": "updater-runtime-retention",
"command": "retain running updater runtime",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 14976,
"exitCode": 0,
"diagnostics": [
"{\"entries\":47096,\"estimatedBytes\":689901568,\"inventoryMs\":6525,\"materializationMs\":7346,\"linked\":41509,\"copied\":1736}"
]
},
{
"name": "database snapshot",
"command": "snapshot databases before migrations",
"cwd": "/home/appuser/.openclaw",
"durationMs": 2423,
"exitCode": 0,
"diagnostics": [
"Databases snapshotted at /home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases. Verified successful activation removes these snapshots only if automatic restoration remains available; otherwise retain them with the update's recovery artifacts.",
"/home/appuser/.openclaw/agents/main/agent/openclaw-agent.sqlite -> /home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases/payload/posix/home/appuser/.openclaw/agents/main/agent/openclaw-agent.sqlite; schema 43; 278245376 bytes; SHA-256 04a46854307caa0559ed20fffc8e6832044341b9adb957759224f1521091123f",
"/home/appuser/.openclaw/client/credentials.sqlite -> /home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases/payload/posix/home/appuser/.openclaw/client/credentials.sqlite; schema 1; 49152 bytes; SHA-256 d78c3a2283d238a32e36128d55b2f2c1d054cb1533eba07988e2366085ff4031",
"/home/appuser/.openclaw/control/services.sqlite -> /home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases/payload/posix/home/appuser/.openclaw/control/services.sqlite; schema 1; 16384 bytes; SHA-256 db3b5c34c805d6861dfc3a89947889705affa6e321a3e2c2c2494ac13ff5781f",
"/home/appuser/.openclaw/state/openclaw.sqlite -> /home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases/payload/posix/home/appuser/.openclaw/state/openclaw.sqlite; schema 41; 3297280 bytes; SHA-256 7e7a1b75b89ecae313903637cc1773929b131680432e139ae8bc04963c61e86c"
],
"warnings": []
},
{
"name": "package-install",
"command": "pnpm add -g --allow-build=openclaw openclaw@file:/home/appuser/um/openclaw-candidate.tgz --config.global-dir=/home/appuser/um/pnpm-home/.openclaw-update-native-V3SH1E --config.global-bin-dir=/home/appuser/um/pnpm-home/.openclaw-update-native-V3SH1E.bin-dEaKS0",
"durationMs": 2271,
"exitCode": 0,
"stdoutTail": ".../v11/5e5-18ea5c25a9f07806-0 | Progress: resolved 0, reused 1, downloaded 0, added 0\nPackages are hard linked from the content-addressable store to the virtual store.\n Content-addressable store is at: /home/appuser/um/pnpm-home/store/v11\n Virtual store is at: home/appuser/um/pnpm-home/.openclaw-update-native-V3SH1E/v11/5e5-18ea5c25a9f07806-0/node_modules/.pnpm\n[WARN] 1 deprecated subdependencies found: [email protected]\nDownloading file:../../../../openclaw-candidate.tgz: 0.00 B/116.86 MB\n.../v11/5e5-18ea5c25a9f07806-0 | Progress: resolved 359, reused 361, downloaded 1, added 359\n.../v11/5e5-18ea5c25a9f07806-0 | Progress: resolved 359, reused 361, downloaded 1, added 359, done\nIgnored build scripts: @google/[email protected], [email protected], openclaw@file:../../../../openclaw-candidate.tgz, [email protected].\nRun \"pnpm approve-builds\" to pick which dependencies should be allowed to run scripts.\n\ndependencies:\n+ openclaw 2026.11.20-beta.2\n\nDone in 2.2s using pnpm v12.21.0",
"stderrTail": null,
"signal": null,
"killed": false,
"termination": "exit",
"cwd": "/home/appuser/um/pnpm-home/.openclaw-update-native-V3SH1E"
},
{
"name": "pnpm-package-preinstall",
"command": "/usr/local/bin/node /home/appuser/um/pnpm-home/.openclaw-update-native-V3SH1E/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw/scripts/preinstall-package-manager-warning.mjs",
"durationMs": 22,
"exitCode": 0,
"stdoutTail": null,
"stderrTail": null,
"signal": null,
"killed": false,
"termination": "exit",
"cwd": "/home/appuser/um/pnpm-home/.openclaw-update-native-V3SH1E/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw"
},
{
"name": "pnpm-package-postinstall",
"command": "/usr/local/bin/node /home/appuser/um/pnpm-home/.openclaw-update-native-V3SH1E/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs",
"durationMs": 206,
"exitCode": 0,
"stdoutTail": null,
"stderrTail": null,
"signal": null,
"killed": false,
"termination": "exit",
"cwd": "/home/appuser/um/pnpm-home/.openclaw-update-native-V3SH1E/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw"
},
{
"name": "candidate-recovery",
"command": "--check",
"cwd": "/home/appuser/um/pnpm-home/.openclaw-update-native-V3SH1E/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 854,
"exitCode": 0
},
{
"name": "package-swap",
"command": "swap /home/appuser/um/pnpm-home/.openclaw-update-native-V3SH1E/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw -> /home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"cwd": "/home/appuser/um/pnpm-home",
"durationMs": 50133,
"exitCode": 0,
"stdoutTail": "replaced openclaw; published by an atomic exchange (perl)",
"stderrTail": null
},
{
"name": "openclaw doctor",
"command": "/usr/local/bin/node /home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw/dist/infra/update-migrated-finalize.worker.js --doctor",
"durationMs": 34885,
"exitCode": 0,
"stdoutTail": "…law/credentials). Skipping create │\n│ because no WhatsApp/pairing channel config is active. │\n│ │\n├───────────────────────────────────────────────────────────────────────╯\n│\n◇ Backups ─────────────────────────────────────────────────────────────╮\n│ │\n│ No successful backup is recorded. │\n│ Create one now with openclaw backup create. │\n│ Schedule versioned backups with openclaw backup enable --repository │\n│ <dir>. │\n│ │\n├───────────────────────────────────────────────────────────────────────╯\n│\n◇ Doctor warnings ────────────────────────────────────────────────────────╮\n│ │\n│ Automation Memory Dreaming Promotion │\n│ (bc2570fc-0c6a-4731-866b-7d21fe1a205c): inference account was not │\n│ migrated: No route-compatible authentication source is configured for │\n│ openai. Inspect available accounts with openclaw models auth list │\n│ --agent main, then explicitly adopt the intended stored account with │\n│ openclaw automations edit bc2570fc-0c6a-4731-866b-7d21fe1a205c --model │\n│ 'openai/gpt-6-astra@<profileId>'. │\n│ │\n├──────────────────────────────────────────────────────────────────────────╯\n│\n◇ Host desktop ────────────────────────────────────────────────────╮\n│ │\n│ disabled; enable the Desktop lab with desktop.host.enabled=true │\n│ │\n├───────────────────────────────────────────────────────────────────╯\n│\n◇ Gateway ─────────────────────────────────────────────╮\n│ │\n│ Gateway health will be checked after Doctor repair. │\n│ │\n├───────────────────────────────────────────────────────╯\n│\n◇ Security ─────────────────────────────────────────────────────────────╮\n│ │\n│ - WARNING: openclaw.json contains plaintext secret-bearing config │\n│ fields. │\n│ Migrate them to SecretRefs with openclaw secrets configure or │\n│ openclaw secrets apply, then verify with openclaw secrets audit │\n│ --check. │\n│ Paths: gateway.auth.token │\n│ Agents or workspace tools that can read config files may see these │\n│ API keys/tokens. │\n│ - Run: openclaw security audit --deep │\n│ │\n├────────────────────────────────────────────────────────────────────────╯\n│\n◇ Skills ─────────────────────────────────────────────────────────────────╮\n│ │\n│ 32 allowed skills are not usable in this environment (missing │\n│ binaries, env vars, or config). │\n│ - 1password, blogwatcher, blucli, camsnap, coding-agent, eightctl, │\n│ gemini, gh-issues, gifgrep, github, gog, goplaces, himalaya, │\n│ mcporter, model-usage, nano-pdf, notion, obsidian, openai-whisper, │\n│ openai-whisper-api, openhue, oracle, ordercli, sag, sherpa-onnx-tts, │\n│ songsee, sonoscli, spotify-player, summarize, tmux, trello, xurl │\n│ Missing local binaries may exist on paired nodes; these skills remain │\n│ enabled. │\n│ Disable unused skills: openclaw doctor --fix │\n│ Inspect details: openclaw skills check --agent <id> or openclaw skills │\n│ info <name> --agent <id> │\n│ │\n├──────────────────────────────────────────────────────────────────────────╯\n│\n◇ Memory search ──────────────────────────────────────────────────────────╮\n│ │\n│ Remember across conversations is effectively enabled for agent \"main\", │\n│ but the Active Memory plugin is disabled. Set │\n│ plugins.entries.active-memory.enabled=true, or set │\n│ memory.search.rememberAcrossConversations to false. │\n│ │\n├──────────────────────────────────────────────────────────────────────────╯\n│\n◇ Memory search ──────────────────────────────────────────────────────────╮\n│ │\n│ Memory search provider is set to \"openai\" but no API key was found. │\n│ Without working primary or fallback embeddings, memory sync stops for │\n│ explicitly configured providers or existing vector indexes; new and │\n│ changed memory files are not indexed. │\n│ │\n│ │\n│ Fix (pick one): │\n│ - Set OPENAI_API_KEY in your environment │\n│ - Configure credentials: openclaw configure --section model │\n│ - For keyword-only recall without a key, set memory.search.provider to │\n│ \"none\" for this agent (including any agent override), then run │\n│ openclaw memory index --force --agent main │\n│ │\n│ Then rerun: openclaw doctor │\n│ │\n├──────────────────────────────────────────────────────────────────────────╯\n│\n◇ Memory search ─────────────────────────────────╮\n│ │\n│ Dreaming: enabled (cadence 0 3 * * *). │\n│ Last recorded dreaming run: none recorded. │\n│ Next scheduled run: 2026-11-23T03:00:00.000Z. │\n│ │\n├─────────────────────────────────────────────────╯\nDeferred advisory inspections until the restarted Gateway is ready: core/doctor/database-engine, core/doctor/claude-cli, core/doctor/command-owner, core/doctor/default-account-routing, core/doctor/oauth-tls, core/doctor/hooks-model, core/doctor/legacy-output-cap, core/doctor/model-references, core/doctor/acp-agent-model, core/doctor/provider-catalog-projection, core/doctor/local-audio-acceleration, core/doctor/runtime-tool-schemas, core/doctor/whatsapp-responsiveness. The updater runs their `openclaw doctor --lint` checks after restart.\n│\n◇ Updater runtimes ──────────────────────────────────────────────────╮\n│ │\n│ Runtime retained at │\n│ /home/appuser/um/tmp/openclaw-update-runtime-vBRF4b: the creating │\n│ update (PID 1089) is still running │\n│ │\n├─────────────────────────────────────────────────────────────────────╯\n│\n└ Doctor complete.",
"stderrTail": "Doctor: Update schema admission\nDoctor: startup\nDoctor: maintenance begin\nDoctor: Preserve original state\nDoctor: schema admission\nDoctor: state database repair\nDoctor: database migrations\nDoctor: heartbeat migration backups\nDoctor: state schema\nDoctor: Agent deletion journal\nDoctor: UI protocol\nDoctor: Source install\nDoctor: CLI launcher\nDoctor: Plugin runtime links\nDoctor: config flow\nDoctor: state write admission\nDoctor: stale update runs\nDoctor: state migrations import\nDoctor: state dir migrations\nDoctor: legacy config migration\nDoctor: config snapshot\nDoctor: file\nDoctor: hash\nDoctor: parse\nDoctor: includes\nDoctor: env\nDoctor: validate\nDoctor: materialize\nDoctor: observe\nDoctor: file\nDoctor: hash\nDoctor: parse\nDoctor: includes\nDoctor: env\nDoctor: validate\nDoctor: materialize\nDoctor: observe\nDoctor: state schema\nDoctor: retired state repair\nDoctor: session entry state\nDoctor: plugin plan import\nDoctor: plugin plan\nDoctor: config snapshot\nDoctor: file\nDoctor: hash\nDoctor: parse\nDoctor: includes\nDoctor: env\nDoctor: validate\nDoctor: materialize\nDoctor: observe\nDoctor: cron repair import\nDoctor: cron repair\nDoctor: cron policy scan\nDoctor: legacy state migrations\nDoctor: retired a2ui widgets\nDoctor: relative session store\nDoctor: Config repairs\nDoctor: contributions\nDoctor: Write config migrations\nDoctor: Agent database admission\nDoctor: core/doctor/agent-database-admission: check\nDoctor: Native helpers and child pipes\nDoctor: core/doctor/appcontainer-spawn: check\nDoctor: core/doctor/native-status: check\nDoctor: Node runtime\nDoctor: Runtime capabilities\nDoctor: Gateway config\nDoctor: Auth profile migration\nDoctor: Gateway auth\nDoctor: Node hosting preconditions\nDoctor: core/doctor/node-hosting-preconditions: check\nDoctor: Legacy state\nDoctor: core/doctor/removed-workspaces-state: check\nDoctor: core/doctor/session-archive-read-cache: check\nDoctor: Chat history\nDoctor: Agent memory schema\nDoctor: Legacy plugin manifests\nDoctor: Legacy plugin dependencies\nDoctor: Stale plugin runtime symlinks\nDoctor: Configured plugin repair\nDoctor: Plugin registry\nDoctor: Legacy plugin captures\nDoctor: Updater runtimes\nDoctor: UI protocol freshness\nDoctor: Stale runtime build\nDoctor: core/doctor/stale-runtime-build: check\nDoctor: Disk space\nDoctor: State integrity\nDoctor: Codex session routes\nDoctor: Telegram General-topic conversations\nDoctor: core/doctor/telegram-general-topic-conversations: check\nDoctor: Chat history headers\nDoctor: Chat history labels\nDoctor: Config audit\nDoctor: Legacy cron\nDoctor: contributions (10s elapsed)\nDoctor: Sandbox\nDoctor: Gateway services\nDoctor: Host desktop\nDoctor: Channel package-state capabilities\nDoctor: core/doctor/channel-package-state-capabilities: check\nDoctor: Startup channel maintenance\nDoctor: Browser\nDoctor: systemd linger\nDoctor: Workspace alias\nDoctor: Memory provenance\nDoctor: Heartbeat cadence migration\nDoctor: Heartbeat scratch migration\nDoctor: TOOLS.md migration\nDoctor: Heartbeat task cron migration\nDoctor: Shell completion\nDoctor: Gateway health\nDoctor: Device pairing\nDoctor: Gateway daemon\nDoctor: Auth profiles\nDoctor: Gmail Gog\nDoctor: core/doctor/gmail-gog: check\nDoctor: Plugin health inspection and repair\nDoctor: openai/daybreak-alias-retirement: check\nDoctor: skill-workshop/tool-policy: check\nDoctor: Channel ingress dead letters\nDoctor: Session snapshots\nDoctor: Security\nDoctor: Web fetch proxy\nDoctor: Bundle LSP environment\nDoctor: Skill Workshop tool policy\nDoctor: Workspace status\nDoctor: Skills\nDoctor: Memory search\nDoctor: Write config\nDoctor: Final config validation\nDoctor: external config\nDoctor: maintenance ready\nDoctor: sqlite reclamation\nDoctor: retained runtimes\n[infra:temp-artifacts] Runtime retained at /home/appuser/um/tmp/openclaw-update-runtime-vBRF4b: the creating update (PID 1089) is still running\nDoctor: maintenance finish\nDoctor: maintenance release\n[update] Doctor changed config key: agents.\n[update] Doctor changed config key: meta.\n[update] Doctor changed config key: wizard.\n[update] Doctor migration: Prepared the agent roster for persistence.\nModel retirement deferred until configured plugin installation converges.\nAutomation Memory Dreaming Promotion (bc2570fc-0c6a-4731-866b-7d21fe1a205c): inference account was not migrated: No route-compatible authentication source is configured for openai. Inspect available accounts with openclaw models auth list --agent main, then explicitly adopt the intended stored account with openclaw automations edit bc2570fc-0c6a-4731-866b-7d21fe1a205c --model 'openai/gpt-6-astra@<profileId>'.\ncore/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields.\nPost-install doctor reported a recoverable update-time repair warning after the package install was verified; continuing with post-core plugin convergence.",
"signal": null,
"killed": false,
"termination": "exit",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"diagnostics": [
"Doctor sections: startup 0.0 s, maintenance.preserve-original-state 0.2 s, maintenance.begin 1.1 s, schema-admission 0.0 s, state-database-repair 0.7 s, database-migrations 4.0 s, heartbeat-migration-backups 0.2 s, state-schema 0.0 s, config-flow 7.9 s, legacy-cron.crontab 0.0 s, legacy-cron.store 0.5 s, legacy-cron.inference 1.4 s, legacy-cron.execution-context 0.4 s, contributions 16.4 s, external-config 0.0 s, maintenance-ready 0.4 s, sqlite-reclamation 0.2 s, retained-runtimes 0.0 s, maintenance.finish 0.7 s, maintenance.release 0.1 s; slowest contributions: session-transcripts 3.2 s, write-config-migrations 2.8 s, legacy-cron 2.3 s, node-runtime 1.8 s, memory-search 1.5 s"
],
"deferredInspectionCheckIds": [
"core/doctor/database-engine",
"core/doctor/claude-cli",
"core/doctor/command-owner",
"core/doctor/default-account-routing",
"core/doctor/oauth-tls",
"core/doctor/hooks-model",
"core/doctor/legacy-output-cap",
"core/doctor/model-references",
"core/doctor/acp-agent-model",
"core/doctor/provider-catalog-projection",
"core/doctor/local-audio-acceleration",
"core/doctor/runtime-tool-schemas",
"core/doctor/whatsapp-responsiveness"
],
"configChanges": [
{
"kind": "key",
"key": "agents"
},
{
"kind": "key",
"key": "meta"
},
{
"kind": "key",
"key": "wizard"
},
{
"kind": "migration",
"message": "Prepared the agent roster for persistence."
}
],
"warnings": [
"Automation Memory Dreaming Promotion (bc2570fc-0c6a-4731-866b-7d21fe1a205c): inference account was not migrated: No route-compatible authentication source is configured for openai. Inspect available accounts with openclaw models auth list --agent main, then explicitly adopt the intended stored account with openclaw automations edit bc2570fc-0c6a-4731-866b-7d21fe1a205c --model 'openai/gpt-6-astra@<profileId>'.",
"core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields."
],
"advisory": {
"kind": "package-post-install-doctor",
"message": "Automation Memory Dreaming Promotion (bc2570fc-0c6a-4731-866b-7d21fe1a205c): inference account was not migrated: No route-compatible authentication source is configured for openai. Inspect available accounts with openclaw models auth list --agent main, then explicitly adopt the intended stored account with openclaw automations edit bc2570fc-0c6a-4731-866b-7d21fe1a205c --model 'openai/gpt-6-astra@<profileId>'.\ncore/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields."
}
},
{
"name": "database migration writes",
"command": "record Doctor database write fingerprints",
"cwd": "/home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases",
"durationMs": 0,
"exitCode": 0,
"diagnostics": [
"Doctor interval openclaw doctor; backup /home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases; from SHA-256 5cccb1541b21845757db6253c7821e3b879138868b6fc584805c0fd644048778 to SHA-256 5844a4a3847ffd091ce1fb6e33cee9c306395923cc661bb3b87b4c7ba10c73d4.",
"Post-migration write inventory: 4 databases; SHA-256 5844a4a3847ffd091ce1fb6e33cee9c306395923cc661bb3b87b4c7ba10c73d4. Snapshots: /home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases.",
"Database write fingerprint: /home/appuser/.openclaw/agents/main/agent/openclaw-agent.sqlite; bd77b5a73567dead65809ed6e47019dfad40da8b44ca08ce3319d58f0111d8e4",
"Database write fingerprint: /home/appuser/.openclaw/client/credentials.sqlite; 5ba3bd4cadb175ab07625895a4beba9ebb98fbea96fd6decedb12911004e682a",
"Database write fingerprint: /home/appuser/.openclaw/control/services.sqlite; 8b0c75a5e9e24bec8f86d1469662058928d22c540aa2f972946bc4d8952747c4",
"Database write fingerprint: /home/appuser/.openclaw/state/openclaw.sqlite; 2f73913fede381515e85c8cb87b1fa88282eb0b63bf2df044adf21422e18e958"
]
},
{
"name": "post-stop-checks",
"command": "recheck schemas, published artifacts and candidate configuration",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 134,
"exitCode": 0
},
{
"name": "post-plugin doctor",
"command": "/usr/local/bin/node /home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw/dist/infra/update-migrated-finalize.worker.js --doctor",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 19810,
"exitCode": 0,
"diagnostics": [
"Doctor sections: startup 0.0 s, maintenance.preserve-original-state 0.2 s, maintenance.begin 1.1 s, schema-admission 0.0 s, state-database-repair 0.7 s, database-migrations 3.9 s, heartbeat-migration-backups 0.2 s, state-schema 0.0 s, config-flow 6.1 s, contributions 3.8 s, external-config 0.0 s, maintenance-ready 0.4 s, sqlite-reclamation 0.2 s, retained-runtimes 0.0 s, maintenance.finish 0.7 s, maintenance.release 0.0 s; slowest contributions: session-transcripts 3.1 s, write-config 0.6 s, write-config-migrations 0.1 s, final-config-validation 0.0 s, auth-profile-migration 0.0 s"
],
"deferredInspectionCheckIds": []
},
{
"name": "database migration writes",
"command": "record Doctor database write fingerprints",
"cwd": "/home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases",
"durationMs": 0,
"exitCode": 0,
"diagnostics": [
"Doctor interval post-plugin doctor; backup /home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases; from SHA-256 d8165adca496bb3c176b2e35586db1f4ca5265bd9f70d5b06a5fbda168c7ee28 to SHA-256 33b100a18f04d3aa84a89f192082855b97cd016fa41c9bfada501a8cac06b6b4.",
"Post-migration write inventory: 4 databases; SHA-256 33b100a18f04d3aa84a89f192082855b97cd016fa41c9bfada501a8cac06b6b4. Snapshots: /home/appuser/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases.",
"Database write fingerprint: /home/appuser/.openclaw/agents/main/agent/openclaw-agent.sqlite; bd77b5a73567dead65809ed6e47019dfad40da8b44ca08ce3319d58f0111d8e4",
"Database write fingerprint: /home/appuser/.openclaw/client/credentials.sqlite; 5ba3bd4cadb175ab07625895a4beba9ebb98fbea96fd6decedb12911004e682a",
"Database write fingerprint: /home/appuser/.openclaw/control/services.sqlite; 8b0c75a5e9e24bec8f86d1469662058928d22c540aa2f972946bc4d8952747c4",
"Database write fingerprint: /home/appuser/.openclaw/state/openclaw.sqlite; e06fb1a08512cf0115adefd03e629e6c313708c3daa7dab95c52dc99bafa38a9"
]
},
{
"name": "finalize:plugins:0",
"command": "openclaw plugins update",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 0,
"exitCode": 0,
"advisory": {
"kind": "recoverable-maintenance",
"message": "WARNING: openclaw.json contains plaintext secret-bearing config fields."
}
},
{
"name": "managed-service-executor-check",
"command": "openclaw gateway install --update-executor check --json",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 302,
"exitCode": 0
},
{
"name": "managed-service-install",
"command": "openclaw gateway install --force --port 40231 --json",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 3573,
"exitCode": 0
},
{
"name": "managed-service-reconciliation",
"command": "openclaw gateway install --force",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 0,
"exitCode": 0,
"warnings": [
"Refreshed Gateway service definition. Backup: /home/appuser/.config/systemd/user/openclaw-gateway.service.reconcile-4ed6bc7f-04dc-440b-b154-15aed2faa593.bak, /home/appuser/.config/systemd/user/openclaw-gateway.service.reconcile-4ed6bc7f-04dc-440b-b154-15aed2faa593.receipt.bak",
"Terminal CLI setup skipped: the installed Gateway command has no reusable CLI entrypoint."
]
},
{
"name": "gateway verification",
"command": "gateway verification",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 16,
"exitCode": 0
},
{
"name": "post-update-maintenance-timing",
"command": "openclaw update",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 1711,
"exitCode": 0
},
{
"name": "plugin-cohort-commit-timing",
"command": "openclaw update",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 858,
"exitCode": 0
},
{
"name": "post-plugin-doctor-lint",
"command": "doctor --lint --json --severity-min error",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 2278,
"exitCode": 0,
"doctorLintFindings": [
{
"checkId": "core/doctor/security",
"message": "WARNING: openclaw.json contains plaintext secret-bearing config fields.",
"fixHint": "Migrate them to SecretRefs with openclaw secrets configure or openclaw secrets apply, then verify with openclaw secrets audit --check.; Paths: gateway.auth.token; Agents or workspace tools that can read config files may see these API keys/tokens.",
"severity": "warning",
"requirement": "config.plaintext_secrets"
}
],
"termination": "exit",
"signal": null,
"killed": false,
"stderrTail": "Doctor lint warning [core/doctor/security]: config.plaintext_secrets: WARNING: openclaw.json contains plaintext secret-bearing config fields.: Migrate them to SecretRefs with openclaw secrets configure or openclaw secrets apply, then verify with openclaw secrets audit --check.; Paths: gateway.auth.token; Agents or workspace tools that can read config files may see these API keys/tokens."
},
{
"name": "package-backup-retention",
"command": "openclaw update",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 167,
"exitCode": 0
},
{
"name": "recovery-artifact-cleanup",
"command": "openclaw update cleanup",
"cwd": "",
"durationMs": 1188,
"exitCode": 0,
"diagnostics": [
"Update backup cleanup removed 1 item (281603724 logical bytes, 269 MiB).",
"Removed /home/appuser/.openclaw.update-captures/1908ce00-53b5-4d92-9c5b-f678067a592a (281603724 logical bytes, 269 MiB)."
]
}
],
"recovery": {
"serviceRestartSafe": true,
"version": "2026.11.20-beta.2"
},
"localOverrides": {
"status": "none",
"added": 0,
"modified": 0,
"deleted": 0,
"applied": 0,
"conflicts": [],
"warnings": []
},
"durationMs": 125719,
"runId": "1908ce00-53b5-4d92-9c5b-f678067a592a",
"postUpdate": {
"plugins": {
"status": "warning",
"changed": false,
"warnings": [
{
"reason": "doctor-advisory",
"message": "WARNING: openclaw.json contains plaintext secret-bearing config fields.",
"guidance": [
"Migrate them to SecretRefs with openclaw secrets configure or openclaw secrets apply, then verify with openclaw secrets audit --check.\nPaths: gateway.auth.token\nAgents or workspace tools that can read config files may see these API keys/tokens."
]
}
],
"sync": {
"changed": false,
"switchedToBundled": [],
"switchedToNpm": [],
"warnings": [],
"errors": []
},
"npm": {
"changed": false,
"outcomes": []
},
"integrityDrifts": [],
"doctorLint": {
"name": "post-plugin-doctor-lint",
"command": "doctor --lint --json --severity-min error",
"cwd": "/home/appuser/um/pnpm-home/global/v11/926ea0a51a5e60b563a5c9f5e53c1fda01ec614676ee4355740d8c425a806cdb/node_modules/openclaw",
"durationMs": 2278,
"exitCode": 0,
"doctorLintFindings": [
{
"checkId": "core/doctor/security",
"message": "WARNING: openclaw.json contains plaintext secret-bearing config fields.",
"fixHint": "Migrate them to SecretRefs with openclaw secrets configure or openclaw secrets apply, then verify with openclaw secrets audit --check.; Paths: gateway.auth.token; Agents or workspace tools that can read config files may see these API keys/tokens.",
"severity": "warning",
"requirement": "config.plaintext_secrets"
}
],
"termination": "exit",
"signal": null,
"killed": false,
"stderrTail": "Doctor lint warning [core/doctor/security]: config.plaintext_secrets: WARNING: openclaw.json contains plaintext secret-bearing config fields.: Migrate them to SecretRefs with openclaw secrets configure or openclaw secrets apply, then verify with openclaw secrets audit --check.; Paths: gateway.auth.token; Agents or workspace tools that can read config files may see these API keys/tokens."
}
}
},
"run": {
"runId": "1908ce00-53b5-4d92-9c5b-f678067a592a",
"createdAtMs": 1795348717329,
"updatedAtMs": 1795348841159,
"trigger": "cli",
"phase": "finished",
"status": "succeeded",
"reason": null,
"origin": {
"admission": {
"owner": "candidate",
"protocol": 1,
"candidateVersion": "2026.11.20-beta.2",
"checks": [
{
"name": "config",
"status": "ok"
},
{
"name": "database-schema",
"status": "ok"
},
{
"name": "node-runtime",
"status": "ok"
},
{
"name": "plugin-availability",
"status": "ok"
}
]
},
"candidateAdmission": {
"protocol": 1,
"verdict": "admit",
"reasons": [],
"warnings": [],
"facts": {
"candidateVersion": "2026.11.20-beta.2",
"installedVersion": "2026.11.20-beta.1",
"nodeEngines": ">=24.16.0 <25 || >=26.1.0",
"checks": [
{
"name": "config",
"status": "ok"
},
{
"name": "database-schema",
"status": "ok"
},
{
"name": "node-runtime",
"status": "ok"
},
{
"name": "plugin-availability",
"status": "ok"
}
]
}
},
"driver": {
"host": "<container-host>",
"pid": 1089,
"startIdentity": "83388428"
},
"nextAction": "After confirming the update and your conversations are healthy, preview retained migration originals eligible for permanent cleanup with `openclaw update cleanup --dry-run` for state `~/.openclaw`. Before applying cleanup, stop the Gateway first (`openclaw gateway stop --force`). Use the same profile, state, and config settings.",
"cause": "none"
},
"target": {
"channel": "beta",
"tag": "~/um/openclaw-candidate.tgz",
"kind": "package",
"version": "2026.11.20-beta.2"
},
"before": {
"version": "2026.11.20-beta.1",
"buildId": "2026.11.20-beta.1-795efe2eebda-2026-11-22T08-03-55.108Z"
},
"after": {
"version": "2026.11.20-beta.2",
"buildId": "2026.11.20-beta.2-4f4f38695ec2-2026-11-22T08-03-55.164Z"
},
"steps": [
{
"step": "requested",
"status": "completed",
"startedAtMs": 1795348717329,
"endedAtMs": 1795348722525
},
{
"step": "driver:adopted",
"status": "completed",
"endedAtMs": 1795348717395
},
{
"step": "snapshot-space-preflight",
"status": "completed",
"exitCode": 0
},
{
"step": "diagnostic:snapshot-space-preflight",
"status": "completed",
"detail": "SQLite family ~/.openclaw/agents/main/agent/openclaw-agent.sqlite: 270 MiB (database and supporting files)."
},
{
"step": "diagnostic:snapshot-space-preflight:2",
"status": "completed",
"detail": "SQLite family ~/.openclaw/state/openclaw.sqlite: 5 MiB (database and supporting files)."
},
{
"step": "diagnostic:snapshot-space-preflight:3",
"status": "completed",
"detail": "SQLite family ~/.openclaw/client/credentials.sqlite: 0 MiB (database and supporting files)."
},
{
"step": "diagnostic:snapshot-space-preflight:4",
"status": "completed",
"detail": "SQLite family ~/.openclaw/control/services.sqlite: 0 MiB (database and supporting files)."
},
{
"step": "diagnostic:snapshot-space-preflight:5",
"status": "completed",
"detail": "Database migration room near ~/.openclaw/agents/main/agent: 334 MiB (349802912 bytes) needed; 343 GiB (367839707136 bytes) free."
},
{
"step": "diagnostic:snapshot-space-preflight:6",
"status": "completed",
"detail": "Pre-migration database image near ~/um/pnpm-home: 609 MiB (638117568 bytes) needed; 343 GiB (367839707136 bytes) free."
},
{
"step": "staging",
"status": "completed",
"startedAtMs": 1795348722525,
"endedAtMs": 1795348722536
},
{
"step": "candidate-admission",
"status": "completed",
"endedAtMs": 1795348722522,
"detail": "[{\"name\":\"config\",\"status\":\"ok\"},{\"name\":\"database-schema\",\"status\":\"ok\"},{\"name\":\"node-runtime\",\"status\":\"ok\"},{\"name\":\"plugin-availability\",\"status\":\"ok\"}]"
},
{
"step": "validating",
"status": "completed",
"startedAtMs": 1795348722536,
"endedAtMs": 1795348751775
},
{
"step": "pnpm-package-preinstall",
"status": "completed",
"startedAtMs": 1795348723900,
"endedAtMs": 1795348723922,
"exitCode": 0,
"termination": "exit",
"signal": null
},
{
"step": "pnpm-package-postinstall",
"status": "completed",
"startedAtMs": 1795348724365,
"endedAtMs": 1795348724571,
"exitCode": 0,
"termination": "exit",
"signal": null
},
{
"step": "updater-runtime-retention",
"status": "completed",
"startedAtMs": 1795348727892,
"endedAtMs": 1795348742868,
"exitCode": 0
},
{
"step": "diagnostic:updater-runtime-retention",
"status": "completed",
"startedAtMs": 1795348727892,
"endedAtMs": 1795348742868,
"detail": "{\"entries\":47096,\"estimatedBytes\":689901568,\"inventoryMs\":6525,\"materializationMs\":7346,\"linked\":41509,\"copied\":1736}"
},
{
"step": "candidate-recovery",
"status": "completed",
"startedAtMs": 1795348744436,
"endedAtMs": 1795348745290,
"exitCode": 0
},
{
"step": "previous gateway verification",
"status": "completed",
"startedAtMs": 1795348747128,
"endedAtMs": 1795348747469,
"detail": "Previous package is running and ready."
},
{
"step": "original-state-capture",
"status": "completed",
"detail": "Original state retained for manual recovery at ~/.openclaw.update-captures/1908ce00-53b5-4d92-9c5b-f678067a592a."
},
{
"step": "activating",
"status": "completed",
"startedAtMs": 1795348751775,
"endedAtMs": 1795348826223
},
{
"step": "service-stop",
"status": "completed",
"startedAtMs": 1795348752669,
"endedAtMs": 1795348753042
},
{
"step": "post-stop-checks",
"status": "completed",
"startedAtMs": 1795348753227,
"endedAtMs": 1795348753361,
"exitCode": 0
},
{
"step": "finalize:doctor:model-retirement",
"status": "completed",
"endedAtMs": 1795348817569,
"detail": "Deferred model retirement repair completed after plugin convergence."
},
{
"step": "warning:finalize:doctor:model-retirement:deferred",
"status": "skipped",
"detail": "Deferred model retirement repair completed after plugin convergence."
},
{
"step": "database snapshot",
"status": "completed",
"startedAtMs": 1795348753856,
"endedAtMs": 1795348756279,
"exitCode": 0
},
{
"step": "diagnostic:database snapshot",
"status": "completed",
"startedAtMs": 1795348753856,
"endedAtMs": 1795348756279,
"detail": "Databases snapshotted at ~/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases. Verified successful activation removes these snapshots only if automatic restoration remains available; otherwise retain them with the update's recovery artifacts."
},
{
"step": "diagnostic:database snapshot:2",
"status": "completed",
"startedAtMs": 1795348753856,
"endedAtMs": 1795348756279,
"detail": "~/.openclaw/agents/main/agent/openclaw-agent.sqlite -> ~/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases/payload/posix/home/appuser/.openclaw/agents/main/agent/openclaw-agent.sqlite; schema 43; 278245376 bytes; SHA-256 04a46854307caa0559ed20fffc8e6832044341b9adb957759224f1521091123f"
},
{
"step": "diagnostic:database snapshot:3",
"status": "completed",
"startedAtMs": 1795348753856,
"endedAtMs": 1795348756279,
"detail": "~/.openclaw/client/credentials.sqlite -> ~/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases/payload/posix/home/appuser/.openclaw/client/credentials.sqlite; schema 1; 49152 bytes; SHA-256 d78c3a2283d238a32e36128d55b2f2c1d054cb1533eba07988e2366085ff4031"
},
{
"step": "diagnostic:database snapshot:4",
"status": "completed",
"startedAtMs": 1795348753856,
"endedAtMs": 1795348756279,
"detail": "~/.openclaw/control/services.sqlite -> ~/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases/payload/posix/home/appuser/.openclaw/control/services.sqlite; schema 1; 16384 bytes; SHA-256 db3b5c34c805d6861dfc3a89947889705affa6e321a3e2c2c2494ac13ff5781f"
},
{
"step": "diagnostic:database snapshot:5",
"status": "completed",
"startedAtMs": 1795348753856,
"endedAtMs": 1795348756279,
"detail": "~/.openclaw/state/openclaw.sqlite -> ~/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases/payload/posix/home/appuser/.openclaw/state/openclaw.sqlite; schema 41; 3297280 bytes; SHA-256 7e7a1b75b89ecae313903637cc1773929b131680432e139ae8bc04963c61e86c"
},
{
"step": "openclaw doctor",
"status": "completed",
"startedAtMs": 1795348760772,
"endedAtMs": 1795348795657,
"exitCode": 0,
"termination": "exit",
"signal": null
},
{
"step": "database migration writes",
"status": "completed",
"startedAtMs": 1795348795656,
"endedAtMs": 1795348795656,
"exitCode": 0
},
{
"step": "diagnostic:database migration writes",
"status": "completed",
"startedAtMs": 1795348795656,
"endedAtMs": 1795348795656,
"detail": "Doctor interval post-plugin doctor; backup ~/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases; from SHA-256 d8165adca496bb3c176b2e35586db1f4ca5265bd9f70d5b06a5fbda168c7ee28 to SHA-256 33b100a18f04d3aa84a89f192082855b97cd016fa41c9bfada501a8cac06b6b4."
},
{
"step": "diagnostic:database migration writes:2",
"status": "completed",
"startedAtMs": 1795348795656,
"endedAtMs": 1795348795656,
"detail": "Post-migration write inventory: 4 databases; SHA-256 33b100a18f04d3aa84a89f192082855b97cd016fa41c9bfada501a8cac06b6b4. Snapshots: ~/um/pnpm-home/.openclaw.package-backup-1089-1795348745524.databases."
},
{
"step": "diagnostic:database migration writes:3",
"status": "completed",
"startedAtMs": 1795348795656,
"endedAtMs": 1795348795656,
"detail": "Database write fingerprint: ~/.openclaw/agents/main/agent/openclaw-agent.sqlite; bd77b5a73567dead65809ed6e47019dfad40da8b44ca08ce3319d58f0111d8e4"
},
{
"step": "diagnostic:database migration writes:4",
"status": "completed",
"startedAtMs": 1795348795656,
"endedAtMs": 1795348795656,
"detail": "Database write fingerprint: ~/.openclaw/client/credentials.sqlite; 5ba3bd4cadb175ab07625895a4beba9ebb98fbea96fd6decedb12911004e682a"
},
{
"step": "diagnostic:database migration writes:5",
"status": "completed",
"startedAtMs": 1795348795656,
"endedAtMs": 1795348795656,
"detail": "Database write fingerprint: ~/.openclaw/control/services.sqlite; 8b0c75a5e9e24bec8f86d1469662058928d22c540aa2f972946bc4d8952747c4"
},
{
"step": "diagnostic:database migration writes:6",
"status": "completed",
"startedAtMs": 1795348795656,
"endedAtMs": 1795348795656,
"detail": "Database write fingerprint: ~/.openclaw/state/openclaw.sqlite; e06fb1a08512cf0115adefd03e629e6c313708c3daa7dab95c52dc99bafa38a9"
},
{
"step": "warning:openclaw doctor",
"status": "completed",
"startedAtMs": 1795348760772,
"endedAtMs": 1795348795657,
"detail": "Automation Memory Dreaming Promotion (bc2570fc-0c6a-4731-866b-7d21fe1a205c): inference account was not migrated: No route-compatible authentication source is configured for openai. Inspect available accounts with openclaw models auth list --agent main, then explicitly adopt the intended stored account with openclaw automations edit bc2570fc-0c6a-4731-866b-7d21fe1a205c --model 'openai/gpt-6-astra@<profileId>'."
},
{
"step": "warning:openclaw doctor:2",
"status": "completed",
"startedAtMs": 1795348760772,
"endedAtMs": 1795348795657,
"detail": "core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields."
},
{
"step": "warning:openclaw doctor:3",
"status": "skipped",
"startedAtMs": 1795348760772,
"endedAtMs": 1795348795657,
"detail": "Settled or superseded later in this update."
},
{
"step": "diagnostic:openclaw doctor",
"status": "completed",
"startedAtMs": 1795348760772,
"endedAtMs": 1795348795657,
"detail": "Doctor sections: startup 0.0 s, maintenance.preserve-original-state 0.2 s, maintenance.begin 1.1 s, schema-admission 0.0 s, state-database-repair 0.7 s, database-migrations 4.0 s, heartbeat-migration-backups 0.2 s, state-schema 0.0 s, config-flow 7.9 s, legacy-cron.crontab 0.0 s, legacy-cron.store 0.5 s, legacy-cron.inference 1.4 s, legacy-cron.execution-context 0.4 s, contributions 16.4 s, external-config 0.0 s, maintenance-ready 0.4 s, sqlite-reclamation 0.2 s, retained-runtimes 0.0 s, maintenance.finish 0.7 s, maintenance.release 0.1 s; slowest contributions: session-transcripts 3.2 s, write-config-migrations 2.8 s, legacy-cron 2.3 s, node-runtime 1.8 s, memory-search 1.5 s"
},
{
"step": "doctor-config:openclaw doctor:0",
"status": "completed",
"startedAtMs": 1795348760772,
"endedAtMs": 1795348795657,
"detail": "Doctor changed config key: agents.",
"configChange": {
"kind": "key",
"key": "agents"
}
},
{
"step": "doctor-config:openclaw doctor:1",
"status": "completed",
"startedAtMs": 1795348760772,
"endedAtMs": 1795348795657,
"detail": "Doctor changed config key: meta.",
"configChange": {
"kind": "key",
"key": "meta"
}
},
{
"step": "doctor-config:openclaw doctor:2",
"status": "completed",
"startedAtMs": 1795348760772,
"endedAtMs": 1795348795657,
"detail": "Doctor changed config key: wizard.",
"configChange": {
"kind": "key",
"key": "wizard"
}
},
{
"step": "doctor-config:openclaw doctor:3",
"status": "completed",
"startedAtMs": 1795348760772,
"endedAtMs": 1795348795657,
"detail": "Doctor migration: Prepared the agent roster for persistence.",
"configChange": {
"kind": "migration",
"message": "Prepared the agent roster for persistence."
}
},
{
"step": "post-update verification",
"status": "completed",
"startedAtMs": 1795348797925,
"endedAtMs": 1795348825956
},
{
"step": "warning:finalize:doctor:model-retirement",
"status": "completed",
"detail": "Deferred model retirement repair completed after plugin convergence."
},
{
"step": "warning:finalize:plugins:0",
"status": "completed",
"detail": "WARNING: openclaw.json contains plaintext secret-bearing config fields."
},
{
"step": "restarting",
"status": "completed",
"startedAtMs": 1795348826223,
"endedAtMs": 1795348830176
},
{
"step": "managed-service-executor-check",
"status": "completed",
"startedAtMs": 1795348826235,
"endedAtMs": 1795348826537,
"exitCode": 0
},
{
"step": "managed-service-install",
"status": "completed",
"startedAtMs": 1795348826554,
"endedAtMs": 1795348830127,
"exitCode": 0
},
{
"step": "managed-service-reconciliation",
"status": "completed",
"endedAtMs": 1795348830139,
"exitCode": 0
},
{
"step": "warning:managed-service-reconciliation",
"status": "completed",
"endedAtMs": 1795348830150,
"detail": "Refreshed Gateway service definition. Backup: ~/.config/systemd/user/openclaw-gateway.service.reconcile-4ed6bc7f-04dc-440b-b154-15aed2faa593.bak, ~/.config/systemd/user/openclaw-gateway.service.reconcile-4ed6bc7f-04dc-440b-b154-15aed2faa593.receipt.bak"
},
{
"step": "warning:managed-service-reconciliation:2",
"status": "completed",
"endedAtMs": 1795348830161,
"detail": "Terminal CLI setup skipped: the installed Gateway command has no reusable CLI entrypoint."
},
{
"step": "verifying",
"status": "completed",
"startedAtMs": 1795348830176,
"endedAtMs": 1795348841159
},
{
"step": "service-running",
"status": "completed",
"endedAtMs": 1795348837932
},
{
"step": "gateway verification",
"status": "completed",
"startedAtMs": 1795348837923,
"endedAtMs": 1795348837939,
"exitCode": 0
},
{
"step": "global update",
"status": "completed",
"exitCode": 0,
"termination": "exit",
"signal": null
},
{
"step": "package-swap",
"status": "completed",
"exitCode": 0
},
{
"step": "post-plugin doctor",
"status": "completed",
"exitCode": 0
},
{
"step": "diagnostic:post-plugin doctor",
"status": "completed",
"detail": "Doctor sections: startup 0.0 s, maintenance.preserve-original-state 0.2 s, maintenance.begin 1.1 s, schema-admission 0.0 s, state-database-repair 0.7 s, database-migrations 3.9 s, heartbeat-migration-backups 0.2 s, state-schema 0.0 s, config-flow 6.1 s, contributions 3.8 s, external-config 0.0 s, maintenance-ready 0.4 s, sqlite-reclamation 0.2 s, retained-runtimes 0.0 s, maintenance.finish 0.7 s, maintenance.release 0.0 s; slowest contributions: session-transcripts 3.1 s, write-config 0.6 s, write-config-migrations 0.1 s, final-config-validation 0.0 s, auth-profile-migration 0.0 s"
},
{
"step": "finalize:plugins:0",
"status": "completed",
"exitCode": 0
},
{
"step": "post-update-maintenance-timing",
"status": "completed",
"exitCode": 0
},
{
"step": "plugin-cohort-commit-timing",
"status": "completed",
"exitCode": 0
},
{
"step": "post-plugin-doctor-lint",
"status": "completed",
"exitCode": 0,
"termination": "exit",
"signal": null
},
{
"step": "finalize:doctor-lint:post-plugin-doctor-lint",
"status": "completed",
"detail": "{\"exitCode\":0,\"termination\":\"exit\",\"signal\":null,\"killed\":false,\"counts\":{\"error\":0,\"warning\":1,\"info\":0},\"errors\":[],\"omitted\":0}"
},
{
"step": "package-backup-retention",
"status": "completed",
"exitCode": 0
},
{
"step": "recovery-artifact-cleanup",
"status": "completed",
"exitCode": 0
},
{
"step": "diagnostic:recovery-artifact-cleanup",
"status": "completed",
"detail": "Update backup cleanup removed 1 item (281603724 logical bytes, 269 MiB)."
},
{
"step": "diagnostic:recovery-artifact-cleanup:2",
"status": "completed",
"detail": "Removed /home/appuser/.openclaw.update-captures/1908ce00-53b5-4d92-9c5b-f678067a592a (281603724 logical bytes, 269 MiB)."
}
],
"verification": {
"recovery": {
"serviceRestartSafe": true,
"version": "2026.11.20-beta.2"
},
"runningVersion": "2026.11.20-beta.2",
"runningBuildId": "2026.11.20-beta.2-4f4f38695ec2-2026-11-22T08-03-55.164Z",
"serviceRunning": true,
"pid": 4169,
"port": 40231,
"versionMatch": true,
"pluginErrors": [],
"channelsReady": true,
"readyz": true,
"coreReady": true,
"settled": true
},
"repair": [],
"confirmedAtMs": 1795348837932,
"finishedAtMs": 1795348841159,
"downtimeMs": 85270,
"admission": {
"owner": "candidate",
"protocol": 1,
"candidateVersion": "2026.11.20-beta.2",
"checks": [
{
"name": "config",
"status": "ok"
},
{
"name": "database-schema",
"status": "ok"
},
{
"name": "node-runtime",
"status": "ok"
},
{
"name": "plugin-availability",
"status": "ok"
}
]
}
},
"reportPath": "/home/appuser/.openclaw/update-reports/1908ce00-53b5-4d92-9c5b-f678067a592a.md"
}
Raw log: Red, base, pnpm 12 (cell
|
Related: #203458
What Problem This Solves
A pnpm install can end up with a healthy Gateway on the new version and no supported way to update again. It happens when an update activates the new version, verifies it serving, and then its process exits before it settles the plugin recovery it reserved. #203458 fixes the main cause for future updates. An install already in this state stays stuck: every later
openclaw updateis refused within 2 s ("Update has unfinished recovery … It belongs to the installation at … Run openclaw update repair from that installation").openclaw update repairis refused too ("Plugin cohort recovery belongs to a different installation."). The only way out was editing the state database.User Impact
User impact:
openclaw update repairnow settles that leftover recovery from the installation that replaced the old one, and the nextopenclaw updateproceeds. When the dead update was killed and its lease is still in the lease store, the nextopenclaw updatesettles it by itself. Nothing changes for npm installs or for recovery whose recorded installation still exists.Update behavior. The installed updater runs first and cannot be patched, so the first command that benefits is one run by a build that contains this change:
openclaw updaterefuses and namesopenclaw update repair. Run it once; the nextopenclaw updatethen proceeds.pnpm add -g --allow-build=openclaw openclaw@<version with this change>, thenopenclaw update repair, thenopenclaw update. Verified in a real cell (below).Without this change there is no working sequence.
pnpm add -gof a newer build followed byopenclaw update repairis refused the same way,openclaw doctor --fixdoes not touch the update recovery, and everyopenclaw updateis refused (red cells below).What reaches this state.
latest2026.11.6 andbeta2026.11.10-beta.1 predate it. So today the state comes only from main builds between fix: keep the openclaw command and Gateway working after updating a pnpm install #201735 and fix(update): a pnpm update no longer fails after activating when the updater itself was installed by an update #203458.Why This Change Was Made
Cause. A plugin-cohort recovery records its installation by the package's real path (
cohort.installKey). On npm that path stays the same across updates. On pnpm each version has its own directory, and the global install path (…/global/v11/<hash>/node_modules/openclaw) is a link that activation re-points. Both owners compared that recorded real path with the current one:inspectInterruptedUpdateRecovery);openclaw update repair.After activation the two can never match. So neither command could act, and the refusal told the user to run repair "from that installation", which no longer exists.
Rule.
inspectPluginCohortInstallation, in the settlement owner, decides whose recovery it is. A recovery whose recorded directory differs from the current installation is treated as this installation's only when all of these hold:lstaterror counts as present.from.rootandto.rootof its reservation) now resolves to this installation.running, is not a managed handoff, recorded its driver processes, and every one of them is dead.Then the existing settlement runs unchanged. It keeps the plugin and config changes, as for any verified candidate. A
warning:plugin-cohort:replaced-installationstep on the dead run names both directories and the evidence. That step name joins the retained-step list, so history compaction keeps it. History reconciliation then closes the run asfailed/abandoned, and repair acknowledges it.Claims:
openclaw updatekeeps its existing proof that the dead updater's children are gone. They also claim the current installation through the executor's existingserviceRootlease.openclaw update's settlement note no longer says the Gateway was verified on the installed version when a later build replaced it.Nothing is stored that was not stored before: no schema, config key, protocol or retention change.
What stays refused.
openclaw triageagent route.openclaw update's lease rule is unchanged. A driver that unwound on its own released its lease, soopenclaw updatestill stops and names repair. That is the path the real stuck state takes; fix: keep a doubtful killed-update recovery on the repair path #201361 chose it deliberately.Designs rejected.
failed/abandoned. History reconciliation credits a dead driver's run with success only when a Gateway observer recordedbooted. This run has no such fact, and inventing one would forge evidence.Release lines:
release/2026.11.10: the squashed change applies cleanly (git apply --3way --check), and the first commit's settle tests pass there. Nine refusal rows fail there, because that line's refusals do not yet name theopenclaw triageroute. A backport would adjust those expectations.release/2026.11.7: has no killed-update settlement module (update-plugin-cohort-settlement.ts), so only the repair half could apply.Evidence
Real installed-package cells. Docker, systemd as PID 1 with a lingering user manager, the Gateway as a real managed
systemctl --userservice, a busy 256 MiB agent database under constant writes, and 1,000 marker rows written before the first update. pnpm 12.21 unless noted. Every build has its own version; nothing was relabelled.2026.11.20-beta.1), B (-beta.2), C (-beta.3): maine17201c964aplus one version-bump commit each that changes onlypackage.json:795efe2(A),4f4f386(B),84269f3(C). B lacks fix(update): a pnpm update no longer fails after activating when the updater itself was installed by an update #203458, so B → anything fails after activation.-beta.10/-beta.11): this PR's base35b84dab389.-beta.8/-beta.9): built from9d31439, this PR's first commit before it was rebased over unrelated main commits (subagent and queue files only).-beta.12/-beta.13): built from8111057, the second commit, which adds the round-1 review fixes below.-beta.14/-beta.15): built from8f11d78, which adds the round-2 fixes and merges main.-beta.16/-beta.17): built from9104b7a, which adds the round-3 fix and merges main.Each cell: install A;
openclaw updateA → B (passes); then B → X, which fails withupdate-recovery-pendingand leaves the stuck state. That state is arunning/verifyingrun with successful recorded verification, a plugin-cohort recovery keyed to a directory that no longer exists, and an empty update lease store.openclaw updateB1 → B2: refused, 1.8 s, "It belongs to the installation at … Run openclaw update repair from that installation".openclaw update repair: refused, 1.4 s, "Plugin cohort recovery belongs to a different installation."openclaw updateagain: refused.pnpm add -gB1openclaw update repair: refused, same message.openclaw updateB1 → B2: refused.9d31439. X = H1openclaw updateH1 → H2: refused, 1.9 s, "The update lease store no longer holds that update's lease … By hand: Run openclaw update repair, then retry openclaw update".openclaw update repair: exit 0, 74 s. It settles the recovery (commit), runs Doctor, then restarts and verifies the Gateway; its own runsucceeded. The dead run is closedfailed/abandonedand acknowledged.openclaw updateH1 → H2: exit 0ok, runsucceeded, Gateway serves-beta.9.9d31439, manual way out. X = C, thenpnpm add -gH1openclaw update repair: exit 0, 79 s. It settles from the manually installed build; Doctor replaced the stale Gateway through systemd and verified-beta.8.openclaw updateH1 → H2: exit 0ok.9d31439, pnpm 11.28.13. X = H1ok.9d31439. X = H1ok, repair finds nothing to settle, the next update isalready-current.8111057. X = H3ok, Gateway serves-beta.13.8111057, manual way out. X = C, thenpnpm add -gH3pnpm add -gH3: repair exit 0 (77 s), update H3 → H4 exit 0ok.8f11d78. X = H5ok, Gateway serves-beta.15.8f11d78, manual way out. X = C, thenpnpm add -gH5pnpm add -gH5: repair exit 0 (76 s), update H5 → H6 exit 0ok.9104b7a. X = H7ok, Gateway serves-beta.17.pnpm add -gH7pnpm add -gH7: repair exit 0 (76 s), update H7 → H8 exit 0ok.In every cell the 1,000 marker rows keep SHA-256
69cb2f12…a806from before the first update to the end, andPRAGMA quick_checkisok.Settlement warning recorded by repair (green cell, container paths)
Stuck state as recorded (red cell, read-only dump)
Earlier cells on older builds, with the Gateway under a service-manager shim, show the same dead end for the manual routes that exist today. After
pnpm add -gof #203458's own head build: repair refused,openclaw doctor --fixleaves the recovery untouched, update refused. Afterpnpm add -gof main31c9a9a: repair and update refused.Recordings (cell log live, then each operator command's output):
ok: https://github.com/user-attachments/assets/81d155e3-be52-42dc-ab16-feb725af92fdok: https://github.com/user-attachments/assets/cdfe26e0-51d6-4023-8c78-77cefefa48e79104b7a: https://github.com/user-attachments/assets/d0541d4f-79e7-4ca6-b74d-784ffdd472da8f11d78: https://github.com/user-attachments/assets/358feb6a-a1b0-4ba8-9d2b-d73f6fb0b7528f11d78, manual install then repair: https://github.com/user-attachments/assets/3dbd3e4c-0b55-4b01-9deb-99ef76e613828111057: https://github.com/user-attachments/assets/edd5e877-95d6-4bdc-8534-088c9d12d2838111057, manual install then repair: https://github.com/user-attachments/assets/9f233fec-d655-484b-95da-80118f8c80c5Raw cell logs are posted as PR comments and linked from each table row above. Each log set opens with a header naming its builds, head, command lines and exit codes, then gives the harness log, every command's stdout and stderr, and the final
openclaw update status --json, each in its own collapsed block. Nothing is cut. Host scratch paths, container hostnames and the container's machine ID are redacted. The rows for the intermediate heads9d31439(pnpm 12),8111057and8f11d78have no posted log; the PR-head rows repeat the same steps.Process tests at the owner (
update-command-killed-run-replaced.process.test.ts). A real childopenclaw updateprocess holds the installation lease, reserves its plugin recovery, writes config, records the outcome it reached and is SIGKILLed. The fixture then does what pnpm's activation does: the install path is re-pointed at a new package directory and the old one is removed. The realupdateCommandandupdateRepairCommandentries then run against real SQLite stores and the real lease store. Doctor's child process, plugin installs and the managed service are stand-ins.running;lstaterrors from a file standing where the directory's parent was (ENOTDIR) and from a parent with mode000(EACCES). TheEACCEScase is skipped when tests run as root, because root reads through the mode. Treating an unreadable path as gone fails both cases (mutation check).Red/green on the PR head
9104b7a, same tests: with the three product files reset to base35b84dab389, 13 fail and 1 passes (the unchanged refusal while the directory exists); as committed, all 14 pass. Recordings: red https://github.com/user-attachments/assets/72b93149-ab17-4ab9-83ee-31097dab8211, green https://github.com/user-attachments/assets/dcabe3fd-f152-416e-b644-75fab17f388e.Mutation check: each evidence guard was removed in turn and only this suite was run. Every guard is caught by a named control:
runningstatus → its own row;installed(from)) fails this case.Other checks on the head:
9104b7a's files.update-restart-module-outcomeandeager-import-closurepass.pnpm tsgo:core,tsgo:core:test,pnpm check:docs,git diff --checkandpnpm check:baseline-ratchets --base 35b84dab389 --no-merge-baseall pass, including session-identity and test-lines.Test files audited:
update-command-killed-run-replaced.process.test.ts(new).update-command-killed-run.process.test-support.ts: addslinkedInstallation,replacePackageDirectoryand arootoption. Nothing removed; every existing helper is still used.update-run-kill.process.test-support.ts: the child accepts an install path that differs from its installation key.vitest.database-worker-core-paths.mjs, because it needs the host-owned SQLite broker.Independent review. A read-only reviewer saw the diff and the behavior contract, not these conclusions, and found no blockers. Four of its findings were fixed here:
The reviewer's test-gap list led to the extra control rows and the mutation check. Its remaining note, about pnpm keeping old directories, is under "Not proven"; the pnpm 11.28.13 cell removed the old directory as pnpm 12 does.
ClawSweeper local review, round 1 (on
79bdfe4): overall C, proof C, patch C. Both findings were real and are fixed in8111057:Its test note, that each refusal row ran the commands several times, is fixed: each command runs once and its refusal is checked for the reason, the next step and the unchanged state.
ClawSweeper local review, round 2 (on
8111057): overall C, proof C, patch C. All three findings were real and are fixed in6c1525a:ClawSweeper local review, round 3 (on
8f11d78, the last allowed round): overall C, proof C, patch C. One finding, real, fixed in9104b7a:No fourth rating round was run. What held round 3 at C was this finding and its proof note: the held-lease and begun-commit routes have process tests but no shipped-CLI cell, and no cell starts from the latest stable release.
Round 2's test note is fixed too: the warning assertion now checks the facts (the old directory, the install path, the successor and the version) instead of the whole sentence. Its proof note is addressed in part: the exact-head cells are above. The killed-with-lease route and the begun-commit route still rest on process tests only (see "Not proven").
CI. Every failing job is inherited from main.
checks-node-changed-compact-large-27:src/gateway/server.roles-allowlist-update.test.ts› "update.run persists the accepted handoff before parking and restarting its foreground owner". The same test fails locally, with the same assertion, on main31c9a9a90f5(before #203458),35b84dab389,b8a55ae9207and450441b9040. This PR touches nothing it loads.checks-node-changed-compact-small-11: all 20 cases ofsrc/cli/update-finalization-output.process.test.tsfail withSyntaxError: … dist/legacy-finalizer/src/config/config.js does not provide an export named 'getRuntimeConfig', imported fromlegacy-finalizer/src/plugins/status-snapshot.js. The same 20 fail locally with the same error on main31c9a9a90f5and450441b9040.checks-node-changed-compact-large-47(since the latest merge of main):src/gateway/server-methods/update.ocm.test.ts› "refuses an invalid browser-authority before submitting to OCM" fails withpromise resolved "undefined" instead of rejecting. Locally it passes on mainadb2f7c4d4band fails the same way on main6ff7a062e54. That range's only change undersrc/gateway/server-methodsis #203488.These suites are selected here because this PR changes
src/cli/update-cli. Main's CI run on450441b9040passed; I did not check whether that run selects this test.Not proven
openclaw updatealone does not clear the real stuck state. Its dead driver released its lease, so the update names repair, and oneopenclaw update repairis needed. Automating that step needs a decision on the lease proof (see "Designs rejected"). Until then the refusal names theopenclaw triageagent route first and repair second.openclaw triageroute. Settling it would need a rollback-over-candidate decision for a directory that is gone.openclaw updatesettles by itself) and the begun-commit-then-later-build route are proven by process tests only, not in a Docker cell.autoreviewcould not run on this machine. The Codex route was refused ("selected model_provider must match the operator config"), and the Claude engine's OAuth session had expired. An independent read-only reviewer took its place (below).