SigilGuard. Audit. EventType
(SigilGuard v0.2.0)
View Source
Audit event types defined by the SIGIL protocol.
These match the AuditEventType enum from the sigil-protocol Rust crate (v0.1.5).
Use these atoms as the type field when creating audit events for protocol compliance.
Event Types
| Atom | Description |
|---|---|
:command_execution | An agent tool/command was executed |
:file_access | A file was accessed |
:config_change | Configuration was changed |
:auth_success | Authentication succeeded |
:auth_failure | Authentication failed |
:policy_violation | A security policy was violated |
:security_event | A general security event |
:sigil_interception | Sensitive content was intercepted by the scanner |
:mcp_tool_gated | An MCP tool call was gated |
:delegation_crossing | An agent-to-agent delegation boundary was crossed |
Example
event = SigilGuard.Audit.new_event(
SigilGuard.Audit.EventType.to_string(:mcp_tool_gated),
"did:web:alice",
"read_file",
"success"
)
Summary
Functions
Parse a protocol string into an event type atom.
Convert an event type atom to its protocol string representation.
Check if an atom is a valid event type.
Return all valid event types.
Types
Functions
Parse a protocol string into an event type atom.
Convert an event type atom to its protocol string representation.
Check if an atom is a valid event type.
@spec values() :: [t(), ...]
Return all valid event types.