Canonical BeamAgent audit records.
Audit entries are persisted through the durable journal and can be listed or fetched independently from the live event bus.
Use this module when you need durable evidence of policy decisions or higher-level actions taken by control, routing, routines, memory, and orchestration flows.
Summary
Types
@type audit_filter() :: %{ optional(:event_id) => binary(), optional(:session_id) => binary(), optional(:thread_id) => binary(), optional(:run_id) => binary(), optional(:category) => category(), optional(:action) => action(), optional(:decision) => atom() | binary(), optional(:profile_id) => binary(), optional(:since) => integer(), optional(:limit) => pos_integer() }
Functions
@spec get_event(binary()) :: {:ok, audit_event()} | {:error, :not_found}
@spec list_events() :: {:ok, [listed_audit_event()]}
@spec list_events(audit_filter()) :: {:ok, [listed_audit_event()]} | {:error, {:invalid_filter, :event_id | :event_type | :limit | :run_id | :session_id | :since | :tag | :thread_id} | {:unsupported_audit_filter, atom()} | {:unsupported_audit_scope_key, atom()}}