Skip to main content

Module audit

Module audit 

Source
Expand description

Tool audit types: metadata recorded for every tool invocation.

These types are used by super::dispatch::ToolDispatch and super::registry::ToolRegistry to record side-effect classification, timing, and exit status for each tool call.

Structs§

AuditMeta
Per-call audit record returned by super::registry::ToolRegistry::invoke_with_audit and stored in crate::session::TranscriptEntry::audit.
TouchedFiles
Observer that records files touched by structured filesystem tools during a single agent turn. Owned by AgentRuntime and reset at every turn boundary; passed by Arc<Mutex<...>> to the ToolRegistry so tool dispatch can record path arguments.

Enums§

ExitStatus
Outcome of a single tool invocation, as recorded in AuditMeta.
ToolSideEffect
Classification of a tool’s observable side-effects on state outside the agent process. Used by orphan detection and safe-replay (g154) to decide how aggressively to retry or skip an unfinished tool call.

Constants§

AUDIT_ERR_MAX_BYTES
Maximum length of the persisted error message in ExitStatus::Err. Anything longer is UTF-8 char-boundary clipped and truncated is set.

Type Aliases§

AuditKey
Key type for AuditMeta maps, scoped by (turn, tool_call_id).