//! 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 report;
pub mod security;
pub mod serve;
pub mod store;
pub mod user_api;
