1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// ============================================================================
// Security Module
// ============================================================================
//!
//! Security-related functionality for the memory system.
//!
//! This module provides security features including:
//! - **Audit logging**: Comprehensive tracking of all operations
//! - **Access control**: Future support for authorization
//! - **Encryption**: Future support for data encryption
//!
//! ## Audit Logging
//!
//! The audit logging system tracks all critical operations for security
//! compliance and incident investigation. See the [`audit`] module for
//! detailed documentation.
//!
//! ## Usage
//!
//! ```no_run
//! use do_memory_core::security::audit::{AuditLogger, AuditConfig, AuditContext, AuditOutput, episode_created};
//! use uuid::Uuid;
//!
//! // Create a logger
//! let config = AuditConfig::from_env();
//! let logger = AuditLogger::new(config);
//!
//! // Log operations
//! let context = AuditContext::system();
//! let episode_id = Uuid::new_v4();
//! let entry = episode_created(&context, episode_id, "Task", "code_generation");
//! logger.log(entry);
//! ```
// Re-export commonly used audit types
pub use ;