Skip to content

fix: restore macOS Gateways after Doctor shutdown contention - #153167

Merged
steipete merged 9 commits into
mainfrom
upd/launchd-doctor-restore-contention
Sep 22, 2026
Merged

steipete merged 9 commits into
mainfrom
upd/launchd-doctor-restore-contention

Conversation

@steipete

@steipete steipete commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #153155

What Problem This Solves

Fixes Doctor repair stopping a healthy macOS Gateway and racing its shutdown, leaving the LaunchAgent unloaded or reporting failure after successful recovery. Thanks @sagebhardt for the timing table that identified restoration before the old process finished shutting down.

Thanks to @sasan1200 for the source review in #153173 and #153172 identifying admission loss during lifecycle drain and successful recovery from ambiguous launchd kickstart failures.

User Impact

Doctor waits for the stopped Gateway's lifecycle ownership within the existing shared service-stop budget. If a writer still owns state at the deadline, Doctor warns, restores the service, and refuses unsafe state repair. If repair admission changes before repair begins, Doctor reverses its own stop while its original native service custody remains valid.

On macOS, an ambiguous kickstart failure followed by a definite absent-job probe uses bootstrap recovery and completes normally when activation succeeds. A failure for a job that remains loaded stays visible. Failed activation attempts retain bootstrap compensation and explain the resulting loaded state and any manual recovery needed.

Why This Change Was Made

Port release does not prove lifecycle-coordinator release. The shared Doctor maintenance owner now drains ownership before rechecking repair admission with both coordinators held. It retains the original native service operation across stop, admission, and pre-repair compensation, reusing the existing restoration hook. Partial acquisitions are released; revoked native authority, changed service identity, and uncertain process cleanup remain refusals. Captured Windows recovery callbacks use the same pre-repair native assertion, and recovery handles are completed even when activation is refused. Normal post-repair finish still requires current update admission.

The launchd owner uses its existing typed presence probe to distinguish absent jobs from genuine loaded-job failures. Both start and restart share that decision. The shared 330-second stop deadline remains authoritative; no independent 20-second drain timer was added.

Systemd keeps its unit installed/enabled during stop; Scheduled Tasks retains registration and uses Doctor's existing autostart recovery. Both receive the shared ownership wait. Inconclusive restoration inspection from #153017 retains the selected restoration-admission assertion. The launchd stop handoff-authority change in #153020 is unchanged. Related: #152879, #146142.

The maintenance restoration-owner extraction is a pure move to satisfy the line-cap ratchet after the semantic merge.

Evidence

  • Rebased onto 3d4033fbe0aca10c9eec45a7c088540607181d79; candidate 84f5002de05a1949199953b660fafbf573619444. The 4,750-byte base-relative production interdiff versus 06cb554f58a is confined to src/commands/doctor-maintenance.ts: preserve main's asynchronous foreground acquisition and post-await authority check, typed agent-lease admission, budget-refresh warnings, and unsafe-stop guidance within this PR's recovery flow. Both sets of settlement regressions remain. This is a semantic rebase requiring fresh maintainer review.
  • Blacksmith Testbox tbx_01m32sky8wr5xtrswhg1czqj7y: 537 tests passed across 21 runnable Doctor-maintenance/launchd files; 32 native macOS cases in two files skipped on Linux. Test runner 144.07s; remote command including preparation 217.308s. Longest test 5.828s; largest file 33.408s summed test time. The merged settlement suite ran 26 tests in 0.121s summed test time; finish-revalidation ran 50 in 33.408s. Source tree d1a31f9f553645a11097fd65ba919c2ba4b96975 matches the final commit. Testbox workflow.
  • Fresh combined-diff Codex P1 autoreview: scoped-clean, no accepted/actionable findings. Production +518/-355; tests/support +272/-70; docs +15/-0. Native macOS and published-driver × candidate execution were not repeated in this Linux rebase lane.
  • check:changed passed all selected steps on that Testbox in 30m43s, including production types, all 25 core test-type shards, lint (zero warnings/errors), and structural guards. A provider portal-sync timeout was reported after successful command completion; wrapper exit code remained 0. No failures were retried.

