omega-runtime 0.1.0

Production runtime orchestrator integrating all ExoGenesis Omega subsystems with health monitoring
Documentation

Omega Runtime

Integrated runtime environment for the ExoGenesis Omega system. Coordinates all subsystems including AgentDB, Memory, Loops, and Meta-SONA.

Overview

The Omega Runtime provides a unified orchestration layer for all Omega subsystems:

  • AgentDB: Agent lifecycle and persistence management
  • Memory System: Multi-tier memory with working, short-term, and long-term storage
  • Loop Engine: Cognitive loops (conscious, subconscious, meta, unconscious)
  • Meta-SONA: Self-organizing neural architectures and evolution

Features

  • Event System: Comprehensive event bus for system-wide notifications
  • State Management: Robust state machine with lifecycle management
  • Configuration: Flexible, validated configuration system
  • API: High-level API for all subsystem operations
  • Health Monitoring: Built-in health checks for all components

Example

use omega_runtime::{OmegaRuntime, OmegaConfig, OmegaAPI};
use std::sync::Arc;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Create runtime with default configuration
    let config = OmegaConfig::default();
    let runtime = Arc::new(OmegaRuntime::new(config).await?);

    // Start all subsystems
    runtime.start().await?;

    // Create API for high-level operations
    let api = OmegaAPI::new(runtime.clone());

    // Use the API...

    // Shutdown gracefully
    runtime.stop().await?;
    Ok(())
}