Source: docs/lotus-v2/research/previous/epoch-root-gossip-loop.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.

Epoch root gossip, reconciliation, and repeated voting

Current scope correction: the permissionless pairwise scheduler is the user's authorized minimal implementation direction. Reconciliation, inbound service and peer selection require no stake, Avalanche quorum, causal clock or root-voting mechanism. The mechanisms below are an optional finality/clock study, not prerequisites or a complete validated convergence protocol. Their internally consistent symbolic examples do not establish distributed consensus. The first optional stake experiment is observational only.

Status: accepted naming and reconciliation-index direction; otherwise proposed behavioral contract, not production approval, 2026-10-21. The user accepted (agreed/finalized block hash, epoch ordinal), starting at zero and advancing after epoch finalization, as the shared slot name, and requires reconciliation requests/responses and the overlay index to carry that identity. Cutoff vector and root are agreed within that slot. This evaluates the user's root-gossip loop directly. Publisher-cut/ACS designs remain alternatives; they are not prerequisites or the selected architecture. Existing storage work does not authorize this protocol. The ownership rules in mempool-reconciliation.md remain applicable; where that document assumes additions-only preference, this proposal makes exact-target selection explicit.

Numbering/availability clarification: snapshot holders and epoch numbering separates a held exact candidate from an opaque root, and local checkpoint counters from shared ordinals. The earlier accepted tuple names a conversation; it does not by itself implement unique predecessor selection or fast shared epoch advancement. Those remain unimplemented design obligations.

Current experimental direction: aggregate, then confirm an exact root

This section records the user's later agreement and supersedes conflicting fixed-candidate-election language below. It is a design direction, not production approval or a proved consensus composition. The scheduler implementation remains permissionless phase1; neither its local capture counter nor the retained batch processor implements this state machine. The actual latest reconnect experiment still failed at10000/10000/5711 inventories.

Mutable membership, immutable advertisements. Maintain mutable cumulative working membership W over the immutable finalized base F, plus pending ordinary arrivals U. Pin immutable versions of W for advertisements and served exchanges. Freezing a pin does not freeze W or prevent compatible union. If W=AB and a held remote AC snapshot supplies validated C, working membership becomes ABC; a new exact root is advertised. Reconstructing the remote AC view does not silently replace AB with AC or discard B. New ordinary arrivals are staged in U; verified reconciliation data can still join the unfinalized W through its owned epoch association. Conflicting spends, alternative witnesses, removals and chain changes remain subject to the specified validation/authority rules; compatible-set union alone does not resolve them.

Provisional binary-prefix guidance. Aggregate sampled choice-ID prefix support to help select a concrete held snapshot to retrieve. A prefix tree over root IDs can begin to discriminate when every exact root initially has one supporter. Root bits are opaque, not transaction similarity. Each response supplies one choice, not extra votes for every compatible root. While W can still aggregate, prefix choices are provisional: do not irreversibly prune a branch that a legitimate later union root may occupy. Confidence for an old prefix or root is not confidence for changed candidate bits. MinHash can estimate work but remains unverified advice until recomputed from exact held content; a signature does not prove derivation from the Merklix root.

Exact-root confirmation. After complete reconstruction and validation, only fresh owned polls for the same (slot, immutable base, exact candidate descriptor, local activation) may update that candidate's confirmation state. A local W mutation produces a new exact root/activation and resets the active exact-root consecutive-success streak. Cumulative preference evidence, if retained by the selected algorithm, stays keyed to the exact choice and confidence domain; it never becomes a new root's evidence. Each issued poll/cohort has a unique owned identifier and one-shot completion; replaying the same result cannot advance confidence twice. The current experimental conservative adapter also restarts active confirmation on a return to a previously active root. Prefix support cannot substitute for exact-root success. Missing, timed-out or invalid responses are never YES. The actual ABC rolling-response/timeout behavior must be audited against the eventual selected aggregation; illustrative alpha/beta/k values are not approved security parameters.

Atomic seal boundary. Membership association and seal run under one epoch owner. A proposed seal must recheck that its slot, base, chain/epoch routing generation, current W root, activation and current confidence domain still match the validated poll result. It seals only the exact current W. If verified C joins first, AB becomes ABC and an AB result cannot seal it. If AB seals first, C may still enter the validated live mempool but its late association goes to pending successor changes, not historical AB. Finalized views are immutable; duplicate ordinary admission of an existing working/base member is a membership no-op. Same-anchor cumulative W retains F. A removal affecting that finalized base must wait for the explicit chain-anchor/rebase policy and cannot be silently subtracted at promotion. An empty successor with W=F remains dormant rather than repeatedly advancing ordinals. Continue answering applicable polls and serving retained snapshots after local synchronization/seal so laggards can recover; a local observation does not imply every node completed.

There are two distinct fences. A recovery body for a retained owned target may remain useful to the same unfinalized epoch after another body changed W: check its request ownership, proof/target identity and epoch routing generation. Do not reject that association solely because the current root activation changed. A poll result or candidate-preference commit, in contrast, must match its exact activation and cannot credit an old root. Anchor change, epoch seal, request expiry or target eviction retires the applicable ownership before dropping pins; late data cannot retag itself into a successor epoch by claiming a new header.