Earlier evidence, before this semantic rebase:

  • Earlier rebase validation: all 544 tests across the 22 launchd*.test.ts and doctor-maintenance*.test.ts files passed with --maxWorkers=1 (1092.24s including shared preparation). Main's stop-verification and ancestry cases and this PR's activation-restoration cases are retained. Replaying the previous non-test patch onto the new base produces byte-identical production and docs files (empty interdiff).

  • Fixed two fixture defects found by that run: the native scratch-job proof omitted isServiceRepairDeferred from its standalone policy mock; the maintenance fixture hardcoded port 18789, so a built checkout could inspect an existing host listener and create WAL/SHM files in the legacy fixture before stop. The fixture now holds one free-port claim for the suite and uses it in commands and lease records. Existing assertions remain intact. Standalone proof: both native cases passed in 113.19s wall (0.91s test time), and all 50 revalidation cases passed in 115.98s wall. CI timing remains pending.

  • Earlier branch proof: 285 selected tests passed: 197 launchd, 51 Doctor maintenance/revalidation/plugin-preflight, 33 managed-service handoff tests, and 4 Windows recovery-owner tests. The final Doctor/Windows rerun passed all 54 tests. Final reruns passed all 13 settlement tests and all 14 activation-table cases after test cleanup and fixture extraction. Coordinator drain and admission-loss tests use synthetic ticks, without wall-clock sleeps.

  • Nine independently authored comparison regressions failed on the prior head 370b97ab77b: three admission cases and six ambiguous-kickstart recovery cases. No contributor branch or tests were executed, and no contributor code was copied; the source-review credit above reflects adopted behavior.

  • Earlier formatting and git diff --check pass. The prior production P1 review is preserved by the empty non-test interdiff.

  • Earlier diff versus the rebase base: production +531/-372 lines (net +159); tests and test support +274/-67 (net +207); docs +15/-0.

  • Live Doctor-through-launchd and published-driver × candidate execution were not run. Doctor's isDefaultInstallIdentity deliberately skips native management for a relocated state directory or HOME, so a worktree-contained isolated state cannot exercise that CLI flow. No operator Gateway, canonical LaunchAgent, or real state was touched. Boundary proof is used for this gap; the affected launchd fallback also exists in the published v2026.9.5 source.

Update behavior: candidate-side Doctor uses the existing repair and parent-activation contracts, with no new marker or driver requirement. Parent-owned activation remains with the installed updater; this change restores only a service Doctor itself stopped. Existing backup and rollback ownership is unchanged.

@clawsweeper

clawsweeper Bot commented Sep 19, 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 gateway Gateway runtime commands Command implementations size: M maintainer Maintainer-authored PR labels Sep 19, 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. 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. labels Sep 19, 2026
@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 21, 2026, 11:19 PM ET / September 22, 2026, 03:19 UTC (Revision 12).

ClawSweeper review

What this changes

Doctor waits for stopped Gateways to release state ownership and restores canceled repairs under retained service custody, while macOS activation recovers absent LaunchAgents after ambiguous failures.

Merge readiness

⛔ Blocked before merge - 4 items remain

This remains a useful, protected repair. The previous cleanup-uncertainty finding is resolved, and no new blocking code defect was found; native restoration and upgrade coverage still need a scoped disposition.

