Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
SAMS Blackbox
Trust-aware logging and audit trail system for OMWEI 32BSA ecosystem with Sincerity Bit tagging. Provides comprehensive logging with automatic trust-level classification and audit trail generation.
🎯 Mission
SAMS Blackbox serves as the central logging and audit trail component for the OMWEI 32BSA ecosystem, providing detailed, trust-aware logging with automatic classification based on the Sincerity Bit.
🏗️ Architecture
SAMS BLACKBOX ARCHITECTURE
┌─────────────────────────────────────────────────────┐
│ Trust-Aware Logging Engine │
│ ┌──────────────┬──────────────────┐ │
│ │ Sincerity │ Audit Trail │ │
│ │ Tagging │ Generation │ │
│ └──────────────┴──────────────────┘ │
│ │ │
│ Trust-Level Classification │
│ (Managed vs Community) │
└─────────────────────────────────────────────────────┘
⚡ Features
- Trust-Level Tagging: Automatic classification based on Sincerity Bit
- Audit Trail Generation: Complete processing history with traceability
- High-Performance Storage: Optimized for embedded systems
- Compression Support: LZ4 compression for long-term storage
- Database Integration: SQLite backend for persistent storage
🚀 Quick Start
Add this to your Cargo.toml:
[]
= "0.2.0"
= "0.1.2"
Industrial-Grade Implementation
use ;
use ;
async
🛡️ Trust-Level Logging
Sincere Logs (Managed Space)
- Tag: "Sincere/Verified"
- Metadata: PQC verification status
- Category: Audit, Security, Performance
- Priority: High (global trust)
Community Logs (Community Space)
- Tag: "Experimental/Unverified"
- Metadata: Local verification only
- Category: Info, Warning, Development
- Priority: Medium (local trust)
📊 Log Categories
Audit Trail
- Complete processing history
- Trust level changes
- Node-to-node transfers
- PQC verification results
Security Events
- Invalid PQC signatures
- Trust level violations
- Authentication attempts
- Access control events
Performance Metrics
- Processing latency
- Trust determination speed
- PQC verification time
- Resource utilization
System Events
- Component initialization
- Configuration changes
- Health checks
- Error conditions
🔧 Configuration
Basic Configuration
use ;
let config = BlackboxConfig ;
let blackbox = new.await?;
Database Integration
[]
= { = "0.2.0", = ["database"] }
let config = BlackboxConfig ;
let blackbox = new.await?;
Feature Flags
std: Standard library support (default)database: SQLite backend for persistent storagecompression: LZ4 compression for long-term storagepqc: Post-quantum cryptography logging
📈 Query Interface
Trust-Level Queries
// Query all sincere logs
let sincere_logs = blackbox.query_by_trust_level;
// Query all community logs
let community_logs = blackbox.query_by_trust_level;
Category Queries
// Query security events
let security_logs = blackbox.query_by_category;
// Query performance metrics
let performance_logs = blackbox.query_by_category;
Time Range Queries
use ;
let start = now - hours;
let end = now;
let recent_logs = blackbox.query_by_time_range;
Audit Trail Queries
// Get complete audit trail for atom
let trail = blackbox.get_audit_trail;
if let Some = trail
📊 Statistics and Reporting
Trust Statistics
let stats = blackbox.get_trust_statistics;
println!;
println!;
println!;
println!;
println!;
Audit Reports
use ;
let start = now - days;
let end = now;
let report = blackbox.generate_audit_report;
println!;
println!;
println!;
println!;
println!;
🔬 Advanced Features
Structured Logging
// Log with rich metadata
blackbox.log_atom.await?;
// The log automatically includes:
// - Trust level (Managed/Community)
// - Sincerity Bit value
// - PQC verification status
// - Processing latency
// - Node ID and chain ID
Custom Metadata
// The blackbox automatically captures:
let metadata = json!;
Performance Optimization
// High-performance logging with minimal overhead
// - Stack-only processing
// - Zero-copy serialization
// - Batch database writes
// - LZ4 compression for storage
📄 License
Licensed under MIT OR Apache-2.0 license - chosen for maximum compatibility in industrial and aerospace applications.
🎯 Strategic Context
SAMS Blackbox v0.2.0 provides the critical audit and logging infrastructure for OMWEI 32BSA deployments, ensuring complete traceability with trust-level awareness.
Use Cases:
- Autonomous Vehicle Systems: Complete audit trails for safety compliance
- Industrial IoT Operations: Trust-aware logging for regulatory compliance
- Aerospace Mission Control: Detailed telemetry logging with trust metadata
- Medical Device Systems: HIPAA-compliant audit trails with trust verification
Version: 0.2.0 - Synchronization Release
🏭 Sincerity Compliance Badge
SAMS Blackbox - Recording the journey of silicon sincerity, one trust bit at a time.
OMWEI Project - https://github.com/LelloOmwei/omwei-atom