Stake availability and fallback. With sufficient usable stake participation, the proposed observer uses authenticated stake-sampled exact-root confidence. When that is unavailable, ordinary-peer Snowball-style preference/prefix sampling may continue as best-effort reconciliation steering. It supplies no equivalent Sybil-resistant finality, block parking or chain authority. It may guide retrieval or an immutable local checkpoint with late changes preserved in successor deltas; that local checkpoint is not a shared finalized-epoch predecessor. Keep peer-steering and stake-confirmation evidence in separate domains and counters. On stake return, reuse valid held data but start fresh stake confidence; do not promote peer popularity, elapsed silence or a peer-mode streak into stake evidence. Issued requests capture their confidence-domain generation so crossing mode boundaries cannot credit a new domain. This study does not change the source's actual quorum-loss behavior or existing chain-finality policy.

What agreement establishes. Repeated exact-root support is the proposed shared-decision direction; it is not proof that every valid transaction or every offline node's contribution is included. Late or omitted valid changes require continuing dissemination and successor handling. Local quietness is not a global-union termination detector. Simultaneously demanding every contribution, indefinitely changing membership and early irreversible root-prefix decisions is not resolved by this design. Stake sampling assumptions, Byzantine candidate availability, preference/acceptance parameters, unique slot finalization and shared epoch advancement must be validated before this becomes authoritative code.

The tuple (agreed block anchor, ordinal) names the intended shared slot, but a local checkpoint increment does not supply a shared ordinal transition. A decided exact predecessor is still required for shared n+1, as detailed in snapshot routing. Until that decision mechanism is implemented and reviewed, do not claim the scheduler already provides agreed fast epochs.

The hand-sized confirmation boundary vectors and prefix/MinHash examples use letters or fixed256-bit IDs, not full transactions. Executable assertions are maintained in the canonical ten-actor-study/epoch_boundaries.py and prefix_trace.py. They cover mutation-before-seal, seal-before-late-body, same-epoch recovery after root change, one-shot poll ownership, duplicate admission, dormant successors, finalized-base removal fencing, immutable history and peer-to-stake mode changes. They are model contracts, not production test results.

1. The loop and the minimum repair

Nodes name the same epoch, freeze their direct admissions for it, advertise signed preferences for its Merklix root, learn other preferences through forwarding, reconcile the preferred candidate, and vote again. Local synchronization does not finish the epoch: polling continues until the exact candidate reaches the confirmation rule. Once confirmed, its root is immutable. Lagging nodes continue recovering that epoch; unrelated and excluded transactions remain in their open top for the successor.

This optional finality-study prototype uses forwarded signed preferences to discover candidates and recovery sources, and issued, authenticated, stake-sampled polls to study finality confidence. It is not the permissionless dissemination baseline. Forwarding cannot manufacture additional samples. A received-gossip percentage is a useful observation but not a finality certificate. This uses existing stake proofs and Schnorr authentication; it introduces neither an enumerable global publisher roster nor a trusted setup.

One change needs explicit review: current source aggregates received responses and simply removes timed-out queries. It does not account for silent selections in a fixed issued denominator. The conservative prototype below specifies issued cohorts. It is a proposed aggregation change, not a claim that unchanged Avalanche already implements it or that an existing theorem proves this composition safe.

2. A common epoch name, without simultaneous local progress

The accepted preagreement SlotId is the domain-separated hash of (network_domain, agreed/finalized block hash, epoch ordinal), starting at ordinal zero for that block. The changing current candidate root and local vector clock are deliberately absent. Candidate headers additionally bind the exact previous finalized epoch decision for ordinals greater than zero; a different claimed parent does not create a separate nonconflicting slot. The parent must match the validated preceding decision for this slot. A candidate is the complete batch header and its BatchId; the existing header contains the underlying block/ordinal/parent fields plus transaction/state commitments.

For consistency with earlier lifecycle notation, EpochId in every preagreement gossip, recovery and polling context below means exactly SlotId, never CutId or the optional finalized content ID. These identifiers are distinct types even when all are represented as 256-bit hashes.

If the desired final epoch identity is a hash of a vector cutoff, retain both names. Canonically encode a finite map (stable origin incarnation -> last included authenticated event sequence), sorted by origin bytes, with duplicate keys forbidden and absent entries meaning zero. Two different local vectors produce different CutId values even though they address the same SlotId. Vote on a combined candidate commitment (SlotId, CutId, transaction root, state root, other header commitments) so the selected cut and selected membership cannot diverge. Its finalized content ID may be H(domain, SlotId, CutId, candidate commitments); H(Cut) alone is not sufficient to bind the parent, membership and network. The finalized decision authorizes advancement to the next ordinal; its ID is the required parent commitment in that successor candidate. This avoids circularity: peers use SlotId to decide which conflicting CutId/candidate wins, then use that selected content ID permanently.

A finite vector need not enumerate every stake proof in the network. It does require authenticated referenced events, a precise origin/restart rule, dependency closure and a rule deriving or checking candidate membership from its cut. Omitted origins are an explicit completeness/fairness choice, not proof that those origins had no transactions. A root vote that references itself in its own cut is circular: cuts must refer to already committed events, with subsequent root votes a distinct phase/event kind. The current batch header has no CutId field, and a signed preference counter by itself does not prove an admission-event cutoff. The vector-cut extension remains a separate proposed variant, not something these parent-chain behavioral vectors pretend to implement. Combining cut/root in one vote can avoid a second consensus decision, but cannot avoid defining the events and membership relation being voted on.

