Immutable Audit Logs
Because autonomous agents operate without constant human supervision, post-incident forensics are critical. AgentVault maintains cryptographically chained audit trails that make log tampering mathematically detectable.Hash Chain Design
Every audit event references the hash of the previous event, forming a per-tenant chain:Hash Computation
Each event hash covers: previous hash, timestamp, trace context, event body, and participants. It excludes:observed_timestamp, delivery metadata, and the hash_chain block itself.
Chain Properties
Traceparent Chaining
Agent actions are linked via W3C TraceContexttraceparent headers:
- trace_id — deterministically derived from conversation/room ID
- span_id — unique per message exchange
- trace_flags — always
01(sampled) for audit events
Event Types
Chain Verification
API Verification
Programmatic Verification
Querying Audit Trails
By Conversation/Room
By Time Range
severity_min=17 filter returns only ERROR and above.
By Entity
Storage & Retention
- Primary storage: PostgreSQL with JSONB columns for flexibility and queryability
- Indexes: Optimized for chain traversal, trace lookup, time-range queries, and severity filtering
- GIN indexes on
bodyandattributesfor full-text JSONB search - Retention: Configurable per tenant (default: 90 days, enterprise: unlimited)
- No external stack required: The audit system runs entirely on PostgreSQL — no ClickHouse, Elasticsearch, or external observability infrastructure needed
OTel Export
Audit events are natively OTel-compatible. When OTel export is enabled, events are dual-written:- PostgreSQL — primary storage with hash chain integrity
- OTLP endpoint — exported to any OTel-compatible backend (Splunk, Datadog, Grafana)