Source: docs/lotus-v2/research/ten-root-candidate-study.proposed.md
Research — non-normative. This page records an investigation. It defines no rule; a research result enters the specification only through a decision recorded in decision history.

Ten roots, candidate selection, and similarity hints

Status: Superseded by Snowstorm (../snowstorm.md, 2026-10-24). This document is retained as a historical research record of earlier D11 explorations. See ../snowstorm.md for the normative specification of Snowstorm's multi-peer rateless $\text{GF}(2^{64})$ BCH fountain miniblocks, coupled peeling decoder, Type 1/2/3 algebraic fraud proofs, self-clocking parent_base_root layer promotion, two-phase anti-drip union with symmetric Phase 2 demotion, symmetric transitive conflict quarantine (BatchId(E) tiebreaking), and 0-RTT SnapBlock (SEALEDHEADER) propagation.

Three separate choices at one node

  1. Which candidate to prefer: obtain evidence for an exact, fully held/validated candidate within the common slot. A digest supplies identity, not transaction distance. Until a candidate-choice rule is selected, root support is an observation, not authority to finalize or discard live transactions.
  2. Where to reconstruct it: select one usable holder of that exact candidate, with a small bounded retry/concurrency budget. Other holders are redundancy, not six copies of necessary work. Bind the owned request to the same immutable target. Local extras remain live/pending; they do not silently enter the target.
  3. Which peers to keep exploring: keep all otherwise eligible connections available to independent samples and fair dissemination. Prefetching X does not exclude Y's holders, merge their votes into X, or demand that they automatically adopt X.

Thus with six X holders and four Y holders, a node preferring X normally fetches from one of the six. It does not need to reconcile with all six plus four random peers. The four Y nodes run their own policy. One may sample three Y and two X, legitimately retain/increase Y evidence, and serve Y. Another may obtain sufficient X evidence, retrieve X from an actual holder, validate it and change preference. Six immediate neighbors are not necessarily six independent stake authorities. Independent voting samples must not be biased to agree with the selected prefetch target.

All ten initially distinct is a real bootstrap problem

The strict trace starts with preferences R0 through R9. With five distinct sampled peers and threshold three, no exact candidate can receive a successful sample: each has one supporter. After 100 events every actor still prefers its original root. This is a counterexample to the unstated assumption that adding opaque-root choices to a successful-sample-only switch rule automatically coalesces.

A possible extra nomination rule is: before the node has any successful candidate evidence, after an unsuccessful sample and a paced local nomination opportunity, randomly choose one sampled, available, fully valid candidate to reconstruct and prefer. This is not a threshold vote or acceptance. Retain old snapshot/live data. Once evidence exists, use the specified sticky preference rule, not blind swapping on each advertisement. The fixture applies that extra rule immediately per unsuccessful event to expose its behavior; production pacing, Byzantine nomination limits and a stall recovery rule are not supplied by the fixture.

In seed7 the extra rule reaches one observed preference, R2, after108 events; the6/4 trace reaches X after75. Ordinary arrivals are staged throughout (108 and75 respectively), so none creates a fresh active root or inherits prior confidence. These counts describe two traces only, not expected latency, success probability or Byzantine safety. The harness requires every counted streak to refer to the common preferred root. Its all-node-equality/streak stop is an omniscient observation unavailable to an individual node. It neither seals an epoch nor proves agreement against partitions. The first sample revealing an unheld winner only triggers reconstruction; it earns no score/streak, and a later fresh sample is required. An earlier draft that counted that sample ended at R0 after107 events; those results are superseded, illustrating schedule sensitivity rather than a probability estimate. The model uses cumulative successful-sample scores, strict-greater preference switching, and a separate consecutive observed-outcome streak; it is not the current ABC VoteRecord.

Continuous creation of a new root for every arrival is a different policy. The fixture's ten-tick counterexample replaces all ten preferences with distinct fresh roots each tick: exact support stays one and no threshold sample exists. A nearest-root metric cannot turn those distinct candidates into one exact voted value. Freeze candidate membership while evaluating a choice, or explicitly specify how revisions restart/retain evidence; do not credit ABC with AB votes.

Candidate generation versus choice

The simplest bounded experiment separates a dissemination/nomination phase from evaluation of held immutable candidates. Compatible union may create ABC from AB and AC during generation. ABC becomes a candidate only when some node actually holds and validates it. During evaluation, direct new arrivals stay staged, existing candidates remain pinned within a fixed budget, and exact recovery cannot mutate the target. No designated trusted leader is needed for this experimental nomination rule.

