refactor: clarify plugin process ownership and runtime topology - #1764
Merged
limityan merged 1 commit intoJul 26, 2026
Merged
Conversation
limityan
force-pushed
the
docs/plugin-process-model-adjustment
branch
from
July 26, 2026 04:13
b67d83e to
6bc0cde
Compare
limityan
force-pushed
the
docs/plugin-process-model-adjustment
branch
from
July 26, 2026 07:46
6bc0cde to
8f613f3
Compare
limityan
force-pushed
the
docs/plugin-process-model-adjustment
branch
from
July 26, 2026 07:57
8f613f3 to
f3d4192
Compare
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.
Summary
Runtime topology
bitfun execThe Local Agent Host and shared package-plugin process model remain planned architecture. The current managed
bitfun.plugin.jsonpath is still validation, lifecycle records, diagnostics, and static custom-tool preview; the existing standalone.jstool worker remains a narrow per-script implementation.Ownership and isolation
PluginRuntimeClientowns typed request/response reliability facts, not OS processes or capability state.ScriptToolRuntime/ services remains the physical process owner and reports process membership and Host startup identity.API impact
The Rust Runtime SDK preview version moves from v1 to v2 because the public preview error variant changes from
UnsupportedPluginRuntimeHostBindingtoUnsupportedPluginRuntimeClientAvailability. No compatibility alias preserves the misleading Rust-side Host term.Documentation and readability
plugin-runtime-host-design.mdwith the canonicalplugin-runtime-design.md.local-agent-host-multi-instance-design.mdfor the layered multi-instance runtime topology.Validation
cargo test -p bitfun-runtime-ports -p bitfun-plugin-runtime-client -p bitfun-opencode-adapter -p bitfun-agent-runtime -p bitfun-product-capabilitiescargo test -p bitfun-runtime-ports --test plugin_runtime_diagnostics_contractscargo check --workspacenode scripts/core-boundaries/self-test.mjsnode scripts/check-core-boundaries.mjspnpm run check:repo-hygienecargo check --workspaceretains only existing MCP deprecation and Windows CLI conditional-code warnings. No product performance threshold or measured runtime metric changes in this PR; the Local Agent Host document defines the measurements required before Host-backed delivery can be claimed.