pub struct AuditEntry {Show 14 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>,
}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.
Implementations§
Trait Implementations§
Source§impl Clone for AuditEntry
impl Clone for AuditEntry
Source§fn clone(&self) -> AuditEntry
fn clone(&self) -> AuditEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditEntry
impl Debug for AuditEntry
Source§impl<'de> Deserialize<'de> for AuditEntry
impl<'de> Deserialize<'de> for AuditEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuditEntry
impl RefUnwindSafe for AuditEntry
impl Send for AuditEntry
impl Sync for AuditEntry
impl Unpin for AuditEntry
impl UnsafeUnpin for AuditEntry
impl UnwindSafe for AuditEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more