Skip to content

fix(update): clarify in-progress updates and snapshot warnings - #155188

Merged
RomneyDa merged 2 commits into
mainfrom
fix/update-output-clarity
Sep 21, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/update-output-clarity

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes confusing update output: an unfinished background update repeats ordinary database sizes as warnings, advertises another update, buries the progress command, and gives opaque plugin migration advice.

User Impact

Operators see the active update and its phase, one final progress command after background handoff, and plugin guidance that explains preserved data/settings and waits for the current update before recommending repair. Successful snapshot sizing requires no database cleanup; bounded inventory remains accessible as non-warning diagnostic entries in openclaw update status --json. Actual capacity failures retain their remedy.

No configuration, schema, storage, snapshot-allocation, or plugin-completion semantics change. JSON availability remains factual. These output changes take effect once the updated CLI is installed; they cannot change an already-installed updater's first upgrade hop.

Why This Change Was Made

Snapshot preflight was putting informational inventory into the warning ledger, and availability rendering ignored the recorded active run. Handoff also printed generic health followups after the progress report. The existing snapshot producer, update ledger, report renderer, and plugin-warning formatter now provide consistent guidance without adding another lifecycle path. Producer-selected diagnostic messages now use the existing bounded/redacted step detail rows for both package and Git flows; raw stdout is not retained as diagnostics. Explicit handoff guidance replaces the generic running hint, and report locations appear before the final action.

The reported Git-pack size failure is already fixed by 81d1c56 and is not duplicated here. Why the original terminal update selected managed handoff, and the later managed-service-handoff-already-running attempt, remain separate investigations; this PR does not claim to repair helper ownership.

Evidence

  • Before production edits, focused regressions failed for five snapshot cases, eight handoff cases, the plugin formatter, and active-update status. They pass with this change.
  • Passing command/report and sibling suites cover active versus terminal status, preserved JSON availability, snapshot capacity/refusal, handoff installation identity, final action ordering, plugin repair guidance, config preservation, and triage.
  • Final status/progress run: 79 passing tests, 26.26s wall. Other focused runs: 232 tests in 49.17s; 13 selected snapshot/handoff cases in 19.31s reported test runtime; 113 sibling cases in 39.94s wall. These runs overlap and are not additive. The later single-worker runs and CI timing are recorded below.
  • node scripts/check-changed.mjs passed, including formatting, core/test typechecks, lint, dead exports, plugin boundaries, storage guards, and runtime cycles. Both changed docs passed the MDX check; git diff --check passed.
  • Local autoreview completed clean at its default P0 scope. Diff cleanup required no additional edits.

Published-driver × candidate proof passed on an isolated Blacksmith Testbox: run 35655153794. The canonical update-first-hop-compat-docker.sh lane installed published 2026.9.4, updated to this candidate, then ran the candidate's updater again. Both hops exited 0, matched the selected installed build, replaced the managed service PID, and left zero transaction residue. Canonical build and package integrity checks also passed. Total remote command wall: 15m39s. The task-owned worker was stopped.

The complete tested source tree 31918c0463926ce8e9d8c40f7db4b5cfddbd51d9 equals PR head 8c747353310's tree. The build stamps synthetic capsule carrier 81f48b0a8981; fixture metadata relabels the two targets as 2026.9.99-first-hop.0 and .1 to force real hops without changing runtime code.

Proof limits: this is an in-process packaged self-update with a systemd supervisor fixture, not a native detached launchd/systemd update. Native service supervision is unavailable in the selected Docker environment, and the operator's live Gateway was not changed. Handoff text, final-command ordering, and installation identity are covered at the real command/report boundaries with host spawning mocked. The original terminal's handoff selection remains the separate ownership investigation described above.

Observed follow-up: the first hop emitted a nonfatal Post-core update evidence could not be saved: EPERM ... fchmod warning from unchanged update-command-resume.ts; both hops and final service/residue assertions still passed. The fixture/environment versus product cause is not yet established; this pass must not be read as proof that warning is fixed.

ClawSweeper finding addressed in 8c747353310: the stronger package-command regression failed in all four successful-capacity cases before the repair and now passes. Successful snapshot inventory is retained as bounded, redacted diagnostic: step details, without warning rows. The shared converter test also protects the released reader shape, per-message bounds, and exclusion of raw stdout. The already-running helper now points to update status too.

Single-worker timing (node scripts/run-vitest.mjs ... --maxWorkers=1 --reporter=dot): 332 status/report/plugin/config/triage/step-key cases passed in 95.56s wrapper wall; 11 selected package-capacity, Git-snapshot, and ledger cases passed in 71.49s wrapper wall. Timings include compiler/worker setup; no new timers, polling, process fixtures, or worker restrictions were introduced in test code. Fresh local autoreview of the repair is clean at default P0 scope.

