Expand description
Policy types and the PolicyEvaluator trait for governance decisions.
A GovernanceAction describes what an agent wants to do.
A PolicyEvaluator decides whether that action is permitted,
denied, or requires human approval, and returns a PolicyResult.
Policy rules are expressed as PolicyDocument objects containing
ordered PolicyRule entries.
Structs§
- Policy
Document - Minimal policy document stub.
- Policy
Rule - A single rule inside a
PolicyDocument.
Enums§
- Enforcement
Mode - Controls whether policy decisions are applied to agent actions or only observed.
- File
Mode - File access mode for
GovernanceAction::FileAccess. - Governance
Action - An agent action subject to governance evaluation.
- Policy
Decision - The decision recorded in a
PolicyRule. - Policy
Error - Errors produced during policy loading or evaluation.
- Policy
Result - The outcome of a
PolicyEvaluator::evaluatecall.
Traits§
- Policy
Evaluator - Pluggable policy evaluation backend.
Functions§
- is_
host_ allowed_ by_ egress_ allowlist - Decide whether a host is allowed by an outbound-egress allowlist.
Type Aliases§
- Args
Json - Pre-serialized JSON string passed at policy trait boundaries.