Skip to content

fix(update): restore Gateway and clear stale warnings after repair - #151003

Merged
steipete merged 6 commits into
mainfrom
upd/update-repair-doctor-self-parent
Sep 17, 2026
Merged

steipete merged 6 commits into
mainfrom
upd/update-repair-doctor-self-parent

Conversation

@steipete

@steipete steipete commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Related: #150950 #151132. Also related: #150942. Reported by @shadesurgeon.

What Problem This Solves

Successful openclaw update repair could leave stale failure warnings and recovery actions visible, full repair delegated service activation to its Doctor child, and updater children omitted valid recovery guidance on ordinary maintenance refusals. An explicit finalization deadline could also exit the parent before asynchronous Gateway restoration, leaving the managed service stopped.

The original 2026.9.4 self-conflict is already fixed on main by #147720 (fe645cd77de7), and missing failure reasons by #147286 (d10ef37bfd56). Both fixes are included in the 2026.9.5 cut. This is a normal follow-up that completes the recovery UX.

User Impact

Healthy abandoned-run recovery stays online. Full repair stops and restores its owned Gateway through the update parent; Doctor children never stop or restart it. A fatal phase deadline cancels work, fences late writes, allows bounded settlement, and records the phase/deadline warning. The parent restores and verifies the Gateway before exiting with the original failure code. A restoration failure identifies the problem and the restart command. CLI and Control UI recovery prompts clear after acknowledgement while historical failure records remain available.

Unavailable service inspection still allows state repair under its database owners without claiming service authority. Other maintenance refusals retain the independent openclaw doctor --fix recovery step; only the explicit self-parent activation refusal omits that guidance.

Why This Change Was Made

Reuse Doctor's maintenance owner in the update parent: acquire lifecycle ownership before service stop, release database fences before fresh Doctor children, then restore and verify the owned service after convergence or failure. Inspect newer failed post-core attempts, including legacy rows with empty reasons, so an older abandoned row cannot bypass necessary finalization.

Keep acknowledgement predicates in the browser-safe record owner. Both record and legacy-expiry modules consume the type-only update-run-recovery-state.ts contract; the value dependency is record → legacy expiry, which owns the terminal reason. Recovery guidance follows the actual parent-activation refusal, rather than the presence of an update-parent marker.

Finalization reuses the activation deadline owner for cancellation and bounded joining. Native service custody is acquired and restored outside the canceled mutation phase; restoration revalidates the original live maintenance instance and current native service ownership. Terminal exit follows restoration instead of bypassing its finally.

No config options, CLI options, database schema, or dependencies change.

Evidence

  • Tooling entry fix (63bc9ba3ac62fb118f19d2496eb02c76ccd078dc): the deadline proof is an internal phase of the explicitly selected abandoned-update qualification. Its logic now lives in the already-registered abandoned-update.mjs CLI as deadline-hook and deadline-verify; the separate unregistered helper was deleted. Knip configuration and the scenario catalog are unchanged.
  • pnpm deadcode:unused-files passes with 0 production and 0 full-tree unused files. All 177 survivor plan, registry, and systemd-fixture tests pass. Before/after executable CLI checks produced identical hook bytes and verification output, and both rejected invalid late-write evidence. node scripts/check-changed.mjs passed after the move.
  • Rebased onto 2d05f4c3b677105cf98c58732862713c85c08e0e, containing fix(update): recover external systemd service repairs #151132. The fresh-Doctor external-policy handoff, authenticated systemd template-instance resolver, refusal-only fast path/classifier/transaction, and new refusal cases were preserved byte-for-byte. Three import hunks were resolved in the repair command, its test, and the run ledger; the existing four commits were preserved, followed by the test-only assertion commit.
  • The executable CLI deadline regression failed before the fix because the Gateway remained stopped. After the fix it records stop → plugins-entered → late-write-refused → restart, keeps config unchanged, records the warning, releases custody, and preserves exit code 1. Copied, consumed, released, and concurrently revoked maintenance handles cannot restore the service.
  • The selected Doctor maintenance, health, repair/finalization, executor, external-policy, refusal-only, and systemd-template coverage passes: 430 tests across 20 files, using one worker. Two obsolete downgrade call-shape assertions were strengthened to verify one mutation, guard presence by mode, and refusal after finalization phase closure; no production code changed for that adjustment.
  • node scripts/check-changed.mjs and git diff --check pass. Both runtime and Madge import checks report 0 cycles. No suppressions, baseline growth, or test weakening.
  • Production review of record: committed head 91358d3a7345eddd0c63258f4028bfccc9897a66 (--mode branch --base origin/main --max-priority P1) is scoped-clean (0.85). Production code is unchanged. The tooling-only consolidation received a local Codex review: scoped-clean (0.97).
  • Linux packaged qualification with the published 2026.9.4 driver passed after rebasing over fix(update): recover external systemd service repairs #151132: online abandoned-run recovery preserved the Gateway; full repair stopped and restored it under the update parent; the injected 15,000 ms plugins deadline refused a late real config write, restored the Gateway, released custody, recorded the warning, and exited 1. All health probes passed. The systemd managed-service fixture substitutes for the container's unavailable systemd --user; Doctor never issued a service mutation. Provider: blacksmith-testbox; lease tbx_01m2rp119n18z8rfzhetze66sb; qualification run; wrapper exit 0, command time 13m58s; lease stopped. Qualified source: 16da82964cc0c47e9b421ced2749f0daea32b191; later commits strengthen test assertions and consolidate the helper, without changing production code. The consolidated helper preserves generated-hook bytes and verification output.

