Skip to content

fix(update): say a missed original capture does not require a restart - #170380

Merged
RomneyDa merged 6 commits into
openclaw:mainfrom
DonnieFi:fix/170332-capture-warning
Oct 14, 2026
Merged

RomneyDa merged 6 commits into
openclaw:mainfrom
DonnieFi:fix/170332-capture-warning

Conversation

@DonnieFi

@DonnieFi DonnieFi commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: openclaw update tells the operator to retry the update when best-effort original-state capture fails, even though the update continues and finishes.

User Impact

User impact: the capture warning now says the update continues without the capture and that a completed update does not need to be restarted, so operators are no longer told to rerun a successful update.

Why This Change Was Made

Original-state capture stays one best-effort attempt. The warning no longer tells the operator to retry the update. It says the update continues without this capture, and that a completed update does not need to be restarted because of this warning.

No retry is added. The install is not stopped. The shared inspection diagnostic that ends with "then retry the update." is unchanged. Only this best-effort warning rewrites that trailing sentence, and it closes the sentence before the continuation.

Related #170332

Evidence

Production baseline — October 12 update

Captured from the real npm-global update on October 12, 2026 (Halifax time): Debian 13, Node v24.16.0, 2026.10.5-beta.1 (f283c3c) → 2026.10.5-beta.2 (467e83d), using openclaw update --channel beta --tag 2026.10.5-beta.2 --yes. The saved terminal capture and read-only update-run record agree that the run finished with phase: finished, status: succeeded. Private paths and capture identifiers are redacted; unrelated logs are omitted.

The same real update warned that original-state capture failed while reading the live state database, advised a retry, and then installed and finished:

Selected terminal lines, with unrelated output omitted:

Warning: Original state capture is unavailable: Original update capture failed; evidence retained at $OPENCLAW_STATE_DIR.update-captures/<capture-id> | State schema inspection failed (exit): [redacted-diagnostic]; after 4.215 seconds during shared database discovery for $OPENCLAW_STATE_DIR/state/openclaw.sqlite (scope: 1 source paths): SQLite file generation changed while reading: $OPENCLAW_STATE_DIR/state/openclaw.sqlite. Check access to the reported source, free space, and storage performance, then retry the update.
✓ package-install (15.69s)
Gateway: restarted and verified.
✅ OpenClaw updated to 2026.10.5-beta.2 (from 2026.10.5-beta.1).
Recorded verification: service running (2026.10.5-beta.2); version verified; channels ready; HTTP ready.

The capture diagnostic reports a generation change after 4.215 seconds. This establishes the contradictory retry advice during an otherwise successful update and preserves the intended best-effort continuation described by the maintainer.

Remaining proof gap: This was the official unpatched beta update. It proves the original warning and successful continuation, but does not show the revised warning from an installed CLI containing this PR. The patched command-boundary proof below remains the after-change evidence.

Installed-driver proof (this PR as the running updater)

Docker (openclaw-published-driver-update-e2e image, Linux, Node v24.21.0), synthetic state only. The branch at 3551492b0ab was packed and installed with npm install -g as the driver. Doctor ran, then a managed Gateway was started through the repo's systemd fixture (/readyz 200). A synthetic second writer committed net-zero schema transactions to state/openclaw.sqlite every 25 ms; it was stopped as soon as the capture warning printed (244 commits). Then openclaw update --tag <same build relabeled 2026.10.3>.tgz --yes ran from the installed driver.

$ openclaw --version
OpenClaw 2026.10.2 (3551492)
$ openclaw update --tag openclaw-candidate.tgz --yes
Warning: Original state capture is unavailable; the update continues without it. A running Gateway or another active writer changing state during capture is expected to cause this. Database rollback uses the pre-migration snapshots taken after the Gateway stops. A completed update does not need to be restarted because of this warning. Cause: Original update capture failed; evidence retained at $OPENCLAW_STATE_DIR.update-captures/8b2566c3-a8bc-4aa0-910b-7022f1bfa349 | State schema inspection failed (exit): [redacted-diagnostic]; after 0.297 seconds during database generation verification for source scope [$OPENCLAW_STATE_DIR/state/openclaw.sqlite, $OPENCLAW_STATE_DIR/agents/main/agent/openclaw-agent.sqlite] (scope: 2 source paths): SQLite WAL commit publication could not be verified: $OPENCLAW_STATE_DIR/state/openclaw.sqlite.
  ✓ package-install (32.3s)
  ✓ candidate-state-snapshot (9.07s)
  ✓ candidate-doctor (10.62s)
  ✓ candidate-doctor-lint (6.59s)
