Cotton code
33 lines · 1.6 KB · RustRaw
//! CONNECTIONS — what Cotton keeps reading from outside (decision note//! 7767ed9c, 6 Oct 2026). A connection is a ROW: what it reaches, which//! credential in the vault, what schedule, and how rows map into which//! table. The code that reads is a bridge, built once per protocol; this//! module is the part of the MCP bridge that is pure — no network, no//! clock — so the phone, the Mac and the server judge a server, read a//! mapping and shape a row identically.//!//! - [`judge`]: whether an MCP server's URL is the service's own or on the//!   person's Mac, and the refusal or warning otherwise (nobody at Cotton//!   and no third party is ever in the path).//! - [`mapping`]: a connection's `config.mapping` — the calls a bridge//!   makes, how often, and how one tool result becomes rows of one table.//! - [`domains`]: the DOMAINS tool as data (tables `domain`, `dns_record`),//!   carried here so a Cloudflare connection can install it, and the//!   Cloudflare mapping that fills it.//! - [`refusal`]: what a connection refuses, typed, said through the//!   database's `refusal.connections.*` lines.//! - [`row`]: the `connection` row's shape as this crate reads it.//! - [`table`]: the synced table's writes (`cotton_connections`, schema 73,//!   the Connections tool, piece 2) — the row spelled once for the phone's//!   acts and the server's readers; its items are re-exported here.//! - [`words`]: a connection row in words, said once for every reader.pub mod domains;pub mod judge;pub mod mapping;pub mod refusal;pub mod row;pub mod table;pub mod words;pub use table::*;