Skip to content

Known Gaps

Amp edited this page Nov 18, 2026 · 3 revisions

Known Gaps

Places where the code on main at a9f0d61 differs from the spec, and places where the spec disagrees with itself. Under 01's rule, where a chapter disagrees with 01 §14, 01 wins and the chapter has a bug. This page reports; it does not decide.

Code against spec

Gap Spec Code
Sequencer and validator binaries are stubs 11 §1.3: vyrn-seq links the live engine, NIC, log, consensus, epoch bin/vyrn-seq/src/main.rs and bin/vyrn-validator/src/main.rs are fn main() {}; so are the vyrn-replica, vyrn-data, vyrn-md, vyrn-dropcopy and vyrn-sim binaries
Protocol version vyrn-wire PROTO_VERSION = 2 (PR #30) every deploy/profiles/*.toml says protocol = 1
Layer graph 11 §1.4: vyrn-replica → engine, consensus, epoch, Vx client; vyrn-md → replica; vyrn-chain → replica, epoch replica now depends on engine, epoch, consensus and log (PR #46) but has no Vx client; md and chain still do not depend on replica (each owns a seam trait). See Architecture
NIC backends 11 §1.3: efvi, dpdk, kernel_udp, sim only kernel_udp and sim are built; c/vyrn-nic-shim/shim.c has one function (vyns_abi_version), below the 100–300 line range of 11 §4
Engine replay 01 §11.6, 05 §10 since PR #47 replay takes each step's cut, source, kind and band from the record and routes ops by the log. Remaining: the forwarded op's route is derived from the step kind, so a Cross that STP stops before any fill replays as Improve ("a known divergence until the spec logs the route"); pooled lanes (AcctTake) and auction control steps not yet
Replica cannot run the Rust replay 07 §3 wire StepRecord, 11 §5.3 ReplayEngine vyrn-replica/src/ports.rs: Engine::replay compares fields the wire StepRecord lacks (n_tx, n_fills, fill_lanes, flags, band), and 07 fixes no interleaving of a block's packet records and steps, so no RustReplay exists. A spec gap
Engine live mode 01 §10 core map single-threaded schedule; pinned threads belong to the binary, which is a stub
Vx client 11 §5.3 vx/vyrn-vx-client/ holds only .gitkeep; vyrn-replica/src/vx.rs is one comment line
Simulator 11 §6.4: deterministic whole-cluster simulator vyrn-sim is an oracle binding plus a scenario runner; tests/seeds.toml is empty; tools/sim-swarm is an empty main
Fuzzing 11 §6.6: nine targets with stated properties the nine targets exist, each a body that ignores its input; fuzzing is not in CI
vyrn-admin 11 §1.3: config check, deploy, keys, epoch control, trace dump, release verify release verify only
Drop copy 10 §8 crates/vyrn-md/src/dropcopy.rs is one comment line
vyrn-epoch 08 §4, §5.5, §7 crate says the role state machines, the tail stream and the opening auction are follow-ups
vyrn-chain 09 §5, §7, §8, §9 crate lists as not implemented: wallet session open, K_seq/K_com and TESLA, the order LtHash, StateCommit/CommitCert, the log hash chain, slashing evidence, forced inclusion, L1 deposit attestation
CI coverage 11 §9.2 S1–S2 no macOS job, no cargo vet (supply-chain/ absent), no vendor/ (so no --offline), no vx/build.sh, Miri, TSan, fuzz, B4 or asm gate in CI; no S3–S6 lab stages
Config schema 11 §10.1 example and deploy/profiles use schema = 3 Cargo.toml sets config_schema_version = 0 because deploy/schema/ is empty
cargo release deploy/release/README.md tells you to run cargo release -p vyrn-wire minor (cargo-release) .cargo/config.toml defines a release alias that shadows the cargo-release subcommand; Cargo warns and runs cargo build --release instead
Draft release 11 §9.5 lists the binaries of a release the draft v0.1.0 was built from 4c92028, before PRs #32–#43, so its binaries are the earlier stubs; its manifest is unsigned and release-keys.toml is not in the repo
Oracle never runs in CI 11 §6.3 per-message differential testing crates/vyrn-sim/tests/oracle_scenarios.rs passes as skipped when libvyrn_vx_oracle is missing, and CI never runs vx/build.sh
Declared but unused dependencies 11 §2 allowlist vyrn-data declares commonware-p2p and tokio, vyrn-md declares vyrn-nic, vyrn-sim declares every internal crate, and vyrn-bench declares engine crates its source does not use
BBO reference form 01 §14.13 item 1, 05 vyrn-bbo implements the reference form only: no mask fast path, head cache, loser tree or AVX-512 sweep (its F7)
Lane follow-ups 04 §5.2, §6.7; 05 §4.6, §7.8 vyrn-lane lists as follow-ups: slot and segment reuse, window/overflow pages, the V3 bound-address check, resends and session-only messages; the 05 §10 log does not carry the live route
Consensus follow-ups 07 §9.3, §9.4 no signed Silence/TailReport; Seal proposals are encoded but never proposed; leader election is RoundRobin
Market data feeds 10 §7 only MBO has an encoder; MBO-C, MBP-10, TOB, TRADES and STATS have feed codes only
vxc pin 11 §5.4 vx/TOOLCHAIN pins a hash for x86_64-linux only, so aarch64 and macOS hosts skip the oracle (FRICTION.md W-10)

Spec against itself

Contradictions between a chapter and 01 §14 or 00-index. In each case 01 §14 is binding.

Each contradiction below has a GitHub issue: #52 05 vs 01 §14 values · #53 late-packet counting · #54 ingress scope · #55 NICs and drives · #56 pacing rule · #57 maker fills per sweep · #58 BBO load · #59 stream cores (O1, O2) · #60 lane drain core · #61 durability · #62 "final" in 10 §4.5 · #63 "measured" input · #64 1B msgs/s meaning · #65 editorial staleness.

  • Deadline guard. 05 §6.8 uses DEADLINE_GUARD_NS = 30 and a 970 ns threshold; 01 §14.1 says 20 and 980 ns.
  • TX cores. 05 §0 D10 and §11.7 have two fill TX cores (~0.33 each); 01 §14.17.3 has three (A, B, C on cores 3, 5, 0, ≈ 0.22 each).
  • Control core. 05 §4.1, §8.4 put control on core 0; 01 §14.17.3 moved OS and control to core 51.
  • Dedicated-lane BUSY. 05 §6.8 and §11.8 say BUSY = 0; 01 §14.17.2 says lane-stage BUSY = 0 and total ≤ 1e-5 at full load, ≤ 1e-8 at ≤ 20%.
  • AcctTake layout. 05 R15 { acct, ver }; 01 §14.17.4 { account, ver, lane }.
  • Index-0 speed-up. 05 §11.1 gives 45 ns (cross) and 81 ns (ack); 01 §14.2 says ~90 ns.
  • Late-packet counting. 02 REQ-LAT-3 and 03 §6.0 count a dequeue-age drop with BUSY; 01 §14.16 and §14.19 A.3 count it as ingress loss that fails the run.
  • Ingress scope. 10 §0 says "every accepted packet"; 01 §14.19 A.1 says "every received packet". 08 §7.11 and §10.7 drop unknown-session and bad-MAC packets without a response; that fits §14.19 A only if those packets are not "received", which the spec does not say.
  • Three facts. 02's preamble says "Two physical facts" and lists three; 01 §14.0 and 00 say exactly three.
  • Replication NICs. 03 ARC-D8 has 6 × X2541 on vyrn-seq; 01 §14.7 has 4 × X2541 plus 2 × dual-port X2542.
  • Replica storage. 02 §5.2 and 03 §4.5 use 12 × 30.72 TB (4.4 h / ~3.9 h at peak); 01 §14.7 has 12 × 61.44 TB (~7.9 h), and §14.16 requires ≥ 6 h.
  • Pacing rule. 01 §14.15 item 1 paces by predicted_path_ns; 04 §3.6 paces by lane_ns + PROTO_PACE_MARGIN_NS + PROTO_PACE_JITTER_NS (04 Request 9 explains why).
  • Maker fills per sweep. 01 §14.17.5 says about 40 makers at index 9; 02 REQ-LAT-4 computes 18 on three TX cores.
  • BBO load. 01 §14.15 item 2 gives ~0.21; 02 §4.4.3's rows sum to 0.33.
  • Stream cores and the cross budget. 07 §4.7 computes 0.41/0.40 load and a 947 ns cross fill, against 01 §14.15's ≤ 0.25 and §14.2's 880 ns (tracked as O1, O2).
  • Which core drains the lanes. 01 §14.5 names core 4 alone; 07 and 08 split the drain between core 4 and core 7 per §14.15 item 3 (08 Request 12).
  • Durability. 01 §14.13 item 3: held by ≥ F + 1 replicas; 12 §1: Q voters hold the frames (DUR_QUORUM); 10 §8.1–§8.2: drop-copy flags.bit2, "always 1".
  • When a fill is final. 10 §4.5: "A fill is final when the BBO core writes it"; 01 §14.19 B: a fill can be reverted until its block is final.
  • Forced inclusion. 01 §14.9: a forced packet is final ≤ 10 ms; 09 §7.4 gives 10.4 ms for a case it labels outside the model.
  • A "measured" input. 07 §9.6 case (c) cites "measured P(lead < 0) ≤ 1e-4 (B-REP-2W)"; nothing is measured yet.
  • 1B msgs/s meaning. 14 asks 01 §14.0 to define "1B msgs/s on one book" as regime R1; 01 §14.0 has not adopted it.
  • Stale "Requests to 01". 02, 03, 05, 06, 07, 08, 09 and 10 still ask for N_LANES_REF = 49, BBO_CROSS_NS = 15, the §14.3 lane split, the 61.44 TB drives or FINALITY_MAX_MS in §14.9; 01 already has them and 00-index lists them as resolved.
  • Measured-number wording. 00-index says "Draft 0.1 has none" under its draft 0.2 header; 11 §0 says draft 0.2 has none.
  • Line counts. 00-index's reading-order table is out of date (for example 01: 607 listed, 691 in the file; 05: 2,973 vs 3,013; 08: 1,498 vs 1,512).

Spec gaps the code filled

The crates record choices where the spec is silent. Search for *gap* or "Spec gap" in vyrn-data (fetch byte format, ring eviction, logged-block serving, dedupe limits) and vyrn-epoch (the encoding of mode in 08 §5.2), and for "rules the spec leaves open" in vyrn-lane (rules F, G, B, R). The crate pages list them.

Clone this wiki locally