Skip to main content

Layer 2: Mahi-Mahi (Profile C-AS Default, stride = 5) & Steelhead (Profile B Refinement-Gated) PQ Meta-DAG

60-Second TL;DR (ZNN-SPEC-PHASE1-v4): Reconciles ZDC-ZP1-HR-001 (M01, H16, B01–B04, H10) and Round-4 Wave & Coin Audit (R4-05):

  • Normative Shipping Default (Profile C-AS — Non-Overlapping stride = 5 Mahi-Mahi, R4-05 fix): Fixes v2/v3's 5x coin-rate mismatch (period = 1 overlapping waves actually trigger 5 coin reveals/s at 5 Hz = 15.63 Mbps TX and drain a 256-wave bank in 51.2 s!) by locking non-overlapping stride = 5 5-round waves (round mod 5 == 4 coin reveal = 1.0 Hz at 5 Hz, matching 1.0 s Momentum v4 projection 1:1!) over M_shares = 4,096 voting + pure-SHA3-256 HashRand-PQ (M_coin = 256) at 5.32–6.37 Mbps total DAG+Coin TX!
  • Formal Refinement Gate on Profile B (Steelhead, H10 fix): Steelhead (k_0 = 4 optimistic fast path) activates if and only if mechanized refinement gate ZP-Q11 proves LEDGER/CONTROL safety and liveness over compact ancestry + quantized 4,096 shares; otherwise Profile C-AS ships directly with zero loss of 1.0 s Momentum v4 cadence or mandatory asynchronous liveness!
  • Equivocation-Only MAP_REPLY (34 B/entry, H16 fix): Eliminates 3.4 KiB full-parent-list recovery amplification under order_mode == 1.

1. Refinement-Gated Dual-Profile Engine Seam & stride = 5 Wave Law (H10 + R4-05 Fix)​

  1. Mandatory Shipping Baseline (Profile C-AS — Non-Overlapping stride = 5 Asynchronous Mahi-Mahi [R6], R4-05 Fix):
    • v2/v3 described period = 1 overlapping waves (1 anchor per round) while budgeting 1 coin reveal per 5 rounds (2.36 Mbps). Because every wave w requires its own r_4(w) coin reveal, period = 1 actually emits a coin reveal every single round (5 Hz coin rate at 5 Hz rounds -> 5x coin bandwidth and 51.2 s bank drain), which is completely unnecessary when public Momentum v4 blocks coalesce on a 1.0 s cadence!
    • ZNN-SPEC-PHASE1-v4 Normative Rule: Profile C-AS executes sequential non-overlapping 5-round asynchronous waves (stride = 5): wave w spans rounds [5w, 5w+1, 5w+2, 5w+3, 5w+4] (Propose -> Vote -> Boost -> Ack -> HashRand-PQ Coin Reveal at r = 5w + 4).
    • At the 5 Hz (200 ms) round pace, 1 complete 5-round wave finishes every 1.0 s (1.0 Hz)—aligning 1:1 with 1.0 s Momentum v4 projection, guaranteeing 256.0 s (4.27 min) lifetime per 256-wave HashRand-PQ bank, requiring zero CONTROL/LEDGER mode-switching state machine, terminating with probability 1 in O(1) expected waves under arbitrary asynchrony, and consuming only 5.32–6.37 Mbps framed DAG+Coin TX at N = 100, 5 Hz!
  2. Refinement-Gated Fast-Path Option (Profile B — Steelhead [R31], Gate ZP-Q11):
    • Runs k_0 = 4 (3 optimistic coin-free 3-round fast waves per 1 5-round Mahi-Mahi wave -> 1 coin reveal per 14–20 rounds) with CONTROL(scan_id) step-down to non-overlapping stride = 5 Mahi-Mahi under asynchrony.
    • Hard Activation Rule (H10): Profile B remains disabled (semantic_version = 8 Profile C-AS active) unless TLA+ / Apalache + Lean 4 refinement artifact ZP-Q11 discharges safety and liveness of the exact CompactDagVertexProto + M = 4,096 + HashRand-PQ composition.

2. Lossless Compact Post-Quantum Vertex Wire Schema (R4-05, H16 Fix)​

syntax = "proto3";
package znn.dag.v2;

message PQCoinShareBundleProto {
uint32 bank_id = 1; // Pipelined 256-wave HashRand-PQ bank id (R4-05)
uint32 wave_offset = 2; // 0..255 within bank_id (populated iff round % 5 == 4)
bytes packed_gf256_shares = 3; // Salt-free, branch-free K_d * c_i * 32B shares in GF(2^256)
// Verified in O(K_d) RAM lookups against LeafHashManifest(d,b)[w][j]!
}

