Agent Runtime 安全执行分层架构 Tool Registry、Policy Engine、资源授权、Sandbox 后端和宿主资源之间的关系。 Agent Runtime 安全执行分层架构 Application policy decides what is allowed; OS sandbox constrains what the process can actually do. Agent / Task Agent RuntimeTask identity · context · tool routing Tool RegistryTool allowlist · schema · risk class Policy Engine (PDP)Principal · action · resource · purpose ApprovalBound to exact action Policy Enforcement & Resource Access Capability FilesystemDirectory handle · path resolutionRead / create / update / delete separated Connector GatewayDelegated identity · resource scopeBusiness APIs · data classification Execution ProfileFilesystem · network · process · limitsCompiled to backend-specific controls Isolated Execution Backends just-bashVirtual shell · in-memory FSNo host process isolation OS SandboxSeatbelt · Bubblewrap · WindowsReal process + inherited restrictions Docker RuntimeContainer · image · volumeShared host kernel by default VMGuest kernelHigher isolation cost Host resources Approved workspace · network destinations · credentials broker · audit sink