The Linux transcript includes:

[fixture] Plugin convergence entered; waiting past its 15000ms deadline.
[fixture] Late config write refused by the expired phase authority.
warning:finalize:plugins:deadline: Update finalization timed out in plugins after 15000ms Cancellation settled before recovery.
Gateway restarted and verified after Doctor repair.
exitCode=1 gatewayRestored=true lateWriteRefused=true custodyReleased=true

Latest tooling fix: +140/−146 (net −6), with no production changes. Whole PR: production +701/−423 (net +278); tests/proof +861/−86 (net +775); docs +22/−20.

Before repair acknowledgement (synthetic fixture):

Before: abandoned-run warning and stale recovery controls

After repair acknowledgement (the historical failed phases remain):

After: reconciled report without stale recovery controls

Latest review disposition

The exact-head ClawSweeper review on 63bc9ba3ac62fb118f19d2496eb02c76ccd078dc reports no actionable findings. Its remaining data-model compatibility checklist item is satisfied by the published 2026.9.4-driver Linux qualification described above: it exercises legacy failed history, including empty failure reasons, while retaining the existing ledger schema and persistence format. The review itself confirms that this evidence satisfies the earlier compatibility reminder. No additional migration or schema change is needed. No other Rank-up moves remain.

The committed-branch review of record at this head is scoped-clean, with no actionable P0/P1 findings. The native CI watcher confirmed run 35284407181 is GREEN with zero pending checks. The existing synthetic before/after screenshots were inspected again and displayed in the landing chat; both PR attachment URLs resolve to the expected images.

@clawsweeper

clawsweeper Bot commented Sep 17, 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 marked this pull request as ready for review September 17, 2026 16:49
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui cli CLI command changes scripts Repository scripts commands Command implementations size: XL maintainer Maintainer-authored PR labels Sep 17, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 17, 2026, 7:03 PM ET / 23:03 UTC (Revision 8).

ClawSweeper review

What this changes

The PR makes update repair restore its stopped Gateway after failures, fence timed-out writes, and clear acknowledged recovery warnings from CLI and Control UI reports.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains a useful follow-up to the merged repair fixes. The previous deadline/restoration finding is addressed, the supplied upgrade evidence satisfies the earlier compatibility reminder, and no new blocking defect was identified.

