omega-cognitive-kernel 1.0.0

Online strategy-patch runtime: training-free RuleEffect adaptation with audit and rollback
Documentation
//! Adaptive Kernel Protocol v1 contract types and pure state machine.
//!
//! This module implements the Phase 0 protocol contract defined in
//! `docs/ADAPTIVE_V1.md` and verified against
//! `docs/adaptive-v1-conformance.json`. It is `no_std` + `alloc` compatible,
//! defaults to [`AdaptiveMode::Keep`], and preserves all legacy `Kernel` and
//! `ClosedLoopSession` APIs unchanged.

/// Stable `no_std` + `alloc` signal, experience, and domain contracts.
pub mod contracts;
/// Preregistered paired `Shadow` vs `Active` controlled evaluation harness.
pub mod eval;
/// Durable `StateStore`-backed Phase 1 Keep/Shadow session.
#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
pub mod session;
/// Pure deterministic state transitions and conformance invariants.
pub mod state;
/// Protocol contract types, requests, receipts, and error definitions.
pub mod types;

pub use contracts::{Bridge, Experience, Memory, Signal, SignalHandler, Training};
pub use eval::{
    run_adaptive_v1_preregistered_eval, AdaptiveEvalScenario, AdaptiveScenarioEvalResult,
    AdaptiveSeedSetEvalReport, AdaptiveV1EvalReport, ADAPTIVE_EVAL_DISCOVERY_SEEDS,
    ADAPTIVE_EVAL_DISCOVERY_START_SEED, ADAPTIVE_EVAL_HORIZON, ADAPTIVE_EVAL_STABLE_SAFETY_FLOOR,
    ADAPTIVE_EVAL_VALIDATION_SEEDS, ADAPTIVE_EVAL_VALIDATION_START_SEED,
};
#[cfg(feature = "std")]
pub use session::{AdaptiveSessionError, DurableAdaptiveSession};
pub use state::AdaptiveStateMachine;
pub use types::{
    AdaptiveConfig, AdaptiveError, AdaptiveMode, AdaptivePersistedState, ExecutionReceipt,
    FeedbackOutcome, FeedbackReceipt, FeedbackRequest, JournalRecoveryAction, JournalRecoveryInput,
    PersistedFeedbackRecord, PersistedProposalRecord, PersistedRequestRecord, PolicySnapshot,
    ProposalDecision, ProposalRequest, ProposalResponse, ProposalState, RecoveryRecommendation,
};