Skip to content

feat: support externally supervised gateway restarts - #109162

Merged
shakkernerd merged 8 commits into
mainfrom
feat/external-supervision
Jul 16, 2026
Merged

shakkernerd merged 8 commits into
mainfrom
feat/external-supervision

Conversation

@shakkernerd

Copy link
Copy Markdown
Contributor

Summary

  • add OPENCLAW_SUPERVISOR_MODE=external as a distinct runtime ownership contract
  • preserve verified safe, forced, delayed, Unix, Windows, and legacy restart behavior without native service mutation
  • add versioned atomic restart-handoff capability and consume commands for external supervisors
  • document the operator contract and release note

Verification

  • pnpm check:changed: all non-lint stages passed; reported lint findings were resolved without suppressions
  • AWS Beast run_c99fe194fd95: focused lint, core/core-test typechecks, and 123 affected tests passed
  • AWS Beast run_58b3d091ab15: current-main overlap typecheck and 182 update CLI tests passed
  • AWS Beast run_56262a80c1d7: final Windows persistence fix lint/typecheck and 44 lifecycle tests passed
  • repo-local autoreview: clean after accepted findings were resolved

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes size: XL maintainer Maintainer-authored PR labels Jul 16, 2026
@shakkernerd shakkernerd self-assigned this Jul 16, 2026
@shakkernerd
shakkernerd force-pushed the feat/external-supervision branch from 31f62fd to 7f8df89 Compare July 16, 2026 16:00
@shakkernerd
shakkernerd force-pushed the feat/external-supervision branch from 7f8df89 to 905dfc2 Compare July 16, 2026 16:00
@shakkernerd
shakkernerd force-pushed the feat/external-supervision branch from 905dfc2 to 85b52ce Compare July 16, 2026 16:01
@shakkernerd
shakkernerd merged commit 9b48ad5 into main Jul 16, 2026
13 checks passed
@shakkernerd
shakkernerd deleted the feat/external-supervision branch July 16, 2026 16:01
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Merged using rebase.

What changed after review:

  • Hardened restart intent validation and exact-once handoff consumption.
  • Kept owner-targeted Windows restart RPC independent of redundant shared persistence while preserving legacy fallback.
  • Removed redundant lifecycle coverage and documented external supervisor compatibility.

Verification:

  • Rebased/refreshed onto current origin/main before pushing.
  • Blacksmith Testbox tbx_01kxnpbztzm96j1hs4ddw6bp3m: focused restart and lifecycle tests passed.
  • AWS Beast run_c99fe194fd95, run_58b3d091ab15, and run_56262a80c1d7: affected lint, typechecks, and restart/update/lifecycle tests passed.
  • Auto-review: clean after accepted findings were resolved.
  • GitHub checks: no required checks configured.

Landed on main:

Thanks @shakkernerd!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant