8 releases (breaking)
| new 0.13.0 | May 15, 2026 |
|---|---|
| 0.12.0 | May 14, 2026 |
| 0.9.0 | May 12, 2026 |
| 0.8.0 | May 11, 2026 |
| 0.1.1 | Mar 22, 2026 |
#814 in Artificial intelligence
146 downloads per month
Used in 16 crates
(13 directly)
2.5MB
47K
SLoC
Core runtime engine for Common Agent Runtime.
The runtime loop:
- Receive a proposal (batch of actions from a model)
- Build a DAG from state_dependencies
- Execute each level (concurrent if no ABORT actions, sequential otherwise)
- Validate, execute with idempotency + timeout + retry, commit
- On abort: rollback state to pre-proposal snapshot
car-engine
Core runtime engine for the Common Agent Runtime.
What it does
The engine receives action proposals from a model, builds a dependency DAG, and executes actions
concurrently where possible. It handles validation, idempotency, timeouts, retries, and state
rollback on abort. Integrates with car-policy for rule enforcement and car-eventlog for
audit logging.
Usage
use car_engine::{Runtime, ToolExecutor, CostBudget};
use car_ir::ActionProposal;
// Register tools and execute proposals
let runtime = Runtime::new(state, policy, eventlog, tools);
let result = runtime.execute(&proposal).await?;
Crate features
- DAG-based concurrent execution
- Result caching with
ResultCache - Rate limiting with
RateLimiter - Capability-based tool access control
- Checkpoint/restore for crash recovery
Part of CAR -- see the main repo for full documentation.
Dependencies
~54–80MB
~1.5M SLoC