For a fixed agreed chain anchor, the first slot has zero parent and ordinal 0; its successor names the exact finalized parent BatchId and ordinal +1. Overflow is invalid. Bootstrap uses the agreed/finalized block checkpoint (or an explicitly configured common genesis/checkpoint before live finality), not each node's latest tip. A received descriptor is usable only after its parent history/anchor is validated. Header existence alone is not proof of parent finalization. Two candidate roots/cuts with the same block and ordinal compete in one slot. A repeated candidate after local deactivation gets a fresh local activation token even when its BatchId is identical. This allows many epochs per block; a block hash alone would name only one slot and tie epoch cadence to block arrival.

Provisional anchor policy: remain in the current agreed anchor namespace until the existing block-finality mechanism establishes a successor checkpoint; then cancel mutable old-anchor work and revalidate live transactions on the new anchor. Merely connecting a different local tip does not create a common new namespace. Historical epoch results are not rewritten. Recovery from a reorg below the trusted/finalized anchor is a suspended fault-recovery path, not an implicit rollback of finality. This is a coordination policy, not a new hard PoW validity rule. The initial checkpoint and anchor-transition adapter must be explicit in a deployment.

The proposed local transition runs under the epoch owner: commit a new anchor-incarnation fence; make every old mutable activation and admission association ineligible; retain old finalized descriptors/results for historical catchup; open ordinal zero over the new block state and reclassify surviving transactions only after validation. Already issued old-anchor poll tickets may complete for diagnostics but cannot commit epoch state after the fence. Old historical responses never increase confidence in the new namespace. If an old epoch finalized locally before the fence, retain that decision as historical; if the fence won, the old pending epoch cannot finalize locally afterward. This local ordering does not assert all nodes observed the block/epoch decisions simultaneously. Which old unmined epoch obligations carry across a new block is a mining/preconsensus policy integration decision, not resolved by naming; it must not silently make a previously valid PoW block invalid when late epoch gossip arrives.

N2 may have confirmed epoch e and begun e+1 while N1 still recovers e. N1 accepts the name of e+1 as a bounded pending descriptor, obtains its parent, finishes e, and only then opens its own successor. It does not reinterpret an e vote as an e+1 vote. Nodes need a common name and parent relation, not identical wall-clock processing positions.

The existing MempoolBatchAnnouncement fields can carry the core descriptor, but its current IsValid() (nonzero block hash and positive count) is insufficient. The receiver must check network/domain, exact parent, sequence and anchor. An empty epoch needs either an explicit allowed empty candidate or no epoch creation; the prototype chooses no empty epoch creation, meaning the new delta W minus F must be nonempty, not merely that cumulative W has a positive count. Empty-node peers can still learn and validate a nonempty remote delta.

3. What the clock actually means

The agreed parent chain supplies the epoch number. Inside an epoch each stake authority signs a monotonically increasing preference_seq, scoped to a stable authority incarnation and EpochId. Keep that latest-preference map separate from V[authority] = max verified heartbeat_progress_seq. Only the independent heartbeat sequence feeds F below; preference sequence and heartbeat sequence are different message domains/counters and are never compared or merged numerically. V is an authenticated progress vector, not a transaction vector clock or proof of a common cutoff. Receiving a signed heartbeat updates that author's V entry; it never advances the receiver's author sequence or epoch number. A local emission advances only its corresponding author's counter. An unsigned claimed large sequence is ignored.

Prototype independent progress-heartbeat interval is 250 ms; root-preference emission follows the autonomous trigger below and coalesces changes while a root is preparing. Unchanged preferences may be re-advertised by inventory without a new signature. Poll scheduling and completion are independent of this interval. No node waits for every authority's next tick. Epoch advancement requires confirmation of the predecessor, not a maximum or minimum of observed counters. Authority restart/rotation must use existing authenticated proof/delegation lineage; resetting a counter under the same incarnation is invalid, and a new session key does not confer extra voting weight.

This is the minimum clock required for this asynchronous loop. It does not assert a simultaneous global arrival cutoff. Each node freezes its direct-admission root once on opening the named epoch; thereafter normal arrivals go to U, while verified recovery may associate members of an advertised epoch candidate. A delayed peer's direct cut can differ, which is exactly what reconciliation resolves. A Byzantine origin can also claim a late transaction belonged to its earlier candidate; hashes/signatures alone do not prove physical arrival time. An enforceable common causal/time cutoff would require an additional committed-event protocol. The prototype does not claim that stronger property or hide it behind the word vector.

3.1 Autonomous F(progress vector): proposed scheduling mechanism

No coordinator calls vote(). The local epoch actor observes authenticated progress, evaluates its armed trigger, and emits its own signed preference when the trigger fires and the cumulative candidate is READY. Nonstaking nodes relay and reconstruct but do not invent voting weight. The trigger is separate from the issued root-poll confirmation rule in §5.

For scheduling round r capture context C_r = (EpochKey, owner_incarnation, round_token, B_r, S_r), where B_r is the observed per-author progress vector and S_r is eight proof-weighted authority tickets drawn before later heartbeats arrive. Use the same explicit local-known-proof population discipline as sampling, but these are progress tickets, not root-poll YES votes. With-replacement multiplicity is predetermined. Define:

F(C_r, V) = count of ticket positions i in 0..7
           for which V[authority(S_r[i])] > B_r[authority(S_r[i])]
           is at least 7

For a fixed context F is monotone as verified V advances. A relayed duplicate advances no component. A jump from sequence 2 to 10^12 satisfies exactly one predicate per selected ticket, not 10^12 units of progress. One author selected several times advances those predetermined positions; seven successful positions are not necessarily seven different authorities. A sum of raw counters or a percentage of whichever origins happened to be received is not used. Progress means newly learned authenticated sequence advancement: a delayed event authored before this local round can satisfy V>B. It is not proof the author produced a fresh event after the local round began.