Priority: P1
Reviewed head: 3f2e406d7e5282060f04ad6bec948e86e85cac06
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The previous defect is repaired with focused regressions, but unverified native restoration and upgrade behavior limit overall confidence.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied maintainer identity exempts ordinary contributor proof. Separately, repository platform and upgrade policy remains unresolved: reported scratch-job cleanup and Linux tests do not demonstrate the changed Doctor-to-launchd restoration flow or a published updater reaching this candidate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied maintainer identity exempts ordinary contributor proof. Separately, repository platform and upgrade policy remains unresolved: reported scratch-job cleanup and Linux tests do not demonstrate the changed Doctor-to-launchd restoration flow or a published updater reaching this candidate.
Evidence reviewed 9 items Previous finding resolved: The activation failure handler now propagates canonical cleanup-uncertainty errors before inspection or compensation. Equivalent propagation protects restoration bootstrap and disabled-policy handling. The GitHub commit patch confirms these guards were added after the previously reviewed head.
Focused cleanup regression coverage: Ten table cases cover start and restart across initial activation, nested errors, restoration, and disabled-policy bootstrap failures; each requires the original failure and zero subsequent native commands. These are source-inspected mocked regressions, not reviewer-executed native proof.
Restoration authority and deadline: The introduced flow retains the native operation lock through admission failure and compensation, caps the inner acquisition wait by the original stop deadline, and separately requires update admission for installation rewrites. Native scope checks retain inherited authority and borrowed-resource refusal before service effects.
Findings None None.
Security None None.

How this fits together

Doctor coordinates offline repairs with the running Gateway and its operating-system service manager. Its maintenance owner stops the service, acquires exclusive state access, and restores and verifies the Gateway afterward.

flowchart TD
  A[Doctor repair request] --> B[Inspect service ownership]
  B --> C[Stop under native custody]
  C --> D[Wait for state ownership]
  D --> E{Repair admitted?}
  E -->|Yes| F[Repair state]
  E -->|No| G[Restore unchanged service]
  F --> G
  G --> H[Verify Gateway readiness]
Loading

Decision needed

Question Recommendation
Should this repair wait for native macOS restoration and published v2026.9.5-to-candidate evidence, or receive an explicit scoped coverage exception? Complete the missing coverage: Require redacted native restoration and published-driver upgrade results before landing.

Why: Repository policy requires platform and published-driver proof for this lifecycle change; the supplied evidence names those gaps but contains no acceptance covering this PR.

Before merge

  • Resolve merge risk (P1) - The changed macOS stop-to-restore flow and published-updater handoff remain unverified on this candidate; mocked recovery tests cannot establish that an installed Gateway returns to service under native shutdown contention.
  • Complete next step (P2) - Resolve the native macOS restoration and published-driver coverage gap through matching evidence or explicit maintainer acceptance for this PR.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +194, Tests +348, Docs +15. Total +557 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 5 555 361 +194
Tests 6 420 72 +348
Docs 1 15 0 +15
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 990 433 +557

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +555/-361; tests/support +420/-72 Production growth supports bounded restoration and custody checks, including extraction of the existing restoration owner.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor-maintenance-foreground.ts, migration/backfill/repair: src/commands/doctor-maintenance-restoration.ts, unknown-data-model-change: src/commands/doctor-maintenance-restoration.ts, unknown-data-model-change: src/commands/doctor-maintenance.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #153155
Summary: This PR targets the reported macOS Doctor shutdown-contention failure; nearby update and systemd reports are not interchangeable.

Members:

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

Merge-risk options

Maintainer options:

  1. Verify installed-service recovery (recommended)
    Close the native macOS and published-updater coverage gaps before relying on the revised recovery sequence.
  2. Record scoped acceptance
    A maintainer may explicitly accept the remaining availability uncertainty for this repair.

Technical review

Best possible solution:

Keep restoration in the existing maintenance and native-service owners, with verified recovery for installed Gateways and an explicit disposition of the remaining platform and upgrade coverage.

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

Yes, from source: an ambiguous kickstart failure followed by successful registration recovery still throws on current main, and the reporter supplied a concrete shutdown timing trace. This read-only review did not execute the scenario.

Is this the best way to solve the issue?

