Policy Configuration
Policy File
Section titled “Policy File”Policy lives at .agentzero/policy.yml (TOML format):
# AgentZero Policyversion = 1default_classification = "private"model_routing = "local_only"shell_commands = "require_approval"file_write = "require_approval"network = "deny"wasm_execution = "deny"Options
Section titled “Options”default_classification
Section titled “default_classification”How data is classified by default:
public— safe for remote modelsprivate— requires redaction for remotesecret— never sent remotely
model_routing
Section titled “model_routing”local_only— no remote model calls everlocal_preferred— allow remote with redaction when local unavailable
shell_commands
Section titled “shell_commands”allow— shell commands execute without approvalrequire_approval— user must approve each commanddeny— shell commands always blocked
file_write
Section titled “file_write”allow— writes execute without approvalrequire_approval— user must approve each writedeny— writes always blocked
network
Section titled “network”allow— network requests permittedrequire_approval— user must approvedeny— all network access blocked
wasm_execution
Section titled “wasm_execution”Controls whether WASM-backed skills can execute:
allow— WASM skills execute without approvalrequire_approval— user must approve WASM executiondeny— WASM execution always blocked (default)
WASM execution is denied by default. To run WASM skills, explicitly set this to allow or require_approval. WASM support is compiled in by default (disable with --no-default-features).
az init writes wasm_execution = "require_approval" for the default profile and wasm_execution = "deny" for --private.
View Active Policy
Section titled “View Active Policy”az policy statusHow Policy is Enforced
Section titled “How Policy is Enforced”Every tool call passes through the policy engine before execution:
- Tool requests a capability (e.g.,
FileWrite) - Policy engine evaluates against rules
- Decision:
Allow,Deny,RequiresApproval, orAllowWithRedaction - Audit event emitted with decision and reason
- If denied or requires approval, tool call is blocked
No tool, skill, or model call can bypass policy evaluation.