Skip to content

fix(update): show progress after the Gateway startup check - #157329

Merged
steipete merged 8 commits into
mainfrom
upd/windows-validating-phase-silence
Sep 25, 2026
Merged

steipete merged 8 commits into
mainfrom
upd/windows-validating-phase-silence

Conversation

@steipete

@steipete steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Refs #153401

What Problem This Solves

Fixes uninformative validating intervals after a successful update canary while the updater verifies the previous managed Gateway.

User Impact

Operators can see the active verification or temporary-copy cleanup, its recorded wait reason, start time, and budget in CLI progress and openclaw update status (including JSON). Verification refreshes recorded observations every 30 seconds within a probe stage. The implicit budget is min(1 hour, max(5 minutes, canary startup × 10)): the startup watchdog supplies the floor, ×10 leaves slow-disk headroom, and the one-hour cap prevents a slow canary creating a multi-hour implicit wait. Explicit --timeout remains authoritative. Expiry warns and names the next diagnostic command. An unverified previous Gateway remains ineligible for an automatic rollback restart.

This applies to updates running the repaired driver on the next hop. It cannot retrofit the installed 2026.9.5 driver. While that driver's window is active, independent openclaw gateway status --deep --require-rpc and /readyz probes can show whether the old Gateway is serving; they do not reveal or override the updater's own checks.

Why This Change Was Made

The confirmed silent wait is the call to observeUpdateGatewayReadiness in src/cli/update-cli/update-command-readiness.ts:116; completion was recorded only afterward by src/cli/update-cli/update-command-verification.ts:124: the driver allowed max(5 minutes, measured canary startup × 10) but wrote previous gateway verification only after the await completed. A five-minute canary therefore allowed a fifty-minute wait without an active ledger fact. The readiness owner now records the operation before awaiting and updates it from actual native/listener, health RPC, and HTTP observations. Existing completion and ownership checks remain in place.

Previous-Gateway readiness caps each native inspection attempt at five seconds (or the smaller remaining budget). Other native service inspections retain their caller-supplied allowance, including the 60-second runtime-publication check before a source rebuild. Disposable-copy cleanup records custody verification separately from filesystem removal and stops waiting after five minutes with retained-path guidance. Already-started filesystem removal can finish in the background; late custody verification cannot start removal after expiry.

Thanks @WG-Mojo for the Windows/npm timeline and independent probes. The report did not capture an awaited stack, so this change does not claim a Node 26 parsing deadlock. The separate post-recovery gateway-lifecycle contention remains tracked by #156917.

The production diff is +232/−85 (net +147); tests are +589/−36 (net +553). Readiness owns the shared budget and durable observations; maintenance owns the cleanup deadline and custody fence; existing observers and status readers carry those facts. The per-attempt cap is scoped to readiness, while native service inspection preserves its caller’s budget. No new config, environment variables, dependencies, or SQLite schema changes.

Evidence

Mechanical leaf-module rebase: 9e577c2646f3f9543fb93326144f472b167f0d16 rebases the green db4a4a8bd298f234d3317d8b9c341f470003675d candidate onto 0bbad56fa80945db4323771873c9944e67454679, retaining main's #157350, #157273, and #156761 changes. The sole conflict was the import block in src/infra/update-maintenance.ts: UpdateStepResult comes from main's update-step-result.ts leaf, while the cleanup progress callback keeps its UpdateRunStep ledger type. All touched UpdateStepResult imports use the leaf. Production, source-test, and docs additions/deletions match the reviewed patch exactly; the Windows inventory retains main plus the same three lane fixtures. No semantic changes were introduced; r2 covers this mechanical rebase.

