Files
papers/lp-200-zap-stack/sections/05-composition.tex
zeekay d43bd27971 docs(papers): ZAP stack + cert profile modes + pitch decks (LP-186..300)
Companion LaTeX papers to luxfi/LPs:
- lp-200-zap-stack: full ZAP-as-substrate paper (10-layer model, deco-
  mplected concerns, performance).
- lp-200-lux-vs-avalanche-diff: code-translation appendix.
- lp-203-gpu-native-verify, lp-205-pipelined-quasar, lp-208-dag-mempool,
  lp-209-mysticeti-ordering, lp-210-block-stm, lp-211-cross-shard-atomic,
  lp-217-cert-profile-modes, lp-218-zap-p3q-pq-rollup,
  lp-220-p3q-corona-magnetar, lp-221-stark-fri-verifier,
  lp-300-schema-registry.

Pitch / outreach decks (luxcover.sty templated):
- blackrock-nahmii-pitch, corporate-dao-stack-analysis,
  nahmii-patent-acquisition, pq-patent-family-future-infringers,
  lux-substrate-platform-pitch, w3a-foundation-membership,
  multi-validator-scale, vfs-archive-cost-study.

Edits aligning to LP-217 / LP-200:
- lp-020-quasar-consensus 02-system-model + 08-performance.
- lp-073-pulsar 11-quasar.
- lp-103-omnichain-explorer 03-chain-support.
- lp-104-graph-engine.
- lp-201-zap-universal-wire/wire-inventory.csv.
- lp-306-lx-social-dex sections/02.
- lux-adoption-roadmap, lux-chain-architecture,
  lux-consensus-engines/08-composition, lux-crypto-agility,
  lux-evm-precompile-engineering/02, lux-fhe-smart-contracts/05,
  lux-quasar-composition/04+06+10, lux-reproducible-builds.
- INDEX.md cross-links the new papers.
2026-06-10 22:35:37 -07:00

78 lines
3.6 KiB
TeX

\section{Composition with Sibling LPs}
\label{sec:composition}
The ZAP Stack is the umbrella. Every other architectural LP in the
new network is one layer of this stack or one orthogonal extension of
it. The composition table below is the canonical map.
\begin{table}[h]
\centering
\small
\begin{tabular}{@{}llp{8cm}@{}}
\toprule
\textbf{LP} & \textbf{Layer} & \textbf{Composition} \\
\midrule
LP-022 & 0 & ZAP wire frame format; the bottom layer all other LPs read \\
LP-023 & 2 & P-chain (platformvm) wire ZAP-native; \texttt{StakerKind} discriminator \\
LP-077 & 4 & Round-digest binding; the input to the consensus transcript \\
LP-079 & 9 & Q-Chain finality blocks; where cert outputs land \\
LP-181 & 9 & Magnetar threshold SLH-DSA; PQ-heavy cert leg \\
LP-182 & 9 & QuasarCert wire format; composes legs as opaque ZAP byte strings \\
LP-184 & 2 & X-chain (xvm) wire ZAP-native \\
LP-185 & 2 & EVM internal wire ZAP; RLP preserved only at RPC boundary \\
LP-186 & 2 & chains-VM family wire ZAP (twelve VMs) \\
LP-189 & 2 & platformvm state ZAP (pending numbering) \\
LP-201 & 10 & QUIC + ZAP + mDNS + DHT P2P; replaces \texttt{luxfi/p2p} \\
LP-202 & 1, 7 & Pipelining + atomic unwind primitives; MVCC overlays on ZapDB \\
LP-203 & 6 & GPU-native verify; Blackwell sm\_120 kernel for the validator layer \\
LP-204 & --- & Network of blockchains; tier-1 / tier-2 / tier-3 hierarchy \\
LP-205 & 9 & HotStuff-pipelined Quasar; 3 in-flight blocks across the Select/Build/Sign stages \\
LP-208 & 0, 9 & DAG mempool; per-validator header DAG over the ZAP wire \\
LP-209 & 9 & Mysticeti-style total-order on the LP-208 DAG \\
LP-210 & 7 & Block-STM optimistic parallel execution on ZapDB MVCC \\
LP-211 & 9 & Cross-shard atomic Polaris cert via parent-L1 QuasarCert \\
LP-217 & 9 & Cert profile modes -- operator-facing naming \\
LP-218 & 0, 2, 7 & ZAP P3Q PQ rollup; rollup tx envelopes at schema range 0xE0--0xEF \\
\bottomrule
\end{tabular}
\caption{Composition of every architectural LP onto the ten-layer
model.}
\label{tab:composition}
\end{table}
\subsection{Reading the table}
Every cell in the ``Layer'' column points to one row of
Table~\ref{tab:tenlayer}. An LP that spans multiple layers (LP-202
pipelining touches ZapDB layer~1 and the executor layer~7; LP-218
rollup touches the frame layer~0, the schema layer~2, and the
executor layer~7) is honestly multi-layer; we do not pretend
otherwise.
\subsection{What is NOT yet decomplected}
Honest accounting. The architecture is the ten-layer model; the
following are residual migrations of legacy code paths to the
already-decomplected architecture, not architectural blockers.
\begin{itemize}[leftmargin=2em,nosep]
\item Twelve \texttt{codec.Manager} imports remain in the node. The
\texttt{Tx.Sign} cascade in \texttt{platformvm} and \texttt{xvm}
still routes through \texttt{codec.Manager} for the signing step.
The wire format on either side of Sign is ZAP; the bridge is a
transitional shim.
\item The legacy \texttt{lux/codec/} module is not yet archived.
Transitively pulled via \texttt{luxfi/vm/chains/atomic}. Module
deletion is gated on the \texttt{Tx.Sign} migration above.
\item \texttt{luxfi/p2p} still imported in eleven files. LP-201
replaces it with QUIC + ZAP + mDNS + DHT. The replacement is in
flight, not landed.
\item \texttt{service/info} blocked on \texttt{luxfi/p2p} upstream
codec/jsonrpc. The info-service public API still speaks the legacy
jsonrpc envelope on top of \texttt{luxfi/p2p}'s codec. Replaced
when LP-201 lands.
\end{itemize}
None of the above mutate the architecture. The architecture is the
ten-layer model. These are residual migrations.