exp: add sandbox isolation lifecycle prototype - #20
Open
ggboyxkw666 wants to merge 4 commits into
Open
Conversation
XiaoCow666
reviewed
Sep 7, 2026
XiaoCow666
left a comment
Owner
There was a problem hiding this comment.
已完成当前提交的静态复审。
本次改动是隔离生命周期的内存模型和 9 个标准库回归测试:模拟建立边界、挂起创建、加入校验、启动、清理,以及不安全回退时暂停。没有接入生产评测,也没有调用真实 Job Object/cgroup、权限或网络 API。
结论:它证明的是生命周期契约,不是已经完成的 OS 沙箱。未来真实隔离实现必须另开 PR,并补齐 Windows/Linux 平台验证和安全评审。当前实验范围未发现需要阻止继续评估的问题,是否合并由负责人决定。
5 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.
Summary
基于阶段三 PR #15 的威胁模型,新增不接入线上评测链路的最小隔离生命周期原型和回归验证。本 PR 只新增 experiments/sandbox_isolation/,不修改生产配置、业务入口、线上队列或密钥。
Target platform and prerequisites
Experiment scope
Reproducible validation
Commands run from the repository root:
The tests cover pre-launch enrollment, enrollment failure, normal parent exit with a surviving descendant, stdout/stderr handle retention, bounded output overflow, safe rollback, and fail-closed rollback pause.
Boundary record and evidence
Explicit non-goals and approval gate
Unverified risks
Scope checklist