✅ OpenClaw updated to 2026.10.3 (from 2026.10.2).
Phases: requested (34.92s) → staging (12ms) → validating (129.16s) → activating (111.7s) → restarting (7.37s) → verifying (82.14s)
Recorded verification: service running (2026.10.3); version verified; channels ready; HTTP ready.
$ openclaw update status --json   # lastRun
"phase": "finished", "status": "succeeded"
$ openclaw --version
OpenClaw 2026.10.3 (3551492)

The revised warning leads with continuation guidance, has no retry advice, and names the real phase ("database generation verification") and both source paths. The update finished and the Gateway restarted on the candidate. The warning appears in full (no truncation).

That run exposed one more gap: the public summary still printed [redacted-diagnostic] because the generation check's WAL-commit causes ("SQLite WAL commit publication could not be verified" and "SQLite WAL commit header is unavailable or changing") weren't on the fixed-cause allowlist. 351d54b90d1 adds both, with cases in diagnostic-support-redaction.test.ts (59 passed, 1.6s). That commit only changes the allowlist; the Docker run above was against 3551492b0ab.

Rerun at the current head 351d54b90d1 (same harness and concurrent writer; 257 commits, stopped when the warning printed). The public summary now prints the WAL commit cause where it used to print [redacted-diagnostic], and the update still completes:

$ openclaw --version
OpenClaw 2026.10.2 (351d54b)
$ openclaw update --tag openclaw-candidate.tgz --yes
Warning: Original state capture is unavailable; the update continues without it. A running Gateway or another active writer changing state during capture is expected to cause this. Database rollback uses the pre-migration snapshots taken after the Gateway stops. A completed update does not need to be restarted because of this warning. Cause: Original update capture failed; evidence retained at $OPENCLAW_STATE_DIR.update-captures/5406080c-acc6-4c46-ab31-95c5fdf2bdc0 | State schema inspection failed (exit): SQLite WAL commit publication could not be verified; after 0.599 seconds during database generation verification for source scope [$OPENCLAW_STATE_DIR/state/openclaw.sqlite, $OPENCLAW_STATE_DIR/agents/main/agent/openclaw-agent.sqlite] (scope: 2 source paths): SQLite WAL commit publication could not be verified: $OPENCLAW_STATE_DIR/state/openclaw.sqlite.
✅ OpenClaw updated to 2026.10.3 (from 2026.10.2).
Phases: requested (30.25s) → staging (11ms) → validating (148.06s) → activating (107.25s) → restarting (10.1s) → verifying (79.54s)
Recorded verification: service running (2026.10.3); version verified; channels ready; HTTP ready.
$ openclaw update status --json   # lastRun
"phase": "finished", "status": "succeeded"
$ openclaw --version
OpenClaw 2026.10.3 (351d54b)

Not this PR: the same run later warned "Automatic database restoration unavailable: databases changed after snapshot capture". That is #170335's false generation change, which #170351 fixes.

Real Gateway writer (head 6a158a8baef)

Same Docker harness, with no synthetic writer this time. The managed Gateway served real agent turns against the mock OpenAI provider (scripts/e2e/mock-openai-server.mjs): one openclaw agent --agent main --session-key live-1-N turn every 2 s, continuing through the whole update, Gateway downtime included. The installed driver is this PR at 6a158a8baef; the candidate is the same build relabeled 2026.10.3.

$ openclaw --version
OpenClaw 2026.10.2 (6a158a8)
turns before update: 8
$ openclaw update --tag openclaw-candidate.tgz --yes
Warning: Original state capture is unavailable; the update continues without it. A running Gateway or another active writer changing state during capture is expected to cause this. Database rollback uses the pre-migration snapshots taken after the Gateway stops. A completed update does not need to be restarted because of this warning. Cause: Original update capture failed; evidence retained at $OPENCLAW_STATE_DIR.update-captures/e94dbeb3-7b73-418e-8d0e-48f4ed1bd6cb | Original database generation changed or could not be verified; capture is unsealed.
$OPENCLAW_STATE_DIR/state/openclaw.sqlite: generation changed after its snapshot.
✅ OpenClaw updated to 2026.10.3 (from 2026.10.2).
Recorded verification: service running (2026.10.3); version verified; channels ready; HTTP ready.
Gateway downtime: 132.18s.
$ openclaw update status --json   # lastRun
"phase": "finished", "status": "succeeded"
$ openclaw --version
OpenClaw 2026.10.3 (6a158a8)
readyz after: 200
turns: ok=130, failed=42 (all inside the 132 s Gateway downtime, "connection closed"), post-update turn ok
sessions after update: 131 of 131 completed turn sessions present, 0 missing