This separation does not magically establish a common candidate roster or close boundary. The fixture assumes all ten initial descriptors are known; a real network may discover a previously created candidate late, experience unavailable holders, or receive unlimited Byzantine variants. A local cap may exclude a candidate another node is evaluating. Allowing replacements can perpetuate churn; forbidding replacements can omit delayed honest transactions or bias selection toward early/nearby publishers. A fixed root may leave legitimate extras for the successor rather than choose the full network union. Nomination fairness, censored/withheld candidates, cap admission/eviction, late-choice policy and common-slot advancement need an explicit reviewed rule before authoritative use. We do not infer such a rule from the successful seed.

For now, use this model to compare policies and retain ordinary fair permissionless propagation. Do not add root finalization to the scheduler patch.

MinHash supplies a useful advisory set-distance metric

MinHash estimates Jaccard resemblance J = |A intersection B| / |A union B|; random-hyperplane SimHash instead estimates angular/cosine similarity. For binary transaction membership, Jaccard gives the more direct set-difference interpretation. This is established sketch theory, not a property of cryptographic root bits. Charikar's primary paper, MinHash/SimHash comparison.

Given trusted counts a,b and an estimate J, the algebraic difference estimate is (a+b)*(1-J)/(1+J). It estimates total symmetric difference, not which bodies are missing. Sketches must describe the same pinned candidate, membership identity (including relevant TxHash semantics), domain/seed and base/prefix. Similarity can rank prefetch work, predict sketch/zoom cost and select promising dissemination partners. It never makes two different roots one voting choice, proves membership, or selects a consensus winner merely because it resembles the local set.

A huge shared cumulative base can hide meaningful active-layer differences. Compare deltas only when both descriptors use the exact same validated base; otherwise use compatible prefix summaries or the full view with that limitation explicit. Similarity to a named target is meaningful only when its descriptor/sketch exists and a holder can serve it. It does not create a path toward an unavailable opaque voted root.

The fixture computes128 independent64-bit minhash values with one fixed toy domain, or1024bytes before metadata. It ranks ten distinct sets in two clusters. Every nearest choice stays within its cluster: similarity-only peer selection would split the selected fetch edges into two groups of five; the underlying peer connections remain present. Preserve an independent fair/random exploration budget and unchanged security sampling. This is the concrete reason to use similarity as a retrieval-cost hint rather than an agreement rule.

A descriptor signature authenticates who claimed a sketch; it does not prove that the sketch describes the committed root. Until recomputed from exact recovered membership, keep it advisory, rate/budget limited and unable to change positive-vote validity. Public seeds permit candidate grinding; salts alone do not solve adversarially chosen memberships. Two128-value sketches matching cannot prove a small missing set: with an ideal independent minhash model and J=0.999, all128 match with probability about0.88. Bottom-k128 also occupies roughly1KiB of64-bit values, but has a different estimator/error treatment; the fixture does not implement bottom-k.

Maintenance is not free. Independent minhash insertion costs128 hash/update operations in this toy implementation. Deleting a minimum requires a replacement: a plain retained-minimum array may need a rescan, while extra ordered samples/indexes/per-tree summaries trade memory and mutation cost for faster recovery. A bottom-k index reduces hashing but also needs a deletion/replacement policy. Benchmark incremental changes, removals, reorgs, large shared bases, cold rebuilds, sketch bytes and worker latency against existing Merklix/BCH comparison. Do not silently add O(pool-size) work per arrival or assert that the smallest sketch can size every difference accurately.

Next experiment boundary

Compare: strict exact-root evidence; bounded randomized nomination; similarity-prioritized reconstruction with independent sampling; and similarity-only selection as a negative control. Extend to unequal/overlapping stake identities, unavailable bodies, adversarial variants, partitions, delayed old nominations and limited retained roots before making probability or latency claims. Production actor/model code should share the selected transition once an algorithm is actually chosen. The current Python fixture is deliberately not a security simulator or implementation-equivalence test.

The proposed common selector is detailed in shared steering. The static routing example and instant logical retrieval do not test network transport, retention budgets or actual source-discovery enforcement.


References

  1. [Oak 2026] Professor Oak, "Snowball to Snowstorm: Rateless Set Reconciliation and Probabilistic Mempool Preconsensus for Proof-of-Work Blockchains", October 2026.
  2. [Rocket et al. 2019] Team Rocket, Maofan Yin, Kevin Sekniqi, Robbert van Renesse, and Emin Gün Sirer, "Scalable and Probabilistic Leaderless BFT Consensus through Metastability", arXiv:1906.08936, 2019.
  3. [Vermorel, Séchet, Chancellor, & van der Wansem 2018] Joannes Vermorel, Amaury Séchet, Shammah Chancellor, and Tomas van der Wansem, "Canonical Transaction Ordering for Bitcoin", June 12, 2018.
  4. [Vermorel, Séchet, Chancellor, & Cox 2018] Joannes Vermorel, Amaury Séchet, Shammah Chancellor, and Jason Cox, "Merklix Tree for Bitcoin", July 2018.