docs: explain sandbox isolation lifecycle evidence - #21
Merged
XiaoCow666 merged 1 commit intoSep 7, 2026
Merged
Conversation
XiaoCow666
reviewed
Sep 7, 2026
XiaoCow666
left a comment
Owner
There was a problem hiding this comment.
P3 — docs/sandbox-isolation-lifecycle.md 第 77 行:将“磁盘/临时目录”列为 Job 限制,容易误导后续实现者认为 Job Object 能直接提供磁盘容量配额或临时目录访问隔离。Job 的进程资源限制不能替代文件系统权限和存储配额控制。
建议:将 CPU、内存、活动进程数保留为 Job 限制;把磁盘配额、临时目录访问控制和清理拆成独立验证项,注明需要额外机制。
其余内容明确区分了内存模型与真实 OS 隔离,未见阻塞性问题。本次仅审阅所提供的 diff;原型代码及测试输出未提供,无法独立确认九项测试的具体断言和运行结果。
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.
摘要
本 PR 只新增 docs/sandbox-isolation-lifecycle.md,以主仓库 main 为基线,补充 PR #20 隔离生命周期原型的通俗说明、9 个现有测试的证据边界,以及真实 Windows/Linux 隔离尚未验证的事项。
目标是帮助后续审阅者区分:原型实际验证了什么、未来真实适配器应满足什么、哪些内容仍没有证据。本文不把内存模型描述成真实 OS 沙箱。
阅读范围
文档逐项解释 prepare -> enroll -> launch -> cleanup,列出 9 个测试各自的断言,并单独说明 Windows Job Object、Linux cgroup、权限、网络和资源限制未验证的内容。
验证命令与结果
在 PR #20 原型提交 cb67337 的独立工作树、Windows 工作区 Python 3.12.14 环境中执行:
这些是标准库单元级验证;没有启动生产应用、真实 C++ 编译、真实子进程或网络服务。
事实、推断与未验证
风险与未解决事项
范围与审批
请负责人复审本文档的事实/推断边界和未验证项。