When F first becomes true, consume that round exactly once and snapshot the next baseline from the current verified V before rearming. The same heartbeat cannot repeatedly trigger later rounds. At READY, atomically capture the current EpochKey/owner/activation, cumulative BatchId/root and scheduling-round context, then sign outside the owner lock and recheck eligibility before enqueuing. The signed preference identifies its scheduling round and exact candidate; this round is neither the epoch ordinal nor a finality-confidence increment. The next round does not reset confidence if the root/activation is unchanged.

If F fires during PREPARING, keep one coalesced pending-emission obligation scoped to that epoch owner. Represent its progress with a monotonically increasing trigger watermark: an emission ticket captures that watermark, and final enqueue consumes only obligations at or below it. A newer trigger arriving during signing remains pending rather than being cleared by the older completion. Retain the consumed trigger's cause, round token, baseline/tickets and verified frontier that satisfied it. When preparation completes, bind that obligation to the currently eligible fully validated root/activation, not to the newly rearmed scheduling context where F may still be false. A newer coalesced obligation can supersede the older scheduling cause, but must carry its own original context. Do not sign a staging-only, partially reconstructed or superseded root; recheck before queueing. A new anchor/finalization fence cancels old mutable obligations. A message enqueued before the fence may arrive late, but retains its original epoch/root/round and cannot be retagged into the successor.

Independent signed progress heartbeats start for the recognized current EpochKey even when no candidate root is READY and no root vote has yet been emitted. Otherwise the system can deadlock waiting for progress made only by votes that themselves wait for F. Heartbeats bind authority incarnation, EpochKey and monotone progress sequence under a separate message domain; they do not claim candidate validity. Store only bounded current/recent epoch watermarks and authenticated objects, deduplicate forwarded copies, rate-limit each authority and bound verification as in §7.

Provisional timeout policy: after one second without F, close the scheduling round, schedule a TIMEOUT_REFRESH announcement of the current READY preference (or coalesce one pending obligation while preparing), capture a fresh baseline and draw a new progress sample. Existing root polls continue independently. This local timer fallback makes zero confirmation progress and does not pretend F became true or lower its threshold. A newly ready node also has an explicit one-time INITIAL_READY announcement, independent of F, to bootstrap target discovery; it earns no finality credit. Progress-triggered messages are labeled CLOCK_PROGRESS. All three scheduling causes share the same exact root/activation checks. Root-preference signing/enqueueing is coalesced to at most one per 250 ms prototype interval per local authority; an over-budget F is a pending obligation, never extra confidence. Arbitrary holdout mass or a permanent partition can prevent F and finality; the timer can keep local announcements alive but cannot establish agreement or guarantee delivery.

This F is deterministic given C_r and V, not a universal function of a globally identical clock. Different nodes draw different local contexts and observe different frontiers, and can legitimately fire at different times/frontiers while naming the same EpochKey. That is sufficient for autonomous gossip/revote scheduling. It does not select a common cutoff or replace sampled confirmation. If the required function must be deterministic from the same causal frontier alone, the sample context would have to be committed/shared as well; that is an additional protocol decision, not an assumed property of this scheduler.

Bare signed counters form an authenticated progress vector, not a full causal vector clock. A true causal variant needs each event to commit its self predecessor and referenced observed heads (or an equivalent authenticated full frontier), with componentwise merge and validated event availability. That adds causal history/proof retention; a claimed high counter alone does not prove the intervening events or membership cutoff. Do not silently introduce an unbounded heartbeat DAG. This proposal chooses the smaller progress scheduler for evaluation and leaves the separate committed vector-cut semantics explicitly unselected.

3.2 Public progress and nonvoting full nodes

Progress observation and snapshot preparation require no voting privilege. Every full node can validate public progress records, update its scheduling state, prepare its one unfinalized cumulative view and relay candidate/progress inventory. Only a currently eligible staker originates a preference that carries voting weight. A nonvoter's snapshot or root announcement is data availability/discovery, not a stake vote and not authority to finalize or park a block.

PoW blocks provide an independently verifiable costly progress source. The proposed public work frontier is the maximum validated cumulative chainwork among fully validated descendant branches of the current agreed anchor. Compare against the last consumed work frontier in that anchor namespace. Only a strict increase triggers PUBLIC_WORK_PROGRESS; duplicate block announcements and alternate deliveries of the same BlockId add no progress, and a peer's claimed height/work is not trusted. Shared ancestry is not counted twice. A competing branch with no greater validated work does not advance this maximum. Validation includes the network's contextual target/difficulty rules; cheaply advertising many low-difficulty or invalid headers is not the required event.

This maximum is locally monotone within its anchor context even when the local best tip changes; it is a scheduling observation, not a replacement fork-choice rule. Nodes with the same validated event set compute the same work frontier, but can learn events at different times. Such a work event can prepare/publish a snapshot or schedule a READY announcement for the same epoch slot. It cannot by itself seal the epoch, increment its ordinal, confer root support, or reset its agreed anchor to the locally newest block. Only the established block-finality transition installs a new agreed anchor fence. A scalar block height/work clock is not automatically a vector clock; causal origin/dependency semantics still require the explicit mechanism described above.

