Repository navigation
refactor(gateway): register resident lifecycles - #121996
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
force-pushed
the
steipete/gateway-resident-registry
branch
from
August 11, 2026 10:35
0427d2f to
3f3da1e
Compare
Contributor
Author
|
@clawsweeper review |
Contributor
|
🦞👀 Command router queued. I will update this comment with the next step. |
Contributor
Author
|
Land-ready proof:
This is phase-2 PR 5 of the Gateway kernel split. The design-verified resident inventory preceded this table; next is the config-reloader inversion PR. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Phase-2 PR 5 gives every Gateway resident from the design-verified R6-R21 inventory a uniform lifecycle owner after the landed socket-free kernel factory (#121981).
Why This Change Was Made
The new resident registry records
{ name, start, stop }owners for discovery, task/skills maintenance, event subscriptions, diagnostics, event-loop health, control-UI assets, Tailscale, update checks, post-bind plugin loading, sidecars, database verification, scheduled services, config reload, post-ready maintenance, and retained-plugin cleanup. Existing call sites still start and stop them at the same points, so listener attachment, sidecar sequencing, close trace order, and the post-ready barrier do not move.Resident publications now go through named kernel setters for early-runtime handles, discovery replacement, scheduled services, post-attach handles, plugin services, config reload, lifetime/post-ready sidecars, and maintenance handles. No config, protocol, default, log ordering, or user-visible behavior changes.
This is phase-2 PR 5 of the Gateway kernel split. The design-verified resident inventory preceded the implementation; next is PR 6, the config-reloader inversion through
kernel.swapCronState(),kernel.swapHeartbeatRunner(), andkernel.reloadPlugins().User Impact
No user-visible change. Gateway resident ownership is now explicit and enumerable, preparing final kernel/transport/resident composition without altering startup or shutdown behavior.
Evidence
server-close,server-startup-post-attach,server-lifetime-sidecars, and both restart-sentinel suites: 5 files, 204 passed; existing restart-trace step assertions preserve shutdown ordernode scripts/check-changed.mjs -- <touched>: formatting, dead exports, lint, plugin boundaries, schema/runtime/import-cycle/auth guards passed locally after remote backend fallbackpnpm build: passedThe default local multi-project Gateway runner currently reproduces an unrelated current-main stale state-schema inlining failure for
cron_job_runtime_authorities; the same untouched restart-sentinel suite and the full required group pass withOPENCLAW_GATEWAY_PROJECT_SHARDS=0. This is recorded as heal-check provenance, not hidden by retries or weaker assertions.ClawSweeper review metrics: production
+562/-302(net+260) for the explicit 16-resident lifecycle table and kernel-owned live-state setter boundary; test support+2/-0. AI-assisted; implementation and evidence were reviewed directly.