pub struct AuditEntry {Show 17 fields
pub timestamp: DateTime<Utc>,
pub request_id: Uuid,
pub agent_id: String,
pub delegation_chain: String,
pub task_session_id: String,
pub tool_called: String,
pub arguments: Value,
pub authorization_decision: String,
pub policy_matched: Option<String>,
pub anomaly_flags: Vec<String>,
pub failure_category: Option<String>,
pub latency_ms: u64,
pub upstream_status: Option<u16>,
pub inspection_findings: Vec<String>,
pub chain_sequence: Option<u64>,
pub chain_prev_hash: Option<String>,
pub chain_record_hash: Option<String>,
}Expand description
A structured audit log entry capturing a complete request lifecycle.
Fields§
§timestamp: DateTime<Utc>When this event occurred.
request_id: UuidUnique identifier for this request.
agent_id: StringThe agent that made the request.
delegation_chain: StringSerialized delegation chain (human → agent → sub-agent …).
task_session_id: StringThe task session this request belongs to.
tool_called: StringThe MCP tool (or HTTP path) that was called.
arguments: ValueTool arguments, with sensitive fields redacted.
The authorization decision: “allow”, “deny”, or “escalate”.
policy_matched: Option<String>Which policy rule matched (if any).
anomaly_flags: Vec<String>Anomaly flags raised by the behavior engine.
failure_category: Option<String>Failure category: “governance”, “infrastructure”, or “protocol”. Distinguishes policy denials from upstream errors in audit analysis.
latency_ms: u64End-to-end latency in milliseconds.
upstream_status: Option<u16>HTTP status code from the upstream response.
inspection_findings: Vec<String>Inspection findings from content inspection.
chain_sequence: Option<u64>Monotonic sequence number for tamper detection. A gap in sequence numbers indicates a lost or deleted entry.
chain_prev_hash: Option<String>Blake3 hash of the previous entry (hex-encoded). Forms a hash chain for integrity verification.
chain_record_hash: Option<String>Blake3 hash of this entry (hex-encoded), computed over all fields except this one.
Implementations§
Trait Implementations§
Source§impl Clone for AuditEntry
impl Clone for AuditEntry
Source§fn clone(&self) -> AuditEntry
fn clone(&self) -> AuditEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more