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): ReconcilesZDC-ZP1-HR-001(M01, H16, B01–B04, H10) and Round-4 Wave & Coin Audit (R4-05):
- Normative Shipping Default (
Profile C-AS— Non-Overlappingstride = 5Mahi-Mahi,R4-05fix): Fixesv2/v3's5xcoin-rate mismatch (period = 1overlapping waves actually trigger5coin reveals/s at5 Hz=15.63 MbpsTX and drain a256-wave bank in51.2 s!) by locking non-overlappingstride = 55-round waves (round mod 5 == 4coin reveal =1.0 Hzat5 Hz, matching1.0 sMomentum v4projection1:1!) overM_shares = 4,096voting + pure-SHA3-256HashRand-PQ(M_coin = 256) at5.32–6.37 Mbpstotal DAG+Coin TX!- Formal Refinement Gate on
Profile B(Steelhead,H10fix):Steelhead(k_0 = 4optimistic fast path) activates if and only if mechanized refinement gateZP-Q11provesLEDGER/CONTROLsafety and liveness over compact ancestry + quantized4,096shares; otherwiseProfile C-ASships directly with zero loss of1.0 sMomentum v4cadence or mandatory asynchronous liveness!- Equivocation-Only
MAP_REPLY(34 B/entry,H16fix): Eliminates3.4 KiBfull-parent-list recovery amplification underorder_mode == 1.
1. Refinement-Gated Dual-Profile Engine Seam & stride = 5 Wave Law (H10 + R4-05 Fix)
- Mandatory Shipping Baseline (
Profile C-AS— Non-Overlappingstride = 5AsynchronousMahi-Mahi[R6],R4-05Fix):v2/v3describedperiod = 1overlapping waves (1anchor per round) while budgeting1coin reveal per5rounds (2.36 Mbps). Because every wavewrequires its ownr_4(w)coin reveal,period = 1actually emits a coin reveal every single round (5 Hzcoin rate at5 Hzrounds ->5xcoin bandwidth and51.2 sbank drain), which is completely unnecessary when publicMomentum v4blocks coalesce on a1.0 scadence!ZNN-SPEC-PHASE1-v4Normative Rule:Profile C-ASexecutes sequential non-overlapping 5-round asynchronous waves (stride = 5): wavewspans 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,1complete 5-round wave finishes every1.0 s(1.0 Hz)—aligning1:1with1.0 sMomentum v4projection, guaranteeing256.0 s(4.27 min) lifetime per256-waveHashRand-PQbank, requiring zeroCONTROL/LEDGERmode-switching state machine, terminating with probability1inO(1)expected waves under arbitrary asynchrony, and consuming only5.32–6.37 Mbpsframed DAG+Coin TX atN = 100, 5 Hz!
- Refinement-Gated Fast-Path Option (
Profile B—Steelhead[R31], GateZP-Q11):- Runs
k_0 = 4(3optimistic coin-free3-roundfast waves per15-roundMahi-Mahiwave ->1coin reveal per14–20rounds) withCONTROL(scan_id)step-down to non-overlappingstride = 5Mahi-Mahiunder asynchrony. - Hard Activation Rule (
H10):Profile Bremains disabled (semantic_version = 8Profile C-ASactive) unless TLA+ / Apalache + Lean 4 refinement artifactZP-Q11discharges safety and liveness of the exactCompactDagVertexProto+M = 4,096+HashRand-PQcomposition.
- Runs
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)
- Canonical Ordering Mandate: Honest validators MUST sort
r - 1strong parents strictly in ascendingauthority_indexorder (order_mode = 0) and reference at most1vertex perauthority_index. Any vertex settingorder_mode = 1without an explicit index-order permutation list (<= 200 Binline) is malformed and dropped! RoundDigestCache+ DeltaGET_MAP: Every node cachesKnownRoundVertex[r][idx]upon verifyingr - 1vertices. Ifrecomputed_parent_root != v.ordered_parent_root(meaning either a parentidxis missing locally oridxequivocated in roundr - 1), the receiver sendsGET_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 most34 Bper peer per round (<= 0.13 Mbpsworst-case for33simultaneous equivocators at5 Hz,< 7%ofClass 0floor!).
Exact Direct-Mesh Bandwidth Verification (M01, R4-05, M04 Verified)
Operating Mode (N = 100 Active Pillars, 1.15x QUIC/Yamux Framing) | Round Pace | Non-Coin Vertex | Coin 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 Hz | 840 B | 2,478 – 3,625 B | 5.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 Hz | 840 B | 2,478 – 3,625 B | 10.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 Hz | 840 B | 2,478 – 3,625 B | 4.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 Hz | 3,058 B | 4,696 – 5,843 B | 6.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)
Mahi-Mahi(Profile C-AS,stride = 5) Asynchronous Wave Commit:- Each non-overlapping 5-round wave
w([5w .. 5w+4]) electsLeader(w)atr = 5w + 4viaCoin_w(>= T_coin = 86 / 256verifiedGF(2^256)coin shares acrossD_agreed(b)). If>= Q_vote = 2,731 / 4,096voting shares at5w + 3(Ack) certify boost support forLeader(w)'s5wanchorA_w,A_wcommits immediately; otherwiseA_wcommits indirectly via the next committed wave anchorA_{w'}(w' > w) having a strong/boost path toA_w.
- Each non-overlapping 5-round wave
- Repaired Optimistic Rules (When
Profile BPassesZP-Q11):- Direct Commit requires
>= 2,731 / 4,096shares atr + 2;DirectSkiprequires>= 2,731 / 4,096explicit negative certificates atr + 1(C02); indirect anchor search starts atr' >= r + 3(C01).
- Direct Commit requires
- 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 Edged_channels.