Nine touched/owner suites passed 3×, 201 tests per pass, with walls of 183.54s, 165.66s, and 147.74s on Blacksmith Testbox tbx_01m3az6qhsygs3dr7j7mhc9hqm (run 36077418351); FOCUSED_3X_OK, command exit 0, lease stopped. The complete node scripts/check-changed.mjs --base origin/main ran on Blacksmith Testbox tbx_01m3az6qhj9q1b4segmx5gsjyr (run 36077418412) and exited 1 solely on four max-lines violations in files byte-identical to pinned main 0bbad56fa809:

Unchanged main file Count / limit Latest main change
packages/ai/src/transports/openai-responses-prompt-observer.test.ts 1010 / 1000 67fd7e910b89, #148567
src/agents/workspace.test.ts 1017 / 1000 a219fa50a0a9, #157447
src/agents/auth-profiles/oauth-refresh-fence.test.ts 1046 / 1000 67fd7e910b89, #148567
src/commands/auth-choice.apply.plugin-provider.test.ts 1025 / 1000 67fd7e910b89, #148567

All production/test typecheck graphs and dead-export scans passed. The existing planner then ran every remaining selected check plus targeted type-aware lint on all 14 changed source files on tbx_01m3b12g43ae4fpjv9wjmjwp71 (run 36079881642); REMAINING_CHECKS_OK, exit 0. Both check leases stopped. No source, assertion, suppression, or baseline was changed to hide these main failures, and the complete check is not claimed green.

The proof leases verified the 17 changed-file hashes plus update-step-result.ts; the changed check also verified the effective merge base. Auto-merge remains off for the lead to re-arm. Only this Evidence section was refreshed.

Rebase evidence refresh: db4a4a8bd298f234d3317d8b9c341f470003675d rebases the accepted dcbc4cab5f549c46ef6828cce174a5921299eddc candidate onto 5d210cc7fd32c6d397ad2743d20d1da1012c4c16. Both main lifecycle fixes (3e9e4cdde3db and 1bbd578b463d) are now included. Conflicts were limited to package.json's Windows inventory and the comment in test/scripts/ci-windows-test-plan.test.ts: all main and lane test entries are retained, and main's complete <425 test from #157262 is preserved. The production, source-test, and docs additions/deletions exactly match the pre-rebase patch; no new production semantics were introduced by resolution. The readiness-only five-second cap remains unchanged for the lead's re-review, and auto-merge remains off.

Nine touched/owner suites passed 3×, 201 tests per pass, including run-node-lifecycle.test.ts in every pass. Walls were 850.890s, 455.399s, and 743.399s on the shared Mac. The unchanged retained-service file spent 653.147s, 276.746s, and 504.713s in tests; its slowest case was certified-doctor-failure at 51.328s. Its previously documented fresh schema-reader cost remains, with elevated host load observed here. No assertions or test deadlines changed. The complete node scripts/check-changed.mjs --base origin/main passed with exit 0 on the Testbox; the remote command took 2,424.641s including preparation, and the lease stopped successfully.

The local changed-check attempt was explicitly interrupted under host load (88 on 32 cores); its owned process group was stopped and verified gone. The complete check moved to Blacksmith Testbox tbx_01m3amcdrwjpgtbc1dt8qjtj2z (run 36060321749). Before checking, all 17 changed-file SHA-256 hashes and the effective merge base were verified against this candidate. Only this Evidence section was refreshed.