Yes at the code level: the patch extends the existing maintenance, lock, and launchd owners while preserving ordinary post-repair admission; native and upgrade validation remain incomplete.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied maintainer identity exempts ordinary contributor proof. Separately, repository platform and upgrade policy remains unresolved: reported scratch-job cleanup and Linux tests do not demonstrate the changed Doctor-to-launchd restoration flow or a published updater reaching this candidate.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: The linked report establishes a Doctor recovery failure that leaves a previously healthy Gateway offline.
  • merge-risk: 🚨 availability: The revised shutdown and activation sequence controls whether installed Gateways return to service, and native upgrade coverage remains unresolved.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; 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 supplied maintainer identity exempts ordinary contributor proof. Separately, repository platform and upgrade policy remains unresolved: reported scratch-job cleanup and Linux tests do not demonstrate the changed Doctor-to-launchd restoration flow or a published updater reaching this candidate.

Evidence

What I checked:

  • Previous finding resolved: The activation failure handler now propagates canonical cleanup-uncertainty errors before inspection or compensation. Equivalent propagation protects restoration bootstrap and disabled-policy handling. The GitHub commit patch confirms these guards were added after the previously reviewed head. (src/daemon/launchd-lifecycle.ts:221, 3f2e406d7e52)
  • Focused cleanup regression coverage: Ten table cases cover start and restart across initial activation, nested errors, restoration, and disabled-policy bootstrap failures; each requires the original failure and zero subsequent native commands. These are source-inspected mocked regressions, not reviewer-executed native proof. (src/daemon/launchd-retained-policy.test.ts:86, 3f2e406d7e52)
  • Restoration authority and deadline: The introduced flow retains the native operation lock through admission failure and compensation, caps the inner acquisition wait by the original stop deadline, and separately requires update admission for installation rewrites. Native scope checks retain inherited authority and borrowed-resource refusal before service effects. (src/commands/doctor-maintenance-restoration.ts:132, 3f2e406d7e52)
  • Still necessary on current main: Current main still throws the original ambiguous kickstart failure after successful registration recovery. Its Doctor path also lacks this branch's retained stop-to-admission compensation interval. The merged systemd inspection repair addresses a different failure and does not supersede this work. (src/daemon/launchd-lifecycle.ts:414, e078c04a72bf)
  • Latest-release behavior: The v2026.9.5 source likewise restores registration and then throws the original ambiguous kickstart failure; the requested behavior is not established as shipped. (src/daemon/launchd-lifecycle.ts:405, ec9c1a13db89)
  • Proof scope and continuity: The fully supplied body, retained under context sourceRevision 383c5aa35dcbf35f5281e38d722cbf327c92bc9d20b8486b313929090e0f1af9, reports 537 Linux tests and explicitly says Doctor-through-launchd and published-driver × candidate execution were not run. Those results precede the latest semantic changes. Live reads found no human comments or reviews accepting these gaps. Acceptance recorded for the separate managed-helper repair does not cover this change. (3f2e406d7e52)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Supply redacted macOS restoration and published-driver × candidate evidence, or record explicit scoped acceptance of those coverage gaps.

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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-20T00:17:16.178Z sha abca18a :: blocked before merge. :: none
  • reviewed 2026-09-20T18:57:43.450Z sha 5af2013 :: blocked before merge. :: none
  • reviewed 2026-09-20T19:49:11.347Z sha 5af2013 :: blocked before merge. :: none
  • reviewed 2026-09-20T20:12:26.890Z sha d2425d1 :: blocked before merge. :: [P1] Propagate cleanup uncertainty before attempting launchd recovery
  • reviewed 2026-09-20T22:45:22.572Z sha 06cb554 :: blocked before merge. :: [P1] Propagate cleanup uncertainty before attempting launchd recovery
  • reviewed 2026-09-21T21:04:45.980Z sha 84f5002 :: blocked before merge. :: [P1] Propagate cleanup uncertainty before attempting launchd recovery
  • reviewed 2026-09-21T21:56:04.994Z sha 65668d4 :: blocked before merge. :: [P1] Propagate cleanup uncertainty before attempting launchd recovery
  • reviewed 2026-09-22T00:24:50.927Z sha cd3ec7b :: blocked before merge. :: [P1] Propagate cleanup uncertainty before attempting launchd recovery

