Agent Runtime Read Write Bash 独立安全边界 Read、Write 和 Bash/Script 通过不同工具接口、策略检查和后端能力访问资源;Bash 运行于 OS Sandbox。 Read、Write、Bash:三个独立的 Tool 安全边界 Separate the authority to observe, mutate, and execute. Never infer one permission from another. Agent Runtime Agent / Task Identity Policy Engine · PDP / Approval Audit · ChangeSet · Trace Three distinct Tool contracts READ list · stat · read · search No mutation · data classification Path capability · bounded output WRITE / EDIT create · patch · replace · delete Diff · version / ETag · approval Staging · atomic commit · rollback BASH / SCRIPT executeScript(script, profile) Untrusted code · exact approval No host path / no ambient credentials Enforcement backends and resource boundaries Capability Filesystem Root-scoped handles · safe path resolution Read-only view · deny secrets · bounded reads ChangeSet Service Staging area · diff · version check Atomic commit · recoverable history OS Sandbox / Execution Service Seatbelt · Bubblewrap · container / VM Process tree · network · IPC · CPU / memory / time Host resources: approved workspace · secrets broker · network destinations · audit sink Tool-level authorization decides intent; backend enforcement constrains actual effects. A written script is data until separately executed.