LPsLux Proposals
AI & Attestation
LP-420

CXL Coherent State Pool

Draft

A rack-scale shared state region exposed via a CXL 3.0 Type-3 memory pool. Validators in the same rack mount the ZAP buffer pool from a pooled CXL memory device; LP-0200 ZAP buffers, LP-0150 MVCC snapshots and LP-4015 staged overlays become shared reads at sub-100ns latency. The DHT (LP-0410) replicates rack-pool snapshots globally; the in-rack pool is a fast path, not a substitute for global replication.

Category
Networking
Created
2026-06-03

Abstract

Validators co-located in the same physical rack pay a measurable penalty when they replicate state over Layer-A network transport (LP-0410 QUIC + ZAP), even on a perfect 100 Gbps fabric: kernel transit, TLS framing, NIC PCIe traversal, and userspace copy compose to a floor of ~50-100 μs end-to-end for a single state read. For validators in the same rack — a common topology for single-DC primary networks — this floor is unnecessary. CXL 3.0 (Compute Express Link, July 2022) exposes a coherent shared memory region across multiple host CPUs and GPUs over a 64 GB/s per-link interconnect with sub-100ns latency for cache-line reads. The ZAP buffer pool that LP-0200 §"The buffer is the value" describes is the natural object to share — buffers are immutable values, identity is sha256(buf), and the LP-5628 GPU verifier already reads them from a UMA-style region.

LP-0420 specifies the CXL Coherent State Pool: a rack-scale Type-3 memory device hosting a single ZAP buffer pool that every validator in the rack mounts. Validator-A writes a buffer once; validator-B, -C, -D read it at L3-cache miss latency (~80ns on Sapphire Rapids). The pool composes with LP-0150 (Block-STM MVCC snapshots become shared reads), LP-0170 (cross-shard staged overlays visible to every shard validator in the rack), and LP-5628 (GPU verifier reads pool memory directly via NVLink-C2C on GB10/GB200). Global DHT replication via LP-0410 continues — the pool is a fast path for co-racked validators, not a substitute for global content addressing.

The deployment target is the single-DC deployment mode: a sovereign L1 whose validator set runs in one or two data centers, with sub-rack fast-path consensus and global QUIC for any cross-DC peer. CXL hardware is not yet on the bench cluster — DGX Spark has NVLink-C2C between Grace CPU and Blackwell GPU on one node but does not pool across multiple Sparks — so the latency numbers in §"Performance characteristics" are split between measured (the NVLink-C2C 80ns Grace↔Blackwell figure) and Estimated (the multi-host pooled-CXL 100ns figure cited from CXL 3.0 spec and Intel Sapphire Rapids product briefs). The spec stands; the bench numbers graduate when CXL 3.0 racks reach the lab.

Hardware requirements

A validator participating in the CXL Coherent State Pool needs:

ComponentRequirementReason
Host CPUIntel Sapphire Rapids (Xeon 4th gen) or AMD Genoa (EPYC 9004) or laterCXL 1.1 host root complex with CXL.cache + CXL.mem semantics
CXL switchType-3 capable (CXL 3.0 preferred)Pool topology requires Type-3 switch for memory pooling across hosts
Pooled memory deviceCXL 3.0 Type-3, ≥ 256 GiB capacityHosts the shared ZAP buffer pool
Host CXL linkCXL 3.0 x16 (64 GB/s) or x8 (32 GB/s)Bandwidth for buffer fan-out
GPU CXL bridge (optional)NVIDIA GB10 / GB200 NVLink-C2C OR AMD MI300A CXL.memDirect GPU access to pool memory without PCIe hop
OSLinux 6.6+ with CXL Type-3 driver/sys/bus/cxl/devices/decoder* enumeration; libcxlmi or DAX access

A validator without CXL falls back to the standard LP-0410 QUIC path — nothing breaks, only the in-rack fast path is unavailable. CXL is opportunistic; it does not change the protocol.

Memory topology

                  Rack-scale CXL 3.0 fabric
   ┌──────────────────────────────────────────────────┐
   │                                                  │
   │      ┌──────────────────────────────────┐        │
   │      │  Pooled CXL Type-3 device        │        │
   │      │  256 GiB shared coherent memory  │        │
   │      │  ZAP buffer pool root            │        │
   │      └──────────────────────────────────┘        │
   │       ▲          ▲          ▲          ▲         │
   │       │          │          │          │         │
   │   ┌───┴──┐    ┌──┴───┐  ┌───┴──┐  ┌────┴─┐       │
   │   │ Val-A │    │ Val-B │  │ Val-C │  │ Val-D │  │
   │   │ CPU+  │    │ CPU+  │  │ CPU+  │  │ CPU+  │  │
   │   │ GPU   │    │ GPU   │  │ GPU   │  │ GPU   │  │
   │   └───────┘    └───────┘  └───────┘  └───────┘  │
   │                                                  │
   └──────────────────────────────────────────────────┘
                          │
                          │ LP-0410 QUIC + DHT (global)
                          ▼
                  WAN peers / other racks

