feat(runtime-host): add hermetic accepted-tree Node command kernel - #81
Draft
zhiiw wants to merge 1 commit into
Draft
feat(runtime-host): add hermetic accepted-tree Node command kernel#81zhiiw wants to merge 1 commit into
zhiiw wants to merge 1 commit into
Conversation
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
Adds the first bounded M5 foreground-command kernel without exposing general Bash or changing the current Desktop profile negotiation.
managed-coding-v3and an exactmanaged_observation_v3T1 identitynetwork: restrictedsandbox requestPrimary invariant
Only the admission owner can turn one explicit accepted-tree Node entrypoint into a durable observation. The model cannot select an executable, cwd, environment, Node flags, dependency root, package script, sandbox policy, or output budget.
Owner: managed Node command admission owner.
Atomic boundary: accepted head + entry bytes/hash + exact argv + toolchain/profile are frozen in T1; the bounded Runtime result is committed in T2 before live publication.
Failure state: pre-T1 failures refuse dispatch; post-T1 failures remain replay-safe because the process cannot mutate accepted content or external state.
Rollback: dispose the owner-issued input/scratch lease. No accepted workspace successor is produced.
Verification
中文说明
摘要
这是 M5 前台命令循环的第一个受限 kernel,不开放普通 Bash,也不改变当前 Desktop 的 profile 协商。
managed-coding-v3与精确的managed_observation_v3T1 身份;network: restrictedsandbox;主要不变量
只有 admission owner 能把 accepted tree 中的一个显式 Node 入口变成 durable observation。模型不能选择 executable、cwd、environment、Node flags、dependency root、package script、sandbox policy 或输出上限。
Owner:managed Node command admission owner。
原子边界:accepted head、entry bytes/hash、exact argv、toolchain/profile 在 T1 冻结;Runtime-owned 有界结果在 live publication 前提交 T2。
失败状态:T1 前失败拒绝 dispatch;T1 后失败仍可安全 replay,因为进程无权修改 accepted content 或外部状态。
回滚:释放 owner-issued input/scratch lease,不产生 accepted workspace successor。