omega-cognitive-kernel 0.16.0

Online strategy-patch runtime: training-free RuleEffect adaptation with audit and rollback
Documentation
#[allow(unused_imports)]
use crate::prelude::*;

/// Cryptographic helpers for protected storage.
pub mod crypto;
/// Action-boundary tokens and authorization bookkeeping.
pub mod token_book;
#[cfg(feature = "std")]
/// Encrypted vault and storage-lock APIs.
pub mod vault;

pub use token_book::{ActionBoundary, AuthorizationToken, TokenBook};
#[cfg(feature = "std")]
pub use vault::{StorageLock, Vault};

/// Performs default constraints for this type.
pub fn default_constraints() -> alloc::collections::BTreeMap<String, f64> {
    let mut c = alloc::collections::BTreeMap::new();
    c.insert("max_risk".into(), 0.65);
    c.insert("max_actions_per_step".into(), 3.0);
    c
}