@steipete
steipete marked this pull request as ready for review September 19, 2026 22:32
@steipete
steipete force-pushed the upd/launchd-doctor-restore-contention branch from 4a2ebec to abca18a Compare September 20, 2026 00:10
@steipete
steipete force-pushed the upd/launchd-doctor-restore-contention branch from abca18a to 5af2013 Compare September 20, 2026 18:42
@steipete
steipete force-pushed the upd/launchd-doctor-restore-contention branch from 5af2013 to d2425d1 Compare September 20, 2026 19:50
@clawsweeper clawsweeper Bot added 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 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. labels Sep 20, 2026
Revalidate repair admission with both coordinators held and retain native stop custody through pre-repair compensation, including captured Windows recovery assertions and handle settlement. Probe ambiguous launchd kickstart failures so verified absent-job recovery completes while loaded-job errors retain their original detail.

Thanks to @sasan1200 for the source review in #153173 and #153172 identifying these cases. Implemented independently with deterministic boundary regressions.
Complete the standalone repair-policy mock used by the native scratch-job proof after main added the deferred-repair predicate.

Reserve a suite-owned free port for the mocked Gateway so a listener on port 18789 cannot trigger host-dependent owner-lease reads against the legacy fixture database. Retain the native job protections and database artifact assertions.

Validation: both native scratch cases and all 50 maintenance revalidation cases pass independently; the complete requested selection passes 544 tests across 22 files. Production is unchanged from the previous PR patch replayed onto main.
steipete added a commit that referenced this pull request Sep 21, 2026
…ock kill (#155278)

Reuse the compiled cron fixture and join scheduler children before store cleanup.
Preserve cross-process receipt/recovery assertions and expose exit signals.

Related: #153167
Evidence: CI run 35659161173 / job 106530444451; five contended full-shard
replays plus a 61-second completion-delay probe; check:changed and P1 review.
@steipete
steipete enabled auto-merge (squash) September 22, 2026 03:20
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 22, 2026
@steipete
steipete merged commit 18a0b30 into main Sep 22, 2026
183 checks passed
@steipete
steipete deleted the upd/launchd-doctor-restore-contention branch September 22, 2026 03:29
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
…ock kill (openclaw#155278)

Reuse the compiled cron fixture and join scheduler children before store cleanup.
Preserve cross-process receipt/recovery assertions and expose exit signals.

Related: openclaw#153167
Evidence: CI run 35659161173 / job 106530444451; five contended full-shard
replays plus a 61-second completion-delay probe; check:changed and P1 review.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
…w#153167)

* fix(doctor): restore Gateways after shutdown contention

Wait for the stopped Gateway to release lifecycle ownership within the shared stop budget before state repair or recovery. Preserve partial-acquisition cleanup and route launchd activation failures through bootstrap recovery with explicit loaded-state diagnostics and live authority checks.

Thanks @sagebhardt for the shutdown timing table. Fixes openclaw#153155.

* fix(doctor): complete recovery after admission and kickstart failures

Revalidate repair admission with both coordinators held and retain native stop custody through pre-repair compensation, including captured Windows recovery assertions and handle settlement. Probe ambiguous launchd kickstart failures so verified absent-job recovery completes while loaded-job errors retain their original detail.

Thanks to @sasan1200 for the source review in openclaw#153173 and openclaw#153172 identifying these cases. Implemented independently with deterministic boundary regressions.

* test(launchd): preserve policy through activation recovery

* refactor(doctor): extract maintenance restoration owner

* test(doctor): isolate launchd maintenance fixtures

Complete the standalone repair-policy mock used by the native scratch-job proof after main added the deferred-repair predicate.

Reserve a suite-owned free port for the mocked Gateway so a listener on port 18789 cannot trigger host-dependent owner-lease reads against the legacy fixture database. Retain the native job protections and database artifact assertions.

Validation: both native scratch cases and all 50 maintenance revalidation cases pass independently; the complete requested selection passes 544 tests across 22 files. Production is unchanged from the previous PR patch replayed onto main.

* style(doctor): order imports after maintenance rebase

* fix(doctor): preserve restoration custody and shared stop deadline

---------

Co-authored-by: Jason (Json) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

2 participants