lean-ctx 3.9.19

Context Runtime for AI Agents with CCP. 79 MCP tools, 10 read modes, 95+ compression patterns, cross-session memory (CCP), persistent AI knowledge with temporal facts + contradiction detection, multi-agent context sharing, LITM-aware positioning, AAAK compact format, adaptive compression with Thompson Sampling bandits. Supports 24+ AI tools. Reduces LLM token consumption by up to 99%.
//! Public rollout cohort schema and deterministic assignment reference.
//!
//! The protocol implementation hashes task IDs and returns cohort metadata;
//! it never evaluates eligibility or makes a model/provider decision.
//! Production rollout intelligence remains in `lean-ctx-enterprise` (Class D).

pub use lean_ctx_protocol::rollout::{
    RolloutAssignment, RolloutCohort, RolloutConfig, assign_rollout,
};

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn proxy_exposes_deterministic_assignment() {
        let config = RolloutConfig {
            cohorts: vec![RolloutCohort {
                name: "internal".to_owned(),
                percentage: 100,
                eligibility_override: false,
                kill_switch: false,
            }],
        };
        let first = assign_rollout("task-1", &config);
        assert_eq!(first, config.assign("task-1"));
        assert_eq!(first.cohort.as_deref(), Some("internal"));
    }
}