1 unstable release
| 0.15.15-alpha.3 | Apr 16, 2026 |
|---|
#1047 in Cryptography
Used in 4 crates
125KB
2.5K
SLoC
ta-audit
Append-only event log and artifact hashing for Trusted Autonomy.
Every tool call, policy decision, approval, and apply action in the system
is recorded as an AuditEvent in a JSONL (JSON Lines) log file.
Each event includes SHA-256 hashes of its inputs and outputs for
tamper detection and replay verification.
Quick Example
use ta_audit::{AuditLog, AuditEvent, AuditAction};
let mut log = AuditLog::open("/tmp/audit.jsonl").unwrap();
let mut event = AuditEvent::new("agent-1", AuditAction::ToolCall)
.with_target("fs://workspace/src/main.rs");
log.append(&mut event).unwrap();
Dependencies
~12–26MB
~353K SLoC