Priority: P1
Reviewed head: 63bc9ba3ac62fb118f19d2496eb02c76ccd078dc

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The coherent ownership repair has strong failure-path evidence, useful visual proof, and no remaining actionable finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The captured packaged Linux transcript exercises the repair parent, real Gateway processes, and a real config writer through the managed-service fixture: deadline cancellation rejects the late write and restores verified service before exit 1. Production bytes match the qualified revision; inspected before/after screenshots cover the visible acknowledgement change.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured packaged Linux transcript exercises the repair parent, real Gateway processes, and a real config writer through the managed-service fixture: deadline cancellation rejects the late write and restores verified service before exit 1. Production bytes match the qualified revision; inspected before/after screenshots cover the visible acknowledgement change.
Evidence reviewed 9 items Introduced scope and review continuity: Reviewed the pinned merge-base-to-head changes. Comparing qualified source 16da829 with HEAD under src and ui shows only strengthened test assertions; production behavior remains unchanged. The latest commit consolidates the deadline fixture into the registered survivor helper.
Restoration now survives phase failure: Finalization acquires maintenance before starting the Doctor phase deadline, releases database fences before Doctor children, and restores through the enclosing finally. Phase deadlines revoke write guards and join work before propagating failure.
Live authority remains required: Restoration checks the original maintenance instance, current custody, update admission, native operation lock, and service identity before restart. Focused cases cover copied, consumed, released, and concurrently revoked handles, plus a Doctor child attempting to activate its parent's service.
Findings None None.
Security None None.

How this fits together

Update repair coordinates Doctor and plugin maintenance against an installed OpenClaw instance. Its parent manages Gateway restoration, while the update ledger supplies recovery status to the CLI and Control UI.

flowchart TD
  A[Update repair request] --> B[Inspect update history]
  B --> C{Maintenance needed?}
  C -->|No| D[Acknowledge recovered run]
  C -->|Yes| E[Parent acquires service custody]
  E --> F[Doctor and plugin repair]
  F --> G[Restore and verify Gateway]
  G --> D
  D --> H[CLI and Control UI report]
Loading

Before merge

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

Security

None.

PR surface

Source +278, Tests +471, Docs +2, Other +304. Total +1055 across 44 files.

View PR surface stats
Area Files Added Removed Net
Source 22 701 423 +278
Tests 16 509 38 +471
Docs 1 22 20 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 5 352 48 +304
Total 44 1584 529 +1055

Review metrics

Metric Value Why it matters
Production versus validation growth Production net +278 lines; tests and proof net +775 lines Production growth supports explicit restoration custody and shared deadline handling, with regression and packaged recovery coverage.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/abandoned-update.mjs, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/abandoned-update.sh, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/systemd-fixture.mjs, migration/backfill/repair: scripts/lib/upgrade-survivor-policy.mjs, migration/backfill/repair: src/cli/update-cli.ts, migration/backfill/repair: src/commands/doctor-maintenance.ts, and 4 more. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep Gateway custody with the repair parent, fence expired work, and derive recovery prompts from the existing ledger acknowledgement.

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

Yes, source identifies the fatal deadline path that bypassed restoration, and the supplied executable regression reports failure before the fix; this read-only review did not run it.

Is this the best way to solve the issue?

Yes. Reusing Doctor's maintenance owner and the existing deadline machinery avoids competing service owners, and acknowledgement changes preserve historical records.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

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

Label justifications:

  • P1: Failed update repair can leave a managed Gateway stopped and users stuck in recovery.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured packaged Linux transcript exercises the repair parent, real Gateway processes, and a real config writer through the managed-service fixture: deadline cancellation rejects the late write and restores verified service before exit 1. Production bytes match the qualified revision; inspected before/after screenshots cover the visible acknowledgement change.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured packaged Linux transcript exercises the repair parent, real Gateway processes, and a real config writer through the managed-service fixture: deadline cancellation rejects the late write and restores verified service before exit 1. Production bytes match the qualified revision; inspected before/after screenshots cover the visible acknowledgement change.

Evidence

