pub struct PolicySet {
pub allow_capabilities: Vec<Capability>,
pub gate_capabilities: Vec<Capability>,
pub max_tool_runtime_secs: u64,
pub max_events_per_turn: u64,
}Expand description
A set of policy rules governing agent capabilities.
Fields§
§allow_capabilities: Vec<Capability>§gate_capabilities: Vec<Capability>§max_tool_runtime_secs: u64§max_events_per_turn: u64Implementations§
Source§impl PolicySet
impl PolicySet
Sourcepub fn anonymous() -> Self
pub fn anonymous() -> Self
Heavily restricted — anonymous public users. No side-effecting capabilities.
Shell execution (exec:cmd:*) is NOT gated (approval queue) — it is
absent from both allow_capabilities and gate_capabilities, so the
policy engine immediately denies any bash/shell tool call without
creating an approval ticket. BRO-216.
5 events/turn, 30s tool runtime.
Sourcepub fn free() -> Self
pub fn free() -> Self
Read + network + limited shell — authenticated free tier users.
Shell execution is restricted to a safe read-only whitelist; unlisted commands are denied immediately (not gated). BRO-216.
15 events/turn, 30s tool runtime.
Sourcepub fn pro() -> Self
pub fn pro() -> Self
Full access — authenticated Pro subscribers. 50 events/turn, 60s tool runtime.
Sourcepub fn enterprise() -> Self
pub fn enterprise() -> Self
Fully permissive — Enterprise tenants (custom overrides applied separately). 200 events/turn, 120s tool runtime.