car-policy
Declarative policy engine for the Common Agent Runtime.
What it does
Evaluates actions against registered policy rules before execution. Policies are closures that inspect the action and current state, returning a violation reason or passing. Panicking policies are caught and treated as violations. This is the enforcement layer for agent guardrails.
Usage
use PolicyEngine;
let mut engine = new;
engine.register;
let violations = engine.check;
Part of CAR -- see the main repo for full documentation.