Three-Plane Architecture
GAP guarantees sub-microsecond snapshot swaps and deterministic security by strictly prohibiting machine-learning dependencies on its execution plane (ARC-002).
What you'll learn
- How Plane 1 (Execution), Plane 2 (Discovery), and Plane 3 (Control) isolate responsibilities.
- Why every request stays pinned to one immutable snapshot via
ArcSwapand pure-Rust AVLOrdMap. - Explore every component interactively using the 10-Node Architecture Inspector.
On this page
Strict Plane Separation
Notice the hard compiler boundary enforced by tools/check_layers.py: crates in the hot execution plane (gap-exec, gap-plan, gap-transport, gap-snapshot, gap-balance) fail CI immediately if any ML crate ever enters their dependency tree.
Interactive 10-Node Architecture Explorer
Select any block below to inspect its exact invariants, measured latency, and owning Rust source modules:
Wait-Free Request Pinning & Memory Control
- Zero Lock Across
.await(INV-02): Inbound requests execute one atomicArcSwap::load(~15 ns) and hold that immutableArc<Snapshot>until completion. - Owned Pure-Rust AVL
OrdMap: Replaced the unmaintainedimcrate (RUSTSEC-2026-0097ecosystem risk), eliminating 100% ofunsafeblocks in snapshot state structures and delivering0RUSTSEC advisories. - Automatic 60s RollbackWatcher (INV-16): Publication swaps pre-warm top-100 plans, drop old snapshots on a background thread, and revert automatically if error rates spike across 200+ samples.