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 ArcSwap and pure-Rust AVL OrdMap.
  • Explore every component interactively using the 10-Node Architecture Inspector.
On this page

Strict Plane Separation

GAP Three-Plane Strict Architectural Separation Plane 2: Progressive Intent Discovery L0/L1/L2 · Visibility Bitset (INV-05) · Baseline 95.24% / Optional S1 (INV-17) Selected query Plane 1: Zero-ML Deterministic Execution (ARC-002) AuthN + Cedar Policy -> PlanCache (TenantId) -> ArcSwap Snapshot -> BatchJoin -> EgressGuard Atomic ArcSwap publish Plane 3: Zero-Trust Control & Ingestion Propose-Not-Activate · Sampled @join Gates · DriftMonitor (desc_hash) · Auto Rollback
GAP Three-Plane Strict Architectural 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 atomic ArcSwap::load (~15 ns) and hold that immutable Arc<Snapshot> until completion.
  • Owned Pure-Rust AVL OrdMap: Replaced the unmaintained im crate (RUSTSEC-2026-0097 ecosystem risk), eliminating 100% of unsafe blocks in snapshot state structures and delivering 0 RUSTSEC 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.