Module policy
Structs§
- Action
Tracker - Sliding-window action tracker for rate limiting.
- PerSender
Tracker - Per-sender sliding-window rate limiter. The bucket map is Arc-shared so cloned policies (SubAgents) consume from the same budgets.
- Security
Policy
Enums§
- Autonomy
Level - The agent’s autonomy level, ordered from least to most autonomous.
- Command
Risk Level - Risk score for shell command execution.
- Escalation
Violation - Specific kind of escalation violation returned by
SecurityPolicy::ensure_no_escalation_beyond. Each variant names the field that violated subset semantics so the SubAgent spawn path can produce a precise error to the caller. - Tool
Operation - Classifies whether a tool operation is read-only or side-effecting.