omega-persistence 0.1.0

SQLite-based persistence layer for ExoGenesis Omega with schema migrations and transactions
Documentation

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;

# fn main() -> Result<(), Box<dyn std::error::Error>> {
// 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);
# Ok(())
# }