Skip to content

fix(update): derive update budgets from measured state instead of fixed literals - #145219

Merged
steipete merged 26 commits into
mainfrom
steipete/upd-timeout-budgets
Sep 13, 2026
Merged

steipete merged 26 commits into
mainfrom
steipete/upd-timeout-budgets

Conversation

@steipete

@steipete steipete commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Refs #144758 #144901 #144890 #143292 #146637 #145252. Reconciles the landed activation boundary from #147019.

What Problem This Solves

Fixes update steps that can expire before their owning operation's allowance on slow hardware or networks. A throttled run completed six large snapshots and then failed a native capability probe that still had a hidden 30-second limit.

User Impact

State copies, candidate startup, service work, and network operations receive their owning allowances. Expiry still cancels authority and preserves uncertain writer ownership. No new configuration, dependencies, schema, retry policy, or retention changes.

Why This Change Was Made

SQLite bytes, copy progress, observed startup, and plugin count determine budgets; callers forward the resolved allowances. Metadata/network operations share a 300-second default. Main's update-activation-timeout settlement and status/Doctor guidance remain authoritative: expiry alone never authorizes rollback, restart, or lease release. The Gateway can remain stopped while ownership is unresolved.

ClawSweeper review

Reviewed head: e9fe0f4088204ac699be7c3157c12af4c301b112 (tree-identical to the lead-reviewed cf061526ffff1fba3daa9204667d42be25f6a7bd). No concrete code findings remain. The maintainer accepts the disclosed longer recovery waits and incomplete slow-state published-driver/native Windows qualification for this landing; the optional Rank-up request is deferred, not claimed complete. Configuration, schema, and persistent recovery/retention semantics remain unchanged. Integrity checks, live authority, and unsettled-writer ownership remain enforced. No code fixup is needed.

