AgentLedger Rust Runtime
This directory contains the dependency-free Rust runtime-core package for AgentLedger 1.5.4.
It runs a native local runtime loop and participates in the shared Python/Go/TypeScript/Rust conformance gate.
Current Status
Implemented:
- in-memory runtime store and local snapshot save/load
- run/session/step state model
- leased step claim, lease recovery, and cancellation fencing
AgentContextwith state patch writes- runtime-managed tool calls through
Runtime::call_tool - Tool Ledger idempotency for side-effect tools
- evidence export, replay, trace/diff/debug consumers, time-travel timeline, repro helpers
- policy denial, approval pause/resume, sandbox fail-closed behavior
- cost records, budget enforcement, and failure attribution
- Runtime Model Evidence Boundary for archived model calls, model failures, and model-proposed tool calls
- media artifact refs and stream checkpoint refs in evidence/replay
- scheduler facade, worker service semantics, failure injection, adversarial review, evidence regression
- MCP-style and dependency-free framework adapters
- official optional adapter APIs for Postgres, S3/MinIO, OTLP transport, Docker sandbox manifests, and command-style Docker execution
- CLI for
conformance,contract validate, andcontract export
Not claimed yet:
- live Postgres/S3/Docker/OTLP service-backed hardening
- async runtime integration
- production sandbox executors
- full media processing and stream transport adapters
Install
Use the published crates.io package in a Rust project:
Import the library crate as agentledger:
use ;
From this repository, use Cargo directly while developing:
Quickstart
use ;
Adapter Quickstart
use ;
let mut pg = new;
pg.apply_migrations?;
let mut s3 = new;
let = s3.put_json?;
println!;
Verify
From the repository root:
Compatibility Target
../contracts/agentledger.runtime.v1.json
../contracts/conformance/runtime_semantics.v1.json
../docs/LANGUAGE_QUICKSTART.md
../docs/LANGUAGE_PARITY_MATRIX.md