Skip to main content

Module audit

Module audit 

Source
Expand description

Immutable, hash-chained audit entry for Agent Assembly governance events.

Each AuditEntry commits to all tamper-meaningful fields via a SHA-256 hash that includes the hash of the preceding entry, forming a tamper-evident chain.

Gated on the alloc feature because AuditEntry::payload is an alloc::string::String.

Structs§

AuditEntry
An immutable, hash-chained record of a single governance event.
AuditLog
A session-scoped, append-only sequence of AuditEntry records that enforces monotonic sequence numbers and hash-chain continuity on every append.
Lineage
Optional agent-topology fields attached to an AuditEntry.

Enums§

AuditEventType
Category of a governance event recorded in an AuditEntry.
AuditLogError
Error returned by AuditLog::push when an appended entry violates the log’s monotonicity or hash-chain invariants.

Functions§

audit_entry_for_tool_dispatch
Build an AuditEntry for a dispatch_tool call, carrying the placeholder-form args as the payload.