pub enum AuditAction {
Show 26 variants
McpToolCall {
server: String,
tool: String,
args_hash: ContentHash,
},
CapsuleToolCall {
capsule_id: String,
tool: String,
args_hash: ContentHash,
},
McpResourceRead {
server: String,
uri: String,
},
McpPromptGet {
server: String,
name: String,
},
McpElicitation {
request_id: String,
schema: String,
},
McpUrlElicitation {
url: String,
interaction_type: String,
},
McpSampling {
model: String,
prompt_tokens: usize,
},
FileRead {
path: String,
},
FileWrite {
path: String,
content_hash: ContentHash,
},
FileDelete {
path: String,
},
CapabilityCreated {
token_id: TokenId,
resource: String,
permissions: Vec<Permission>,
scope: ApprovalScope,
},
CapabilityRevoked {
token_id: TokenId,
reason: String,
},
ApprovalRequested {
action_type: String,
resource: String,
risk_level: RiskLevel,
},
ApprovalGranted {
action: String,
resource: Option<String>,
scope: ApprovalScope,
},
ApprovalDenied {
action: String,
reason: Option<String>,
},
SessionStarted {
user_id: [u8; 8],
platform: String,
},
SessionEnded {
reason: String,
duration_secs: u64,
},
ContextSummarized {
evicted_count: usize,
tokens_freed: usize,
},
LlmRequest {
model: String,
input_tokens: usize,
output_tokens: usize,
},
ServerStarted {
name: String,
transport: String,
binary_hash: Option<ContentHash>,
},
ServerStopped {
name: String,
reason: String,
},
ElicitationSent {
request_id: String,
server: String,
elicitation_type: String,
},
ElicitationReceived {
request_id: String,
action: String,
},
SecurityViolation {
violation_type: String,
details: String,
risk_level: RiskLevel,
},
SubAgentSpawned {
parent_session_id: String,
child_session_id: String,
description: String,
},
ConfigReloaded,
}Expand description
Actions that can be audited.
Variants§
McpToolCall
MCP tool was called.
Fields
args_hash: ContentHashHash of the arguments (not the args themselves for privacy).
CapsuleToolCall
Capsule tool was called.
Fields
args_hash: ContentHashHash of the arguments (not the args themselves for privacy).
McpResourceRead
MCP resource was read.
McpPromptGet
MCP prompt was retrieved.
McpElicitation
MCP elicitation (server requested user input).
McpUrlElicitation
MCP URL elicitation (OAuth, payments).
Fields
McpSampling
MCP sampling (server-initiated LLM call).
FileRead
File was read.
FileWrite
File was written.
FileDelete
File was deleted.
CapabilityCreated
Capability token was created.
CapabilityRevoked
Capability token was revoked.
ApprovalRequested
Approval was requested from the user.
Fields
ApprovalGranted
User granted approval.
Fields
scope: ApprovalScopeScope of approval.
ApprovalDenied
User denied approval.
SessionStarted
Session started.
SessionEnded
Session ended.
ContextSummarized
Context was summarized (messages evicted).
Fields
LlmRequest
LLM request was made.
Fields
ServerStarted
Server was started.
Fields
binary_hash: Option<ContentHash>Binary hash (if verified).
ServerStopped
Server was stopped.
ElicitationSent
Elicitation request sent to user.
Fields
ElicitationReceived
Elicitation response received.
SecurityViolation
Security policy violation detected.
Fields
SubAgentSpawned
Sub-agent was spawned (parent→child linkage).
Fields
ConfigReloaded
Configuration was reloaded.
Implementations§
Source§impl AuditAction
impl AuditAction
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get a human-readable description of the action.
Trait Implementations§
Source§impl Clone for AuditAction
impl Clone for AuditAction
Source§fn clone(&self) -> AuditAction
fn clone(&self) -> AuditAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more