The Gateway's own writes are enough to trigger the warning, which is the reporter's case. Across three real-Gateway runs at this head and the previous one, the capture failed in a different way each time:

  • generation changed after its snapshot (above);
  • SQLite WAL commit publication could not be verified (two loops, one turn per second);
  • SQLite snapshot hash mismatch on openclaw-agent.sqlite-wal (four continuous loops).

The last cause still printed as [redacted-diagnostic] at 351d54b90d1. 6a158a8baef adds it to the fixed-cause allowlist, with a case in diagnostic-support-redaction.test.ts (60 passed, 7.1 s). The hash mismatch run happened before that commit, so it isn't reproduced at the new head; the unit case covers it.

Not this PR: with four back-to-back turn loops (473 turns), candidate admission refused the update. Its error was "could not inspect agent database …: SQLite source did not stabilize after 10 read-only inspection attempts (the database may be under concurrent write activity)". The previous Gateway kept serving (/readyz 200), and all 473 sessions were intact afterward. That is the existing admission retry budget, which is outside this warning-text change, so it goes on the follow-up list.

Proof

No live Gateway update was rerun. updateCommand({ yes: true, json: true, restart: false }) ran with captureUpdateRecoveryBaseline rejecting the generation-changed inspection error. The command resolved. The visible warning and the completed ledger step warning:original-state-capture: were:

Warning: Original state capture is unavailable: State schema inspection failed (exit): generation changed. Check access to the reported source, free space, and storage performance. The update continues without this capture. A completed update does not need to be restarted because of this warning.

The admitted run finished phase: finished, status: skipped, reason: already-current.

Base / head

The same boundary test against the parent initializer, which warns with the raw inspection error, failed (exit 1). That run printed:

Warning: Original state capture is unavailable: State schema inspection failed (exit): generation changed. Check access to the reported source, free space, and storage performance, then retry the update.

Head of the same test passed (exit 0) and printed the continuation warning above.

Test

update-command-fresh-preview.test.ts — "continues a completed update when original-state capture fails". The helper-only wording test is removed. The boundary test requires the continuation sentence in both the visible warning and the ledger step, rejects "retry the update", and requires the run to finish already-current.

Maintainer update (fix at the producer)

Pushed on top of this branch (merged current main, no history rewrite): fix(update): report original capture failures accurately. It replaces the post-hoc regex rewrite with a fix where the message is produced, and keeps this PR's "does not need to be restarted" sentence.

  • The storage/retry advice is no longer appended for the best-effort original capture (a retryAdvice option on the inspection diagnostics; restore and Doctor checks keep it). formatBestEffortOriginalCaptureWarning is removed.
  • Warning: "Original state capture is unavailable; the update continues without it. A running Gateway or another active writer changing state during capture is expected to cause this. Database rollback uses the pre-migration snapshots taken after the Gateway stops. A completed update does not need to be restarted because of this warning. Cause: …" The guidance comes first because the warning is length-bounded.
  • The failing step is named correctly ("database generation verification") with its real input paths, instead of "shared database discovery … scope: 1 source paths".
  • [redacted-diagnostic] is replaced by the fixed phrase "SQLite file generation changed while reading" (paths stay out of the public summary).
  • docs/cli/update/repair-and-recovery.md updated.

Evidence: a real database-generations worker with a preload writing between its two reads reproduces the issue's message before the change; the updateCommand test keeps this PR's name with the new assertions. Focused runs of update-command-fresh-preview, update-candidate-state.schema, and diagnostic-support-redaction pass (320s). tsgo:core:test, oxlint, oxfmt, git diff --check clean.

Supersedes my duplicate #170396, now closed.

Best-effort original-state capture continued after the inspection text
told the operator to retry the update. The continuation warning now says
the update proceeds without that capture.