Reported by @rlosito (#146637); the initiating timeout cause remains unproved. Related update-timeout reports are tracked in #145252.

Evidence

Final landing validation

The only added commit after the scoped-clean review is the tree-identical CI refresh e9fe0f4088204ac699be7c3157c12af4c301b112; its parent is the reviewed cf061526ffff1fba3daa9204667d42be25f6a7bd. The maintainer explicitly carried the review forward.

Exact-head CI 34767727811 passed. The performance job's actual checkout was verified as merge 8d2ab4860a4f39d75dfe30060deb8eb77b07f673, with current-at-push main ca0746ad8c5631f2b1759fdf319eecb7c2b2d318 as its first parent and the refreshed head as its second. Startup JavaScript measured 355,740 B against the 356,316 B limit. ClawSweeper Dispatch was cancelled during runner setup with no repository steps executed; its single rerun succeeded. The exact-head watcher finished GREEN.

A preceding close/reopen run had used an older merge snapshot and still failed the inherited performance limit; it was not used as passing evidence. No product code, assertions, baselines, or test timeouts changed during landing preparation. The published-driver and native Windows qualification limits below remain unchanged.

Round 4: activation and measured-budget reconciliation

Rebased from f97a08d17e453348c2de1ab9d70effeb919ee38e onto main bec7b26b8d4cf1a2d791afa0eb38837f07ab727c. The activation implementation, shared outcome, and Windows identity reader from #147019 are unchanged. A later main advance (#144558) moved the SQLite cleanup import; both owners and main's stronger cleanup assertion are retained. The refreshed cleanup, schema-budget, native-watchdog, and activation suites passed 36 tests / 35.102s.

Owner Reconciliation
Activation allowance Replaces the flat finalizer floor with the existing conservative SQLite sizing owner, observed canary startup, and serial plugin count. Metadata reads run in the existing bounded child.
Mutable execution Keeps main's pre-activation preparation and authority assertions. Passes the resolved allowance unchanged.
Already-current activation Both paths share the same preparation and executor entry.
Migrated finalization Parent timeout and worker admission consume the same captured allowance. Published-driver input without that field resolves through the same budget owner.
RPC finalization Keeps main's enclosing backstop, now supplied by the measured owner; individual phase allowances remain distinct.
Terminal and Doctor Preserve update-activation-timeout reporting, recovery guidance, candidate executor authority, and forwarded probe/recovery budgets.
Windows identity Retains main's shared reader allowance, PID identity checks, and unsettled ownership.

The new regression exercises a real executor over a sparse 2 GiB state file and a 48-hour caller allowance. Before: activation failed with its former 1,800-second budget. After: both complete and release their leases. The existing timeout test still records update-activation-timeout and retains the unsettled lease. Windows continuation tests additionally assert the allowance reaches both the child timeout and worker input while retaining all autostart assertions.

Head: cf061526ffff1fba3daa9204667d42be25f6a7bd. Round-4 runtime including CI repair +133/-65, tests +96/-21, docs +6/-1. P1 review: scoped-clean, no actionable P0/P1 findings.

  • Final focused selection: 102 passed in six files / 111.292s guarded.
  • Broader owner runs passed 46 process tests, 81 continuation/recovery tests, and 112 CLI tests; four Windows fixture failures were corrected and are included in the final 102. Counts overlap other selections.
  • The regression union also passed the unchanged Windows shared-reader, native watchdog, state-budget, status, recovery-guidance, executor, and canary tests. The merged Doctor timeout test's old constant import was corrected at its new owner; all assertions and timer limits remain intact.
  • Rebuilt candidate passed the required build boundary before real migrated-worker tests. No new build warnings were suppressed.
  • Final regression against the original resolver at the relocated owner path: 1 failed / 1 passed (activation expired at 1,800 seconds for 2 GiB). Restored repair: 2 passed. The production owner was restored byte-for-byte.
  • pnpm check:changed and the requested clean-state node scripts/check-changed.mjs: formatting, ratchets, every typecheck, dead-export scans, and core lint passed. Both stop at extension lint's known ancestor-install declaration-input boundary (clean fallback 674.36s). The CI runner's clean-checkout lint jobs passed on head 69f2d5f8950.
node scripts/run-vitest.mjs src/cli/update-cli/update-command-activation.test.ts -t 'keeps activation alive'
node scripts/run-vitest.mjs src/cli/update-cli/update-command-activation.test.ts src/cli/update-cli/update-command-execution.test.ts src/cli/update-cli/update-command-migrated-windows.test.ts src/cli/update-cli/update-command-timeouts.test.ts src/commands/doctor-update.ledger.test.ts src/commands/doctor-update.test.ts
node scripts/run-vitest.mjs src/cli/update-cli/update-command-activation.test.ts src/cli/update-cli/update-command-execution.test.ts src/cli/update-cli/update-command-executor.test.ts src/cli/update-cli/update-command-timeouts.test.ts src/cli/update-cli/update-recovery-guidance.test.ts src/cli/update-cli/status.test.ts src/commands/doctor-update.ledger.test.ts src/commands/doctor-update.candidate.test.ts src/commands/doctor-config-preflight.test.ts src/infra/update-managed-service-handoff-identity.test.ts src/infra/update-candidate-io.process.test.ts src/infra/update-candidate-io.test.ts src/infra/update-candidate-state.budget.test.ts src/infra/update-post-core-finalize.test.ts src/cli/update-cli/update-finalization-lifecycle.test.ts src/infra/update-candidate-canary.test.ts
pnpm check:changed
node scripts/check-changed.mjs

CI integration repairs after reconciliation

CI 34762910861, head 69f2d5f8950, completed with 125 success, 11 skipped, 4 failure including the aggregate gate. checks-node-compact-small-3 passed. A cancelled label job ran no repository steps and passed its single authorized rerun.

  • checks-ui-e2e (7/7): selected-mode native Chrome navigation recurred in the browser path already changed by this branch. A delayed same-group event retired valid attachment authority after its root commit. Renewal now owns that decision; group changes still revoke unproven creation and cannot mint a blank-document exception. Regression: 1 failed / 5 passed before; all 162 tests across six owner suites passed after. pnpm test:e2e:browser-extension passed the native bootstrap flow, including selected creation/snapshot and revocation, 157.909s guarded. No assertion, mock, delay, or timeout was weakened.
  • checks-node-compact-small-18: two update CLI fixtures advertised an empty shell script as the service Node. Real metadata sizing could not obtain its JSON result. The fixture now uses a distinct executable launcher (Windows: copied executable); service-node and prefix assertions remain unchanged. Before: 2 failed; targeted repair proof: 7 passed / 29.157s. Full CLI validation: 497 passed / 1029.697s guarded, with an isolated filesystem module cache.
  • checks-node-compact-small-24: gateway-tls-pinning.test.ts encountered EADDRINUSE at the first lazy MCP App sandbox bind. These sources are unchanged from main. feat(gateway): renew TLS certificates without restarting listeners #146267 added the sandbox check, while the fixture reserves only the Gateway port and derives the sandbox listener as the adjacent port. No matching main-run failure was confirmed; this unrelated test-port collision is recorded and its owner is unchanged.

The browser and fixture repairs are committed separately (eb5bae7d8cd, cf061526fff). Fresh P1 review of the browser and fixture corrections is scoped-clean. Exact-head CI 34765071944 is terminal: 127 success, 11 skipped, 2 failure. Both failures are the inherited control-ui-performance budget and its aggregate openclaw/ci-gate. The repaired native browser and compact-small-18 jobs passed. compact-small-24, compact-small-3, real-Gateway UI, Windows, and all lint jobs also passed.

The PR performance job and current-main 90f67e1cf4b6 job 103745293032 both report 355,733 B startup JavaScript gzip against the unchanged 355,719 B limit (14 B over), with eight requests and 1,153,709 raw bytes. The branch has no Control UI production changes. No baseline, assertion, ignore, or budget was weakened to address this inherited failure. The PR remains ready, mergeable, and unmerged for lead review. A focused changed-file check passed formatting, all typechecks, dead-export scans, and core test lint, then reached the same ancestor declaration boundary (340.733s).

Prior branch proof and limitations

The isolated progress watchdog's native POSIX FIFO proof failed three cases before repair: outstanding native filesystem work prevented the updater from exiting. After repair, all three passed, including concurrent updater timer, cancellation/completion, natural exit, and probe extinction. Cleanup uncertainty remains a failure. Previous exact-head CI on da10366c85ce1e03c5559475466e42ffed214804 passed 129 jobs with 11 skipped (run 34757920474); it is historical evidence, not the current gate.

#146637 is a qualified field case, not a claimed fix: 35,050 files / 446,928,701 bytes; a successful fingerprint scan took 23,793 ms. The initiating failure was truncated, so its timeout cause is unproved. Recovery fingerprint expiry is advisory; corruption still refuses recovery.

The historical throttled published-2026.9.3 → candidate and main → main 2 GiB hardware matrix remains incomplete. The installed released driver can fail its own timer before candidate code runs. Native Windows published-driver recovery and unkillable kernel IO are not proved. The maintainer has authorized landing round 4 with these qualification limits recorded.

The original 164-anchor inventory follows unchanged. The round-4 table above supersedes its activation/finalization dispositions where main added a bounded outcome.

Complete literal inventory and current dispositions

Source anchors below identify the original audit locations at 0a15c57cb611f6a4b653a4c1bb8fb356c5e12bfc; current pinned diff base is c86ba8d935cd74c93721db7819d2db54d2fdfb85, including #144901. The additional shared SQLite row uses the current committed-source anchors; all 164 original audit anchors remain below. Original values are retained for traceability. A = owner-derived/forwarded; B = abort/recovery consequence; C = warning/skip; D = watchdog. “Static risk” identifies an observed failure branch without a slow-hardware reproduction; “potential” means update reachability/consequence still needs proof. Changed callers can bypass a retained default without changing every other caller of that owner. Persistent lock/retention policies remain unchanged pending their owning design decision.

Infrastructure (src/infra/ unless noted)

Audit source Audited literal / bounded step Current class and disposition
sqlite-readonly-worker.ts:17,22,52,161,207; sqlite-integrity-worker.ts:58; update-candidate-io.ts:68 Previously 30s startup + one pass at 32MiB/s, capped at 30min; database-only sizing could omit WAL B→A — Shared owner now counts DB/WAL/SHM/journal, budgets four passes ×10 slow-hardware headroom plus 300s, and keeps only the timer-safe ceiling. Update IO renewal reuses this calculation; larger caller allowances remain available.
package-update-integrity.ts:14,62 30,000 ms maximum B/C — Fixed: no 30s clamp; caller allowance or shared 20min command default. Fingerprint/content limits and incomplete-baseline advisory remain.
update-candidate-rehearsal.ts:132,242,259 300,000 ms default B→A — Snapshot repair is already in base #144901; this diff shares its measured-byte/progress owner with schema inspection. Remaining port-allocation watchdog is separate.
update-candidate-rehearsal.ts:244 500 ms D — Retained: cancellation cleanup only.
update-candidate-canary.ts:114,116 300,000 ms; reserve min(2,000 ms, budget/10) B→A — Base #144901 separates snapshot and canary runtime budgets and removes the executor clamp. Runtime watchdog/reserve remain.
update-candidate-canary.ts:90,95 1,000 ms each D — Retained: termination/reaping after cancellation, not healthy-start allowance.
update-candidate-canary.ts:399 min(1,000 ms, remaining) C — Retained: individual canary HTTP probe; retry remains bounded by runtime owner. No slow-response reproduction in this change.
update-candidate-state.ts:315,316 30,000 ms; 500 ms kill grace B→A — Fixed: database/WAL/SHM/journal bytes, late-discovered copies and progress renew one IO watchdog. Caller allowance is a minimum; 500ms cancellation grace retained.
update-check-package-target.ts:152 3,500 ms D — Fixed: shared 300s registry/npm-metadata default; explicit valid caller budget preserved.
update-check-package-target.ts:104,176 250 ms minimum D — Fixed: only 1ms timer-valid floor remains; valid positive caller budgets are exact.
update-check.ts:155 3,500 ms D — Fixed: selector and exact manifest use the shared 300s network owner.
update-check.ts:255 4,000 ms B (static risk) — Unchanged: install-kind discovery still has an independent 4s bound and no timeout parameter. Separate owner decision/reproduction pending.
update-check.ts:294,314,686 6,000 ms local default C — Unchanged: local Git identity/status budgets; explicit caller forwarding retained.
update-check.ts:314,686; imported git-exec.ts:18 120,000 ms fetch default D — Fixed for update fetches: shared 300s default; explicit override retained. Generic git-exec default outside this update caller is unchanged.
update-check.ts:645 6,000 ms D — Fixed: registry status shares 300s default; CLI/startup no longer impose shorter network defaults.
npm-install-env.ts:141 2,000 ms C — Unchanged: npm config-path discovery/negative caching is outside the selected repair set.
npm-install-env.ts:313,314,315 120,000 / 10,000 / 300,000 ms D — Fetch default now references the shared 300s owner; existing npm overrides and 10s/120s retry delays/counts are unchanged.
npm-managed-root.ts:846 max(caller, 300,000 ms) C/D→A — Fixed: metadata and fallback pins use caller allowance or the shared 300s network default. Default/45s/420s and fallback-45s coverage produced 2 failures, 29 passes before repair; all 31 managed-root tests pass afterward. Separate prune policy at :1040 is unchanged.
npm-managed-root.ts:1040 max(caller, 300,000 ms) C — Unchanged: managed prune retains its 300s floor and warning/cleanup behavior.
update-runner-command.ts:14; update-runner.ts:38; update-runner-install-surface.ts:111 20 × 60,000 ms A/D — Existing 20min command default moved to update-run-timeouts; consumers share it. Value and per-command semantics are unchanged.
update-runner-git-cleanup.ts:7,33 min(caller, 60,000 ms) C — Unchanged: 60s Git cleanup cap with advisory/fallback behavior.
update-runner-git-cleanup.ts:11,17,18 200 ms retry delay, 3 retries Excluded — Existing filesystem retry pacing; no retry count change.
package-update-filesystem.ts:82,83 100 ms delay, 5 Windows / 2 other retries Excluded — Existing package-removal retry pacing; no retry count change.
update-runner-git-recovery.ts:8 5,000 ms B (static risk) — Unchanged: 5s recovery HEAD observation can leave recovery unverified. Reproduction/owner decision pending.
update-post-core-finalize.ts:48,202 max(30 min, 6 × caller step budget) A / potential B — Unchanged: six-step finalizer composition; interaction with automatically unbounded repair Doctor is not proved here.
update-startup.ts:224,827 45 × 60 × 1,000 ms D — Retained: 45min automatic-update process watchdog; not the registry default.
update-startup.ts:580 2,500 ms C — Unchanged: startup local install discovery, not registry transfer.
update-startup.ts:737 2,500 ms C — Unchanged: optional local Git commit subjects, not registry transfer.
update-startup.ts:1320 2,500 ms D — Fixed: startup registry selector defers to shared 300s owner.
update-repair-protocol.ts:6,7; update-repair-worker.ts:49,65,185; update-repair-agent.ts:133,178 600,000 ms total; 300,000 ms per turn D — Retained: optional repair agent's 10min total/5min turn policy is separate from successful update work.
update-repair-worker.ts:115 1,000 ms D — Retained: canceled repair child cleanup.
update-triage.ts:197 60,000 ms C — Unchanged: diagnostic triage after failure, not successful activation.
update-failure-report-precreate.ts:31 0,25,100,250,500 ms delays Excluded — Receipt persistence retry schedule unchanged; no recovery-policy change.
update-campaign.ts:10,11,12,13 15 min force; 60s countdown; 60 min hold; 5s poll Excluded — Campaign scheduling/countdown/polling, not time allowed for update work.
update-startup.ts:222,223,225,226 24h check; 1h unit; 6h delay; 12h jitter Excluded — Release scheduling/jitter/check intervals, not execution budgets.
update-failure-report-receipt-store.ts:33,34 2 min preparation reservation/artifact sweep Excluded — Persistent receipt reservation/sweep policy unchanged; owner decision required for any change.
update-run-timeouts.ts:2,3 30 min abandoned run; 30s heartbeat Excluded — Abandonment/heartbeat semantics unchanged; only the separate command default was relocated into this module.
update-run-legacy-expiry.ts:4 24h Excluded — Persistent legacy-admission expiry unchanged.
update-candidate-canary.ts:417 100 ms poll Excluded — Canary polling cadence, not a work deadline.

CLI, installers and package lifecycle

Audit source Audited literal / bounded step Current class and disposition
src/cli/update-cli/update-command.ts:87,106,179 30 minutes; default per-update-step/legacy-resume budget A/D — Retained: foreground 30min per-step default and caller forwarding; distinct from the shared 20min infra-command fallback.
src/cli/update-cli/update-command-git.ts:62,461 Duplicate 30-minute default; Git/package exposure and post-verify Doctor steps A/D — Retained: Git CLI's 30min default; not consolidated by this selected repair.
src/cli/update-cli/update-command-service-plan.ts:196 min(caller ?? 10s, 10s); selected Node executable/SQLite capability probe B (static risk) — Unchanged: selected-Node preflight still caps caller at 10s. Separate runtime-probe owner decision/reproduction pending.
src/cli/update-cli/update-command-execution.ts:356 min(updateStepTimeoutMs, 5min); candidate canary validation B→A — Already repaired in base #144901; executor forwards the candidate runtime budget without the 5min cap.
src/cli/update-cli/update-command-execution.ts:464 3 seconds; one prior-running-Gateway HTTP readiness observation B→A — Fixed: affirmative previous-generation observation uses canary startup ×10 with existing 5min startup floor, or explicit budget; ownership stays captured.
src/cli/update-cli/update-command-verification.ts:145 10 seconds; final HTTP health/readiness check, at most 3 attempts B→A — Fixed: final HTTP and identity observations share remaining monotonic readiness allowance; no independent 10s cutoff.
src/cli/update-cli/update-repair-command.ts:131 min(caller ?? 3s, 3s); healthy stale-history fast path C — Unchanged: repair-history fast path retains 3s clamp and can fall through to full finalization.
src/cli/update-cli/update-command-service-command.ts:13,127 60 seconds; installed runtime gateway install --force B→A — Fixed: install receives caller allowance or shared 20min command default.
src/cli/update-cli/update-command-service-load.ts:34 Independent AbortSignal.timeout(60_000); deferred staged service install/seal/load B→A — Fixed: parent receives the same service-install allowance through stage/seal/load; no competing 60s timer.
src/cli/update-cli/update-command-service-load.ts:53 300 ms; force-kill grace after cancellation D — Retained: force-kill grace after cancellation only.
src/cli/update-cli/update-command-migrated.ts:155 30 seconds; installed migrated-finalizer --check startup/delegation capability probe B (static risk) — Unchanged: migrated-worker capability startup still has 30s cap; separate reproduction/owner decision pending.
src/cli/update-cli/update-command-migrated.ts:230 max(30min, stepBudget * 6); whole migrated finalizer process A/D — Retained: six-step caller composition and 30min floor; no duration-policy change.
src/cli/update-cli/update-command-migrated.ts:158,233 500 ms; process-tree kill grace D — Retained: termination escalation after cancellation.
src/cli/update-cli/update-finalization-lifecycle.ts:24 30 seconds; finalization preflight B (static risk) — Unchanged: standalone finalization preflight; explicit override still supported. Not claimed repaired.
src/cli/update-cli/update-finalization-lifecycle.ts:25 30 seconds; finalization target config validation B (static risk) — Unchanged: standalone finalization config validation; explicit override still supported.
src/cli/update-cli/update-finalization-lifecycle.ts:26 30 seconds; config snapshot B (static risk) — Unchanged: standalone config-snapshot phase; distinct from the repaired database-copy owner.
src/cli/update-cli/update-finalization-lifecycle.ts:28 600 seconds; whole plugin phase B (static risk) — Unchanged: aggregate finalization plugin phase; count/progress composition remains a separate owner decision.
src/cli/update-cli/update-finalization-lifecycle.ts:30 30 seconds; completion-cache phase B (static risk) — Unchanged: outer completion phase can hard-exit although inner cache refresh is optional.
src/cli/update-cli/update-finalization-lifecycle.ts:118 2,147,483,647 ms max A — Retained: JavaScript timer representability ceiling, not a hardware allowance.
src/cli/update-cli/update-command-finalize.ts:272 min(1000ms, completionBudget/2) reserved shutdown margin A — Retained: shutdown margin derived from completion phase budget.
src/cli/update-cli/shared.ts:446,454 30 seconds; optional completion generation child C — Unchanged: optional completion-cache child returns warning/manual guidance on failure.
src/cli/update-cli/update-command-fresh-doctor.ts:40,266 180 seconds; fresh target config validation and Doctor lint/readiness B (static risk) — Unchanged: target config/readiness checks retain 180s fallback; separate plugin-check owner decision.
src/cli/update-cli/update-finalization-processes.ts:36 1 second; synchronous process-name inventory on stalled finalization C — Retained: diagnostic-only process inventory after a stall/terminal result.
src/cli/update-cli/update-command-post-core.ts:144 1 second; parent process start-time fallback via ps/PowerShell C — Unchanged: process-start fallback may lose optional provenance; forwarded timestamp bypasses it.
src/cli/update-cli/update-command-post-core.ts:213 5 seconds; Windows taskkill cleanup after committed child result D — Retained: cleanup after committed child result; result remains authoritative.
src/cli/update-cli/update-command-post-core.ts:58,439 1 second; POSIX graceful-stop allowance after committed result D — Retained: POSIX child cleanup after committed result.
src/cli/update-cli/status.ts:39 3.5 seconds; status Git/registry checks D→A — Fixed: CLI status forwards an explicit allowance or lets network owner supply 300s; local discovery remains separate.
src/cli/update-cli/wizard.ts:45 3.5 seconds; local install/Git identity before channel picker C — Unchanged: local identity before channel selection; no remote freshness check here.
src/cli/update-cli/restart-helper.ts:659 10 seconds; Windows schtasks /End C — Unchanged: legacy generated Windows restart script's End warning/fallback path; separate native owner.
src/cli/update-cli/restart-helper.ts:667-690 10 observations with 1-second sleeps (9 seconds sleeping plus probe execution); old listener drain grace B (static risk) — Unchanged: legacy listener-drain grace; no change to force-kill or ownership semantics.
src/cli/update-cli/restart-helper.ts:693 30 seconds; Windows schtasks /Run C / possible B — Unchanged: legacy generated Run watchdog/startup fallback; platform reproduction pending.
src/cli/one-shot-exit.ts:154 (imported by finalization) 10 seconds; exit after already-recorded terminal output D — Retained: unref'd exit watchdog after recorded terminal outcome.
scripts/install.sh:156,163 curl low-speed watchdog: below 1 byte/sec for 30 sec D — Fixed: 300s curl inactivity watchdog; progressing transfers have no total deadline.
scripts/install.sh:169,172 wget 20-sec DNS/connect/read timeout D — Fixed: 300s wget DNS/connect/read watchdog; retries unchanged.
scripts/install-cli.sh:179 curl below 1 byte/sec for 30 sec D — Fixed: standalone CLI installer uses same generated 300s inactivity value.
scripts/install-cli.sh:184 wget 20 sec D — Fixed: standalone CLI installer uses same generated 300s wget value.
scripts/install.sh:157,164; scripts/install-cli.sh:180 1-sec retry delay, 3 retries Excluded — Retry pacing/counts unchanged; no added retries.
scripts/install.ps1:476 PowerShell 7.4+ 30-sec per-read operation watchdog D — Fixed: modern PowerShell uses 300s connection/read watchdogs from generated owner.
scripts/install.ps1:485,891 Older PowerShell: 30-sec total metadata request D — Fixed: legacy metadata uses shared 300s request value.
scripts/install.ps1:574,604,949 Older PowerShell: 600-sec total archive/checksum request D→A — Fixed: legacy downloads use synchronous streaming with 300s per-read timeout, replacing total transfer deadline; streams always disposed.
scripts/install.sh:3173 5-sec installer finalization probe default C — Unchanged: optional installer finalization probes may skip service refresh; existing override retained.
scripts/install.sh:3202 0.1-sec kill grace after finalization probe timeout D — Retained: cleanup after failed installer probe.
scripts/preinstall-package-manager-warning.mjs:17,217 10-sec Node runtime probe used under Bun preinstall B (static risk) — Unchanged: Bun preinstall Node probe still has 10s cap; runtime-owner follow-up, not claimed repaired.

Daemon, restart and Doctor

Audit source Audited literal / bounded step Current class and disposition
src/cli/daemon-cli/install-load.ts:33 60 s updater IPC staged-service after-image seal B→A — Fixed: child waits for parent IPC/disconnect; updater parent owns the forwarded timeout and terminates child on expiry.
src/cli/daemon-cli/restart-health.constants.ts:1 60 s normal restart health A/C — Ordinary 60s default retained with existing startup-migration extension (#144890). Update observation now supplies its own measured/caller allowance.
src/cli/daemon-cli/lifecycle.ts:80 180 s Windows restart default D — Retained: ordinary Windows restart default; not the network-transfer policy.
src/cli/daemon-cli/restart-health.ts:46,47 10 s Unix / 90 s Windows stopped/free grace; six consecutive stopped/free samples B (static risk) — Stopped/free early-exit policy unchanged, including supervisor exceptions. Distinct from repaired per-probe forwarding.
src/cli/daemon-cli/restart-health-probe.ts:73,82 3 s per /healthz and /readyz request C→A for updates — Update observation forwards remaining allowance; 3s default retained for callers without an update budget.
src/cli/daemon-cli/restart-health-probe.ts:264 3 s WebSocket health / version / build identity RPC C→A for updates — WebSocket/version/build observation now receives remaining update allowance; unrelated default stays 3s.
src/cli/daemon-cli/lifecycle.ts:97 1 s unmanaged restart-enabled probe C — Retained: optional unmanaged restart-enabled check; failure does not block restart.
src/cli/daemon-cli/lifecycle.ts:297,312 10 s targeted restart-ack RPC B/D (conditional) — Unchanged: unmanaged/external restart ACK path; no repair claim for this separate path.
src/cli/daemon-cli/lifecycle-safe-restart.ts:14 5 s legacy systemd metadata refresh C — Unchanged: legacy metadata refresh warning; restart RPC still follows.
src/cli/daemon-cli/lifecycle-safe-restart.ts:96 10 s safe restart RPC B/D (conditional) — Unchanged: safe restart RPC; no direct current-update caller proved in this audit.
src/daemon/launchd-plist.ts:258 5 s plutil decode B/C (static risk) — Unchanged: plutil/effective-definition 5s clamp. Separate native inspection owner decision pending.
src/daemon/launchd-runtime.ts:57 5 s command-absence/system-ownership proof B (static risk) — Unchanged: strict command absence/ownership 5s clamp; identity requirements preserved.
src/daemon/launchd-lifecycle.ts:40 2 s protected PID launchctl print before stale-process cleanup B (static risk) — Unchanged: protected-PID query before cleanup; no weaker ownership fallback.
src/daemon/launchd-plist.ts:17 20 s launchd ExitTimeOut D — Retained: supervisor ExitTimeOut contract; changing shutdown behavior is a separate decision.
src/daemon/launchd-stop.ts:25 20 s post-stop port release A — Retained: port-release wait derives from launchd ExitTimeOut.
src/daemon/launchd-runtime.ts:82 30 s bootstrap pending teardown A — Retained: bootstrap teardown wait derives from native ExitTimeOut plus margin.
src/daemon/launchd-runtime.ts:397,403 10 × 100 ms stopped probe window (~1 s plus command time) C — Retained: stop-disable fallback observation, not the normal update bootout path.
src/daemon/launchd-restart-handoff.ts:32 35 × 1 s bootout wait A — Retained: detached handoff bootout wait derives from native teardown contract.
src/daemon/launchd-restart-handoff.ts:33 15 bootstrap retries at 1 s B (static risk) — Unchanged: detached bootstrap retry window; platform-owner follow-up.
src/daemon/schtasks-state-probe.ts:24 5 s PowerShell COM Task Scheduler probe A explicit / B default — Existing caller propagation and unknown-state behavior (#143292) retained; default remains 5s, not claimed generally repaired.
src/daemon/schtasks-exec.ts:5,6 15 s total / 30 s no-output schtasks B (static risk) — Unchanged: generic Scheduler total/idle command limits; repaired embedded updater commands are a different caller/owner.
src/daemon/schtasks-runtime.ts:48,109 15 s Scheduler running evidence B (static risk) — Unchanged: Scheduler running-evidence window; no duplicate fallback or weaker evidence introduced.
src/daemon/schtasks-control.ts:142 Same 15 s stable non-start evidence B (static risk) — Unchanged: Scheduler non-start evidence; platform-owner reproduction pending.
src/daemon/schtasks-runtime.ts:339 5 s fallback takeover reprobe B (static risk) — Unchanged: fallback-takeover reprobe; unknown remains unverified.
src/daemon/schtasks-process.ts:283 1.5 s tasklist PID existence B (static risk) — Unchanged: tasklist identity probe; no guessed process state.
src/daemon/schtasks-process.ts:326,337,346 5 s graceful taskkill; 5 s force taskkill; 5 s forced-exit wait B (static risk) — Unchanged: Windows shutdown/force-exit timing; no lifecycle weakening.
src/daemon/schtasks-process.ts:353; schtasks-control.ts:359,443 5 s port-release default and explicit stop/restart calls B (static risk) — Unchanged: Windows port-release limits; separate native lifecycle owner.
src/daemon/schtasks-process.ts:381 5 s PowerShell CIM process snapshot B (static risk) — Unchanged: Windows CIM identity snapshot; no invented identity fallback.
src/daemon/systemd-loaded-runtime.ts:33 5 s aggregate loaded-runtime inspection A explicit / B default — Default unchanged. Repaired update readiness now forwards remaining budget; other callers remain as before.
src/daemon/systemd-service-files.ts:35,98 5 s effective command inspection A explicit / B/C default — Default and strict/advisory distinction unchanged; no universal native-query repair claimed.
src/daemon/systemd-system.ts:116 5 s non-loading system ownership inspection A explicit / B default — Forwarding retained; default unchanged; ownership uncertainty still blocks mutation.
src/daemon/systemd-definition-mutation.ts:195 5 s strict definition mutation capability A explicit / B default — Existing remaining-budget behavior retained; default unchanged.
src/daemon/systemd-definition-mutation.ts:385,387 60 s stale lock; 100 × 50 ms default retry (~5 s) B acquisition / excluded stale policy — Unchanged. Explicit operation budget already controls acquisition; persistence recovery changes require owner decision.
src/daemon/service-operation-lock.ts:63,64 120 retries, 25→250 ms (~27 s); 30 s stale B acquisition / excluded stale policy — Unchanged. Live lock ownership and stale-recovery rules are outside this repair.
src/daemon/runtime-paths.ts:126 5 s Node/Bun SQLite capability subprocess A explicit / B/C default — Unchanged runtime capability owner; selected-Node preflight clamp remains listed separately.
src/daemon/service-audit.ts:74,188 10 s effective systemd audit C — Retained: caller-aware diagnostic audit with existing fallback.
src/daemon/systemd-linger.ts:36 5 s loginctl linger read C — Retained: optional linger read; no activation authority inferred from failure.
src/daemon/systemd-linger.ts:61 30 s enable-linger C/D — Retained: interactive enable-linger/manual guidance; post-update Doctor only reads linger.
src/commands/doctor-update.ts:55 5 s git checkout detection C — Retained: optional update-offer checkout probe; offer is disabled inside an update.
src/commands/doctor-completion.ts:24,91 30 s child completion cache generation C — Retained: optional completion warning/manual refresh; not a required service transition.
src/commands/doctor-config-flow.ts:134,144 3 s secrets reload; 3 s auth status refresh C — Retained: best-effort local Gateway auth refresh; not a registry/install transfer.
src/commands/doctor-gateway-health.ts:114 3 s installed state-path inspection clamp C — Retained: optional installed-state-path diagnostic clamp.
src/commands/doctor-gateway-health.ts:137 10 s health default C — Retained: Doctor diagnostic health defaults/contribution limits; update-owned final readiness uses its separate owner.
src/commands/doctor-gateway-health.ts:180,181,187 5 s channel probe parameter; 6 s RPC outer; 6 s status clamp C/D — Retained: channel/status diagnostic budgets; not covered by shared registry/install default.
src/commands/doctor-gateway-health.ts:280 8 s memory status default C — Retained: optional memory-status diagnostic, including shallow contribution limits.
src/commands/doctor-gateway-daemon-flow.ts:484,516 10 s health after recent restart / manual restart C — Retained: manual/recent-restart Doctor checks; no headless-update restart prompt added.
src/commands/doctor-service-repair-policy.ts:9,45 5 s container systemd reachability C — Retained: container service-repair eligibility check; default unchanged.
src/commands/doctor-gateway-services.ts:129,370,371 5 s bootout + 5 s unload + 5 s absence confirmation C — Retained: interactive legacy service cleanup with affirmative absence requirement.
src/commands/doctor-platform-notes.ts:21,113 5 s launchctl getenv C — Retained: optional launchctl environment note.
src/commands/doctor-project-clone-shape.ts:38 5 s each git config/rev-parse C — Retained: local project-shape diagnostics; lazy network fetching is disabled there.
src/commands/doctor-ui.ts:99 5 s source git log freshness C — Retained: local source freshness advisory.
src/commands/doctor-claude-cli.ts:32 3 s Claude auth status C — Retained: optional external CLI auth diagnostic; ambiguous timeout/login reporting is not repaired here.
src/commands/doctor-whatsapp-responsiveness.ts:17,60 1 s local TUI process probe C — Retained: optional TUI process evidence.
src/commands/doctor-web-fetch-proxy.ts:12 3 s direct TLS docs host probe D diagnostic — Deliberately retained at 3s after accepted P1: proxy-only hosts must not wait five minutes for an intentionally unavailable direct route.
src/commands/doctor-device-pairing.ts:131 5 s pairing RPC C — Retained: pairing diagnostic with existing local/remote fallback.
src/commands/doctor-sandbox.ts:77 20 min sandbox image setup script C/D — Retained: optional sandbox setup workflow's 20min watchdog; not the update registry/default policy.
src/commands/doctor-sandbox.ts:99,122 5 s engine availability / unshare namespace probe C — Retained: optional engine/namespace probes.
src/commands/doctor-sandbox.ts:192 5 s image inspect Potential B — Unchanged: image-inspection timeout may escape contribution. Actual update failure path/reproduction requires owner decision.
src/commands/doctor-sandbox-legacy-registry.ts:194,195 30 s stale lock; 59 × 1 s acquisition retry Potential B / excluded stale policy — Unchanged: legacy migration lock acquisition and stale handling; material recovery-policy change is gated.
src/commands/doctor-sqlite-maintenance-lock.ts:14,192 250 ms lock acquisition (25 ms polling) D admission — Retained: offline SQLite maintenance exclusivity guard; not a database-processing budget.
src/commands/doctor/cron/warnings.ts:20,241 5 s crontab read C — Retained: optional crontab diagnostic.
src/commands/doctor-host-desktop.ts:89 120 s each sudo Screen Sharing enable/kickstart D — Retained: explicitly interactive desktop enablement; outside headless update work.
src/daemon/launchd-foreign-jobs.ts:27,229,321,339 2 s per native query; 10 s aggregate ≤64-job scan C — Retained: diagnostic foreign-job scan; aggregate scaling not changed.
src/daemon/launchd-foreign-jobs.ts:384,403,410 Same 2 s disable/bootout/verify C — Retained: foreign-job mutation/verification; explicitly skipped during update-in-progress.

Managed-service handoff (src/infra/)

Audit source Audited literal / bounded step Current class and disposition
update-managed-service-handoff.ts:57, :2193-2195, :1612-1616, :1178-1188 30_000 reserve added to restartDrainTimeoutMs; capped at 2_147_483_647 A / static B risk — Drain+30s reserve preserved. Park ACK/teardown now consume this same activation allowance instead of independent windows; timer ceiling retained.
update-managed-service-handoff.ts:58, :2088-2091 30_000 B→A — Fixed: readiness/control ACK uses owner's recovery allowance; park ACK uses drain/exit allowance. Response still required.
update-managed-service-handoff.ts:231 PRAGMA busy_timeout = 5000 C / storage — Unchanged: sentinel SQLite contention; no receipt/recovery behavior change.
update-managed-service-handoff-database.ts:84 busyTimeoutMs: 5000 B / storage — Unchanged: rollback-safe lease DB contention; storage-owner decision required before changing lock policy.
update-managed-service-handoff-database.ts:122 setSqliteBusyTimeout(db, 5000) B / storage — Unchanged: normal lease DB contention; same pending storage-owner decision.
update-managed-service-handoff.ts:437 min(recoveryTimeoutMs, 60_000) B (terminal-report risk) — Unchanged: ledger finalizer retains 60s cap; not the repaired native service-command bound.
update-managed-service-handoff.ts:581 (non-bootout branch), :590 5000, further limited to remaining absolute deadline when supplied B→A — Fixed: embedded manager commands consume recovery or remaining activation allowance; explicit tighter cap still respected.
update-managed-service-handoff.ts:581 (bootout branch), :897 30000 B→A — Fixed: launchd bootout consumes remaining activation allowance.
update-managed-service-handoff.ts:972 Date.now() + 30000 B→A — Fixed: launchd restoration uses recovery allowance, not independent 30s window.
update-managed-service-handoff.ts:1109 PARENT_EXIT_SHUTDOWN_RESERVE_MS = 30s B→A — Fixed: post-exit label disappearance shares original activation deadline.
update-managed-service-handoff.ts:1139 10_000 C — Retained: optional final-notice ACK timeout; parking continues, not a registry/install transfer.
update-managed-service-handoff.ts:1198 timeout: 5000 D — Retained: Windows tree cleanup after cancellation; no broader termination claim.
update-managed-service-handoff.ts:1459 30000 C — Retained: optional automatic-triage admission watchdog.
update-managed-service-handoff.ts:1475-1478, :2256 timeoutMs; default recovery budget 30 * 60_000 A/D — Retained: caller recovery allowance/30min default; owner now records it for ACK/command reuse. Main update child stays uncapped by this helper.
update-managed-service-handoff.ts:1564 min(recoveryTimeoutMs, 60_000) C — Retained: diagnostic triage after recovery; not required activation work.
update-managed-service-handoff-lease.ts:74, :154 5000 default control timeout B (static risk) — Unchanged: retained-scope liveness/control default; unknown remains not-dead.
update-managed-service-handoff-lease.ts:90 1000 (Windows only) B (static risk) — Unchanged: Windows process-start identity query; exact identity still required.
update-managed-service-handoff-lease.ts:125 Windows 5000, macOS 1000 B (static risk) — Unchanged: boot identity query; no fallback identity or guessed success.
update-managed-service-handoff-lease.ts:691 30000 C / custody risk — Unchanged: diagnostic-scope stop; positive closure still required before custody reclamation.

Supplementary exclusions and traced boundaries

Source Literal / contract Disposition
src/daemon/hosted-stop.ts:87,156; src/daemon/hosted-stop-executor.ts:121,146; caller src/cli/gateway-cli/host-lifecycle.ts:92 Four 5s host-stop preparation/identity/commit watchdogs Conditional B/D: no direct update caller found; unchanged, no platform claim.
src/daemon/launchd-restart-handoff.ts:69 100ms parent-PID polling without its own deadline Cadence excluded; no artificial work budget added.
src/daemon/launchd-exec.ts; src/daemon/systemd-exec.ts:279; src/cli/daemon-cli/start-health.ts:19; restart-health-external.ts; restart-lock-replacement.ts Forwarded remaining budgets/owned startup timing/attempts A: existing owners retained; wrappers without literals were traced, not counted as new policies.
src/cli/daemon-cli/status.gather.ts:388; register-service-commands.ts:74 10s status-only defaults Excluded: do not gate update execution.
src/commands/doctor-config-preflight.ts:219; doctor-usage-cost-cache.ts:14 60s heartbeat; 10s cleanup grace Interval/retention policy excluded; unchanged.
src/daemon/schtasks-control.ts:438 300ms cancellation escalation D: cleanup only, not healthy-start budget.
src/infra/update-managed-service-handoff.ts:2247; update-managed-service-handoff-cleanup.ts:35,44 Restart delay ≤60s; scratch age 24h with caller TTL Scheduling/retention excluded; no recovery-policy change.
src/infra/update-managed-service-handoff.ts:1010,1025,1117,1129,1104,1190,1606,1744,1469,1913,2194 500/250/25ms polling, 250ms lease watch, milliseconds conversion, 2,147,483,647ms ceiling Cadence, units and timer representation excluded; not developer-machine work allowances.
src/cli/update-cli/restart-helper.ts:157,206,281; progress.ts; update-command-post-core.ts Pre-restart sleeps 1/2s; display/result polling Delays/polling excluded, except the explicitly listed listener-drain attempt limit.
scripts/update-gateway.sh; scripts/postinstall-bundled-plugins.mjs No literal work timeout Native/subprocess defaults still apply; absence of a local literal is not proof of unlimited or safe execution.

@clawsweeper

clawsweeper Bot commented Sep 11, 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 scripts Repository scripts commands Command implementations size: XL maintainer Maintainer-authored PR labels Sep 11, 2026
@steipete
steipete marked this pull request as ready for review September 11, 2026 19:55
@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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 12:37 PM ET / 16:37 UTC (Revision 47).

ClawSweeper review

What this changes

The branch derives update deadlines from measured state, forwards budgets through installers and recovery, and preserves Chrome tab access across delayed lifecycle events.

Merge readiness

⛔ Blocked before merge - 4 items remain

This PR remains useful: current main retains timeout ceilings that the branch addresses. No actionable patch defect was found, and the recorded maintainer acceptance resolves the previous recovery-wait concern without another approval round.

Priority: P1
Reviewed head: e9fe0f4088204ac699be7c3157c12af4c301b112

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has coherent ownership, meaningful regression coverage, and successful pinned-head CI, with qualification limits explicitly accepted.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor-proof gate does not apply to this maintainer-authored PR. Supplied native Chromium creation/snapshot results and production watchdog FIFO traces support the changed paths; full slow-state published-driver and Windows qualification remains explicitly deferred.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor-proof gate does not apply to this maintainer-authored PR. Supplied native Chromium creation/snapshot results and production watchdog FIFO traces support the changed paths; full slow-state published-driver and Windows qualification remains explicitly deferred.
Evidence reviewed 9 items Pinned review continuity: The checkout matches the original PR head, whose raw recorded parent is cf06152. Comparing these revisions produced no tree changes; the previous completed review lists no findings.
Central work remains absent from main: Current main still caps package recovery fingerprint scans at 30 seconds and baseline scans at five minutes. Its finalization resolver still uses the fixed 30-minute floor and six-step multiplier, without measured database sizes.
Measured budget owner: The new finalization owner combines measured SQLite-family sizes, caller allowance, observed startup, and plugin count. Mutable execution rechecks authority before and after resolving and admitting that allowance.
Findings None None.
Security None None.

How this fits together

OpenClaw’s updater stages and validates a candidate before replacing the installation and restarting the Gateway. Its operation budgets govern database inspection, package verification, service commands, and recovery.

flowchart TD
  A[CLI or automatic update] --> B[Measure state and startup]
  B --> C[Resolve operation budgets]
  C --> D[Validate candidate]
  D --> E[Activate and restart]
  E --> F{Completion or expiry}
  F --> G[Record verified outcome]
  F --> H[Cancel and retain unsettled ownership]
Loading

Before merge

  • Resolve merge risk (P1) - Recovery fingerprint scans and service commands can wait substantially longer while the Gateway is stopped; representative slow-system downtime remains unmeasured and explicitly accepted for this landing.
  • Resolve merge risk (P1) - Full slow-state published-driver and native Windows recovery qualification remains incomplete; candidate changes cannot retroactively repair timers in an already-installed driver.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production and test growth Production/tooling net +511 lines; tests/support net +2,205 lines Production growth supports shared budget calculation, propagation, and isolated progress observation; tests chiefly cover deadlines, cancellation, and retained authority.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/cli/update-cli/update-command-config-snapshot.ts, migration/backfill/repair: src/cli/update-cli/update-command-fresh-doctor.ts, serialized state: scripts/generate-update-network-budget.mjs, serialized state: src/cli/update-cli/update-command-config-snapshot.ts, unknown-data-model-change: src/cli/update-cli/update-command-fresh-doctor.ts, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Honor the recorded recovery-wait acceptance (recommended)
    Proceed under the maintainer’s documented acceptance of longer stopped-Gateway waits and incomplete slow-system qualification.

Technical review

Best possible solution:

Retain one measured-budget owner with live authority and writer-settlement checks, under the recorded acceptance of longer recovery waits and bounded upgrade qualification.

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

Yes, from source: current main clamps package recovery scans independently of larger caller budgets. This review did not execute a reproduction; the field report’s initiating error remains separately unproved.

Is this the best way to solve the issue?

Yes. Reusing measured budget owners and forwarding their allowances is a coherent repair, while existing integrity checks, cancellation, and unsettled-writer custody remain enforced.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: The repair addresses update failures on slow installations, supported by field reports and current-source timeout ceilings.
  • merge-risk: 🚨 availability: Longer recovery allowances can extend stopped-Gateway downtime, an explicitly accepted but incompletely measured tradeoff.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 ordinary contributor-proof gate does not apply to this maintainer-authored PR. Supplied native Chromium creation/snapshot results and production watchdog FIFO traces support the changed paths; full slow-state published-driver and Windows qualification remains explicitly deferred.

Evidence

What I checked:

  • Pinned review continuity: The checkout matches the original PR head, whose raw recorded parent is cf06152. Comparing these revisions produced no tree changes; the previous completed review lists no findings. (e9fe0f408820)
  • Central work remains absent from main: Current main still caps package recovery fingerprint scans at 30 seconds and baseline scans at five minutes. Its finalization resolver still uses the fixed 30-minute floor and six-step multiplier, without measured database sizes. (src/infra/package-update-integrity.ts:60, 05177019f408)
  • Measured budget owner: The new finalization owner combines measured SQLite-family sizes, caller allowance, observed startup, and plugin count. Mutable execution rechecks authority before and after resolving and admitting that allowance. (src/infra/update-finalization-budget.ts:10, e9fe0f408820)
  • Accepted qualification limits: The recovered PR body matches captured SHA-256 933a11d819d82c061f150ea1ad4a3977f083efcdf4f66ea7af9db957d4dbc35e. It explicitly accepts longer recovery waits and incomplete slow-state published-driver/native Windows qualification for this landing; the optional rank-up request is deferred. These are accepted limits, not completed qualification. (e9fe0f408820)
  • Cancellation and settlement evidence: The supplied proof reports three native POSIX FIFO cases failing before repair and passing afterward. The inspected process test exercises the production progress watchdog and verifies independent timer progress, cancellation/completion, natural updater exit, and probe PID extinction. The activation regression separately retains the lease when writers remain unsettled. (src/infra/update-candidate-io.process.test.ts:12, e9fe0f408820)
  • Browser authority and real-path coverage: Renewal requires an already-proven current attachment and matching selected group; delayed events cannot renew a revoked epoch. Native tab inspection remains on the command path. The matching PR body reports the native Chromium creation/snapshot and revocation flow passing after the correction, supplemented by delayed-event negative controls. (extensions/browser/chrome-extension/modules/tab-access.js:466, e9fe0f408820)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • jalehman: 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 (46 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-13T12:54:42.830Z sha da10366c85ce1e03c5559475466e42ffed214804 :: blocked before merge. :: none
  • reviewed 2026-09-13T13:07:31.872Z sha da10366c85ce1e03c5559475466e42ffed214804 :: blocked before merge. :: none
  • reviewed 2026-09-13T13:19:22.370Z sha da10366c85ce1e03c5559475466e42ffed214804 :: blocked before merge. :: none
  • reviewed 2026-09-13T13:52:54.380Z sha f97a08d :: blocked before merge. :: none
  • reviewed 2026-09-13T14:39:44.088Z sha 69f2d5f :: blocked before merge. :: none
  • reviewed 2026-09-13T15:25:33.290Z sha cf06152 :: blocked before merge. :: none
  • reviewed 2026-09-13T16:01:37.558Z sha cf06152 :: blocked before merge. :: none
  • reviewed 2026-09-13T16:15:12.114Z sha e9fe0f4 :: blocked before merge. :: none

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: e9fe0f4088204ac699be7c3157c12af4c301b112

steipete added a commit that referenced this pull request Sep 11, 2026
openclaw update no longer fails with EADDRINUSE on the configured MCP Apps sandbox port while the live Gateway runs. The candidate canary keeps MCP Apps off and records its isolation facts, using the marker already supplied by published updaters. Normal Gateway listener settings remain intact.

Published 2026.9.3 and 2026.9.4 drivers both pass the repaired canary; regression coverage proves failure before the fix and success afterward. The later package swap / rollback-verification timeout is owned by #145219.

Fixes #145280.
Thanks to @Carme99 for the report and listener/PID evidence.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
openclaw update no longer fails with EADDRINUSE on the configured MCP Apps sandbox port while the live Gateway runs. The candidate canary keeps MCP Apps off and records its isolation facts, using the marker already supplied by published updaters. Normal Gateway listener settings remain intact.

Published 2026.9.3 and 2026.9.4 drivers both pass the repaired canary; regression coverage proves failure before the fix and success afterward. The later package swap / rollback-verification timeout is owned by openclaw#145219.

Fixes openclaw#145280.
Thanks to @Carme99 for the report and listener/PID evidence.
@steipete
steipete force-pushed the steipete/upd-timeout-budgets branch from b75da63 to fe768d4 Compare September 12, 2026 05:08
@github-actions github-actions Bot removed the dependencies-changed PR changes dependency-related files label Sep 12, 2026
@steipete
steipete force-pushed the steipete/upd-timeout-budgets branch from fe768d4 to fa76218 Compare September 12, 2026 05:58
This was referenced Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui cli CLI command changes commands Command implementations docs Improvements or additions to documentation extensions: browser maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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