Policy GuideFields reference

Fields reference

Reference for every policy field — its type, whether it is required, and what it controls.

FieldTypeRequiredDescription
namestringyesUnique identifier. Appears in the audit log as policy_name.
agent_rolestringyesMust match the agent_role passed to guard.protect() exactly.
allowed_sourceslistyesData sources this role may access. Empty list [] = allow all non-denied sources.
denied_sourceslistyesAlways blocked, regardless of the allowed list. Evaluated first.
max_sensitivitystringyesSensitivity ceiling: low, medium, high, or critical.
allowed_taskslistnoTask types this role may perform. Empty [] = allow all non-denied tasks.
denied_taskslistnoTask types always blocked for this role.
session_ttl_minutesintegernoSession expiry in minutes for this role. Overrides the global AUTOPIL_SESSION_TTL_MINUTES env var. Omit for no per-role TTL.
sensitivity_decaylistnoAge-based sensitivity ceiling schedule. Each entry has after_minutes and max_sensitivity. Evaluated in ascending order — highest exceeded threshold applies. Cannot loosen the static ceiling.
permitted_agent_idslistnoIf set, only agents whose agent_id matches one of these patterns may evaluate against this policy. Supports exact match and fnmatch wildcards (e.g. reporting-agent-*). Requests that omit agent_id are denied when this list is non-empty.
industrystringnoAuto-injected from directory path (e.g. financial_services).
process_groupstringnoAuto-injected from filename stem (e.g. consumer_banking).