Production delta: net +14, tests net +68, docs net +9. Growth connects recorded active-run state to guidance and preserves producer-selected inventory through the shared bounded diagnostic ledger. No config, schema, allocation, or migration-completion change.

Exact-head CI passed: run 35655390085. GitHub reports the PR mergeable, non-draft, and clean.

Representative CI case durations (not suite wall time): active-status 137–148ms and report ordering 2–3ms; snapshot capacity 490–1240ms and managed handoff 168–323ms.

@clawsweeper

clawsweeper Bot commented Sep 21, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes commands Command implementations size: S maintainer Maintainer-authored PR labels Sep 21, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 21, 2026, 5:30 PM ET / 21:30 UTC (Revision 3).

ClawSweeper review

What this changes

The PR clarifies active-update and background-handoff guidance, preserves snapshot inventory as informational diagnostics, and explains unfinished plugin upgrades.

Merge readiness

⛔ Blocked before merge - 1 item remains

The prior diagnostic-loss finding is resolved, and no blocking patch defects remain. The change is still useful: current main and the latest release retain the misleading snapshot warnings.

Priority: P2
Reviewed head: 8c747353310c0c948f8620d5509be8812a39f2a9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with the earlier defect resolved, meaningful regressions, and clearly scoped upgrade evidence.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored presentation change. The required published-driver upgrade cell is recorded against a matching source tree; command/report tests cover guidance, while native detached supervision remains expressly untested. Raw-log inspection was blocked by the reviewer’s network allowlist.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored presentation change. The required published-driver upgrade cell is recorded against a matching source tree; command/report tests cover guidance, while native detached supervision remains expressly untested. Raw-log inspection was blocked by the reviewer’s network allowlist.
Evidence reviewed 9 items Introduced patch and review continuity: Reviewed the pinned merge-base-to-head delta. The earlier finding is addressed: successful snapshot checks return diagnostics, and the shared converter retains them separately from warning rows. The stale test merge was not used to attribute base changes to this PR.
Both callers retain diagnostics through the existing owner: Package preflight records the shared converter’s rows directly; Git execution records them through the existing result/progress path. Diagnostics remain subject to 32-message and 1024-unit limits and the ledger’s existing redaction and byte budget. Raw stdout is not promoted to diagnostic rows.
Behavior and compatibility coverage: The package regression checks retained inventory and absent warning noise in four successful-capacity cases while preserving refusal diagnostics. The ledger regression checks released-reader compatibility, bounded details, and exclusion of raw stdout. Status coverage preserves factual JSON availability; report coverage checks final-action ordering. Tests were inspected, not executed during this read-only review.
Findings None None.
Security None None.

How this fits together

OpenClaw’s updater records progress, snapshot checks, and plugin upgrade outcomes in its update ledger. CLI status and report rendering turn those recorded facts into operator guidance.

flowchart TD
  A[Update command] --> B[Snapshot capacity check]
  B --> C[Bounded update ledger]
  D[Background helper progress] --> C
  E[Pending plugin upgrades] --> F[Status and report rendering]
  C --> F
  F --> G[Progress guidance and JSON diagnostics]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +14, Tests +68, Docs +9. Total +91 across 21 files.

View PR surface stats
Area Files Added Removed Net
Source 10 59 45 +14
Tests 9 92 24 +68
Docs 2 13 4 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 21 164 73 +91

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +14 lines; tests net +68 lines Production growth connects existing progress and diagnostic owners, with regression coverage for retention, compatibility, and output ordering.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor-config-preflight-plugin-migrations.ts, migration/backfill/repair: src/config/validation-plugin-config.ts, migration/backfill/repair: src/infra/deferred-plugin-migrations.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep update guidance tied to the existing ledger while retaining bounded inventory diagnostics and unchanged snapshot safety checks.

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

Yes, from source: a successful snapshot preflight on current main emits inventory as warnings, and status advertises availability despite a recorded active update. This review did not execute the updater.

Is this the best way to solve the issue?

Yes. The patch uses existing snapshot, ledger, and report owners while preserving capacity refusals, JSON availability, and plugin migration semantics.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

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

Label justifications:

  • P2: Misleading update guidance warrants a normal-priority repair; the evidence does not establish a blocked update or new availability failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored presentation change. The required published-driver upgrade cell is recorded against a matching source tree; command/report tests cover guidance, while native detached supervision remains expressly untested. Raw-log inspection was blocked by the reviewer’s network allowlist.

Evidence