The pool exposes a single coherent address range. Every validator mounts it at the same virtual address (mmap(MAP_SHARED) via the Linux CXL DAX driver). Writes are coherent via CXL.cache (CXL 1.1+); no software synchronization is needed beyond standard memory ordering fences. Reads at the cache-line granularity (64 bytes typical) return in ~80-100ns from the pool device's media, ~10ns if the line is already in the reader's L3.

The ZAP buffer pool root

The pool's first 4 KiB is a fixed metadata block:

offset  size   field                description
0       8      magic                "ZAPPOOL\0"
8       4      version              0x01000000
12      4      rack_id              16-bit unique rack identifier
16      8      head_offset          offset of next free byte for new buffers
24      8      free_list_head       offset of first free buffer (LIFO)
32      8      epoch                monotonic; bumped per pool reset
40      32     root_buffer_hash     sha256 of the pool's root buffer (typically
                                    a directory of chain-state roots)
72      32     reserved             future
104     16     coordinator_lock     atomic CAS slot for write coordination
120     ...    reserved to 4096     future metadata

After 4 KiB, the pool is a free-form allocator. Each ZAP buffer is prefixed with a 64-byte header:

offset  size   field                description
0       4      buffer_len           length in bytes (incl. header)
4       4      tx_kind              LP-0210 TxKind discriminator
8       32     buffer_hash          sha256 of the buffer body
40      8      next_free            offset of next free buffer (when on free list)
48      16     reserved             future
64      ...    buffer_body          ZAP envelope bytes

Buffer identity is its sha256 per LP-0200 §"One wire, one identity, one transcript". Hash collisions are not a concern at sha256 strength. Two validators that compute the same buffer write it once; the second writer's CAS on head_offset fails harmlessly and the second writer discards its local copy.

Allocation discipline

The allocator is append-only with LIFO free list. New buffers bump head_offset via CAS. Reclaimed buffers (e.g. mempool eviction, MVCC snapshot retirement) push onto the free list via CAS on free_list_head. The allocator has no fragmentation concern because buffers are uniform-typed (ZAP envelopes are bounded by LP-0210 schemas) and the operating set is bounded by the pool size — when the pool fills, the rack participates in a coordinated reset via LP-0170-style 2PC across the rack's validators (§"Failure modes" row 4 below).

Concurrent writers

