//! Topology Gated Attention
//!
//! Uses topological structure as a permission signal for attention.
//!
//! ## Key Concepts
//!
//! 1. **Window-Level Coherence**: Compute one coherence score per window, reuse for all queries
//! 2. **Fast Graph Primitives**: Use k-NN lists instead of full graph construction
//! 3. **3-Mode Policy**: stable/cautious/freeze based on coherence
//! 4. **Amortized Updates**: Update coherence every T tokens, not every token
//!
//! ## Modes
//!
//! - **Stable**: Full attention, normal updates
//! - **Cautious**: Reduced attention width, increased sparsity
//! - **Freeze**: Retrieval only, no updates, no writes
pub use ;
pub use ;
pub use ;