Skip to content

fix: keep an update's Doctor pass from locking itself out of the state database - #207535

Merged
daniel-lxs merged 5 commits into
openclaw:mainfrom
fuller-stack-dev:fix/doctor-reopen-captured-writer
Nov 28, 2026
Merged

daniel-lxs merged 5 commits into
openclaw:mainfrom
fuller-stack-dev:fix/doctor-reopen-captured-writer

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Since #207274, two Doctor update cases on main fail after a 30-second wait with Update migration could not take exclusive access to …/state/openclaw.sqlite: another connection still has it open (database is locked, errcode 5): "completes retirement after Doctor migrations and native parent bookkeeping" and "… worker parent bookkeeping" in src/infra/update-doctor-migration-attribution.test.ts. Scheduled CI shows it on the Bun infra shard (run 46130442319 at 2837e84640b, still red at a63df4e7ba1). It reproduces locally under both Bun and Node, so it is not Bun-specific.

The connection that holds the database is this same process's shared-state SQLite worker. During an update's Doctor run:

  1. prepareDoctorRuntimeChecks opens the captured Doctor writer before the config flow (fix: await Doctor shared-state repair preparation #190875). The capture's migration step takes locking_mode=EXCLUSIVE on a cold open, and it needs every other connection closed.
  2. The config preflight's state-schema step (prepareOpenClawStateDatabaseSchema) drains state resources and retires that cached writer.
  3. Config repair writes (writeConfigMachineStateAsync, config audit and snapshot records) go through the shared-state worker. Under a maintenance scope that worker keeps its connection until the scope closes; it is never idle-retired.
  4. The next synchronous writer (repairAuthProfileMigration → readLegacyMigrationReceipt → openOpenClawStateDatabase) cold-opens the database under the capture, waits out the busy timeout against the worker's connection, and fails.

Before #207274, the Skill Workshop retirement step opened the state database for writing between steps 2 and 3. That incidental open re-published the captured writer before the worker opened, and later writers reused it. #207274 made that step read-only for a healthy store, which is correct for its own purpose, and the ordering hazard appeared.

User Impact

Updates on unreleased main builds can no longer fail this way when a config repair write is followed by a synchronous state writer in the same Doctor pass. No change outside an update's Doctor capture. Shipped releases do not contain #207274 (merged to main on 2026-11-28).

Why This Change Was Made

The state-schema step is where the captured Doctor writer gets retired, so that step now reopens it (openOpenClawStateDatabaseForDoctor) right after schema maintenance. It does this only when an update capture is active, the maintenance scope owns schema maintenance, the step reported no warnings and the state database exists. That matches the guard prepareDoctorRuntimeChecks already uses. At that point nothing else holds the database, so the capture's exclusive migration succeeds, and later synchronous writers reuse the published handle as they did before #207274.

Alternatives considered:

  • Reverting the Skill Workshop early return would bring back an accidental ordering dependency.
  • Retiring the process's own shared-state worker inside the exclusive migration step doesn't work, because that step runs synchronously and closing a worker actor is asynchronous.
  • Idle-retiring maintenance-scoped workers under a capture would change worker lifecycle across all of Doctor.

Neither test case changed: both already fail on the original defect.

Update behavior

This runs inside Doctor on the candidate (the new release's code), which is the code a published updater calls into, so no driver change is needed. Without an update capture (standalone doctor --fix, Gateway startup), the new branch does not run.

Evidence

Tested commit: b774393bdb2 on base 24b7801f980. The PR head f39611b4040 merges 14 later main commits (24b7801f980..beb28f6f7ad). None of them touch the state database, the Doctor capture, the config preflight or this step; they cover UI, i18n, test fixtures and the src/update system-service preflight (#207448). So the proof above was not rerun on the merge.

Bisect (git bisect run, two runs per point, Node): first bad commit 0d24c65470f (#207274). Its parent de354e4c4e3 passes. Both endpoints were rechecked under Bun: 0d24c65470f fails 2/2 and de354e4c4e3 passes 2/2.

Who holds the database. I instrumented openNodeSqliteDatabase to record every open and close of state/openclaw.sqlite, with thread id and stack, plus lsof at the failure point. This was in a disposable worktree only. Results:

  • At the failure, the process held two read-write connections to the file. One was the migrating main-thread connection. The other was opened on a worker thread by infra/sqlite-store.worker.js (createSqliteWorkerBackend → openOpenClawStateDatabase). That open was requested by writeConfigMachineStateAsync ← recordConfigWriteMetadata ← writeConfigFileFromContext inside runDoctorConfigPreflight.
  • Every read-only open in the run had a matching close or dispose. The read-only inputs added by fix(doctor): decide config-flow's graph steps and update history without writing #207274 do not leak.
  • On the parent commit, the same worker connection exists. But the Skill Workshop step's main-thread writer (readDatabaseProposals → openOpenClawStateDatabase) opened before it and stayed cached, so the auth repair reused it.
  • Falsifier for "a pre-open is enough": calling openOpenClawStateDatabaseForDoctor in the test before the preflight (as prepareDoctorRuntimeChecks does) still failed. The trace showed that handle being retired inside the preflight by the state-schema step's resource drain. That is why the reopen sits after the state-schema step.

Red on base 24b7801f980, Bun, OPENCLAW_VITEST_RUNTIME=bun node scripts/run-vitest.mjs run src/infra/update-doctor-migration-attribution.test.ts -t "completes retirement":

red output
 × |infra| src/infra/update-doctor-migration-attribution.test.ts > completes retirement after Doctor migrations and native parent bookkeeping 38271ms
   → Update migration could not take exclusive access to <temp-state>/home/.openclaw/alias/state/openclaw.sqlite: another connection still has it open.
 × |infra| src/infra/update-doctor-migration-attribution.test.ts > completes retirement after Doctor migrations and worker parent bookkeeping 27486ms
   → Update migration could not take exclusive access to <temp-state>/home/.openclaw/alias/state/openclaw.sqlite: another connection still has it open.
Error: Update migration could not take exclusive access to <temp-state>/home/.openclaw/alias/state/openclaw.sqlite: another connection still has it open.
Caused by: Error: database is locked
Serialized Error: { errcode: 5, errstr: 'database is locked', code: 'ERR_SQLITE_ERROR' }
Error: Update migration could not take exclusive access to <temp-state>/home/.openclaw/alias/state/openclaw.sqlite: another connection still has it open.
Caused by: Error: database is locked
Serialized Error: { errcode: 5, errstr: 'database is locked', code: 'ERR_SQLITE_ERROR' }
 Test Files  1 failed (1)
      Tests  2 failed | 50 skipped (52)
   Duration  109.13s (tests 60%, transform 38%, import 2%)

Green on the tested head, same command:

green output
 ✓ |infra| src/infra/update-doctor-migration-attribution.test.ts > completes retirement after Doctor migrations and native parent bookkeeping 25730ms
 ✓ |infra| src/infra/update-doctor-migration-attribution.test.ts > completes retirement after Doctor migrations and worker parent bookkeeping 21765ms
 Test Files  1 passed (1)
      Tests  2 passed | 50 skipped (52)
   Duration  57.86s (tests 82%, transform 15%, import 2%)
--- node
 ✓ |infra| src/infra/update-doctor-migration-attribution.test.ts > completes retirement after Doctor migrations and native parent bookkeeping 38100ms
 ✓ |infra| src/infra/update-doctor-migration-attribution.test.ts > completes retirement after Doctor migrations and worker parent bookkeeping 29120ms
 Test Files  1 passed (1)
      Tests  2 passed | 50 skipped (52)
   Duration  79.58s (tests 85%, transform 12%, import 3%, setup 1%)

Affected suites on the tested head:

affected suites
OPENCLAW_VITEST_RUNTIME=bun node scripts/run-vitest.mjs run <14 files below>  (head b774393bdb2)
[test] starting test/vitest/vitest.unit.config.ts
 Test Files  1 passed (1)
      Tests  75 passed (75)
[test] starting test/vitest/vitest.infra.config.ts
 Test Files  4 passed (4)
      Tests  97 passed (97)
[test] starting test/vitest/vitest.cli-process.config.ts
 Test Files  1 passed (1)
      Tests  27 passed (27)
[test] starting test/vitest/vitest.cli.config.ts
 Test Files  1 passed (1)
      Tests  5 passed (5)
[test] starting test/vitest/vitest.commands.config.ts
 Test Files  7 passed (7)
      Tests  63 passed (63)

files: src/infra/update-doctor-migration-attribution.test.ts src/infra/update-doctor-migration-wal-rebuild.test.ts src/commands/doctor-schema-migrations.test.ts src/commands/doctor-config-preflight.schema-preparation.test.ts src/commands/doctor-config-preflight.state-migration.test.ts src/commands/doctor-state-migrations.test.ts src/flows/doctor-health-contributions.pending-read-only.test.ts src/commands/doctor-maintenance.stopped-systemd.test.ts src/commands/doctor-maintenance.worker.test.ts src/infra/update-migrated-finalize.worker.test.ts src/cli/update-cli/update-command-migrated-schema.test.ts src/cli/update-cli/update-command-database-receipts.test.ts src/commands/doctor-session-entry-state.capture.test.ts src/commands/doctor-config-flow-pending.test.ts

Other checks:

  • OPENCLAW_CHECK_CHANGED_SKIP_DEADCODE=1 node scripts/check-changed.mjs on the tested head: exit 0 (typecheck core, typecheck core tests, lint, import cycles and the guards). The full run's dead export scan fails on base exports this branch does not touch (cli-root-options.mjs: getCommandOptionsWithRootOptions, shouldDisableCodexToolSearchForModel, AgentHarnessSideQuestionRequest, CORE_TOOL_CATALOG_FAMILIES, PendingInputHistoryRunState).
  • Session identity ratchet: OK.
  • Autoreview: Codex route, --max-priority P2 --thinking high, with source context for the Doctor startup, capture, worker owner, state database, preflight and test files. Result: scoped-clean, "patch is correct (0.89)". The report lists the files it inspected.

Files audited: src/infra/state-migrations.state-schema.ts (whole file). src/infra/update-doctor-migration-attribution.test.ts is unchanged: its two cases are the regression and fail on the original defect.

Not proven:

  • No real openclaw update cell was run. A real update reaches this failure only if a config repair write lands between the state-schema step and the next synchronous state writer with no drain in between. I traced that code path but did not observe it end to end.
  • One unrelated timeout appeared once in a parallel Node batch: doctor-config-preflight.schema-preparation.test.ts "points failed setup…" took 31.5 s against a 30 s limit. It uses no update capture, so this branch does not run there. Alone it passes in 9.7 s.

Timing on this host: the two cases take 22–26 s green on the parent of #207274 and 22–26 s green on this head (Bun), so the fix adds no hidden wait. Red runs end at the busy timeout. In scheduled CI the good run took 34 s and 32 s (run 46125888240) and the red run 43 s and 37 s (run 46130442319).

PR CI: the first run (46149712291 on f39611b4040) failed only check-lint-core-5, on the duplicate case label that main later fixed in #207548. The head is now 449278ab21d: it merges main at 3740d8762a4, and none of the 22 new commits touch the capture, the state database or the config preflight. On that head both regression cases pass again under Bun and Node:

head2 bun  sha=449278ab21d exit=0  Tests 2 passed | 50 skipped (52)
head2 node sha=449278ab21d exit=0  Tests 2 passed | 50 skipped (52)

The changed-scope Node shards ran 29 state-migrations* and Doctor preflight files, and all passed. They did not select update-doctor-migration-attribution.test.ts, so the local red/green runs above cover that regression.

End-to-end update cells: in progress; results will be added here.

…ntenance

Schema maintenance in the config preflight retires the cached Doctor writer that prepareDoctorRuntimeChecks opened under an update capture. Later config writes go through the shared-state worker, which keeps its connection for the maintenance scope, so the next synchronous writer could not take the capture's exclusive access. Before openclaw#207274 the Skill Workshop retirement reopened the writer by accident; reopen it explicitly after the schema step.
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@fuller-stack-dev
fuller-stack-dev marked this pull request as ready for review November 28, 2026 13:27
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:crash-loop Crash, hang, restart loop, or process-level availability failure. clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

Reopen the captured Doctor writer after successful state-schema preparation so later repairs can reuse it.

Example: An update repairs session.idleMinutes: 45 and then imports an openai:default auth profile.

  • Before: The config worker can hold the database open, causing the subsequent synchronous auth repair to fail with SQLite errcode 5.
  • After: The auth repair reuses the writer reopened after schema preparation and completes.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported repair with meaningful regression evidence; shipped update behavior remains unproven.
Proof confidence 🦐 gold shrimp (3/6) This PR is exempt from contributor proof requirements; supplied Node/Bun runs exercise the real database owners through regression harnesses, while the shipped update flow remains unobserved.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An update's Doctor pass can fail because its own process holds another connection to the shared state database.
Reason: The maintainer-authored change narrowly repairs an evidenced current-main regression without introducing settings or changing intended repair behavior.

Regression provenance

Regression provenance — verified: source commit 0d24c65470f0 by Jason (Json); canonical PR #207274 (blame-to-merge-commit).

Merge readiness

✅ Ready for maintainer review

Keep open: this PR repairs a source-supported Doctor database self-lockout still present on main, with no actionable patch defects found.

Reviewed head: 8b28a461d5053f77f99c528c1edf3acf41683622

Before merge

None.

Findings

None.

Agent review details

How this fits together

Doctor's state-schema step prepares the shared database before config and auth repairs; an update capture records database changes for safe update settlement.

flowchart TD
  A[Update Doctor capture] --> B[State schema preparation]
  B --> C[Retire database resources]
  C --> D[Reopen captured writer]
  D --> E[Config worker writes]
  E --> F[Auth repair reuses writer]
Loading

Technical review

Best possible solution:

Restore the captured writer at the schema-preparation boundary using the existing Doctor database and maintenance owners.

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

Source inspection establishes the resource-retirement, worker-open, synchronous-cold-open sequence, and supplied regression logs show the original lock failure; this read-only review executed no target code.

Is this the best way to solve the issue?

The repair restores the writer where schema maintenance retires it, preserves the intentional read-only Skill Workshop path, and requires no new lifecycle owner or retry mechanism.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit d7eb666 adds src/infra/state-migrations.state-schema.ts:77 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d7eb66656b81; files: src/infra/state-migrations.state-schema.ts)
  • Jason (Json): Raw commit 0d24c65 adds src/commands/doctor-skill-workshop-retire-proposals.ts:720 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0d24c65470f0; files: src/commands/doctor-skill-workshop-retire-proposals.ts)
  • Vincent Koc: Raw commit 6c5e220 adds src/infra/state-migrations.state-schema.ts:39 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 6c5e22056d96; files: src/infra/state-migrations.state-schema.ts)

PR surface

Source +22. Total +22 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 24 2 +22
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 24 2 +22

Preflight source

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

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

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

Workflow

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

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-28T13:44:24.496Z sha f39611b :: passed. :: none

Reviewed November 28, 2026, 10:40 AM ET / 15:40 UTC (Revision 2).

@fuller-stack-dev

fuller-stack-dev commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Inherited CI failure attribution (head f39611b4040, run 46149712291 attempt 1)

All 73 jobs of run 46149712291 have finished. One non-gate job failed: check-lint-core-5. openclaw/ci-gate fails only because of it. security-fast passed.

Failure: ui/config/control-ui-chunking.ts:178:10: error eslint(no-duplicate-case): Duplicate case label

Why this PR did not cause it:

  • fix(control-ui): keep Chat startup within its asset budget #207505 (b821606080f) added a second case "src/shared/assistant-display-content.ts": to that file, at lines 178 and 345. The file's version before that commit has one occurrence.
  • The file is byte-identical in the main parent of the CI merge (beb28f6f7ad), in the tested merge (57356ad2f5a, parents beb28f6f7ad and f39611b4040) and in this PR's head. This PR changes only src/infra/state-migrations.state-schema.ts.
  • The same error reproduces on the main parent:
$ git rev-parse HEAD
beb28f6f7ad81121da37a11907002265fb039474
$ node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json ui/config/control-ui-chunking.ts
ui/config/control-ui-chunking.ts:178:10: error eslint(no-duplicate-case): Duplicate case label help: Remove the duplicated case
[oxlint] FAILED (exit 1)
  • The duplicate is still on main at 62fb8591555 (checked 2026-11-28 14:35 UTC).

The ci-gate table marks this row "unknown" only because the selected scope differs from main. The evidence above is the attribution. The head stays frozen at f39611b4040: no push and no rerun.

Update: main fixed the duplicate case in #207548 (0e70c20e1c1). This attribution is withdrawn: the PR is landing through normal CI after merging main.

obviyus added a commit that referenced this pull request Nov 28, 2026
## What Problem This Solves

Related: #207448.

When update preflight cannot write an installation owned by a service account, it currently suggests taking that installation away from the account with `sudo chown -R`. The same guidance can target a symlink or missing directory, misclassify a symlinked home, or suggest ineffective commands to root and callers who already own the directory.

## User Impact

Permission failures name the owning account and tell the caller to update as that account or run `sudo openclaw update`. Ownership repair is suggested only for a root-owned existing directory inside the caller's resolved home. Windows receives no POSIX commands; read-only filesystems and already-owned directories get plain permission guidance with the path.

## Why This Change Was Made

Keep the existing refusal path and reason types. Reuse the existing NSS account-name resolver, falling back to the numeric UID when lookup fails. Remove the unused preflight state-directory argument and obsolete numeric command-options branches, and correct the host-prerequisite documentation to the installation-only 1.4 GB check.

Simplification: one inline classifier, no new status, phase, record, lease, notice, retry, trigger, or flag. +15 production lines: naming the owning account so no service-user prefix is chowned away; Ayaan's lock allows stated exceptions. Net test delta: +67 lines, consolidating the previous ownership tests into one table.

## Evidence

- Red on base `4f8d4f5a36d7`: the service-owned system-prefix case prints `sudo chown -R` instead of naming the service account (one expected regression failure).
- Green on head `5fd0f031f1ce8869085247dca269e06f525ab7a0`: `ocx test src/update/preflight.test.ts src/update/cli.system-service.test.ts --maxWorkers=1` — 32 passed, including all 14 ownership-table cases. Vitest-source tier; 139.39 seconds including compiled-worker preparation, test bodies under 4 seconds.
- Scoped formatting passed; LSP diagnostics reported no issues in the ownership test. Local lint reached SDK declaration preparation but timed out; a separate filtered prepare-test invocation also timed out before running. Those checks remain for hosted CI.
- Author pr-simplify pass complete: only the existing error-message path, specified dead-code removals, consolidated ownership proof, and stale prerequisite text remain.
- Local ClawSweeper reviewed `4f8d4f5a36d7..5fd0f03`: complete, patch correct, no correctness findings, security cleared. It notes the absence of a shipped-CLI end-to-end capture; the supplied red/green proof exercises the preflight owner boundary, not a full update.
- Exact-head [hosted CI](https://github.com/openclaw/openclaw/actions/runs/46155465855): 32 jobs passed; `docker-seed-e2e` is still running. [check-lint-core-5](https://github.com/openclaw/openclaw/actions/runs/46155465855/job/141012641078) failed on the unchanged `ui/config/control-ui-chunking.ts:178` duplicate case for `src/shared/assistant-display-content.ts` (also present at line 345 in base `4f8d4f5a36d7`). This is outside the six-file repair and is not changed or suppressed here.

No full local build, release branch change, merge, or update-restart-auth dispatch is included. The update-restart-auth lane has an unrelated Doctor state-database lock failure tracked by #207535 and remains with its owner.

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

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@daniel-lxs
daniel-lxs merged commit 3e55ac1 into openclaw:main Nov 28, 2026
122 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the fix/doctor-reopen-captured-writer branch November 28, 2026 16:04
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

End-to-end update cells: a real dev-channel update does not fail without this fix

Result: a plain openclaw update --yes from a Git dev-channel install succeeded in every cell that reached the target's Doctor pass, with and without this fix. None of them logged "could not take exclusive access". On these paths the defect showed only in the composed test, not in a real update. The fix is still the right ordering guard, and the cells show it does not get in a real update's way.

Harness: Linux Docker cells, one fresh container per cell. Each has a real systemd user Gateway (openclaw gateway install), config update.channel: dev and a seeded state store (config machine state written through the installed CLI). A local bare Git upstream acts as origin, and the cell moves its main to the target before the update. The update is the installed CLI's plain openclaw update --yes. /healthz is probed every 250 ms, and "outage" is the longest stretch with no HTTP response. Each cell's raw output is in the details blocks below.

Two drivers:

Two targets:

Cell Driver → target Exit Run record Doctor "exclusive access" Time not serving Left with
c1110-a1 2026.11.10 → (a) 0 succeeded ran under capture; changed config keys agents, wizard none 124.9 s serving the target
c1110-a2 2026.11.10 → (a) 0 succeeded ran under capture none 120.0 s serving the target
c1110-a3 2026.11.10 → (a) 0 succeeded ran under capture none 121.8 s serving the target
c1110-a-auth 2026.11.10 → (a), legacy auth-profiles.json seeded 0 succeeded ran under capture; migrated the flat auth store none 127.5 s serving the target
c1110-b1 2026.11.10 → (b) 0 succeeded ran under capture none 126.4 s serving the target
cmain-a1 de354e4c4e3 → (a) 0 succeeded no captured pass (release path) none 11.8 s serving the target

The capture failure needs a cold synchronous state writer after a config-flow write. The table only checked whether the update logged "exclusive access". Its absence does not prove the triggering sequence happened in these cells; that part is inferred from code.

Cells that could not reach the target (recorded rather than dropped):

  • Legacy config: with session.idleMinutes in the config, the 2026.11.10 updater refused at validation (invalid-config, exit 1, 6 s). The Gateway kept serving, so this route cannot make the preflight write config. This is the "config that makes the preflight write config" attempt: c1110-a1 already logged Doctor config writes, and no legacy key I found is accepted by the 2026.11.10 runtime and then rewritten by the target.
  • Release-branch checkout: with the release checkout on a local main branch, or detached at the tag, and upstream main moved straight to (a), the 2026.11.10 dev update refused at preflight-rebase (preflight-local-replay-conflict). The cause is a release-only commit f2fc41ab5 that conflicts in src/state/state-upgrade*. It exited 1, the Gateway stayed up with 0 ms outage, and nothing changed. The update cells therefore used targets whose history also contains the tag: 023e548c3bf for (a) and afff74da36c for (b). These are merge commits whose trees are byte-identical to beb28f6f7ad and f39611b4040. That refusal is a separate finding about moving a release checkout to the dev channel, not this defect.

Harness notes: the base images were snapshotted with the Gateway stopped. Each cell copies the checkout and state into the container's own layer first, because Docker's overlay filesystem refuses directory renames inside image layers (EXDEV), and the updater's activation makes such renames.

Recordings (inside the container; idle time compressed, 2× speed):

c1110-a1, 2026.11.10 → (a) without the fix:
https://github.com/user-attachments/assets/b392a5aa-37b7-49ce-addf-fb591cf69a66

c1110-b1, 2026.11.10 → (b) with the fix:
https://github.com/user-attachments/assets/334d13c9-c4e6-48fc-afda-2ab0dd6babca

c1110-a-auth, 2026.11.10 → (a) with a legacy auth store:
https://github.com/user-attachments/assets/c339e789-c06d-467d-8ec7-7316ffe3640d

c1110-a1: 2026.11.10 → (a) 023e548c3bf
installed HEAD 6ea542fd97e2876aa4c871ccc494ed5419a03c5c version OpenClaw 2026.11.10 (6ea542f)
upstream main -> 023e548c3bfbee975c78929cc8a34bfe9d0d563f
UPDATE_EXIT=0 wall=475.57252168655396
probe {"outageMs":124934,"samples":1971,"failed":496}
run: {"status":"succeeded","target":{"channel":"dev","tag":"dev","kind":"git","version":"2026.11.10","sha":"023e548c3bfbee975c78929cc8a34bfe9d0d563f","installationMethod":"git-checkout"},"steps":[]}
checkout HEAD after: 023e548c3bfbee975c78929cc8a34bfe9d0d563f
gateway active: active
healthz: 200
exclusive-access hits: none
--- update output (decisive lines) ---
  ✓ preflight-deps-install (7.6s)
  ✓ preflight-build (137.61s)
  ✓ candidate-recovery (978ms)
  ✓ preflight-update-clean-check (68ms)
  ✓ preflight-update-source-check (50ms)
  ✓ preflight-runtime-stage (50.77s)
  ✓ git-pin-update-upstream (6ms)
  ✓ git-update-history (709ms)
  ✓ git-update-tree (47ms)
  ✓ git-retained-tree (50ms)
  ✓ git-retained-object-availability (182ms)
  ✓ git-pack-update (10.01s)
  ✓ git update object directory (6ms)
  ✓ git update pack capacity (447ms)
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299998ms. Last observation: resolving the previous Gateway port and installed version
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299984ms. Last observation: checking service and listener identity on port 18789
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299742ms. Last observation: checking Gateway HTTP healthz and readyz endpoints
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299720ms. Last observation: checking service command ownership of the previous installation
Phase: activating
  ✓ post-stop-checks (108ms)
  ✓ git-import-admitted-target (60.25s)
  ✓ git-import-admitted-upstream (6ms)
  ✓ post-stop-checks (197ms)
  ✓ git-preserve-local-main (67ms)
  ✓ git-checkout (3.26s)
  ✓ git-runtime-activation (35ms)
  ✓ database snapshot (1.35s)
Doctor: Update schema admission
Doctor: startup
Doctor: retained runtimes
Doctor: maintenance begin
Doctor: Preserve original state
Doctor: schema admission
Doctor: state database repair
Doctor: database migrations
Doctor: heartbeat migration backups
Doctor: state schema
Doctor: Agent deletion journal
Doctor: UI protocol
Doctor: Source install
Doctor: CLI launcher
Doctor: Plugin runtime links
Doctor: config flow
Doctor: Config repairs
Doctor: contributions
Doctor: contributions (10s elapsed)
Doctor: external config
Doctor: maintenance ready
Doctor: sqlite reclamation
Doctor: maintenance finish
Doctor: maintenance release
  ✓ database migration writes (0ms)
  ! openclaw doctor (28.08s)
    Deferred 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.
    └  Doctor complete.
    Doctor: maintenance ready
    Doctor: sqlite reclamation
    Doctor: maintenance finish
    Doctor: maintenance release
    [update] Doctor changed config key: agents.
    [update] Doctor changed config key: wizard.
    [update] Doctor migration: Prepared the agent roster for persistence.
  ✓ git-verify-head (6ms)
  ✓ preflight-cleanup (2.52s)
Gateway readiness (readiness): waiting for Gateway listener; service=running PID=6241; listener=free; listener PIDs=none; health=unverified
Gateway: restarted and verified.
✅ OpenClaw updated to 2026.11.10.
Next: 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.
Warning: Refreshed Gateway service definition. Backup: ~/.config/systemd/user/openclaw-gateway.service.reconcile-71676036-72ba-43ed-ba47-a4cfccb1ff44.bak, ~/.config/systemd/user/openclaw-gateway.service.reconcile-71676036-72ba-43ed-ba47-a4cfccb1ff44.receipt.bak
Warning: Terminal CLI setup skipped: the installed Gateway command has no reusable CLI entrypoint.
c1110-a2: 2026.11.10 → (a)
installed HEAD 6ea542fd97e2876aa4c871ccc494ed5419a03c5c version OpenClaw 2026.11.10 (6ea542f)
upstream main -> 023e548c3bfbee975c78929cc8a34bfe9d0d563f
UPDATE_EXIT=0 wall=469.750821352005
probe {"outageMs":119951,"samples":1948,"failed":476}
run: {"status":"succeeded","target":{"channel":"dev","tag":"dev","kind":"git","version":"2026.11.10","sha":"023e548c3bfbee975c78929cc8a34bfe9d0d563f","installationMethod":"git-checkout"},"steps":[]}
checkout HEAD after: 023e548c3bfbee975c78929cc8a34bfe9d0d563f
gateway active: active
healthz: 200
exclusive-access hits: none
--- update output (decisive lines) ---
  ✓ preflight-deps-install (7.89s)
  ✓ preflight-build (138.16s)
  ✓ candidate-recovery (825ms)
  ✓ preflight-update-clean-check (64ms)
  ✓ preflight-update-source-check (44ms)
  ✓ preflight-runtime-stage (47.21s)
  ✓ git-pin-update-upstream (5ms)
  ✓ git-update-history (658ms)
  ✓ git-update-tree (42ms)
  ✓ git-retained-tree (47ms)
  ✓ git-retained-object-availability (159ms)
  ✓ git-pack-update (10.02s)
  ✓ git update object directory (4ms)
  ✓ git update pack capacity (434ms)
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299998ms. Last observation: resolving the previous Gateway port and installed version
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299988ms. Last observation: checking service and listener identity on port 18789
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299733ms. Last observation: checking Gateway HTTP healthz and readyz endpoints
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299711ms. Last observation: checking service command ownership of the previous installation
Phase: activating
  ✓ post-stop-checks (124ms)
  ✓ git-import-admitted-target (59.87s)
  ✓ git-import-admitted-upstream (6ms)
  ✓ post-stop-checks (114ms)
  ✓ git-preserve-local-main (63ms)
  ✓ git-checkout (3.07s)
  ✓ git-runtime-activation (37ms)
  ✓ database snapshot (1.21s)
Doctor: Update schema admission
Doctor: startup
Doctor: retained runtimes
Doctor: maintenance begin
Doctor: Preserve original state
Doctor: schema admission
Doctor: state database repair
Doctor: database migrations
Doctor: heartbeat migration backups
Doctor: state schema
Doctor: Agent deletion journal
Doctor: UI protocol
Doctor: Source install
Doctor: CLI launcher
Doctor: Plugin runtime links
Doctor: config flow
Doctor: Config repairs
Doctor: contributions
Doctor: contributions (10s elapsed)
Doctor: external config
Doctor: maintenance ready
Doctor: sqlite reclamation
Doctor: maintenance finish
Doctor: maintenance release
  ✓ database migration writes (0ms)
  ! openclaw doctor (26.25s)
    Deferred 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.
    └  Doctor complete.
    Doctor: maintenance ready
    Doctor: sqlite reclamation
    Doctor: maintenance finish
    Doctor: maintenance release
    [update] Doctor changed config key: agents.
    [update] Doctor changed config key: wizard.
    [update] Doctor migration: Prepared the agent roster for persistence.
  ✓ git-verify-head (6ms)
  ✓ preflight-cleanup (2.42s)
Gateway readiness (readiness): waiting for Gateway listener; service=running PID=6215; listener=free; listener PIDs=none; health=unverified
Gateway: restarted and verified.
✅ OpenClaw updated to 2026.11.10.
Next: 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.
Warning: Refreshed Gateway service definition. Backup: ~/.config/systemd/user/openclaw-gateway.service.reconcile-88d2aa50-0607-4771-8622-2d57188e7b5a.bak, ~/.config/systemd/user/openclaw-gateway.service.reconcile-88d2aa50-0607-4771-8622-2d57188e7b5a.receipt.bak
Warning: Terminal CLI setup skipped: the installed Gateway command has no reusable CLI entrypoint.
c1110-a3: 2026.11.10 → (a)
installed HEAD 6ea542fd97e2876aa4c871ccc494ed5419a03c5c version OpenClaw 2026.11.10 (6ea542f)
upstream main -> 023e548c3bfbee975c78929cc8a34bfe9d0d563f
UPDATE_EXIT=0 wall=482.40950417518616
probe {"outageMs":121763,"samples":1997,"failed":483}
run: {"status":"succeeded","target":{"channel":"dev","tag":"dev","kind":"git","version":"2026.11.10","sha":"023e548c3bfbee975c78929cc8a34bfe9d0d563f","installationMethod":"git-checkout"},"steps":[]}
checkout HEAD after: 023e548c3bfbee975c78929cc8a34bfe9d0d563f
gateway active: active
healthz: 200
exclusive-access hits: none
--- update output (decisive lines) ---
  ✓ preflight-deps-install (7.21s)
  ✓ preflight-build (141.85s)
  ✓ candidate-recovery (860ms)
  ✓ preflight-update-clean-check (64ms)
  ✓ preflight-update-source-check (46ms)
  ✓ preflight-runtime-stage (51.75s)
  ✓ git-pin-update-upstream (6ms)
  ✓ git-update-history (704ms)
  ✓ git-update-tree (43ms)
  ✓ git-retained-tree (53ms)
  ✓ git-retained-object-availability (165ms)
  ✓ git-pack-update (10.38s)
  ✓ git update object directory (6ms)
  ✓ git update pack capacity (478ms)
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299998ms. Last observation: resolving the previous Gateway port and installed version
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299983ms. Last observation: checking service and listener identity on port 18789
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299727ms. Last observation: checking Gateway HTTP healthz and readyz endpoints
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299702ms. Last observation: checking service command ownership of the previous installation
Phase: activating
  ✓ post-stop-checks (139ms)
  ✓ git-import-admitted-target (60.49s)
  ✓ git-import-admitted-upstream (6ms)
  ✓ post-stop-checks (114ms)
  ✓ git-preserve-local-main (67ms)
  ✓ git-checkout (3.2s)
  ✓ git-runtime-activation (34ms)
  ✓ database snapshot (1.24s)
Doctor: Update schema admission
Doctor: startup
Doctor: retained runtimes
Doctor: maintenance begin
Doctor: Preserve original state
Doctor: schema admission
Doctor: state database repair
Doctor: database migrations
Doctor: heartbeat migration backups
Doctor: state schema
Doctor: Agent deletion journal
Doctor: UI protocol
Doctor: Source install
Doctor: CLI launcher
Doctor: Plugin runtime links
Doctor: config flow
Doctor: Config repairs
Doctor: contributions
Doctor: contributions (10s elapsed)
Doctor: external config
Doctor: maintenance ready
Doctor: sqlite reclamation
Doctor: maintenance finish
Doctor: maintenance release
  ✓ database migration writes (0ms)
  ! openclaw doctor (26.48s)
    Deferred 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.
    └  Doctor complete.
    Doctor: maintenance ready
    Doctor: sqlite reclamation
    Doctor: maintenance finish
    Doctor: maintenance release
    [update] Doctor changed config key: agents.
    [update] Doctor changed config key: wizard.
    [update] Doctor migration: Prepared the agent roster for persistence.
  ✓ git-verify-head (5ms)
  ✓ preflight-cleanup (2.59s)
Gateway readiness (readiness): waiting for Gateway listener; service=running PID=6159; listener=free; listener PIDs=none; health=unverified
Gateway: restarted and verified.
✅ OpenClaw updated to 2026.11.10.
Next: 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.
Warning: Refreshed Gateway service definition. Backup: ~/.config/systemd/user/openclaw-gateway.service.reconcile-5a335923-1088-40a6-94a2-71a3c28a5d43.bak, ~/.config/systemd/user/openclaw-gateway.service.reconcile-5a335923-1088-40a6-94a2-71a3c28a5d43.receipt.bak
Warning: Terminal CLI setup skipped: the installed Gateway command has no reusable CLI entrypoint.
c1110-a-auth: 2026.11.10 → (a), legacy auth store
installed HEAD 6ea542fd97e2876aa4c871ccc494ed5419a03c5c version OpenClaw 2026.11.10 (6ea542f)
upstream main -> 023e548c3bfbee975c78929cc8a34bfe9d0d563f
UPDATE_EXIT=0 wall=486.11381554603577
probe {"outageMs":127470,"samples":2013,"failed":506}
run: {"status":"succeeded","target":{"channel":"dev","tag":"dev","kind":"git","version":"2026.11.10","sha":"023e548c3bfbee975c78929cc8a34bfe9d0d563f","installationMethod":"git-checkout"},"steps":[]}
checkout HEAD after: 023e548c3bfbee975c78929cc8a34bfe9d0d563f
gateway active: active
healthz: 200
exclusive-access hits: none
--- update output (decisive lines) ---
  ✓ preflight-deps-install (7.31s)
  ✓ preflight-build (138.59s)
  ✓ candidate-recovery (855ms)
  ✓ preflight-update-clean-check (67ms)
  ✓ preflight-update-source-check (45ms)
  ✓ preflight-runtime-stage (51.38s)
  ✓ git-pin-update-upstream (5ms)
  ✓ git-update-history (695ms)
  ✓ git-update-tree (46ms)
  ✓ git-retained-tree (48ms)
  ✓ git-retained-object-availability (172ms)
  ✓ git-pack-update (10.11s)
  ✓ git update object directory (6ms)
  ✓ git update pack capacity (480ms)
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299999ms. Last observation: resolving the previous Gateway port and installed version
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299985ms. Last observation: checking service and listener identity on port 18789
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299733ms. Last observation: checking Gateway HTTP healthz and readyz endpoints
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299512ms. Last observation: checking service command ownership of the previous installation
Phase: activating
  ✓ post-stop-checks (125ms)
  ✓ git-import-admitted-target (60.48s)
  ✓ git-import-admitted-upstream (7ms)
  ✓ post-stop-checks (125ms)
  ✓ git-preserve-local-main (64ms)
  ✓ git-checkout (3.22s)
  ✓ git-runtime-activation (42ms)
  ✓ database snapshot (1.38s)
Doctor: Update schema admission
Doctor: startup
Doctor: retained runtimes
Doctor: maintenance begin
Doctor: Preserve original state
Doctor: schema admission
Doctor: state database repair
Doctor: database migrations
Doctor: heartbeat migration backups
Doctor: state schema
Doctor: Agent deletion journal
Doctor: UI protocol
Doctor: Source install
Doctor: CLI launcher
Doctor: Plugin runtime links
Doctor: config flow
Doctor: Config repairs
Doctor: contributions
Doctor: contributions (10s elapsed)
Doctor: external config
Doctor: maintenance ready
Doctor: sqlite reclamation
Doctor: maintenance finish
Doctor: maintenance release
  ✓ database migration writes (0ms)
  ! openclaw doctor (29.55s)
    Deferred 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.
    └  Doctor complete.
    Doctor: maintenance ready
    Doctor: sqlite reclamation
    Doctor: maintenance finish
    Doctor: maintenance release
    [update] Doctor changed config key: agents.
    [update] Doctor changed config key: wizard.
    [update] Doctor migration: Prepared the agent roster for persistence.
  ✓ git-verify-head (7ms)
  ✓ preflight-cleanup (2.94s)
Gateway readiness (readiness): waiting for Gateway listener; service=running PID=6197; listener=free; listener PIDs=none; health=unverified
Gateway: restarted and verified.
✅ OpenClaw updated to 2026.11.10.
Next: 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.
Warning: Refreshed Gateway service definition. Backup: ~/.config/systemd/user/openclaw-gateway.service.reconcile-aa601258-2745-4b9b-8894-1d3f588120f1.bak, ~/.config/systemd/user/openclaw-gateway.service.reconcile-aa601258-2745-4b9b-8894-1d3f588120f1.receipt.bak
Warning: Terminal CLI setup skipped: the installed Gateway command has no reusable CLI entrypoint.
c1110-b1: 2026.11.10 → (b) afff74da36c
installed HEAD 6ea542fd97e2876aa4c871ccc494ed5419a03c5c version OpenClaw 2026.11.10 (6ea542f)
upstream main -> afff74da36ce3bebb9fb053686d224c6a9950e99
UPDATE_EXIT=0 wall=477.90198731422424
probe {"outageMs":126421,"samples":1980,"failed":502}
run: {"status":"succeeded","target":{"channel":"dev","tag":"dev","kind":"git","version":"2026.11.10","sha":"afff74da36ce3bebb9fb053686d224c6a9950e99","installationMethod":"git-checkout"},"steps":[]}
checkout HEAD after: afff74da36ce3bebb9fb053686d224c6a9950e99
gateway active: active
healthz: 200
exclusive-access hits: none
--- update output (decisive lines) ---
  ✓ preflight-deps-install (8.28s)
  ✓ preflight-build (137.56s)
  ✓ candidate-recovery (944ms)
  ✓ preflight-update-clean-check (70ms)
  ✓ preflight-update-source-check (44ms)
  ✓ preflight-runtime-stage (50.66s)
  ✓ git-pin-update-upstream (5ms)
  ✓ git-update-history (690ms)
  ✓ git-update-tree (42ms)
  ✓ git-retained-tree (50ms)
  ✓ git-retained-object-availability (136ms)
  ✓ git-pack-update (10.14s)
  ✓ git update object directory (5ms)
  ✓ git update pack capacity (442ms)
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299999ms. Last observation: resolving the previous Gateway port and installed version
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299987ms. Last observation: checking service and listener identity on port 18789
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299749ms. Last observation: checking Gateway HTTP healthz and readyz endpoints
previous gateway verification: Previous-Gateway readiness verification: service, listener identity, version/build, health RPC and /readyz. Budget 300000ms (300000ms startup floor). Remaining 299730ms. Last observation: checking service command ownership of the previous installation
Phase: activating
  ✓ post-stop-checks (110ms)
  ✓ git-import-admitted-target (60.19s)
  ✓ git-import-admitted-upstream (8ms)
  ✓ post-stop-checks (112ms)
  ✓ git-preserve-local-main (67ms)
  ✓ git-checkout (3.22s)
  ✓ git-runtime-activation (31ms)
  ✓ database snapshot (1.32s)
Doctor: Update schema admission
Doctor: startup
Doctor: retained runtimes
Doctor: maintenance begin
Doctor: Preserve original state
Doctor: schema admission
Doctor: state database repair
Doctor: database migrations
Doctor: heartbeat migration backups
Doctor: state schema
Doctor: Agent deletion journal
Doctor: UI protocol
Doctor: Source install
Doctor: CLI launcher
Doctor: Plugin runtime links
Doctor: config flow
Doctor: Config repairs
Doctor: contributions
Doctor: contributions (10s elapsed)
Doctor: external config
Doctor: maintenance ready
Doctor: sqlite reclamation
Doctor: maintenance finish
Doctor: maintenance release
  ✓ database migration writes (0ms)
  ! openclaw doctor (28.57s)
    Deferred 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.
    └  Doctor complete.
    Doctor: maintenance ready
    Doctor: sqlite reclamation
    Doctor: maintenance finish
    Doctor: maintenance release
    [update] Doctor changed config key: agents.
    [update] Doctor changed config key: wizard.
    [update] Doctor migration: Prepared the agent roster for persistence.
  ✓ git-verify-head (5ms)
  ✓ preflight-cleanup (2.6s)
Gateway readiness (readiness): waiting for Gateway listener; service=running PID=6306; listener=free; listener PIDs=none; health=unverified
Gateway: restarted and verified.
✅ OpenClaw updated to 2026.11.10.
Next: 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.
Warning: Refreshed Gateway service definition. Backup: ~/.config/systemd/user/openclaw-gateway.service.reconcile-7a68f05c-ae93-4133-aef4-3c079e186a87.bak, ~/.config/systemd/user/openclaw-gateway.service.reconcile-7a68f05c-ae93-4133-aef4-3c079e186a87.receipt.bak
Warning: Terminal CLI setup skipped: the installed Gateway command has no reusable CLI entrypoint.
cmain-a1: de354e4 → (a) beb28f6
installed HEAD de354e4c4e37b0911577be1a87b1f369c485ad78 version OpenClaw 2026.11.10 (de354e4)
upstream main -> beb28f6f7ad81121da37a11907002265fb039474
UPDATE_EXIT=0 wall=348.87846302986145
probe {"outageMs":11826,"samples":1466,"failed":46}
run: {"status":"succeeded","target":{"kind":"git","version":"2026.11.10","sha":"beb28f6f7ad81121da37a11907002265fb039474"},"steps":["notice:ack:skipped"]}
checkout HEAD after: de354e4c4e37b0911577be1a87b1f369c485ad78
gateway active: active
healthz: 200
exclusive-access hits: none
--- update output (decisive lines) ---
staging: staging
staging: prepare:worktree
staging: prepare:install
staging: prepare:build
validating: validating
restarting: restarting
finished: restarting
✅ OpenClaw updated to 2026.11.10.
c1110-a-cfg2: 2026.11.10 → (a), legacy session.idleMinutes
installed HEAD 6ea542fd97e2876aa4c871ccc494ed5419a03c5c version OpenClaw 2026.11.10 (6ea542f)
upstream main -> 023e548c3bfbee975c78929cc8a34bfe9d0d563f
UPDATE_EXIT=1 wall=6.472422122955322
probe {"outageMs":0,"samples":105,"failed":0}
run: {"status":"failed","target":{"channel":"dev","tag":"dev","kind":"git","installationMethod":"git-checkout"},"steps":["validating:failed","invalid-config:failed"]}
checkout HEAD after: 6ea542fd97e2876aa4c871ccc494ed5419a03c5c
gateway active: active
healthz: 200
exclusive-access hits: none
--- update output (decisive lines) ---
Phase: requested
Phase: staging
Phase: validating
Phase: finished
⚠️ OpenClaw update failed: invalid-config.
Cause: config-invalid
Update target: dev
Phases: requested (353ms) → staging (16ms) → validating (818ms)
Failed: validating
Failed: invalid-config — Exit code: 1; unrecognized key <key>
Failing check invalid-config (invalid-config); key session
c1110-a1.rebase-conflict: 2026.11.10 → (a) beb28f6, no tag history
installed HEAD 6ea542fd97e2876aa4c871ccc494ed5419a03c5c version OpenClaw 2026.11.10 (6ea542f)
upstream main -> beb28f6f7ad81121da37a11907002265fb039474
UPDATE_EXIT=1 wall=207.21550750732422
probe {"outageMs":0,"samples":903,"failed":0}
run: {"status":"failed","target":{"channel":"dev","tag":"dev","kind":"git","version":"2026.11.10","sha":"beb28f6f7ad81121da37a11907002265fb039474","installationMethod":"git-checkout"},"steps":["validating:failed","preflight-rebase:failed"]}
checkout HEAD after: 6ea542fd97e2876aa4c871ccc494ed5419a03c5c
gateway active: active
healthz: 200
exclusive-access hits: none
--- update output (decisive lines) ---
Phase: requested
Phase: staging
Phase: validating
  ✓ clean-check (4.31s)
  ✓ git-remote (4ms)
  ✓ git-config-update-upstream (3ms)
  ✓ git-config-update-upstream (3ms)
  ✓ git-config-update-upstream (5ms)
  ✓ git-config-update-upstream (3ms)
  ✓ git-target-inspection-fetch (9ms)
  ✓ git-resolve-target (4ms)
  ✓ upstream-check (3ms)
  ✓ upstream-check (4ms)
  ✓ git-rev-list (4ms)
  ✓ preflight-local-history (55ms)
  ✓ snapshot-space-preflight (2ms)
  ✓ updater-runtime-retention (80.58s)
  ✓ preflight-worktree (3.26s)
  ✓ preflight-reset (2.76s)
  ✓ preflight-clean (38ms)
  ✓ preflight-checkout (43ms)
  ✓ preflight-local-checkout (1.45s)
  ✗ preflight-rebase (85.28s)
    Failing check preflight-rebase (command-failed): warning: skipped previously applied commit 8b6448cc3
    warning: skipped previously applied commit f71ef9fdd
    hint: use --reapply-cherry-picks to include skipped commits
    hint: Disable this message with "git config advice.skippedCherryPicks false"
  ✓ preflight-rebase-state (6ms)
  ✓ preflight-rebase-abort (1.55s)
  ✓ preflight-cleanup (665ms)
Phase: finished
⚠️ OpenClaw update failed: preflight-local-replay-conflict.
Cause: unknown
Update target: 2026.11.10 (beb28f6f)
Phases: requested (366ms) → staging (27ms) → validating (193.86s)
Failed: validating
Failed: preflight-rebase — exit; CONFLICT (content): Merge conflict in test/state-upgrade.e2e.test.ts; Local commit f2fc41ab5 conflicts with the update target in 3 path(s): src/state/state-upgrade.test.ts, src/state/state-u
Failing check preflight-rebase (preflight-local-replay-conflict): Local commit f2fc41ab5 conflicts with the update target in 3 path(s): src/state/state-upgrade.test.ts, src/state/state-upgrade.ts, test/state-upgrade.e2e.test.ts
Failing check preflight-rebase (preflight-local-replay-conflict); key src/state/state-upgrade.test.ts
Failing check preflight-rebase (preflight-local-replay-conflict); key src/state/state-upgrade.ts
Failing check preflight-rebase (preflight-local-replay-conflict); key test/state-upgrade.e2e.test.ts

obviyus added a commit that referenced this pull request Nov 28, 2026
…07585)

## Problem
Native release updates launch advisory Doctor inspections after activation. The 120-second subprocess gates nothing and can time out even though the update has already succeeded.

## Change
- Delete the native Gateway's post-activation inspection task, its legacy-trial completion callback, and the unused selector export.
- Remove tests for that deleted task and clarify the native-versus-legacy behavior in Doctor docs.
- Keep the frozen legacy bridge's inspection helper, callers, step names, and coverage unchanged.
- In a separate test-only commit, pin ownership-guidance POSIX fixtures to Linux so Windows hosts do not select Windows guidance.

Native updates still succeed at core readiness; boot plugin maintenance and rollback behavior remain unchanged. Operators can run `openclaw doctor --lint` explicitly. No new mechanisms.

## Simplification and impact
Removed the advisory subprocess, scheduling path, projection loop, and error-reporting branch rather than replacing them. Production: +2/-68, net -66 lines. Tests: +2/-125, net -123 lines. Docs: +5/-2.

## Validation
- Local builds/tests were not run; hosted PR CI is the requested verification route.
- Do not dispatch the update-restart-auth lane: the known unrelated Doctor state-db lock is tracked by #207274 / #207535 and its validation is owned separately.
- No autoreview; no release-branch changes; do not merge.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…207563)