CI correction at dcbc4cab5f549c46ef6828cce174a5921299eddc (after the lead's merge commit 310a9fdac4fc4496718d4d41dddce21556bf752a):

  1. Windows CLI preparation: own budget regression. The global cap in readScheduledTaskRuntime reduced the source-rebuild publication guard's explicit 60-second native inspection budget to five seconds. The native adapter now preserves caller budgets; previous-Gateway readiness still supplies five seconds. The restart inspector also respects a shorter per-attempt allowance when an absolute deadline is supplied. Ownership and publication guards remain intact. The captured CI refusal did not include the native query result, so an actual five-second expiry was not directly logged; the budget regression is reproduced by the Windows fixture. Main d563e1a2086b7c1fb76184e0d254f4d35e3c8115 passed all three identical helper cases in Windows job 107778087758.
  2. Windows placement assertion: own inventory growth. Main's merged inventory predicts 419 seconds per shard; this branch predicts 420–421 seconds. Per the coordinator's tiny-bump ruling, only the inventory assertion changes from <420 to <425, with a one-line comment. The production placement target, five-job limit, exact coverage, and synthetic rounding assertion remain unchanged.
  3. Lifecycle PID wait: main fixture defect, reproduced locally. One local run at 310a9fd failed 3/5 cases with PID-file timeouts; one at main a0905dfe5c17053a3f0ef2aa0cf8f421bce9381c passed 5/5. Main fixes 3e9e4cdde3dbffc34366b17dd3a1714173e30c79 (isolate service inspection) and 1bbd578b463d743e7172309b8b7fbf5dd4cff680 (chore: isolate run-node lifecycle signal test #157478, prepare runtime before readiness) own this repair. This PR does not change that fixture; the lead can incorporate those main commits. This is not claimed to be a rerun-fixed flake.

The native-budget and absolute-deadline regressions failed before the correction at their intended assertions. Final touched/owner proof passed 3×, 110 tests across six files per pass, in 34.280s, 40.217s, and 34.605s wall time. Fresh Codex autoreview of the complete correction is scoped-clean through P2. The full local node scripts/check-changed.mjs --base 6e8d06876fd166064abbec4928fb3bb109ebe999 passed with exit 0 in 1,747.279s, including core production types, all 25 test graphs, root tooling types, core/script lint, and every selected guard.

The 38 source-only importing files were covered locally. The first sweep found four obsolete five-second expectations in the preflight fixture; restoring its main-version 30-second expectations was included in the final 3× proof, and all four remaining Doctor files passed (107 tests). The unchanged update-CLI monolith and retained-service file spent 762.115s and 209.466s in tests on the shared Mac; the existing monolith owner remains #157018. No test deadlines, retries, skips, or mocks were loosened to obtain these results.

Both runtime-dependent importing suites passed 162 tests on Blacksmith Testbox tbx_01m3afc3gesg28tj3swsjawgg8, run 36050598034, using node scripts/run-vitest.mjs src/cli/update-cli/update-command-service.integration.test.ts src/cli/update-cli/update-command-post-update-repair.test.ts --maxWorkers=1. Changed source hashes matched; command exit 0, 322.288s including preparation. The lease stopped after success. Local runtime preparation was blocked by the nested-checkout declaration-input guard, after isolating its profile/state/port; no guard was bypassed. Native Scheduled Task E2E remains Windows-CI-owned.

Earlier publication and rebase evidence follows; the current-head proof and attributions above supersede its global native-probe-cap claim.

Rebase follow-up (2026-09-24): head eeb0cac5c1a42fa986be3519c9fdf8d1905fc1d1 rebases onto c4333da677cb. Conflicts were limited to package.json (preserve main's Windows selections and add this lane's three files) and src/cli/update-cli/update-command-execution.ts (preserve main's install-root import and the ledger-step import). All source/test/docs additions and deletions match the previously reviewed patch exactly. No semantic conflict resolution; no fresh autoreview was needed under the coordinator's condition. Auto-merge is now off.

Local focused proof passed 3×, 344 tests across 10 files per pass, in 959.881s, 451.038s, and 245.772s wall time. First-pass worker preparation was 136.547s. The unchanged retained-service file's summed test times were 558.363s, 321.597s, and 181.864s; its slowest case was 32.908s on pass 1, then 8.048s and 6.471s in the later passes.

The requested local node scripts/check-changed.mjs --base c4333da677cb exited 1 after 823.178s solely on main's unchanged src/agents/failover-error.test.ts:1149 max-lines violation (1,032 counted lines; limit 1,000; latest owner change #157218). Its file blob is identical to the rebase base (0f0bca19551be0b08510b84af6202e276b100b96). Core production and all 25 test typecheck graphs passed. Targeted type-aware lint on all 15 changed source files passed; every remaining selected check was then run through the existing planner and passed. The full changed-check command is not claimed green; no baseline, suppression, assertion, or unrelated main file was changed.

The baseline replay fails at the intended assertions: no active previous-Gateway ledger fact, no active post-canary cleanup fact. The Windows-shaped replay uses the real tasklist/PowerShell listener parser and an isolated SQLite ledger. It checks the running fact, public JSON, rendered status, cancellation, expiry, and completion. Native Windows was unavailable on the Testbox; both Windows-tagged files and cleanup coverage are explicitly selected by test:windows:ci:1.

All eight focused files passed 3×, 258 tests per pass, for the final production bytes. Pass 1 measured each file separately (148.968s total wall); combined passes 2 and 3 took 64.728s and 64.902s. The 126-file importing-test sweep completed successfully (TEST_PROOF_OK), with native Windows integration skipped on Linux. The two owner suites also passed 3× for the final owner and fixture bytes (86 tests per pass); combined passes took 150.793s and 150.039s.

Changed-file costs from pnpm test <file> --maxWorkers=1:

Suite Tests Wall
update-command-readiness.windows.test.ts 9 16.245s
update-candidate-canary.cleanup.test.ts 19 27.399s
update-command-service-maintenance.test.ts 62 18.273s
restart-health-probe.test.ts 16 16.220s
schtasks-runtime-probe.windows.test.ts 3 18.414s
update-command-original-service.test.ts 67 139.110s

The broader sweep caught two related regressions, repaired without changing their assertions: captured execution ownership is checked before caller-specific guards, and the per-probe cap is explicit for previous-Gateway verification rather than inferred from any deadline. Retained-service verification keeps its existing allowance.

The retained-service fixture now reuses state snapshot worker imports within each case while preserving fresh admission and reads. Test time was 130.861s in the initial Linux sweep and 234.883s in a later sweep; the final passes measured 120.725s, 122.866s, and 123.202s. A Mac single-file pass measured 194.020s. Remaining cost includes fresh agent-schema readers and explicit per-preflight worker scopes in src/state/openclaw-database-preflight-agent-scheduler.ts:106 and :167. Extending those lifetimes requires separate owner work preserving fresh reads, cancellation, and cleanup. No schema-read mocks, weaker assertions, timeout increases, retries, or skips were added.

An initial Windows fixture spoof affected Unix SQLite paths and hid an error behind a held-event wait. Scoping the spoof to the Windows listener adapter and settling held operations on failure/cancellation reduced the first regression from a 120s timeout to 208ms in the measured repaired run. Validation also caught and corrected an optional fixture command-array element, a shadowed callback name, and a redundant default generic argument. The final type-only correction passed the focused type-aware lint wrapper and all 19 cleanup tests.

The existing update-cli.test.ts monolith (280.482s in the original proof; 475.942s in the later sweep) remains covered by #157018. The approximately 31–33s canary integration is release-only. The final production package build passed in 21m 42.7s; shared build/compiler preparation is separate from test time.

Fresh autoreview --mode branch --base origin/main is scoped-clean through P2 for 529e5cae686ec5f14aac7edc555b358bf3b6b907. All 18 changed-file hashes were verified on the Testbox and matched again against the final commit.

pnpm check:changed --base origin/main passed on Blacksmith Testbox tbx_01m39r8wysqm4bxb43rdwk23cx (run); output ended with FINAL_GATE_OK, command exit 0, and runStatus: succeeded (24m 47.043s including the focused cleanup check). All compiler graphs, type-aware core/script lint, and selected guards passed. The importing sweep completed on tbx_01m39h4my9by6cf2a9z8j6a6qx (run); its later two-hour lease expiry interrupted an earlier gate, so that gate was completed on the fresh lease above. Lease cleanup can leave the linked Actions session marked cancelled; the command results are the proof.

Auto-merge is now off per coordinator instruction.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes size: L labels Sep 24, 2026
@steipete
steipete marked this pull request as ready for review September 24, 2026 14:42
@clawsweeper

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

@steipete
steipete enabled auto-merge (squash) September 24, 2026 14:51
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 6:14 AM ET / 10:14 UTC (Revision 9).

ClawSweeper review

What this changes

The branch records post-canary cleanup and previous-Gateway readiness in update status, adds wait budgets and Windows-focused checks, and documents operator diagnostics.

Merge readiness

⛔ Blocked before merge - 11 items remain

Current main still leaves post-canary verification without active progress. This PR addresses that gap, but three previously reported blockers remain on the pinned head: a shorter default readiness allowance, unfinished progress for a direct caller, and cleanup that can continue after its outcome is reported.

Priority: P1
Reviewed head: 65053c60beaee508563b8c18aa3702dc30b72049
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Focused validation gives useful signal, but the unchanged upgrade and lifecycle findings prevent this patch from being quality-ready.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Repository State classifies this PR as member-authored, so the external-contributor proof gate does not apply. The captured body reports repeated Windows-shaped and ledger tests for the changed updater paths, but does not show the repository-required published-driver-to-candidate-and-next-hop managed-update result; new records use the existing stored step format.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository State classifies this PR as member-authored, so the external-contributor proof gate does not apply. The captured body reports repeated Windows-shaped and ledger tests for the changed updater paths, but does not show the repository-required published-driver-to-candidate-and-next-hop managed-update result; new records use the existing stored step format.
Evidence reviewed 8 items Current-main behavior: At the pinned main revision, previous-Gateway verification awaits readiness without first recording an active step; its wrapper records completion afterward.
Changed readiness allowance: The introduced formula caps the implicit allowance at one hour; the previous formula used the measured canary startup time times ten without that ceiling.
Direct readiness caller: The retained-service preflight calls the readiness owner directly. The new owner writes an in-progress step, while the completion write remains in the other caller's wrapper.
Findings 3 actionable findings [P1] Preserve the measured readiness allowance for existing updates
[P2] Settle readiness progress for the direct caller
[P2] Settle started temporary-copy removal before advancing
Security None None.

How this fits together

The CLI updater validates a candidate while the managed Gateway serves, then verifies that Gateway before activation. Update-run records feed both CLI progress and JSON status.

flowchart LR
A[Update request] --> B[Candidate canary]
B --> C[Temporary-copy cleanup]
C --> D[Previous Gateway checks]
C --> H[Update status]
D --> H
D --> E{Ready within budget?}
E -->|Yes| F[Proceed to activation]
E -->|No| G[Warning and limited rollback]
Loading

Decision needed

Question Recommendation
Should this updater shorten the existing implicit previous-Gateway verification allowance to one hour when the measured canary startup implies a longer wait? Preserve the measured default: Remove the new ceiling, retain progress reporting, and leave explicit --timeout as the operator's way to choose a shorter wait.

Why: The ceiling is an intentional upgrade tradeoff that can remove automatic rollback restart eligibility on slow installations; the PR discussion does not contain an explicit acceptance of that change.

Before merge

  • Preserve the measured readiness allowance for existing updates (P1) - The new ceiling turns a ten-minute canary's existing 100-minute implicit verification allowance into 60 minutes. At expiry this returns an unverified previous Gateway and removes automatic rollback restart eligibility. Keep the measured default unless that upgrade change is explicitly accepted and proven.
  • Settle readiness progress for the direct caller (P2) - This new write creates an in-progress ledger step, but the retained-service preflight calls this function directly while only the managed-update wrapper records completion. After the direct call returns, status can keep reporting the old verification wait until the run terminates. Complete the step in the readiness owner on its normal and unverified return paths.
  • Settle started temporary-copy removal before advancing (P2) - Once fs.rm starts, the deadline race can return a timeout while removal remains active. The caller then records a warning and continues without observing that write's final result. Join or otherwise own the started removal through settlement; the deadline can still prevent a late custody result from starting deletion.
  • Resolve merge risk (P1) - A ten-minute canary previously yielded a 100-minute implicit previous-Gateway check; this branch ends it at 60 minutes. A still-unverified Gateway then loses automatic rollback restart eligibility during an existing update workflow.
  • Resolve merge risk (P2) - A filesystem removal already started at cleanup expiry can continue after the updater records a timeout and advances, leaving its final write outcome unsettled.
  • Resolve merge risk (P1) - The PR body documents focused tests but no published 2026.9.5 driver → candidate → next-hop managed-update cell for the changed progress and recovery behavior required by repository update policy.
  • Complete next step (P2) - Resolve the one-hour default-wait decision, settle direct-caller progress and started cleanup, and provide the required published-driver upgrade cell before merge.
  • Improve patch quality - Preserve the measured default readiness allowance, or obtain explicit acceptance and slow-start upgrade proof for the new ceiling.
  • Improve patch quality - Finish the readiness ledger step for both callers.
  • Improve patch quality - Settle started filesystem removal and demonstrate the published-driver-to-candidate next-hop update.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Preserve the measured readiness allowance for existing updates — src/cli/update-cli/update-command-readiness.ts:46
  • [P2] Settle readiness progress for the direct caller — src/cli/update-cli/update-command-readiness.ts:97-100
  • [P2] Settle started temporary-copy removal before advancing — src/infra/update-maintenance.ts:52-59
Agent review details

Security

None.

PR surface

Source +147, Tests +552, Docs +20, Config 0. Total +719 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 9 232 85 +147
Tests 5 587 35 +552
Docs 2 21 1 +20
Config 1 1 1 0
Generated 0 0 0 0
Other 0 0 0 0
Total 17 841 122 +719

Review metrics

Metric Value Why it matters
Production and test growth production net +147; tests net +553 The PR body attributes production growth to readiness observations and cleanup control, making the remaining lifecycle findings material to that added code.

Root-cause cluster

Relationship: partial_overlap
Canonical: #153401
Summary: The open update-recovery umbrella includes silent validation intervals; this PR addresses that portion, while the separately reported lifecycle contention remains distinct.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Keep the old default and settle work (recommended)
    Preserve the measured readiness allowance, finish both callers' progress, join started deletion, and demonstrate the next-hop update flow.
  2. Own the shorter wait
    Explicitly accept the one-hour ceiling after proving its slow-start and rollback consequences in a published-driver upgrade cell; the progress and cleanup defects still need repair.

Technical review

Best possible solution:

Keep the measured default readiness allowance while reporting its progress, close the step for every caller, and settle started cleanup before advancing; validate the repaired driver on the next update hop after a published-driver upgrade.

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

Yes, from source: pinned main awaits previous-Gateway readiness before recording its completion, leaving no active verification fact for status during the wait. The PR body also reports a baseline regression at that boundary; this review did not execute an update.

Is this the best way to solve the issue?

No, not yet. Recording observations at the readiness owner fits the existing status path, but the default budget, direct-caller completion, and started cleanup need the repairs described above.

Full review comments:

  • [P1] Preserve the measured readiness allowance for existing updates — src/cli/update-cli/update-command-readiness.ts:46
    The new ceiling turns a ten-minute canary's existing 100-minute implicit verification allowance into 60 minutes. At expiry this returns an unverified previous Gateway and removes automatic rollback restart eligibility. Keep the measured default unless that upgrade change is explicitly accepted and proven.
    Confidence: 0.97
  • [P2] Settle readiness progress for the direct caller — src/cli/update-cli/update-command-readiness.ts:97-100
    This new write creates an in-progress ledger step, but the retained-service preflight calls this function directly while only the managed-update wrapper records completion. After the direct call returns, status can keep reporting the old verification wait until the run terminates. Complete the step in the readiness owner on its normal and unverified return paths.
    Confidence: 0.94
  • [P2] Settle started temporary-copy removal before advancing — src/infra/update-maintenance.ts:52-59
    Once fs.rm starts, the deadline race can return a timeout while removal remains active. The caller then records a warning and continues without observing that write's final result. Join or otherwise own the started removal through settlement; the deadline can still prevent a late custody result from starting deletion.
    Confidence: 0.93

Overall correctness: patch is incorrect
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against cbcd4df569eb.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The PR addresses a user-facing update stall, while its changed default could shorten recovery verification for existing slow installations.
  • merge-risk: 🚨 compatibility: The introduced one-hour ceiling changes the implicit readiness allowance for existing update setups.
  • merge-risk: 🚨 availability: Expiry can leave the previous Gateway unverified and ineligible for an automatic rollback restart.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: Repository State classifies this PR as member-authored, so the external-contributor proof gate does not apply. The captured body reports repeated Windows-shaped and ledger tests for the changed updater paths, but does not show the repository-required published-driver-to-candidate-and-next-hop managed-update result; new records use the existing stored step format.

Evidence

What I checked:

  • Current-main behavior: At the pinned main revision, previous-Gateway verification awaits readiness without first recording an active step; its wrapper records completion afterward. (src/cli/update-cli/update-command-readiness.ts:59, cbcd4df569eb)
  • Changed readiness allowance: The introduced formula caps the implicit allowance at one hour; the previous formula used the measured canary startup time times ten without that ceiling. (src/cli/update-cli/update-command-readiness.ts:46, 65053c60beae)
  • Direct readiness caller: The retained-service preflight calls the readiness owner directly. The new owner writes an in-progress step, while the completion write remains in the other caller's wrapper. (src/cli/update-cli/update-command-original-service.ts:326, 65053c60beae)
  • Cleanup settlement: Filesystem removal starts inside a deadline race. If the deadline wins, the caller records a warning and advances while the removal promise can still be running; the new test explicitly permits that late completion. (src/infra/update-maintenance.ts:55, 65053c60beae)
  • Recorded status and compatibility: The report now displays active step details. New records use the existing free-text step, status, timestamp, and detail fields; the stored step schema is unchanged by this PR. (src/infra/update-run-report.ts:295, 65053c60beae)
  • Captured PR evidence: The complete live REST body has 17,297 UTF-16 units and the same SHA-256 as the captured review body, covering its omitted tail. It reports repeated focused and Testbox checks, but no current-head published-driver-to-candidate-and-next-hop managed-update trace.

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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 (8 earlier review cycles)
  • reviewed 2026-09-24T14:52:02.389Z sha 529e5ca :: blocked before merge. :: [P1] Preserve the measured readiness allowance for existing updates | [P2] Settle readiness progress for direct callers
  • reviewed 2026-09-24T16:50:01.980Z sha eeb0cac :: blocked before merge. :: [P1] Preserve the measured readiness allowance for existing updates | [P2] Settle readiness progress for direct callers
  • reviewed 2026-09-24T17:25:22.921Z sha 310a9fd :: blocked before merge. :: [P1] Preserve the measured readiness allowance for existing updates | [P2] Settle readiness progress for direct callers
  • reviewed 2026-09-24T20:53:40.088Z sha dcbc4cab5f549c46ef6828cce174a5921299eddc :: blocked before merge. :: [P1] Preserve the measured readiness allowance for existing updates | [P2] Settle readiness progress for direct callers
  • reviewed 2026-09-24T22:09:18.151Z sha db4a4a8 :: blocked before merge. :: [P1] Preserve the measured readiness allowance for existing updates | [P2] Settle readiness progress for direct callers
  • reviewed 2026-09-25T01:12:47.519Z sha 9e577c2 :: blocked before merge. :: [P1] Preserve the measured readiness allowance for existing updates | [P2] Settle readiness progress for direct callers | [P2] Settle started temporary-copy removal before advancing
  • reviewed 2026-09-25T04:42:29.671Z sha d0ca46c :: blocked before merge. :: [P1] Preserve the measured readiness allowance for existing updates | [P2] Settle readiness progress for direct callers | [P2] Settle started temporary-copy removal before advancing
  • reviewed 2026-09-25T06:45:21.944Z sha 9180594 :: blocked before merge. :: [P1] Preserve the measured readiness allowance for existing updates | [P2] Settle readiness progress for direct callers | [P2] Settle started temporary-copy removal before advancing

@steipete
steipete force-pushed the upd/windows-validating-phase-silence branch from 529e5ca to eeb0cac Compare September 24, 2026 16:42
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 24, 2026
@steipete
steipete disabled auto-merge September 24, 2026 19:20
@steipete
steipete force-pushed the upd/windows-validating-phase-silence branch from dcbc4ca to db4a4a8 Compare September 24, 2026 21:59
@steipete
steipete enabled auto-merge (squash) September 24, 2026 22:04
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Sep 24, 2026
@steipete
steipete disabled auto-merge September 25, 2026 00:21
@steipete
steipete force-pushed the upd/windows-validating-phase-silence branch from db4a4a8 to 9e577c2 Compare September 25, 2026 01:04
@steipete
steipete enabled auto-merge (squash) September 25, 2026 04:34
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 25, 2026
2 of 8 tasks
@steipete
steipete disabled auto-merge September 25, 2026 05:55
Record previous-Gateway readiness and disposable-copy cleanup at their owners, with explicit budgets and bounded native observations. Preserve ownership checks and warn when readiness remains unverified.

Applies to updates running the repaired driver on the next hop. Refs #153401; thanks @WG-Mojo for the Windows/npm evidence. The separate gateway-lifecycle contention remains tracked by #156917.
@steipete
steipete force-pushed the upd/windows-validating-phase-silence branch from d0ca46c to 9180594 Compare September 25, 2026 06:37
@steipete
steipete enabled auto-merge (squash) September 25, 2026 06:38
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 25, 2026
@steipete
steipete disabled auto-merge September 25, 2026 10:01
@steipete
steipete enabled auto-merge (squash) September 25, 2026 10:06
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Sep 25, 2026
@steipete
steipete merged commit c926e83 into main Sep 25, 2026
247 checks passed
@steipete
steipete deleted the upd/windows-validating-phase-silence branch September 25, 2026 10:25
roboclaw-bot added a commit that referenced this pull request Sep 25, 2026
Backport #157329: c926e83
Backport #157752: 5f8e15a
Backport #157386: 74b9103
Take only the required OverlayFS materialization subset of #157770:
963089a

Preserve the frozen lifecycle and ownership contracts. Keep the recorded
watchdog outcome without deleting unjoined runtimes, recognize legacy pnpm
projections through a bounded store scan, and inspect service scratch roots.
Retain the original proofs plus targeted review regressions. Native platform
and installed-upgrade qualification remain separate required release proof.

Upstream Windows and filesystem evidence credits WG-Mojo and DonnieFi.

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: jalehman <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…157329)

* fix(update): show why post-canary verification is waiting

Record previous-Gateway readiness and disposable-copy cleanup at their owners, with explicit budgets and bounded native observations. Preserve ownership checks and warn when readiness remains unverified.

Applies to updates running the repaired driver on the next hop. Refs openclaw#153401; thanks @WG-Mojo for the Windows/npm evidence. The separate gateway-lifecycle contention remains tracked by openclaw#156917.

* test(update): isolate Windows runtime probe budget coverage

* test(update): validate the Windows census fixture command

* style(update): avoid shadowing the readiness observation

* fix(update): preserve readiness ownership and probe allowances

* test(update): use the cleanup deferred default type

* fix(update): scope native probe budgets to readiness
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 gateway Gateway runtime merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant