Open Agent Profile for Rust
Native Rust support for Open Agent Profile 1.0, at parity with the Python, TypeScript, and Go support libraries:
- YAML 1.2, JSON, and Markdown parsing with duplicate-key rejection;
- embedded profile and delta schemas plus security validation;
- RFC 8785 profile and spec digests;
- profile composition with cycle, depth, revision, and digest pinning;
- permission narrowing and tool intersection;
- normative prompt assembly with untrusted-state labeling;
- atomic, conflict-safe state delta application and Python-compatible retention;
- atomic persistence and all three output encodings; and
- the
oap-validateandoap-applyCLIs.
The MSRV is Rust 1.85.0 and the crate uses edition 2024.
use ;
let profile = load?;
let report = validate;
assert!;
println!;
# Ok::
cargo install open-agent-profile --version 1.0.4
oap-validate --digest reviewer.agent.yaml