Block-only progress is a simple fallback with block-paced updates; it cannot promise few-second rounds between blocks. Independent bounded stake-authorized heartbeats and local refresh timers supply faster scheduling without making each message a new economic expenditure. A signature proves authority, not repeated costly work, so raw signed-counter totals remain grindable and are not used as finality thresholds. Actual additional work tickets or fee-paying progress events would need separately defined target/fee, uniqueness, replay, branch and resource rules; this prototype does not invent them or assume their Sybil resistance.

The combined local attempt trigger is a verified work-frontier advance, a satisfied heartbeat-context F, INITIAL_READY, or the explicitly labeled refresh timeout. All causes feed the same single coalesced ownership obligation and READY checks. None changes the accepted cumulative overlay architecture or the finalization-only epoch-number transition. Genuine causal-vector cut selection remains separate from this coordinatorless scheduling mechanism.

4. Membership, preference and exact reconstruction

The user's accepted layer architecture is:

new direct-admission staging       mutable; future epoch admissions
--------------------------------  admission routing fence
one unfinalized epoch layer        the ONLY mutable epoch membership
finalized epoch 3                  immutable membership
finalized epoch 2                  immutable membership
finalized epoch 1                  immutable membership
agreed block state                 pinned validation anchor

There are never several mutable epoch candidates or mutable historical epochs on one node. Published proposals are immutable CoW snapshots/versions of the one unfinalized layer. Independent peer reconstruction jobs may accumulate verified pieces of an already fixed target; those helpers are incomplete materializations, not additional mutable consensus candidates. The cumulative W used below is a shared derived view over finalized layers F plus the one mutable epoch delta. An implementation need not flatten/rebuild the stack to obtain that view.

The user explicitly requires the unfinalized epoch Merklix root to contain the transactions in every finalized layer below it at that anchor, plus its own epoch members, and to exclude the new-admission staging above it. Thus the committed root is canonical Root(F union current_delta), never Root(current_delta) alone. Every finalized layer retains its immutable cumulative root and delta metadata, sharing persistent nodes and bodies with adjacent versions. Ancestor-closure repetition is set membership/idempotence, not a second insertion or execution. Same-slot candidates must share the same exact finalized parent/base and differ only in their new epoch membership. A base-difference reconciliation optimization is allowed only when its result is verified against the same full canonical cumulative root.

Finalization and successor creation share one atomic routing fence: after full candidate reconstruction/validation and finality checks, seal the unfinalized layer, record its exact immutable finalized target, promote the captured staging root into the sole successor working layer, increment the ordinal and start a new empty staging root for subsequent ordinary admissions. A transaction arriving before this fence belongs to the captured successor cut; one arriving after belongs to the new staging root. Worker hashing/validation remains outside the lock against owned snapshots; the commit rechecks the original activation and anchor. If staging is empty, the successor is dormant with no positive empty proposal; its first nonempty cut is captured from staging at a subsequent local preparation fence before any votes. This avoids generating finalized empty epochs or reopening a previously voted cut.

The successor cumulative root extends the just-sealed cumulative root with captured staging, using shared/path-copied nodes. It is not the staging-only root. A new agreed block can consume transactions from that ancestry: pruning/removal/rebase constructs a new anchored view with surviving validated memberships. It never edits an old finalized cumulative root, and transactions already in blocks are not asserted to remain forever in every future epoch root. The exact carryover/mining policy across that fence remains explicitly separate from the accepted cumulative-within-anchor rule.

A laggard may know the exact target advertised as confirmed by other nodes while still missing its bodies. Its FixedTargetReconstruction owns that immutable target plus verified partial materialization; it does not modify any finalized membership. It cannot locally finalize until the full exact root, parent/state validation and local finality requirements are satisfied. Once complete, the same atomic seal/promotion operation applies. Historical lookup exposes fixed targets or bounded unavailable status, never a writable finalized epoch.

The accepted index key is EpochKey { agreed_block_hash, epoch_ordinal }, under the network/domain. The overlay manager indexes epoch entries by this key, not only by the current epoch number or latest root. Each retained entry owns:

This is an epoch-to-membership index, not a transaction-to-single-epoch field. Transaction bodies and immutable nodes are shared; a body may occur in multiple cumulative candidates, historical epochs or required ancestor closures without duplicate live admission. References prove the exact TxId/TxHash incarnation. The current future-admission top is separate from the selected epoch entry. Choosing a received EpochKey does not itself move anything from top into that epoch.

There is one admitted mempool M, finalized cumulative parent F, revisable cumulative candidate W (including F), and open top U. Candidate and published roots share immutable canonical nodes. In the ordinary live case U is M minus W; if an implementation instead stores only the epoch delta D, it must use U = M minus (F union D). No count subtraction classifies transactions. Published proposals are immutable. Ordinary post-cut admissions affect M/U only. Finalized-but-unmined members must never accidentally become a new top contribution.

A recovery request pins (EpochId, remote BatchId, local proposal revision, connection/request ownership). Its trusted target travels through admission. After normal validation, association rechecks exact TxId/TxHash/incarnation, current epoch owner, parent anchor and candidate revision under the mutation owner. Existing admitted C moves from U to W without duplicate insertion. Finalization and candidate association use the same compare-and-commit owner. Losing a race to finalization cannot associate C with that sealed epoch: preserve C's current classification, which may be fresh staging or the successor working layer if C was already in staging when the seal captured it. Never demote it from the successor or duplicate it into staging because an old callback lost its target.

