lean-ctx 3.9.3

Context Runtime for AI Agents with CCP. 71 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%.
Documentation
//! Self-hosted org gateway run-mode (`gateway-server` feature).
//!
//! Bundles the proxy (remote bind, enterprise#8), the per-request usage store
//! (Postgres `usage_events`, enterprise#17/#18) and — in later waves — the
//! admin usage API (enterprise#20) into one deployable server.
//!
//! LOCAL_OPTIONAL by classification (`server_capabilities.rs`): compiled in or
//! out, never gated by account/license/plan — an org can self-host its gateway
//! with `cargo build --features gateway-server` and full functionality
//! (Local-Free Invariant; commercial enforcement lives in lean-ctx-enterprise).
//!
//! Fail-open is the design rule (enterprise#12): the store subscribes to the
//! usage stream through `proxy::usage_sink` and persists asynchronously; a slow
//! or down Postgres degrades metering, never live LLM traffic.

pub mod admin_api;
pub mod admin_status;
pub mod admin_timeseries;
pub mod admin_ui;
pub mod doctor;
pub mod evidence;
pub mod init;
pub mod keys_cli;
pub mod mcp;
pub mod report;
pub mod security;
pub mod serve;
pub mod store;
pub mod user_api;