message CompactDagVertexProto {
// Fixed authenticated header prefix:
uint32 network_id = 1; // ChainIdentifier (1 = Alphanet)
uint64 epoch = 2;
uint64 round = 3; // 0-indexed canonical round r >= 0
uint32 authority_index = 4; // u16 canonical index in CommitteeManifest(epoch)
uint32 semantic_version = 5; // 8 = PQ Profile C-AS Mahi stride=5 (default); 7 = Profile B (ZP-Q11)
uint64 timestamp_unix_ms = 6;
bytes payload_batches_root = 7; // 32B SHA3-256 Merkle root over possessed L1 WorkerBatch digests
bytes committee_hash = 8; // 32B SHA3-256 of Epoch CommitteeManifest (M=4096, M_coin=256)

// Lossless Compact Ancestry (reconstructs exact source-ordered VertexRef[] list):
uint32 order_mode = 9; // 0 = Canonical author-index order; 1 = Exception delta
bytes strong_parent_bitmap = 10; // ceil(N / 8) bytes MSB-first (4B at N=30; 13B at N=100)
bytes ordered_parent_root = 11; // 32B: SHA3-256("IZ/parents/v2" || count || (u16 idx, 32B digest)[])
bytes reference_order_root = 12; // 32B: SHA3-256("IZ/reforder/v2" || ref_count || (kind, pos)[])
repeated bytes weak_links = 13; // Bounded <= 8 source-ordered 32B digests for rounds r' < r - 1

// Pure-SHA3-256 HashRand-PQ Coin Share (populated ONLY on wave coin reveal rounds r = 5w + 4):
PQCoinShareBundleProto pq_coin_reveal = 14;

bytes vertex_id = 15; // 32B domain-separated SHA3-256 semantic digest
bytes pq_signature_wire = 16; // [0x02] || FN-DSA-512 (667B) or [0x04] || XMSS-SHAKE_22 (2,885B)
}

Targeted Equivocation-Only MAP_REPLY & Per-Round Digest Cache (H16 Fix)​

  1. Canonical Ordering Mandate: Honest validators MUST sort r - 1 strong parents strictly in ascending authority_index order (order_mode = 0) and reference at most 1 vertex per authority_index. Any vertex setting order_mode = 1 without an explicit index-order permutation list (<= 200 B inline) is malformed and dropped!
  2. RoundDigestCache + Delta GET_MAP: Every node caches KnownRoundVertex[r][idx] upon verifying r - 1 vertices. If recomputed_parent_root != v.ordered_parent_root (meaning either a parent idx is missing locally or idx equivocated in round r - 1), the receiver sends GET_MAP(vertex_id, unknown_or_equivocated_bitmap[13B]) and receives only (u16 idx, 32B vertex_id) (34 B) for the unresolved/equivocated indices, cached globally per (epoch, round, idx) so an equivocating Byzantine validator triggers at most 34 B per peer per round (<= 0.13 Mbps worst-case for 33 simultaneous equivocators at 5 Hz, < 7% of Class 0 floor!).

Exact Direct-Mesh Bandwidth Verification (M01, R4-05, M04 Verified)​

Operating Mode (N = 100 Active Pillars, 1.15x QUIC/Yamux Framing)Round PaceNon-Coin VertexCoin Reveal Vertex (c_i = 2.56 avg, K_d = 20..34)Framed Validator Mesh TX (99 Peers)
Profile C-AS Default (FN-DSA-512, stride = 5 -> 1.0 Hz coin)5 Hz840 B2,478 – 3,625 B5.32 – 6.37 Mbps (3.83 base + 1.49–2.54 coin)
Profile C-AS High-Tempo (FN-DSA-512, stride = 5 -> 2.0 Hz coin)10 Hz840 B2,478 – 3,625 B10.63 – 12.73 Mbps (7.65 base + 2.98–5.08 coin)
Profile B Healthy (ZP-Q11 gated, k_0 = 4 -> 0.25 Hz coin)5 Hz840 B2,478 – 3,625 B4.20 – 4.46 Mbps (3.83 base + 0.37–0.64 coin)
Emergency Zero-Lattice Mode (XMSS-SHAKE_22_256 0x04, 0.4 Hz coin)2 Hz3,058 B4,696 – 5,843 B6.17 – 6.59 Mbps (5.57 base + 0.60–1.02 coin R4-05)

3. Reconciled Commit & Order-Then-Execute Rules (B04, R4-05, C01–C05)​

  1. Mahi-Mahi (Profile C-AS, stride = 5) Asynchronous Wave Commit:
    • Each non-overlapping 5-round wave w ([5w .. 5w+4]) elects Leader(w) at r = 5w + 4 via Coin_w (>= T_coin = 86 / 256 verified GF(2^256) coin shares across D_agreed(b)). If >= Q_vote = 2,731 / 4,096 voting shares at 5w + 3 (Ack) certify boost support for Leader(w)'s 5w anchor A_w, A_w commits immediately; otherwise A_w commits indirectly via the next committed wave anchor A_{w'} (w' > w) having a strong/boost path to A_w.
  2. Repaired Optimistic Rules (When Profile B Passes ZP-Q11):
    • Direct Commit requires >= 2,731 / 4,096 shares at r + 2; DirectSkip requires >= 2,731 / 4,096 explicit negative certificates at r + 1 (C02); indirect anchor search starts at r' >= r + 3 (C01).
  3. Order-Then-Execute (F1): Canonical L1 state mutates strictly after DAG ordering; 1-RTT (10–50 ms) off-chain finality runs over Regime 4 Unbounded Edge d_channels.