feat(coding): 完成本地安全执行区与原生沙箱 - #129
Open
ZeroMadLife wants to merge 5 commits into
Open
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.
背景
本 PR 一次收口 SEC-01 至 SEC-03。当前远端集成分支尚未包含前置提交,因此以端到端安全链提交,避免制造不可独立验证的 stacked PR。
交付内容
git reset --hard在 Policy 层 fail closed,不进入 Approval、Runtime ToolCallEvent 或 Sandbox。native_localProvider;macOS 使用 Seatbeltsandbox-exec,Linux 使用 bubblewrap;文件工具只操作 execution root,Shell 无 Host fallback。安全边界
native_local仅允许 development/test;production/staging 继续使用 Container。WorkspaceContextcontainment,Shell 子进程依赖 Seatbelt/bwrap。sandbox-exec已 deprecated,不宣称生产级绝对隔离。bwrap,只完成参数契约测试,未宣称 Linux live 通过。none | ro | rw配置 API。验证
135 passed, 1 warning1778 passed, 11 skipped, 1 warning506 passedgit diff --check:通过