Skip to main content

Module audit

Module audit 

Source
Expand description

System-wide audit trail

Every action taken by the server — API calls, tool executions, session operations, cognition decisions — is recorded in a tamper-evident append-only log. Entries are held in a bounded in-memory ring buffer and optionally flushed to a JSONL file on disk.

Structs§

AuditEntry
A single entry in the audit log.
AuditLog
Thread-safe, append-only audit log.

Enums§

AuditCategory
Categories of auditable actions.
AuditOutcome
Outcome of an audited action.

Functions§

audit_log
Get the global audit log (panics if not initialized).
init_audit_log
Initialize the global audit log.
try_audit_log
Get the global audit log if initialized.