# car-policy
Declarative policy engine for the [Common Agent Runtime](https://github.com/Parslee-ai/car).
## 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
```rust
use car_policy::PolicyEngine;
let mut engine = PolicyEngine::new();
```
Part of [CAR](https://github.com/Parslee-ai/car) -- see the main repo for full documentation.