feat(runtime-host): add hermetic Node test observation - #66
Draft
zhiiw wants to merge 1 commit into
Draft
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 test observation on top of the hermetic command sandbox.
Primary invariant
An explicit set of accepted-world Node test files can be observed only inside one owner-controlled, enforcing sandbox profile. The caller cannot supply a package script, executable, argv, environment, cwd, network policy, or child-process permission.
Owner and atomic boundary
node:testwithisolation: none.Failure and rollback
failed > 0).Scope limits
This does not install dependencies, discover npm through PATH, consume source-checkout
node_modules, expose Bash, or grant network/external effects. Projects requiring a dependency capability remain explicitly unavailable until M5.3.Verification
This remains Draft until the three OS sandbox backends have production smoke coverage and the durable test settlement slice freezes its boundary before T1.
中文说明
摘要
在 hermetic command sandbox 之上增加第一条有界的 M5 Node 测试 observation。
主要不变量
只有 owner 控制的 enforcing sandbox 才能执行 accepted world 中显式列出的 Node 测试文件。调用者不能传 package script、可执行文件、argv、environment、cwd、网络策略或 child-process 权限。
Owner 与原子边界
node:test的isolation: none;失败与回滚
failed > 0);范围限制
本 PR 不安装依赖、不从 PATH 发现 npm、不借用 source checkout 的
node_modules、不暴露 Bash,也不授予网络/外部副作用。需要依赖 capability 的项目在 M5.3 完成前明确 unavailable。当前保持 Draft,直到三平台 OS sandbox smoke 与 durable test settlement 闭环。