What I checked:

  • Introduced scope and review continuity: Reviewed the pinned merge-base-to-head changes. Comparing qualified source 16da829 with HEAD under src and ui shows only strengthened test assertions; production behavior remains unchanged. The latest commit consolidates the deadline fixture into the registered survivor helper. (scripts/e2e/lib/upgrade-survivor/abandoned-update.mjs:330, 63bc9ba3ac62)
  • Restoration now survives phase failure: Finalization acquires maintenance before starting the Doctor phase deadline, releases database fences before Doctor children, and restores through the enclosing finally. Phase deadlines revoke write guards and join work before propagating failure. (src/cli/update-cli/update-command-finalize.ts:291, 63bc9ba3ac62)
  • Live authority remains required: Restoration checks the original maintenance instance, current custody, update admission, native operation lock, and service identity before restart. Focused cases cover copied, consumed, released, and concurrently revoked handles, plus a Doctor child attempting to activate its parent's service. (src/commands/doctor-maintenance.ts:168, 63bc9ba3ac62)
  • Packaged recovery and upgrade evidence: The captured PR body records published 2026.9.4-driver qualification on Linux: online ledger recovery preserved the Gateway; full repair restored it; an injected 15000 ms plugin deadline refused a real late config write, preserved config, restored health, released custody, and retained exit 1. Qualification used a systemd fixture with real Gateway processes. The backing Actions run reports cancelled after the lease was stopped, so its status is not cited as a passing test; detailed job-log retrieval was blocked by the host's blob-storage allowlist. The captured terminal observations remain the behavioral evidence. (scripts/e2e/lib/upgrade-survivor/abandoned-update.sh:76, 16da82964cc0)
  • Inspected visual proof: Both prepared GitHub attachment images were inspected. Before repair, the report shows an abandoned-update warning and recovery controls; afterward, it shows reconciliation without those controls while retaining failed historical phases. These synthetic screenshots prove the visible presentation change, not native service behavior. (ui/src/pages/config/updates.ts:116, 63bc9ba3ac62)
  • Existing persistence contract retained: The ledger already records completed reconcile:acknowledged steps while preserving the failed outcome. This PR shares the acknowledgement predicate with reports and UI, without changing the schema or introducing a new persistence format. The packaged qualification exercises legacy failed history, including empty failure reasons. (src/infra/update-run-ledger.ts:266, 63bc9ba3ac62)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: 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 (7 earlier review cycles)
  • reviewed 2026-09-17T16:58:21.344Z sha 56d6ac8 :: blocked before merge. :: [P1] Preserve Gateway recovery across fatal phase deadlines
  • reviewed 2026-09-17T17:29:53.788Z sha 237dcaf :: blocked before merge. :: [P1] Preserve Gateway recovery across fatal phase deadlines
  • reviewed 2026-09-17T19:01:51.866Z sha 71f20299b7dd4d69260da47b7e75424bc83e2295 :: blocked before merge. :: [P1] [P1] Preserve Gateway recovery across fatal phase deadlines
  • reviewed 2026-09-17T19:46:38.820Z sha 13f084e :: blocked before merge. :: [P1] [P1] Preserve Gateway recovery across fatal phase deadlines
  • reviewed 2026-09-17T20:22:19.410Z sha b9b816e :: blocked before merge. :: [P1] [P1] Preserve Gateway recovery across fatal phase deadlines
  • reviewed 2026-09-17T22:00:52.986Z sha e3bfd95 :: blocked before merge. :: none
  • reviewed 2026-09-17T22:40:33.334Z sha 91358d3 :: blocked before merge. :: none

@steipete
steipete force-pushed the upd/update-repair-doctor-self-parent branch from 237dcaf to 4682dc0 Compare September 17, 2026 18:10
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
@steipete
steipete force-pushed the upd/update-repair-doctor-self-parent branch 2 times, most recently from 13f084e to b9b816e Compare September 17, 2026 20:15
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 17, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Addressed the deadline/restoration finding from this review in e3bfd95611f1fb8bc2541fecdec0c2833cf15ba2. Fatal finalization deadlines now cancel and fence mutation work, join it within a bound, and unwind through restoration using the original live maintenance instance and revalidated native service ownership before the deferred failure exit. The executable regression fails pre-fix with the Gateway stopped; Linux qualification with the published 2026.9.4 driver and managed-service fixture now refuses the late real config write, records the plugins/15000ms warning, restores and verifies the Gateway, releases custody, and preserves exit 1. The 367 selected tests, check-changed, and both cycle checks pass; fresh committed-branch P1 review is scoped-clean (0.87). The native CI watcher reports CONFLICTING on this head, with no pull_request run attached; no CI rerun or landing was attempted.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 17, 2026
@steipete
steipete force-pushed the upd/update-repair-doctor-self-parent branch from e3bfd95 to 91358d3 Compare September 17, 2026 22:32
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 17, 2026
@steipete
steipete merged commit 48447a6 into main Sep 17, 2026
235 checks passed
@steipete
steipete deleted the upd/update-repair-doctor-self-parent branch September 17, 2026 23:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 18, 2026
Fix intermittent Canvas and dashboard sandbox failures in Linux real-Gateway tests. The shared fixture previously selected a kernel client-range Gateway port while the lazy sandbox used the adjacent, unchecked port. An outbound connection could occupy that sandbox port before its listener started.