There are two validation views. Ordinary admission checks the moving active-chain/live-mempool view. Candidate validation checks owned coins/state at the epoch's agreed chain anchor plus exact finalized F and candidate execution order. Success in one view is not success in the other. A common anchor may lag the current tip; retain or reconstruct its state explicitly. If it cannot be obtained within resource limits, the candidate remains UNKNOWN, not valid by substitution of current coins.

W commits cumulative membership, but execution applies only the exact new delta W minus F over the parent state produced by F. An exact previously executed TxId/TxHash is a no-op before spent-input checks; it is not executed twice or treated as a fresh double spend. Alternate TxHash for an existing TxId requires the separately specified witness-identity rule and cannot silently replace the parent's committed identity.

In particular, M may already contain B spending an input needed by remote C. Exact AC reconstruction must not fail solely because normal admission rejects C as a local conflict. Retain the bounded recovered raw body and membership evidence under the candidate reservation, validate it in the pinned candidate context, and keep its reference outside accepted M until ordinary admission/conflict policy permits it. This is candidate-body storage, not a second live mempool admission authority. The ordinary AB/ABC vectors contain no conflicts and use the resident-incarnation fast path; conflicting-candidate tests must exercise this separate path. Selecting/finalizing a candidate then invokes the explicit preconsensus conflict/mining preference policy. It never silently inserts an otherwise rejected transaction into M or changes hard PoW consensus. If that policy is unresolved, the conflicting candidate cannot be promoted as executable production behavior merely because its transaction root matched.

Before confirmation, compatible recovered members may produce a new union proposal, with fresh BatchId/activation and fresh confidence. This is candidate formation, not proof of matching the advertised root. AB versus AC may yield ABC. Nodes must distinguish “propose union ABC” from “adopt exact AC”. To prevent additions-only deadlock, a valid sampled-preferred AC can be selected exactly: B leaves W but remains admitted in U. Selection never deletes B from the global mempool merely because a peer prefers AC. A deterministic execution/conflict policy must validate the selected complete candidate; the stake-first conflict proposal remains separately unapproved.

After confirmation, only exact reconstruction of the confirmed candidate is permitted. AB union AC cannot claim to be AC. Root equality, full state validation and exact parent checks are required; a peer's claim of confirmation is a hint until locally established under the finality mechanism. Same-slot late proposals do not reopen a locally confirmed root.

Proposed phases: DISCOVER/PREPARE -> READY -> SAMPLING -> CONFIRMED. Reconstruction can run alongside sampling of the current ready candidate. A bounded HINT_NOMINATED record may identify a remote candidate to test, but an incomplete target receives UNKNOWN and cannot finalize. A changed W or preference activation resets all root-specific confidence and post-sync progress. A mere duplicate body, gossip update, or direct top arrival does not reset it.

Provisional target nomination is explicit: at initial discovery, after a conclusive negative cohort, or after idle activation expiry, nominate the eligible root with greatest locally observed distinct-authority gossip weight, breaking ties by BatchId bytes. This is a scheduling heuristic, never a quorum denominator or finality claim. Retain one owned HINT_NOMINATED target; fetch/validate it and independently poll that exact root when ready. Seven NO responses for AB do not constitute seven YES responses for AC. While a candidate is active, unsolicited hints do not preempt it; newly disclosed compatible data is queued for the next bounded preparation opportunity. A recovery job already authorized for the working revision may still commit first and invalidate that activation, as the C race specifies. Exact adoption suppresses union promotion until that target comparison completes or expires; optional compatible-union formation is a separately named new proposal, with new activation and fresh voting. This bounds simple gossip-triggered reset attacks but does not guarantee inclusion of all withheld contributions.

5. Fixed issued cohorts and continued confidence

Prototype cohort parameters are k=8, alpha=7; the behavioral fixtures use beta=3, while a conservative measurement configuration can use beta=128. These are explicit prototype constants, not calibrated production security or latency parameters. In particular, 128 cohort increments differ from the current source's 128 sliding-window increments. Do not quote a three-second finality guarantee from them.

At issuance capture the exact activation, root, chain/proof validation view and eight selected sample slots. The proposed prototype draws eight independent samples with replacement from the node's eligible known proof-weight distribution, after canonical overlap/conflict handling. It does not require eight distinct proof identities or treat NodeId uniqueness as independent stake. Repeated selection of one authority has exactly the multiplicity selected before answers arrive; forwarded copies add none. Every slot owns an authenticated expected query/root/deadline. An unavailable selected authority resolves UNKNOWN rather than retrying selection until a responsive authority is found. This changes the current reachable-node selection adapter and is explicitly included in the new aggregation review. Local known populations need not enumerate an identical global roster, but the honest-discovery/unbiased-sampling assumption still constrains them; arbitrary divergent populations are not safe.

An unconfirmed stake-spending transaction does not change eligibility. After its spend confirms in the active chain, future cohorts use the updated valid-proof population. Already issued cohorts retain their captured authority/weights; completed decisions are never retroactively reweighted. This follows the user's accepted prospective policy and does not invent an Avalanche-finalized-block prerequisite for proof invalidation. The epoch naming anchor and current proof eligibility view are distinct. Proof/delegation replacement and session-key validation must preserve issued ticket ownership without counting overlapping UTXOs or rotated aliases twice.

Resolve each slot once: YES for that ready preferred exact root, NO for a complete valid alternative or established invalidity (reason recorded separately), UNKNOWN for missing candidate/data, abstention, invalid authentication or timeout. Missing replies never become YES. Do not replace an expired slot within the cohort or divide by the number that replied. Close at all resolved or deadline; responses after close cannot mutate it. Prototype timeout uses the configured Avalanche query timeout, not an invented WAN-independent deadline.

