sigil_protocol/lib.rs
1//! # SIGIL — Sovereign Identity-Gated Interaction Layer
2//!
3//! An open protocol for securing AI agent-to-tool interactions.
4//!
5//! SIGIL defines **traits** (interfaces) for:
6//! - **Identity** — binding users to trust levels
7//! - **Scanning** — detecting sensitive content before it enters agent context
8//! - **Vault** — encrypted storage for intercepted secrets
9//! - **Audit** — tamper-evident logging of all security events
10//! - **Policy** — permission and rate-limiting enforcement
11//!
12//! Implement these traits with your own backends (regex, HSM, LDAP, etc.)
13//! to add SIGIL-compliant security to any agent system.
14//!
15//! ## Quick Start
16//!
17//! ```rust,no_run
18//! use sigil_protocol::{SensitivityScanner, AuditLogger, IdentityProvider, SecurityPolicy};
19//! // Implement these traits with your own backends
20//! ```
21
22pub mod audit;
23pub mod identity;
24pub mod mcp_server;
25pub mod policy;
26pub mod scanner;
27pub mod vault;
28
29// Re-export core types
30pub use audit::{AuditEvent, AuditEventType, AuditLogger};
31pub use identity::{IdentityBinding, IdentityProvider, TrustLevel};
32pub use policy::{RiskLevel, SecurityPolicy};
33pub use scanner::SensitivityScanner;
34pub use vault::{VaultEntry, VaultProvider};