pub struct AuditEntry {
pub timestamp: String,
pub tool: String,
pub command: String,
pub result: AuditResult,
pub duration_ms: u64,
pub error_category: Option<String>,
pub error_domain: Option<String>,
pub error_phase: Option<String>,
pub claim_source: Option<ClaimSource>,
pub mcp_server_id: Option<String>,
pub injection_flagged: bool,
pub embedding_anomalous: bool,
}Fields§
§timestamp: String§tool: String§command: String§result: AuditResult§duration_ms: u64§error_category: Option<String>Fine-grained error category label from the taxonomy. None for successful executions.
error_domain: Option<String>High-level error domain for recovery dispatch. None for successful executions.
error_phase: Option<String>Invocation phase in which the error occurred per arXiv:2601.16280 taxonomy.
None for successful executions.
claim_source: Option<ClaimSource>Provenance of the tool result. None for non-executor audit entries (e.g. policy checks).
mcp_server_id: Option<String>MCP server ID for tool calls routed through McpToolExecutor. None for native tools.
injection_flagged: boolTool output was flagged by regex injection detection.
embedding_anomalous: boolTool output was flagged as anomalous by the embedding guard. Raw cosine distance is NOT stored (prevents threshold reverse-engineering).
Trait Implementations§
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