Skip to main content

Crate omega_cognitive_kernel

Crate omega_cognitive_kernel 

Source

Re-exports§

pub use api::replay_trajectory_file;
pub use api::Kernel;
pub use api::KernelStatus;
pub use api::RunReport;
pub use api::TrajectoryReplayRow;
pub use api::TrajectoryReplaySummary;
pub use audit::AuditEvent;
pub use audit::AuditLog;
pub use audit::AuditRecord;
pub use audit::AuditSummary;
pub use audit::KernelEvent;
pub use config::InterventionLevel;
pub use config::InterventionMode;
pub use config::InterventionPolicy;
pub use config::KernelConfig;
pub use error::OmegaError;
pub use error::Result;
pub use orchestrator::OmegaOrchestrator;
pub use orchestrator::StepResult;
pub use persist::KernelSnapshot;
pub use persist::CURRENT_SCHEMA_VERSION;
pub use persist::DEFAULT_STATE_PATH;
pub use task::run_bandit_task;
pub use task::run_l2_benchmark;
pub use task::run_l2_benchmark_scenario;
pub use task::run_l2_benchmark_scenario_with_gate;
pub use task::BanditReport;
pub use task::L2BenchmarkAggregate;
pub use task::L2BenchmarkReport;
pub use l0::decision::ConstrainedDecisionMaker;
pub use l0::decision::DecisionMaker;
pub use l0::executor::Executor;
pub use l0::executor::SandboxedExecutor;
pub use l0::executor::LoggingExecutor;
pub use l0::executor::ToolGateExecutor;
pub use l0::observer::DirSnapshotObserver;
pub use l0::observer::FileObserver;
pub use l0::observer::HttpObserver;
pub use l0::observer::MultiModalObserver;
pub use l0::observer::Observer;
pub use l0::predictor::ModelBasedPredictor;
pub use l0::predictor::Predictor;
pub use types::*;

Modules§

api
Public product API (S2 + S3 hardening + adapter injection + config).
audit
Append-only audit log (S3 hardening).
checkpoint
Named checkpoints for rollback (S3).
config
TOML configuration for product-facing Kernel knobs.
error
l0
l1
l2
memory
orchestrator
persist
Disk persistence for kernel state (S2 product surface).
safety
task
Minimal task environment: nonstationary 2-armed bandit. External reward is written back into strategy memory so the task loop is closed.
types

Functions§

new_uuid
Generates process-local identifiers without requiring an OS random source. Host applications can replace this with an external identity source when globally unique IDs are required; the core only needs stable instance IDs.
now_utc
now_utc_string