Refs: openclaw#170332
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS labels Oct 12, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Oct 12, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR clarifies best-effort capture warnings and exposes accurate inspection phases, source paths, and fixed SQLite failure causes.

Example: An active Gateway changes openclaw.sqlite during an update's original-state capture.

  • Before: The warning advises retrying the update even when the update subsequently succeeds.
  • After: The warning explains that the update continues without this capture and that a completed update needs no restart.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused, owner-approved diagnostic repair with installed-entry-point evidence and no identified introduced defect; workflow approval remains separate.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The reviewed head ran as an installed updater in Docker with an active managed Gateway writing real agent sessions; capture failure printed the revised warning, the update completed, readiness recovered, and completed sessions survived. Earlier installed runs exercise the corrected generation phase and WAL cause; the final hash-mismatch allowlist addition has focused privacy coverage.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Operators are told to retry an update that continues and may finish successfully.
Reason: The recorded owner decision preserves best-effort capture and calls for clearer guidance; the patch implements that direction without adding user configuration or recovery policy.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR fixes misleading update guidance that remains on main, follows the recorded maintainer direction, and has no identified introduced defect.

Priority: P3
Reviewed head: 6a158a8baef9c834488ebcc3dcd7b9554cce12a2

Before merge

None.

Findings

None.

Agent review details

How this fits together

The installed updater attempts an original-state capture before initialization; isolated database workers return inspection results or diagnostics, which the CLI presents and records while preserving existing best-effort continuation.

flowchart TD
  A[Installed update CLI] --> B[Original capture owner]
  B --> C[Isolated database workers]
  C --> D[Inspection diagnostics]
  D --> E[Warning and update ledger]
  E --> F[Continue update]
  F --> G[Stopped Gateway migration snapshots]
Loading

Technical review

Best possible solution:

Land the producer-level diagnostic repair while preserving best-effort capture and the existing stopped-Gateway recovery boundary.

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

Current-main source shows capture errors becoming warnings followed by continued execution while shared diagnostics advise retrying; the report supplies matching released-beta output, and this review executed no target code.

Is this the best way to solve the issue?

