Security boundaries
Boundary 1: Policy Engine
Boundary 1: Policy Engine
Gate tool calls and agent actions with configurable rules.Actions:
allow (default), deny, request_approval, request_user_inputBoundary 2: Tool Runtime
Boundary 2: Tool Runtime
Every tool call passes through validation, policy checks, and output sanitization.Sandbox profiles are configured at the runner level, not per-tool:
Boundary 3: A2A / MCP Bridges
Boundary 3: A2A / MCP Bridges
External communication requires authentication and per-caller authorization.
Boundary 4: Agent Sandbox
Boundary 4: Agent Sandbox
Hard limits prevent runaway agents.
Default posture
AFK defaults to least privilege:Production hardening checklist
Secret isolation
AFK recommends isolating secrets at the environment level. Use separate environment scopes and the runner’sToolContext.metadata to control which credentials are available to each tool:
Threat model overview
Next steps
Failure Policy Matrix
How errors flow through the system.
Building with AI
Production playbook and anti-patterns.