## What Problem This Solves

Related: openclaw#207448.

When update preflight cannot write an installation owned by a service account, it currently suggests taking that installation away from the account with `sudo chown -R`. The same guidance can target a symlink or missing directory, misclassify a symlinked home, or suggest ineffective commands to root and callers who already own the directory.

## User Impact

Permission failures name the owning account and tell the caller to update as that account or run `sudo openclaw update`. Ownership repair is suggested only for a root-owned existing directory inside the caller's resolved home. Windows receives no POSIX commands; read-only filesystems and already-owned directories get plain permission guidance with the path.

## Why This Change Was Made

Keep the existing refusal path and reason types. Reuse the existing NSS account-name resolver, falling back to the numeric UID when lookup fails. Remove the unused preflight state-directory argument and obsolete numeric command-options branches, and correct the host-prerequisite documentation to the installation-only 1.4 GB check.

Simplification: one inline classifier, no new status, phase, record, lease, notice, retry, trigger, or flag. +15 production lines: naming the owning account so no service-user prefix is chowned away; Ayaan's lock allows stated exceptions. Net test delta: +67 lines, consolidating the previous ownership tests into one table.

## Evidence

- Red on base `dea7fa5cc19b`: the service-owned system-prefix case prints `sudo chown -R` instead of naming the service account (one expected regression failure).
- Green on head `5fd0f031f1ce8869085247dca269e06f525ab7a0`: `ocx test src/update/preflight.test.ts src/update/cli.system-service.test.ts --maxWorkers=1` — 32 passed, including all 14 ownership-table cases. Vitest-source tier; 139.39 seconds including compiled-worker preparation, test bodies under 4 seconds.
- Scoped formatting passed; LSP diagnostics reported no issues in the ownership test. Local lint reached SDK declaration preparation but timed out; a separate filtered prepare-test invocation also timed out before running. Those checks remain for hosted CI.
- Author pr-simplify pass complete: only the existing error-message path, specified dead-code removals, consolidated ownership proof, and stale prerequisite text remain.
- Local ClawSweeper reviewed `dea7fa5cc19b..5fd0f03`: complete, patch correct, no correctness findings, security cleared. It notes the absence of a shipped-CLI end-to-end capture; the supplied red/green proof exercises the preflight owner boundary, not a full update.
- Exact-head [hosted CI](https://github.com/openclaw/openclaw/actions/runs/46155465855): 32 jobs passed; `docker-seed-e2e` is still running. [check-lint-core-5](https://github.com/openclaw/openclaw/actions/runs/46155465855/job/141012641078) failed on the unchanged `ui/config/control-ui-chunking.ts:178` duplicate case for `src/shared/assistant-display-content.ts` (also present at line 345 in base `dea7fa5cc19b`). This is outside the six-file repair and is not changed or suppressed here.

No full local build, release branch change, merge, or update-restart-auth dispatch is included. The update-restart-auth lane has an unrelated Doctor state-database lock failure tracked by openclaw#207535 and remains with its owner.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…e database (openclaw#207535)

Reopen the captured Doctor writer after successful state schema preparation. Later auth repairs can reuse it even after the config worker opens its own connection.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…enclaw#207585)

## Problem
Native release updates launch advisory Doctor inspections after activation. The 120-second subprocess gates nothing and can time out even though the update has already succeeded.

## Change
- Delete the native Gateway's post-activation inspection task, its legacy-trial completion callback, and the unused selector export.
- Remove tests for that deleted task and clarify the native-versus-legacy behavior in Doctor docs.
- Keep the frozen legacy bridge's inspection helper, callers, step names, and coverage unchanged.
- In a separate test-only commit, pin ownership-guidance POSIX fixtures to Linux so Windows hosts do not select Windows guidance.

Native updates still succeed at core readiness; boot plugin maintenance and rollback behavior remain unchanged. Operators can run `openclaw doctor --lint` explicitly. No new mechanisms.

## Simplification and impact
Removed the advisory subprocess, scheduling path, projection loop, and error-reporting branch rather than replacing them. Production: +2/-68, net -66 lines. Tests: +2/-125, net -123 lines. Docs: +5/-2.

## Validation
- Local builds/tests were not run; hosted PR CI is the requested verification route.
- Do not dispatch the update-restart-auth lane: the known unrelated Doctor state-db lock is tracked by openclaw#207274 / openclaw#207535 and its validation is owned separately.
- No autoreview; no release-branch changes; do not merge.

Co-authored-by: Ayaan Zaidi <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 29, 2026
…e database (#207535)

Reopen the captured Doctor writer after successful state schema preparation. Later auth repairs can reuse it even after the config worker opens its own connection.

(cherry picked from commit 3e55ac1)

Companion disposition: #207585 is a later main update-process refactor, not needed by the retained Doctor flow; #207595 is a Codex fixture change.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
…e database (#207535)

Reopen the captured Doctor writer after successful state schema preparation. Later auth repairs can reuse it even after the config worker opens its own connection.

(cherry picked from commit 3e55ac1)

Companion audit: a922203 changes the updater subprocess lifecycle and is not necessary for reopening the captured writer; d5db03d is unrelated Codex registration.

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

Labels

impact:crash-loop Crash, hang, restart loop, or process-level availability failure. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants