Policy control for AI agents means enforcing explicit rules when an agent attempts to act. Brane provides policy control by evaluating Python policy functions before and after capability execution. Policies receive a structured PolicyContext and return a structured Decision.Documentation Index
Fetch the complete documentation index at: https://docs.brane.membranelabs.org/llms.txt
Use this file to discover all available pages before exploring further.
Policy Control Loop
- Agent identity
- Principal identity
- Tenant
- Environment
- Capability risk
- Input arguments
- Output
- Runtime metadata
- Application-specific policy data
Before Policies
Before policies run before the action executes. Use them to prevent unsafe side effects.After Policies
After policies run after execution and can inspect output. Use them to detect oversized outputs, unexpected schemas, PII, secrets, or policy violations after the capability returns.Policy Control Categories
| Category | Example policy |
|---|---|
| Financial control | Deny refunds above a tenant limit |
| Data control | Allow only SELECT queries |
| Tenant control | Block cross-tenant actions |
| Environment control | Block high-risk capabilities in prod |
| Tool control | Deny destructive tools without approval |
| Output control | Deny responses containing secrets or PII |
