Skip to main content

Module audit_view

Module audit_view 

Source
Expand description

Audit view — subagent activity inspector for the TUI.

Renders recent entries from the global AuditLog, filtered by default to subagent-relevant categories (Swarm, ToolExecution, Cognition). Lets the operator see what the sub-agents just did without leaving the TUI — which tool was called, by which persona, against which session, with what outcome.

State is refreshed from the async audit log on each TUI tick via refresh_audit_snapshot. Rendering itself is synchronous and reads from the cached AuditViewState::entries snapshot.

Structs§

AuditViewState
State for the audit view: the cached entries plus UI cursor.

Enums§

AuditFilter
Which slice of the audit log the view is currently showing.

Functions§

refresh_audit_snapshot
Pull fresh entries from the global audit log into state.
render_audit_view
Render the audit view: list on the left, detail on the right.