The patch changes guidance at its producer, preserves retry advice for stopping callers, and retains the existing capture and recovery owners.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Original-state capture and continuation warning keeps the original intent (e47d0ce: Retain original state before initialization and Doctor repairs while preserving existing refusal and recovery behavior.)
  • Inspection phase, source scope, and retry guidance changes intended behavior with a stated reason (feb2c81: Make inspection failures identify the active source, phase, and useful next action; this PR explains why best-effort callers need different advice.)
  • Public diagnostic cause extraction keeps the original intent (f3b6fec: Preserve recognized fixed failure facts while keeping private paths and arbitrary diagnostic text out of public summaries.)
  • Database-specific unsealed capture reporting keeps the original intent (82c903c: Name affected databases and their verification failures without weakening sealing safeguards or best-effort continuation.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +34, Tests +122, Docs +6. Total +162 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 45 11 +34
Tests 3 122 0 +122
Docs 1 7 1 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 174 12 +162

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P3: The change corrects misleading diagnostic guidance during an otherwise functioning best-effort update flow.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-13T00:40:01.050Z sha e082f0e :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-13T01:45:46.478Z sha e082f0e :: needs real behavior proof before merge. :: [P2] Keep the new guidance ahead of the warning's truncation boundary
  • reviewed 2026-10-13T02:13:08.358Z sha 3551492 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-13T04:34:48.418Z sha 3551492 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-13T20:58:35.962Z sha 351d54b :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-14T01:52:10.146Z sha 351d54b :: needs maintainer review before merge. :: none
  • reviewed 2026-10-14T03:36:34.772Z sha 6a158a8 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-14T04:02:59.335Z sha 6a158a8 :: needs maintainer review before merge. :: none

Reviewed October 14, 2026, 8:36 AM ET / 12:36 UTC (Revision 10).

A capture rejection has to print the continuation warning and still finish
the already-current run. The inspection's retry sentence is closed before
that warning is appended. The shared diagnostic is unchanged.

Refs: openclaw#170332
@DonnieFi

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Label isolated database generation verification by its own phase and
actual source paths, promote fixed SQLite concurrent-write causes to
the public summary, and drop retry guidance from best-effort capture
failures. The update warning now says it continues without the
original-state capture and that pre-migration snapshots remain the
database rollback point.

Fixes openclaw#170332
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Oct 13, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review October 13, 2026 04:28
@clawsweeper

clawsweeper Bot commented Oct 13, 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.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Maintainer security review required

This external contributor PR changes sensitive security components. A maintainer must review these changes before merging.

Current SHA: 6a158a8baef9c834488ebcc3dcd7b9554cce12a2

These sensitive security changes were made:

  • src/logging/diagnostic-support-redaction.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

After reviewing the changes, post a new PR comment containing only approval commands, each on its own line:

/allow-security-sensitive-change

A later push requires a fresh approval comment.

An installed-driver run with a live writer failed original capture on
WAL commit publication verification, which the public summary still
masked as [redacted-diagnostic]. Allow both fixed WAL-commit causes from
the generation check.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 13, 2026
@RomneyDa

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 14, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 14, 2026
…gnostics

An installed-driver run whose own managed Gateway served agent turns during
original capture failed on a WAL snapshot hash mismatch, which the warning
still masked as [redacted-diagnostic]. Allow that fixed cause.
@RomneyDa

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Oct 14, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Oct 14, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Oct 14, 2026
@RomneyDa
RomneyDa merged commit a647368 into openclaw:main Oct 14, 2026
144 of 150 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
…openclaw#170380)

* fix(update): say a missed original capture does not require a restart

Best-effort original-state capture continued after the inspection text
told the operator to retry the update. The continuation warning now says
the update proceeds without that capture.

Refs: openclaw#170332

* test(update): record a missed original capture through updateCommand

A capture rejection has to print the continuation warning and still finish
the already-current run. The inspection's retry sentence is closed before
that warning is appended. The shared diagnostic is unchanged.

Refs: openclaw#170332

* fix(update): report original capture failures accurately

Label isolated database generation verification by its own phase and
actual source paths, promote fixed SQLite concurrent-write causes to
the public summary, and drop retry guidance from best-effort capture
failures. The update warning now says it continues without the
original-state capture and that pre-migration snapshots remain the
database rollback point.

Fixes openclaw#170332

* fix(update): keep WAL commit causes in public capture diagnostics

An installed-driver run with a live writer failed original capture on
WAL commit publication verification, which the public summary still
masked as [redacted-diagnostic]. Allow both fixed WAL-commit causes from
the generation check.

* fix(update): keep snapshot hash mismatch causes in public capture diagnostics

An installed-driver run whose own managed Gateway served agent turns during
original capture failed on a WAL snapshot hash mismatch, which the warning
still masked as [redacted-diagnostic]. Allow that fixed cause.

---------

Co-authored-by: Dallin Romney <[email protected]>
hilsbos pushed a commit to hilsbos/openclaw that referenced this pull request Oct 22, 2026
…openclaw#170380)

* fix(update): say a missed original capture does not require a restart

Best-effort original-state capture continued after the inspection text
told the operator to retry the update. The continuation warning now says
the update proceeds without that capture.

Refs: openclaw#170332

* test(update): record a missed original capture through updateCommand

A capture rejection has to print the continuation warning and still finish
the already-current run. The inspection's retry sentence is closed before
that warning is appended. The shared diagnostic is unchanged.

Refs: openclaw#170332

* fix(update): report original capture failures accurately

Label isolated database generation verification by its own phase and
actual source paths, promote fixed SQLite concurrent-write causes to
the public summary, and drop retry guidance from best-effort capture
failures. The update warning now says it continues without the
original-state capture and that pre-migration snapshots remain the
database rollback point.

Fixes openclaw#170332

* fix(update): keep WAL commit causes in public capture diagnostics

An installed-driver run with a live writer failed original capture on
WAL commit publication verification, which the public summary still
masked as [redacted-diagnostic]. Allow both fixed WAL-commit causes from
the generation check.

* fix(update): keep snapshot hash mismatch causes in public capture diagnostics

An installed-driver run whose own managed Gateway served agent turns during
original capture failed on a WAL snapshot hash mismatch, which the warning
still masked as [redacted-diagnostic]. Allow that fixed cause.

---------

Co-authored-by: Dallin Romney <[email protected]>
(cherry picked from commit a647368)
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

cli CLI command changes docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. security-review-required security-sensitive-changed size: S 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