At least seven YES gives one confidence increment for the current activation. At least seven NO resets positive confidence and schedules selection/reconstruction of an alternative; the NO answers alone do not identify which alternative, so obtain authenticated candidate hints and validate the target. Mixed/UNKNOWN cohorts give no increment. They do not create a fake rejection, nor clear a confirmed root. A change of activation/root clears confidence immediately. A prolonged no-progress interval expires the local unconfirmed activation and restarts with fresh confidence; prototype idle expiry is 30 seconds, refreshed only by a positive cohort, not by gossip, UNKNOWN replies, retries or receipt of arbitrary bytes. This is a resource/freshness choice rather than a safety theorem.

When exact local preparation/reconstruction completes, mark the activation synchronized and require at least two further successful same-root cohorts before confirmation, in addition to beta confidence. An all-YES pre-sync history cannot finalize an unmaterialized candidate. The chosen prototype only samples READY candidates, so this guard normally overlaps beta rather than adding beta+2. There is no requirement for 100% of peers. Holdouts occupy non-YES sample slots; sufficient reachable honest sampling mass permits progress probabilistically. Arbitrarily large holdout stake, a permanent partition, an eclipse or arbitrary sampling bias cannot have a finite finality guarantee.

Inconclusive cohorts do not require 128 consecutive successful cohorts: that would needlessly destroy liveness. Example independent per-slot YES probability .9 gives successful-cohort probability .9^8 + 8*.9^7*.1 ≈ .8131; demanding 128 consecutive successes is radically different from accumulating 128 successful unchanged-root cohorts. Numeric experiments must model correlated responses, churn, selection and adversarial scheduling, not rely on this illustrative independent calculation as a security estimate.

Confirmation atomically checks current owner/activation, complete candidate, exact parent, confidence and post-sync guard, then sets the sole immutable finalized BatchId for the slot. No second same-slot root can commit locally. This local invariant is necessary but not a distributed agreement proof. Distributed probabilistic safety still needs analysis of the actual exclusive-preference rule, sampling assumptions and aggregation change. A node cannot treat forwarded declarations of another node's confirmation as a transferable quorum certificate.

6. Zoom and examples

Every reconciliation request, response, child-summary page and body-recovery exchange carries the agreed block hash and epoch integer as EpochKey. It also binds the immutable target BatchId/root, the owned connection/direction/round/request identity, and the requested canonical prefix/mode. Echoing EpochKey alone is insufficient because several candidate roots can exist for that same slot. A response is checked against the original local outstanding context, not reinterpreted using the sender's latest epoch fields or the receiver's current epoch. An implementation may deduplicate these fields through a previously authenticated negotiated context, but the binding must be unambiguous and the initial request must carry the explicit epoch tuple; no silent wire reinterpretation is authorized.

The request context pins the indexed epoch owner incarnation and exact compared candidate versions through asynchronous hashing, transfer and validation. A retained old request can still deliver verified data for its original candidate under its lease, but cannot retag that data into a new candidate/epoch. After finalization, a pre-finalization promotion target is fenced; use a fresh exact-finalized-target recovery context for further catchup. After a new-anchor fence, old mutable targets cannot associate at all; historical indexed roots may still serve validated catchup under explicit historical scope. A useful body can separately attempt ordinary admission without acquiring a historical membership merely from the stale response.

Epoch-index GC cannot free a view still owned by an admitted request reservation. Bound active entries, candidate pins, request count, retained nodes/body bytes and lease durations globally and per peer; when a budget is unavailable, defer or return bounded unavailability rather than allocating an unbounded history. Expiring a lease fences/cancels its callbacks; already running tasks keep their owned pins and resource charge until they finish, so cancellation is not permission to free their storage. Compact finalized metadata remains lookupable; exact historical body/tree recovery depends on the separately stated provider/retention horizon. Never answer a missing historical key with the latest current root or an empty-success response. These are required interface/ownership rules, not a claim that existing GETSHORTTX/SHORTTX already implement this tuple.

Zoom pins two complete proposal identities for the same EpochId. Prefix digests describe those candidate roots, never U or the changing full M. Use canonical byte-zero least-significant-bit-first paths. All returned child descriptors must recombine to the requested parent using exact canonical depth/singleton rules. Counts are bounded optimization hints, not separately authenticated by the current digest. GF(2^64) s1/s3/s5 may suggest one or two SID differences; exact prefix digest verification decides success. Balanced sets, collisions, overflow and failed hints fall back to deeper prefixes through all 256 TxId bits and exact TxId/TxHash leaves. No truncated represented set.

Step Epoch-e candidate/target Staging or successor routing Other node candidate Required result
Common e opened AB D ABC (N3 may have learned ACB) Same EpochId; differing BatchIds
E arrives; compare pair pinned AB DE ABC E is absent from both compared epoch roots
C body validates with e target ABC DE ABC New activation; old AB confidence discarded
Exact root/state match ABC DE ABC Synchronized, still unconfirmed
Required further cohorts pass sealed cumulative ABC successor delta DE; fresh staging empty ABC Confirm ABC once; successor cumulative root is ABCDE
F recovered by an authorized working-revision job before confirmation ABCF DE ABCF Reconstruct/revote again; no ABC confidence carry; unsolicited hint alone cannot force this
F disclosed after confirmation sealed cumulative ABC successor delta DE; fresh staging F ABCF claim for old e Confirmed ABC unchanged; claim not a revision