Use the existing port-block allocator to check Gateway and sandbox listeners outside the Linux client range, then retain exact Gateway-port reservation across CLI work and restarts. Explicit caller-owned ports remain caller-owned. Production behavior and browser waits are unchanged.

Validation: exact-head CI run 35297154119 is green; recorded Linux proof covers the original collision, 78 helper tests, 20 Canvas file repetitions, and the complete 30-file/60-test real-Gateway suite. Committed-branch Codex review is scoped-clean and the landing rebase is patch-identical.

Related: #151003, #150983
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
Fixes openclaw#151081. Reported by @ThaMan666.

Recover update repair for stopped externally managed systemd Gateways by preserving the existing external policy in fresh Doctor children and resolving shared systemd templates to the authenticated account instance. Keep the deployment owner responsible for stopping and restarting its service, with lifecycle and database admission still enforced.

Acknowledge untouched package-owner refusals once the installed version satisfies the resolved target. Revalidate the latest ledger record, exclude active updates and retained recovery, and preserve the original refusal detail and finish time. Runs that reached installation or finalization still require normal repair. No configuration, CLI, dependency, or database schema changes.

Parent-owned service parking for full repair of a running managed Gateway remains with openclaw#151003. The maintainer accepted this scope separation and deferred ClawSweeper's corresponding P1 and rank-up move to that companion.

Validation: exact-head CI run 35272975075 passed with zero pending checks; the review of record is scoped-clean. Recorded focused suites passed 2,766 tests with 6 skips, along with the runtime build and changed-code checks. Native systemd proof compared published 2026.9.4 failure with successful installed-candidate stopped-service repair. Legacy refusal acknowledgement used an explicitly synthetic record and kept the service PID unchanged.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…penclaw#151003)

Complete update repair recovery after successful acknowledgement or failed finalization. Keep Gateway maintenance custody in the update parent, fence expired mutation work, and restore and verify the owned service before preserving the original failure exit. Doctor children do not activate their parent's Gateway. Clear acknowledged recovery warnings and actions in CLI and Control UI reports while retaining historical failure records.

Reuse the existing Doctor maintenance, activation deadline, and update ledger owners. Preserve recovery guidance for ordinary maintenance refusals and legacy failed-history handling without adding configuration, CLI options, database schema changes, or dependencies.

Related: openclaw#150950 openclaw#151132. Also related: openclaw#150942. Reported by @shadesurgeon.

Validation: exact-head CI run 35284407181 passed with zero pending checks; committed-branch review is scoped-clean. Existing proof includes 430 selected tests, 177 survivor tooling tests, changed-file and import-cycle checks, and the published 2026.9.4-driver Linux qualification. The injected 15000 ms plugin deadline refused a late config write, restored the Gateway, released custody, and retained exit code 1. That qualification uses a systemd fixture with real Gateway processes. Synthetic before/after screenshots show cleared recovery prompts with historical failures preserved.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…aw#151140)

Fix intermittent Canvas and dashboard sandbox failures in Linux real-Gateway tests. The shared fixture previously selected a kernel client-range Gateway port while the lazy sandbox used the adjacent, unchecked port. An outbound connection could occupy that sandbox port before its listener started.

Use the existing port-block allocator to check Gateway and sandbox listeners outside the Linux client range, then retain exact Gateway-port reservation across CLI work and restarts. Explicit caller-owned ports remain caller-owned. Production behavior and browser waits are unchanged.

Validation: exact-head CI run 35297154119 is green; recorded Linux proof covers the original collision, 78 helper tests, 20 Canvas file repetitions, and the complete 30-file/60-test real-Gateway suite. Committed-branch Codex review is scoped-clean and the landing rebase is patch-identical.

Related: openclaw#151003, openclaw#150983
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui cli CLI command changes commands Command implementations docs Improvements or additions to documentation maintainer Maintainer-authored PR P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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.

1 participant