Expand description
§omega-persistence
SQLite-backed persistence layer for ExoGenesis Omega.
This crate provides durable storage for:
- Hierarchical memory tiers
- Learned skills with usage tracking
- Evolved architectures with lineage
- Intelligence instances with state
- Causal graphs and reflexion episodes
- Vector embeddings for similarity search
§Example
use omega_persistence::{OmegaStore, StoredMemory};
use chrono::Utc;
// Create an in-memory database for testing
let store = OmegaStore::new_in_memory()?;
// Store a memory
let memory = StoredMemory {
id: "mem-001".to_string(),
content: "First memory in the system".to_string(),
tier: 1,
importance: 0.95,
embedding_blob: None,
created_at: Utc::now().timestamp(),
last_accessed: Utc::now().timestamp(),
};
store.store_memory(&memory)?;
// Retrieve it
let retrieved = store.get_memory("mem-001")?;
assert_eq!(retrieved.content, "First memory in the system");
assert_eq!(retrieved.tier, 1);Re-exports§
pub use storage::OmegaStore;pub use storage::StorageError;pub use storage::Result;pub use storage::StoredMemory;pub use storage::StoredSkill;pub use storage::StoredArchitecture;pub use storage::StoredIntelligence;pub use storage::StoredVector;pub use storage::StoredReflexionEpisode;pub use storage::StoredCausalEdge;pub use storage::DatabaseStatistics;