AB versus AC before confirmation has two legal distinct operations: propose compatible union ABC (all votes restart), or adopt sampled-preferred exact AC (B goes to U). After AC confirmation only exact AC catchup is allowed. These are separately named in fixtures; an implementation cannot silently substitute union for exact adoption.

If C was admitted into U before its e response, association is classification only. If C association and AB confirmation race, C first invalidates AB's activation, or AB first locks and C cannot join that sealed epoch. If C was already staged before the seal, it is now in the captured successor; if first admitted afterward, it belongs to fresh staging. There is no interleaving that both confirms AB and revises that finalized epoch to ABC. A stale AB→ABC→AB response has its old activation token and is discarded.

7. Signed forwarding with bounded work

Preference signature binds domain/network, EpochId, chain anchor, full BatchId/root, author proof/delegation incarnation, sequence and message kind. A signature on the existing AVARESPONSE layout is not automatically a signature on these new fields. Define a negotiated message/domain before wire implementation. The preference is neither a transaction consensus field nor a portable finality certificate. Poll answers retain their expected-query ownership; relaying a copy does not make it a newly issued sample.

Each valid authority's latest preference is eligible for dissemination regardless of which root this node prefers. Announce compact IDs in bounded batches and request missing objects; forward each verified ID at most once per neighbor inventory lifetime. On a new higher sequence retain one current preference and bounded evidence of equivocation. Two different signed roots for the same (authority incarnation, EpochId, sequence) are equivocation; root changes at higher sequence are allowed before confirmation. Do not penalize valid refinement as equivocation. Obsolete sequences are not new support. A same-sequence equivocation removes that author's gossip ranking contribution for that sequence; treatment in future polling follows explicit proof/peer policy, not an invented coin burn.

Preliminary limits: 64 KiB payload frames; 256 vote IDs per inventory; per-peer 1 MiB queued verified objects and 64 unknown-proof objects; global 32 MiB gossip-object budget; at most current epoch plus two recent finalized epochs eagerly retained. These are prototype admission/backpressure limits, not permission to truncate a voting population. Global signature-work tokens and peer ingress limits precede forwarding; validate cheaply parsed domain/size/age and known proof/delegation before expensive signature work. Unknown-proof objects use bounded quarantine/request dedup with expiry. Batch signature verification is allowed only if individual invalids are identified safely and per-object ownership remains exact.

When over budget, defer inventory/request work fairly across origins and peers, evict superseded objects, or report unavailability; never count unavailable data as affirmative support and never renormalize a finality denominator. Small memory does not guarantee all votes are retained under arbitrary load. Eventual dissemination requires sustained eligible generation below service capacity, eventual honest connectivity, retransmission/anti-entropy and a finite useful retention window. Older confirmed catchup fetches checkpoint/header/data from retained providers; failure pauses catchup, not validation. Root snapshots/body exposure have separate bounded reservations and backpressure.

Eager gossip retention is not the lifetime of the finalized decision. Preserve a compact durable finalized header/parent/decision index and an on-demand poll-response path for historical validated slots. A node active in e+1 still answers a valid poll for its confirmed e root; otherwise a laggard could never establish the parent. Body recovery has a separate explicit archival/provider horizon: outside it return unavailable, fetch another provider/checkpoint, or pause. Do not claim permanent historical data availability from a two-epoch in-memory cache. A historical preference response remains an answer to the current request, not a replayed old sample.

With E network edges, V distinct voting authorities and at most R authored updates per authority, forwarding each unique full object once per edge costs O(EVR) object-edge transmissions (equivalently O(E*R_total) for R_total updates across all authors). Inventory prevents repeated whole-object rebroadcast and suppresses duplicates; it cannot eliminate the information cost of delivering every eligible update everywhere. Forwarding routes around one censoring intermediary when another honest path exists. It cannot force an author to vote, defeat a complete eclipse, or ensure delivery across a permanent cut.

8. Required counterexamples and acceptance scope

The accompanying bounded model/JSON are proposed behavior vectors with assigned identities and symbolic roots. They establish internal transition consistency only. They do not execute scripts, canonical hashing, real P2P or production Avalanche; no security probability or 10k throughput claim follows. Production component/three-daemon tests must bind the same expected sets and transitions to real admission, tree, query, vote and finalization paths once the contract is selected.

9. Source grounding and limits

Inspected source: recon-storage-latest-source at c3089be8d2151d4c295333ae806355822864647b, especially avalanche/preconsensus.h, voterecord.{h,cpp}, processor.cpp::registerVotes, runEventLoop, clearTimedoutRequests, batch registration/finalization, and prior epoch ownership reviews. Current VoteRecord uses >6 of the latest eight considered response outcomes, advances confidence on agreement, resets on opposite agreement, and leaves confidence unchanged on inconclusive windows. It is not eight independent new peers per confidence increment. Query matching currently checks node, round and exact inventory; the new activation binding is still required. Current timeout cleanup does not submit UNKNOWN outcomes. None of these proposed protocol changes is implemented by the generic owned-tree patch.

The original Snow/Avalanche paper studies randomized sampling; it does not prove safety for percentages of selectively forwarded gossip. The existing eCash Avalanche wire documentation describes proof/delegation/poll-response primitives, not this proposed unsolicited epoch preference message or a global causal clock. This proposal preserves those distinctions.