Multiple validators may write distinct buffers concurrently; the CAS on head_offset serializes the allocation point but not the body write (the writer reserves a range via CAS, then writes the body at its leisure, then issues a final atomic store to publish the buffer's buffer_len field). Readers that observe a buffer with buffer_len == 0 MUST treat it as "in flight" and re-read after a yield. This is the standard single-writer-multiple-reader (SWMR) lock -free publishing pattern, ported to CXL.cache semantics.

Composition with LP-0200 ZAP stack

LP-0200 §"What's NOT yet decomplected" lists the buffer-pool-per- validator UMA region as the current state. CXL Coherent State Pool upgrades that region from per-validator UMA to rack-pooled CXL:

ConcernLP-0200 todayLP-0420 with CXL
Where the ZAP buffer livesper-validator UMA regionrack-pooled CXL Type-3 device
Who can read itthe owning validator + its GPU via NVLink-C2Cevery validator in the rack + every validator's GPU
Replication latencyLP-0410 QUIC (~50-100 μs per hop on 100 Gbps fabric)CXL coherent read (~80-100ns per cache line)
Buffer identitysha256(buf)unchanged — sha256(buf)
Buffer immutabilityby convention (LP-0200 §"The buffer IS the value")enforced by allocator (append-only; reclamation is whole-buffer free)

The LP-0200 stack guarantee is preserved: the buffer is still the value, identity is still sha256(buf), the transcript is still TupleHash256 over typed offsets. The only change is the storage medium and the read latency. A validator that produces a buffer allocates it in the pool; a peer that needs it reads it from the pool. No marshalling, no copy, no codec.

Composition with LP-5628 GPU-native verify

LP-5628 §"GPUDirect path" describes the verifier running on Blackwell sm_120 reading ZAP buffers from a UMA-style region without crossing the PCIe boundary. CXL Coherent State Pool extends that guarantee across validators in the rack.

LP-5628 GPU integrationPath
Standalone Blackwell on one validatorGPU NVLink-C2C → host UMA buffer (LP-0200 today)
GB10 / GB200 in a CXL rackGPU NVLink-C2C → host CXL bridge → pool memory (LP-0420 with CXL)
AMD MI300A in a CXL rackGPU CXL.mem direct → pool memory (no host hop)

The MI300A row is the cleanest topology — the GPU has its own CXL.mem port and reads the pool directly. NVIDIA's GB10 / GB200 path takes one extra hop through the Grace CPU's CXL root complex, adding ~30ns to each cache-line read. Both are dramatically faster than the LP-5628 fallback path (cross-validator gossip + PCIe DMA, ~100 μs).

Composition with LP-0150 Block-STM MVCC

LP-0150 §"Phase 3 — multi-version concurrency control" maintains a versioned overlay per executed tx in the wave. Under the standard deployment, each validator runs Block-STM independently and the MVCC snapshot lives in that validator's local memory. With CXL Coherent State Pool:

Block-STM stageWithout CXLWith CXL
Wave beginsEach validator initializes its own MVCC snapshot stackOne validator initializes the snapshot stack in the pool; peers point at the same root
Per-tx execute (Phase 2)Each validator re-executes Phase 2 independentlyValidators can observe peer-computed overlay versions without re-execution (validation-only path)
Conflict re-execution (Phase 3 detect)Each validator detects its own conflictsConflict detection is rack-global; one rack validator's conflict invalidation is observable by every peer
Phase 4 commitEach validator commits to its local ZapDBThe committed overlay is pool-resident; ZapDB consumes from the pool with no copy

The architectural decision is non-trivial: under CXL Coherent State Pool, do co-racked validators share Block-STM execution, or do they each replicate it for safety? LP-0420 chooses each replicates locally, observes peer overlays for early conflict-detection. Sharing execution would be a single point of failure (one buggy validator poisons the rack's overlay); replicating preserves the security model. The peer-observable overlays accelerate conflict detection — a validator that sees a peer's read-set intersect its own write-set retires its retry immediately rather than waiting for its own re-execution.

Composition with LP-0170 cross-shard atomic

LP-0170 §"Step 2 — per-shard prepare" stages an overlay locally on each shard validator until the parent-L1 cert commits. Under CXL Coherent State Pool, the staged overlay is pool-resident; every shard validator in the rack observes the staging without round-trip:

LP-4015 stepWithout CXLWith CXL
Step 2 stage overlayEach shard validator stages locallyPool stages once; every shard validator in the rack sees it
Step 3 prepare-ack collectionCoordinator collects acks over QUICCoordinator observes the staged overlay directly in pool; no ack round-trip needed for co-racked shards
Step 4 cross-shard commitEach shard applies its overlay independentlyPool overlay graduates to ZapDB on every co-racked validator simultaneously
Step 4' cross-shard abortEach shard LP-4805 unwinds locallyPool overlay reclaimed once; the LIFO free-list reclaim is global

The cross-shard 2PC ack round-trip (LP-0170 §Latency row "Prepare-acks arrive at coordinator: ~130 ms") shrinks for co-racked shards from ~10 ms (gossip RTT) to ~10 μs (one CXL cache-line read by the coordinator to verify the overlay is staged). For an all-in-one-rack 4-shard primary network running cross-shard at PQ-strict, end-to-end cross-shard latency drops from ~260 ms to ~125 ms — bounded entirely by the LP-0310 wave commit cadence, not by 2PC coordination.

Composition with LP-0410 global DHT

The pool is rack-local. Global replication remains LP-0410's responsibility:

ScopeMechanism
Intra-rack (same CXL fabric)CXL Coherent State Pool — ~80ns read
Inter-rack (same DC)LP-0410 QUIC + LP-0430 RDMA (sibling LP)
Inter-DC (WAN)LP-0410 QUIC + DHT

Pool snapshots replicate to the DHT periodically. Each rack pool emits a snapshot every N waves: serialize the pool's current set of live buffers (skip free-list), chunk by LP-0410 §"Content types and TTL" rules, advertise to DHT. A validator joining a fresh rack pulls the latest snapshot from DHT, populates its local pool, and synchronizes forward via standard LP-0410 catch-up.

A rack that crashes does not lose data because the snapshots are already in DHT. The pool is a fast path, not a system of record. The system of record is ZapDB (LP-0200 §"Layer 1") plus the DHT.

Failure modes

FailureTriggerEffectRecovery
CXL link error on one validatorhardware faultThat validator's pool reads fail; falls back to LP-0410 QUICOperator replaces the CXL cable / module; validator catches up via LP-0410 DHT
Pool device media failureflash / RAM error on pooled CXL deviceThe pool's buffers may return corrupt data (caught by sha256(buf) != buffer_hash mismatch)Rack-coordinated pool reset (epoch bump in metadata); peers re-populate from DHT
Coherency loss (stale read)CXL.cache invalidation lost (firmware bug)A reader observes a partially-published buffer with mismatching buffer_hashReader re-reads on hash mismatch; treat as transient; if persistent, fall back to QUIC
Pool fillssustained traffic without snapshot cadenceAllocator fails on next head_offset CASCoordinated rack pool reset (LP-0170-style 2PC across the rack's validators on a PoolReset tx); peers re-populate from DHT
Pool device firmware updatescheduled maintenancePool offline during updateValidators on that rack temporarily fall back to LP-0410 QUIC; rejoin pool when device returns
Adversary writes to the poolonly possible if attacker has rack-physical access (CXL is physical-layer trusted)n/a in threat modeln/a — physical security is operator-domain; the network-layer threat model (LP-0410 §Sybil resistance) is unchanged
Cross-rack pool desynchronizationnetwork partition between rack pools and the DHTEach rack continues to produce buffers in its own pool; DHT replication catches up post-partitionStandard LP-0410 partition recovery — rack pools are eventually consistent via DHT

Performance characteristics

MetricHardwareLatencySource
Cache-line read from pool (warm L3)Sapphire Rapids host, CXL 3.0 pool device~10 nsEstimated (CPU L3 latency floor)
Cache-line read from pool (cold)Sapphire Rapids host, CXL 3.0 pool device~80-100 nsEstimated (CXL 3.0 spec §3.1.4 cite, Intel product brief)
Cache-line read from pool (cold)Genoa host, CXL 3.0 pool device~100-120 nsEstimated (AMD CXL 1.1 + product roadmap)
GPU-side read via NVLink-C2C on GB10DGX Spark single-node bench~80 nsMeasured (Grace ↔ Blackwell, single host)
GPU-side read via NVLink-C2C on GB200 + pooled CXLnot yet measured~110 nsEstimated (GB200 NVLink-C2C base + one CXL bridge hop)
GPU-side read via MI300A CXL.mem directnot yet measured~80 nsEstimated (AMD MI300A product brief — direct CXL.mem path)
Bandwidth per CXL 3.0 x16 linkspec64 GB/sCXL 3.0 Specification, July 2022
Aggregate pool bandwidth (4-host rack)spec256 GB/s4 × 64 GB/s host links
Full 1 MiB buffer readwarm pool, CXL 3.0 x16~16 μsEstimated (1 MiB / 64 GB/s + 80ns first-byte)
LP-0410 QUIC equivalent (same 1 MiB)Mellanox ConnectX-7 NDR 400 Gbps~25 μsEstimated (200 GB/s peak, kernel + TLS overhead)
LP-0410 QUIC equivalent (cross-rack, same DC)100 Gbps Ethernet~80 μsEstimated (10 GB/s effective + RTT)

Honest gap. CXL 3.0 hardware is not on the bench cluster. DGX Spark provides the NVLink-C2C 80ns Grace↔Blackwell measurement (single host), which is the closest available analog. The multi-host pooled-CXL numbers are Estimated from the CXL 3.0 specification and from Intel / AMD product briefs. The estimates graduate to Measured when a CXL 3.0 rack reaches the lab.

The win over LP-0410 QUIC at the intra-rack scale is roughly 1000× on cache-line reads, 2× on full-buffer reads. The 1000× factor dominates Block-STM MVCC conflict detection and cross-shard 2PC prepare-ack observation — the use cases LP-0420 was built for.

Security

CXL operates at the physical-layer trust boundary. A validator joining a rack pool implicitly trusts the rack's physical security — the operator confirms that no untrusted host is attached to the CXL fabric. This is the standard data-center physical security model and is unchanged by LP-0420.

Memory-poisoning attack surface

A CXL device that returns corrupt data — whether by firmware bug or adversary control — could poison every reader in the rack. LP-0420 mitigates via per-buffer sha256 hash verification at the buffer header. A reader that observes sha256(body) != buffer_hash rejects the buffer and falls back to LP-0410 QUIC. The hash check is the same check LP-0200 §"One wire, one identity, one transcript" prescribes; LP-0420 inherits it.

ECC + scrub interval

The pooled CXL device MUST run hardware ECC (CXL 3.0 spec §6.3.2 requires it for Type-3 devices). Operators SHOULD enable periodic memory scrubbing at the device level — recommended scrub interval is 24 hours, balancing scrub bandwidth (~1% of device capacity per hour at 1 GiB/s scrub rate) against soft-error half-life. Uncorrectable ECC errors raise a CXL.io interrupt; the device's Linux driver surfaces the affected page; the pool allocator marks the affected buffer range as quarantined and the rack falls back to LP-0410 QUIC for that range until snapshot replacement.

Coherency-loss replay safety

Round-digest binding (chain_id, epoch, height) protects against replay across networks. A pool that returns a stale buffer from a previous epoch (e.g. after a firmware bug skipped a coherency invalidation) cannot trigger a stale-state attack because the consumer is reading the buffer for a specific (chain_id, epoch, height) and a stale buffer fails the transcript check at LP-0200 §"Layer 4 — Transcript".

Composition with other LPs

LPRole
LP-0210The wire protocol; buffers in the pool are LP-0210 envelopes
LP-0200The umbrella; pool storage is an upgrade to LP-0200 §"Layer 1" UMA
LP-0410The contract this LP implements — defines Transport.Pick(), Transport.Register(), the TransportCapability enum (including CapCXLPool), and the priority list. This LP registers cxl-pool against that contract
LP-4805Cert tier degradation continues to apply; the pool does not change cert observability
LP-5628GPU verifier reads pool memory via NVLink-C2C / CXL.mem
LP-0430Sibling LP-0410 implementation — registers rdma-ib / rdma-rocev2 for cross-rack peers; this LP registers cxl-pool for same-rack peers
LP-0150Block-STM MVCC snapshots become pool-resident; peer-observable conflict detection
LP-0170Cross-shard staged overlays become pool-resident; coordinator observes prepare-ack via pool read
Z-Chain PQ rollupsThe rollup sequencer's batch buffers may also live in the pool (rack-co-located rollup sequencer)

LP-0410 owns the Transport.Pick() selector contract. This LP and LP-0430 register implementations against it. The three-tier transport stack for a single-DC deployment is one contract and three registered implementations:

DistanceTransportRegistered nameLatencySource LP
Intra-rackCXL Coherent State Poolcxl-pool~80 nsthis LP
Cross-rack within DCRDMA over InfiniBandrdma-ib / rdma-rocev2~3 μsLP-0430
Global / WANQUIC + DHTquic~50-100 μs LAN, ~50-100 ms WANLP-0410

Each tier composes — a validator in the rack uses the pool; the same validator uses RDMA for cross-rack peers; the same validator uses QUIC for WAN peers. The chosen transport is a function of the peer's location, not of the protocol layer above. Selector semantics (priority, registration, capability probe) are defined in LP-0410 §"Transport.Pick() contract." Consensus, mempool, and state-sync at layers above are transport-agnostic.

Cross-references

  • LP-0210 — ZAP wire protocol (the buffer format mounted in the pool)
  • LP-0200 — ZAP Stack umbrella (this LP upgrades §"Layer 1" UMA to rack-pooled CXL)
  • LP-0410 — ZAP P2P (defines the Transport.Pick() contract this LP implements; defines the CapCXLPool priority slot; pool snapshots replicate via LP-0410's Kademlia DHT)
  • LP-4805 — ZAP Pipelining and Atomic Unwind (cert observability is pool-agnostic)
  • LP-5628 — GPU-native verify (the GPU verifier reads pool memory)
  • LP-0430 — RDMA over InfiniBand (sibling LP-0410 implementation for cross-rack peers)
  • LP-0150 — Block-STM MVCC (snapshots become pool-resident)
  • LP-0170 — Cross-shard atomic (staged overlays become pool-resident)
  • CXL 3.0 Specification — Compute Express Link Consortium, July 2022, §3.1.4 latency, §6.3.2 Type-3 ECC requirement
  • NVIDIA GB10 / GB200 product brief — NVLink-C2C Grace ↔ Blackwell latency, GB10 single-host + GB200 multi-host topology

Copyright and related rights waived via CC0.