feat(runtime-host): add local standalone service foundation - #2583
Merged
Merged
Conversation
M4n5ter
force-pushed
the
feat/2522-standalone-runtime-host-service
branch
from
August 9, 2026 07:45
205f1eb to
e77ae52
Compare
M4n5ter
marked this pull request as ready for review
August 9, 2026 08:32
66 tasks
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.
English
Summary
Add the local-only foundation for running Runtime Host as a standalone service without changing the existing candidate/election behavior.
ephemeralandservicelifecycle modes.maka runtime-host serve [--root <path>], backed by the same execution composition as the existing Runtime Host candidate.The new service keeps listening while idle, owns the selected storage root for its lifetime, and releases registration, endpoint, connections, composition, and root ownership during an explicit shutdown. This is Phase 1 of the standalone service work; remote WebSocket transport, authentication, policy enforcement, and operations remain tracked separately.
Refs #2522
Verification
npm --workspace @maka/runtime-host test— 780 passednpm --workspace maka-agent test— 350 passedgit diff --checkpassedRemaining work
Checklist
Does this PR entail a change in behavior?
中文
概要
为 Runtime Host 增加可独立运行的本地服务基础,同时保持现有 candidate/election 行为不变。
ephemeral与service生命周期模式。maka runtime-host serve [--root <path>],复用现有 Runtime Host candidate 的 execution composition。新服务在空闲时仍会持续监听,在生命周期内独占指定 storage root,并在显式关闭时释放 registration、endpoint、连接、composition 和 root ownership。这是独立服务工作的 Phase 1;远程 WebSocket transport、认证、策略执行和运维能力仍由后续阶段追踪。
关联 #2522
验证
npm --workspace @maka/runtime-host test— 780 项通过npm --workspace maka-agent test— 350 项通过git diff --check通过后续工作
检查清单
本 PR 是否改变行为?