What I checked:

  • Introduced patch and review continuity: Reviewed the pinned merge-base-to-head delta. The earlier finding is addressed: successful snapshot checks return diagnostics, and the shared converter retains them separately from warning rows. The stale test merge was not used to attribute base changes to this PR. (src/infra/update-run-step.ts:96, 8c747353310c)
  • Both callers retain diagnostics through the existing owner: Package preflight records the shared converter’s rows directly; Git execution records them through the existing result/progress path. Diagnostics remain subject to 32-message and 1024-unit limits and the ledger’s existing redaction and byte budget. Raw stdout is not promoted to diagnostic rows. (src/cli/update-cli/update-command-target.ts:582, 8c747353310c)
  • Behavior and compatibility coverage: The package regression checks retained inventory and absent warning noise in four successful-capacity cases while preserving refusal diagnostics. The ledger regression checks released-reader compatibility, bounded details, and exclusion of raw stdout. Status coverage preserves factual JSON availability; report coverage checks final-action ordering. Tests were inspected, not executed during this read-only review. (src/infra/update-run-step-key.test.ts:98, 8c747353310c)
  • Current-main necessity: Fetched main still appends successful snapshot inventory to warnings and formats pending plugin guidance without incorporating the recorded active run. No verified replacement fixing PR was established. (src/infra/update-candidate-snapshot.ts:145, b4f6bb9bfa61)
  • Latest-release check: The v2026.9.5 source also puts successful snapshot inventory in warning rows. The local historical blob was unavailable, so this source check used GitHub’s contents API. (src/infra/update-candidate-snapshot.ts:145, ec9c1a13db89)
  • Published-driver proof and its limits: The captured PR body records published 2026.9.4 → candidate → next-fixture package updates completing with matching build identity, replaced service PID, and zero transaction residue in https://github.com/openclaw/openclaw/actions/runs/35655153794. HEAD’s verified tree is 31918c0463926ce8e9d8c40f7db4b5cfddbd51d9, matching the reported tested tree. GitHub reports the Testbox job as cancelled, consistent with the stated worker shutdown; that status alone neither proves nor disproves the reported SSH-run results. Raw job-log retrieval was blocked by the reviewer’s network allowlist. Native detached supervision was not exercised, and the recorded nonfatal EPERM warning remains an explicitly disclosed follow-up outside this diff. (8c747353310c)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-21T20:59:23.524Z sha c053345 :: needs changes before merge. :: [P2] Preserve successful snapshot diagnostics outside warning rows
  • reviewed 2026-09-21T21:16:06.992Z sha 8c74735 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 21, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

The accepted diagnostic-loss finding is fixed in 8c74735: successful snapshot inventory now reaches the existing bounded/redacted ledger as informational diagnostic: rows for both callers, without warning noise or raw stdout retention. The package-command regression failed in all four successful-capacity cases before the repair and passes afterward. The already-running helper's next command is now consistent too.

The PR body now records passing single-worker timings, all local changed checks, fresh repair autoreview, and the passed published2026.9.4 → candidate → next-fixture packaged update cell with exact source-tree identity. It explicitly distinguishes the supervisor fixture from a native detached-service test and records the nonfatal EPERM evidence warning as an unresolved follow-up. Please reassess the current code and evidence; do not merge.

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 21, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Data-model compatibility confirmation for the remaining checklist item:

  • No SQLite schema/version, migration completion rule, config shape, or allocation behavior changed. The Doctor/config/plugin migration files changed only their user-facing messages.
  • The diagnostic repair uses the existing UpdateRunStep fields (step, status, detail), the existing 32-message/1024-unit limits, and existing redaction/byte bounds. diagnostics is producer input to the converter, not a new stored schema field. Older readers can ignore the informational row prefix without losing warnings or failure evidence.
  • src/infra/update-run-step-key.test.ts exercises persistence and parsing through the released v2026.9.4 reader shape, bounds details, and excludes raw process stdout. The package-command regression proves successful inventory survives without warning rows.
  • Published 2026.9.4 → candidate → next-fixture passed the canonical package/update lane on the complete source tree matching 8c74735. Both hops exited 0 with selected-build identity, replaced service PIDs, and no transaction residue. Evidence: https://github.com/openclaw/openclaw/actions/runs/35655153794
  • Exact-head CI is green: https://github.com/openclaw/openclaw/actions/runs/35655390085

The PR body retains the native-supervision limitation and the nonfatal EPERM follow-up; neither is represented as fixed. The PR remains open for review; no merge is requested.

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 21, 2026
@RomneyDa
RomneyDa merged commit b2f124b into main Sep 21, 2026
233 of 236 checks passed
@RomneyDa
RomneyDa deleted the fix/update-output-clarity branch September 21, 2026 22:42
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
…law#155188)

* fix(update): clarify in-progress updates and snapshot warnings

* fix(update): retain snapshot inventory as informational diagnostics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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.

1 participant