Overview
The audit client provides a tamper-evident audit trail for agent actions. Every entry is hash-chained to the previous entry, making the log append-only and tamper-detectable.
Access the audit client via client.audit.
Log
Record an audit entry for an agent action:
Parameters
All parameters are keyword-only.
List
Query audit entries with optional filters:
ListAuditParams
ListAuditResponse
Get
Retrieve a single audit entry by its ID:
AuditEntry Type
The AuditEntry frozen dataclass has the following fields:
Hash Chain Integrity
Each audit entry contains a hash and a prev_hash field. The hash is computed over the entry’s contents, and prev_hash references the previous entry’s hash. This creates a tamper-evident chain: modifying or deleting any entry breaks the chain for all subsequent entries.
For automated chain integrity verification, use the compliance evidence pack.Last modified on July 14, 2026