Threat Model
Governance Approach
Implementation
1
Register the agent with capabilities
Register the code execution agent with the capability it needs:
2
3
Define Cedar authorization rules
Write rules that permit the agent to call only sandbox tools and forbid access to production infrastructure:See the Policy Example below for the Cedar rule content.
4
Simulate before deploying
Test the rules against historical events to verify they do not break existing workflows:Review the DecisionDiffs to confirm that only the intended changes occur.
5
Enable audit streaming
Stream audit events for real-time monitoring of code execution activity:Every tool call, authorization decision, and field redaction action appears in the audit stream.
Policy Example
code-exec-rules.cedar
Cedar evaluates all rules against every request. If any
forbid matches, the request is denied regardless of permit rules. The default decision when no rule matches is deny.Next steps
- Authorize Access to write and deploy Cedar
- Tools to attach sandboxes and catalogs
- Multi-Adapter Tools Agent for multiple tool adapters
- Develop to authenticate and route runtime traffic