Gate managed workspace reads behind owner-bound Runtime Host execution - #2129
Merged
Merged
Conversation
zhiiw
marked this pull request as ready for review
August 4, 2026 14:25
zhiiw
force-pushed
the
codex/managed-workspace-worker-bridge
branch
from
August 5, 2026 00:35
da723f3 to
2478565
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
This change routes managed-workspace reads through an owner-bound execution capability instead of publishing a reusable working-directory string.
Read,Glob, andGrep; mutation and unknown operations fail before worker dispatch.Invariant and ownership
Primary invariant: every managed-workspace filesystem read dispatched by Runtime Host must be authorized by a currently active scope issued by the same
ManagedWorkspaceOwner, and must execute through the existing read-only sandbox worker without exposing the managed cwd to public callers.ManagedWorkspaceOwnerowns handles, active scopes, bridge dispatch, and scope revocation. Runtime Host owns composition-level admission and drain.Platform boundary
Non-goals
Validation
npm --workspace @maka/core run buildnpm --workspace @maka/storage run buildnpm --workspace @maka/runtime run buildnpm --workspace @maka/runtime-host run build中文说明
概要
本 PR 将 managed workspace 的只读文件操作接入 owner-bound execution capability,而不是向 host 暴露可长期保存的 cwd 字符串。
ManagedWorkspaceOwner解析,并在 callback 退出后立即失效;Read、Glob、Grep;主要不变量
Runtime Host 发出的每一次 managed workspace 文件读取,都必须处于同一个
ManagedWorkspaceOwner签发的 active scope 内,并通过现有 sandbox filesystem worker 执行;公共调用方不能取得 managed cwd,也不能借这条路径执行 mutation。原子边界与回滚
admission 在 owner/root residency 内重新验证 exact Git artifact 与 immutable SQLite workspace head,然后签发纯进程内 scope。本 PR 不新增 schema 或 durable admission row。回滚时停止传入 managed Git runtime 或移除 managed profile 路由即可,不影响已经接受的 baseline facts/artifacts。
暂不包含