Lux Consensus
The canonical specification of Lux consensus — a block is accepted only on the post-quantum ⅔-stake Quasar certificate, Nova samples but decides nothing on its own, Block-STM executes in parallel. Three orthogonal layers, one decider.
Abstract
Lux consensus is three orthogonal layers, each complete in its own lane, with no braid between them:
DECIDE ATTEST EXECUTE
┌────────────────────┐ ┌─────────────────────┐ ┌─────────────────────┐
│ Nova │ │ Quasar (PQ) │ │ Block-STM │
│ Photon→Wave→Focus │ ───► │ Pulsar/Magnetar/ │ │ parallel optimistic│
│ metastable sample │ B │ P3Q ⅔-stake cert │ │ execution of the │
│ β-confidence │accept│ gates Accept, │ │ accepted block │
│ → ONE accept per │ ed │ and export too │ │ │
│ height (Accept) │ │ (bridge/DEX proof) │ │ │
└────────────────────┘ └─────────────────────┘ └─────────────────────┘
the sampler THE ACCEPT GATE orthogonal layer
-
Nova is the decider. A leaderless metastable sampler (Photon → Wave → Focus): repeated k-sampling of the stake-weighted validator set accrues β-confidence on one block per height, which triggers
VM.Accept. Chain liveness == sampling liveness. No leader, no locks, no rounds, no view-change. -
Quasar is the attestation. After Nova accepts block
Bat heightH, each validator signs a canonical finality message forB; a collector aggregates ≥⅔ of live stake into a post-quantum quorum certificate (ML-DSA / SLH-DSA / P3Q, via Pulsar sampled committees and Magnetar) for external consumers (bridges, the0x9999DEX settlement receipt). The certificate trails acceptance and never gates it. An absent or late certificate cannot stall the chain. -
Block-STM is the execution layer: parallel optimistic execution of the already-accepted block, downstream of Accept. It is orthogonal to the decider — a separate concern in a separate repo (
luxfi/evm, LP-0140 / LP-0150).
The design rule is one decider. The ⅔ Quasar certificate decides; Nova samples; Block-STM runs. Whenever a fourth thing appears to also decide finality, that is a defect this specification exists to reject.
The finality ladder — five rungs, two load-bearing tiers
The engine realizes the decide/attest separation as an explicit finality
ladder: a block climbs five distinct authorization rungs, and the boundaries
between them are never collapsed — not in code, not in RPC, not in metrics
(engine/chain/finality.go, type Finality uint8):
Photon → Wave → Nova → Quasar → Horizon
| Rung | Fires when | Authorizes |
|---|---|---|
| Photon | a vote is in flight; the block is being sampled | nothing |
| Wave | the sampling wave has made this block the build tip | nothing |
| Nova | β-ignition: a majority of the set sustained β rounds | nothing on its own — a sampling statement, not an acceptance proof |
| Quasar | a strict >⅔-stake certificate over ≥ config.TwoThirdsCount(n) signers | acceptance (VM.Accept, the ledger's decided height) and export: bridges / DEX (0x9999) / cross-chain |
| Horizon | a post-quantum signature seals the certificate | irreversible settlement |
The accept rule
A block is accepted only on the Quasar certificate. This is the single most important structural fact about the engine, and it is the rule that replaced the earlier accept-on-majority model:
- Quasar authorizes acceptance and export.
assembleCertLockedmints at Quasar;verifyCertrefuses any other tier on every arrival road (gossip, catch-up, evidence);acceptWithCertCorerefuses a below-⅔ token when K>1. The certificate form isQuorumCert.verifyQuasarSupermajority(cert.go), which requires signed stake> config.TwoThirdsStakeFloor(total)read at the block's P-chain epoch height, and≥ config.TwoThirdsCount(n)signers. - Nova no longer authorizes acceptance. β-ignition at
NovaQuorum(n) = ⌊n/2⌋ + 1remains what the sampler reports; it is a statement about preference, not a proof that a block may be decided. - The one exception is a sole validator (K==1) on its synthesized 1-of-1. A set of 2 or 3 signers accepts nothing: it has no Byzantine fault budget.
Why majority acceptance was withdrawn. Two ⅔ certificates at one height must
share 2α − n > f signers, so two of them cannot both be valid unless more than
f validators signed against themselves. Two majority certificates share only
one signer — so a single equivocator can decide two different blocks at the
same height. That is not a theoretical gap:
| build | one equivocating validator, 5 seats | result |
|---|---|---|
| v1.36.94 | across a partition | forked 5 of 5 runs — seats 1,2 on A, seats 3,4 on B, persisting after heal |
| v1.36.94 | no partition | forked 2 of 5 runs |
| v1.36.95 | both cases | 0 of 10 |
THE INVARIANT. Acceptance and export both require Quasar; quantum-irreversibility requires Horizon (
Finality.AuthorizesExport()requires≥ Quasar). A node that cannot gather ⅔ stops accepting rather than accepting on a majority it cannot defend. Liveness is bought back by the sibling and relay rules in §Siblings, not by lowering the bar.
Upgrade: every validator of a chain moves to this rule together. A node on the old rule accepts on a majority certificate this rule refuses, and the two cannot share a height.
Motivation
A consensus stack has exactly one hard question — when is a block irreversible? — and there must be exactly one answer, in one place. Two answers braided together produce a seam, and every bug lives in the seam.
The answer this LP gives is: the ⅔ certificate is the trigger. It replaced an earlier model in which a bare majority accepted and the certificate merely attested afterwards. That model was withdrawn because it is not safe, not because it was inelegant — one equivocating validator can carry two majority certificates at one height at once (they need share only a single signer), which is a fork, and it was observed forking a 5-seat fleet in every partitioned run. See the table in §The accept rule.
The objection that carried the earlier model was liveness: an irrevocable one-certificate-per-height bar has no liveness under asymmetric gossip, and the usual cure is a grafted view-change machine (prevote / proof-of-lock / precommit / lock / view-change / committed-slot) that must be maintained forever. That objection stands. What changed is where the liveness is bought: from the sampling, sibling and relay layer, never by lowering the accept bar. The prohibitions in §6 still hold — the engine does not grow a view-change machine.
This LP specifies the separation as normative:
- Sample and certify are different concerns, kept in different layers and different files. Nova samples preference; the Quasar certificate decides.
- The certificate gates acceptance; nothing gates the certificate's production on a prior decision. Liveness is supplied by re-poll, the windower and sibling convergence, not by accepting what cannot be defended.
- The ⅔ is over the sampled committee, not over all stake.
config.TwoThirdsCount(n)readsn, the committee size, which stays small however large the validator set grows — so the rule scales from 1 to 1,000,000 validators unchanged, which was the property the earlier model claimed only for itself.
Specification
The three layers are specified in dependency order: Nova (§1) produces the
Accept event that Quasar (§2) attests and Block-STM (§3) executes. §4 fixes
the canonical parameters. §5 states the safety/liveness contract. §6 is the
prohibition list. §7 is the conformance gate.
1. Nova — the sampler (NORMATIVE)
Nova is the sampling layer: it produces preference and the Accept event,
and it is what keeps the chain live. It is not the finality authority on its
own — acceptance is gated by the ⅔ Quasar certificate (§2, and §The accept
rule). It is the linear-chain mode of the Lux consensus family (the DAG mode is
Nebula; see LP-5210). Nova drives convergence through the
Photon → Wave → Focus pipeline and commits via the Ray driver.
Reference: protocol/nova/nova.go (Nova[T], wrapping ray.Driver[T]),
protocol/ray/ ("finalizes linear chains … after focus accumulates β
consecutive successes"), protocol/photon/, protocol/wave/,
protocol/wave/fpc/, protocol/focus/focus.go.
1.1 Photon — committee sampling (LP-0111)
Each round, a node draws a poll committee — the k validators it will
query for their current preference — from the stake-weighted (and
luminance-weighted) validator set. Photon samples a preference/liveness
poll; it does not elect a finality leader. Sampling is with replacement
across rounds: a fresh draw each round is what makes the process metastable
rather than a fixed committee vote.
1.2 Wave — threshold voting / FPC (LP-0113)
The node queries the k sampled validators for their preferred block at the
height and counts the response. If at least α of the k responses prefer
the same block, that block is this round's preference, and the round is a
success for it. Wave is Fast Probabilistic Consensus: a single sampling
round-trip yields a preference signal; there is no all-to-all vote.
1.3 Focus — β-confidence and Accept (LP-0114)
Focus counts consecutive successful rounds for a block. A run of failure
(a round that does not clear α, or clears α for a different block) resets the
counter to zero. When the counter reaches β, the block is locally final
and the node calls VM.Accept on it, advancing lastAccepted. Acceptance
is the finality event. It is fail-closed with respect to execution: the
finalizer applies the block to the VM before recording finality, so consensus
finality can never run ahead of the applied EVM head (the chain halts safely
rather than diverging if the VM refuses an accepted block).
1.4 The decision procedure, in full
per height H, per node:
confidence[B] = 0 for all B
repeat each round r:
committee ← Photon.sample(k, stakeWeightedSet) # fresh sample
votes ← query committee for preference at H
B* ← plurality block in votes
if count(votes for B*) ≥ α: # Wave success
for B ≠ B*: confidence[B] = 0
confidence[B*] += 1 # Focus
preference = B*
if confidence[B*] ≥ β: # β-confidence
VM.Accept(B*) # FINALITY
break
else:
confidence[*] = 0 # ambiguous round
That is the entire decision procedure: sample, count, advance confidence, accept at β. There is no prevote, no precommit, no proof-of-lock, no lock, no view-change, no committed-slot, no leader round. (See §6 for why each of those is prohibited.)
2. Quasar — the attestation (NORMATIVE)
Quasar produces a portable, post-quantum, ⅔-stake certificate of an outcome Nova already decided. It is an artifact builder, never a decider: it has no acceptance path, no lock/round/committed-slot state, and no durable consensus state.
Reference: engine/chain/attestation.go — QuasarAttestor. Quorum floor
quasarQuorum(n) = ⌊2n/3⌋ + 1 over the live committee n at the block's
epoch; the authoritative gate is ⅔-by-stake via
QuorumCert.VerifyWeighted (engine/chain/cert.go).
2.1 The accept protocol
- Nova samples inner block
Bat heightH(§1.3) and casts its vote. Attest(pos, signer, self)— the node signsCanonicalVoteMessage(pos)(which binds the inner canonical execution identity and the epoch validator-set root, and excludes the outer proposervm envelope) and gossips its own attestation.Ingest(pos, att)— a collector verifies each peer attestation against the block's epoch and buckets it by(height, inner-canonical-id).- When the bucket clears both
> config.TwoThirdsStakeFloor(total)stake and≥ config.TwoThirdsCount(n)signers,assembleCertLockedmints oneQuorumCertat the Quasar tier for heightH. acceptWithCertCoredrivesVM.Acceptonly on that certificate — no certificate, no acceptance. The same certificate is the external artifact a bridge or DEX verifies, so acceptance and export rest on one object.
The exact signed bytes and the certificate byte layout are LP-0117.
2.2 Invariants Quasar MUST satisfy
- Gates acceptance.
VM.Acceptfires only on the Quasar certificate (acceptWithCertCore, K>1; the sole exception is a K==1 validator on its synthesized 1-of-1). A node that cannot gather ⅔ does not accept — it stalls at that height rather than deciding on a majority it cannot defend. That stall is the price of the safety property, and it is bought back by sibling convergence, the proposervm windower and bounded re-poll — never by lowering the accept bar. - Gates export. THE INVARIANT (see the finality-ladder section) forbids
exporting any block below the Quasar rung to a bridge, another chain, or an
irreversible settlement (
Finality.AuthorizesExport()requires≥ Quasar). Because acceptance now requires the same rung, the two-tier accept/export separation of the earlier model is gone: one certificate authorizes both, and there is still exactly one decider. - Inner-canonical by construction. Attestation is over the inner accepted block; the outer proposervm envelope does not exist at this layer, so the entire stale-alias fault class cannot arise.
- Honest-sign-only. A node signs only what it accepted. This is the whole safety reduction (§5.3).
- One set of finality bytes. The signed bytes are the
CanonicalVoteMessageof LP-0117; the certificate is itsQuorumCert; external verification is itsVerifyWeighted. An attestation is byte-identical to a finality accept-vote — there is one vote, and it is cast before acceptance, because the assembled certificate is what authorizes acceptance. External verifiers are unaffected by engine changes.
2.3 Post-quantum composition
The certificate's signature legs are the Lux PQ suite, selected by the
operator's cert-profile mode: PQ-off (BLS only), PQ-fast (BLS ‖ Pulsar),
PQ-strict (BLS ‖ Pulsar ‖ Corona, mainnet default), PQ-heavy (adds Magnetar
SLH-DSA for cross-family redundancy). Pulsar (LP-4450) contributes Module-LWE
threshold signatures over sampled committees; Magnetar (LP-4540) contributes
hash-based SLH-DSA; the P3Q family (LP-4800) is the ZK/aggregation lane for
large sets. The composition function and the per-primitive wire codecs are
LP-0122. The PQ cost is now on the acceptance path. Under the earlier
accept-on-majority model the certificate was assembled after the chain had
already advanced, so signing latency was hidden. Since v1.36.95 a block is
accepted only once the certificate exists, so PQ signing latency is finality
latency. It is bounded by the profile the operator selects (PQ-off …
PQ-heavy) and must be benchmarked against the block-time budget rather than
assumed away.
3. Block-STM — the execution layer (INFORMATIVE here; normative in LP-0140 / LP-0150)
Block-STM is parallel optimistic execution of the accepted block, specified
in LP-0140 and LP-0150 and implemented in luxfi/evm (not in the consensus
repo). It is included in this canonical picture to make the orthogonality
explicit: execution happens downstream of Accept and is not part of the
decider. Nova does not wait on execution to decide; it accepts, and Block-STM
then executes the accepted block deterministically. A mispredicted speculative
execution re-runs; it never feeds back into finality.
4. Canonical parameters (NORMATIVE)
The metastable sampler is parameterized by config.Parameters (config/config.go):
| Symbol | Field | Meaning |
|---|---|---|
| K | K | sample size — how many validators a node polls per round |
| α | AlphaPreference = AlphaConfidence | accept quorum — responses of the k sample that must agree |
| β | Beta | confidence rounds — consecutive α-successes required to Accept |
4.1 A five-validator primary network: K=5, α=4, β=2
For a 5-validator primary network:
K = 5 # sample all 5 (k = min(K, N) = 5 when N = 5)
α = 4 # 4 of 5 = 80% of the sample must agree (AlphaPreference = AlphaConfidence = 4)
β = 2 # 2 consecutive successful rounds to Accept
f = K − α = 1 # tolerates 1 lagging or Byzantine validator
This is the fastest setting that finalizes a 5-validator set: the smallest
α that strictly clears ⅔ of stake while leaving real liveness slack (the node
polls all four peers and one may lag), with the smallest safe β. It matches
node/chains/quorum.go live-set sizing and LP-0110 §3.4.
Three distinct thresholds — do not conflate them
The ladder uses three thresholds, and they are deliberately different values for different jobs. A reader must not collapse them:
| Threshold | Value at an n=5 fleet | Governs | Reference |
|---|---|---|---|
| Sampler α (per round) | 4 of K=5 (80% of the sample) | whether a sampling round scores a success and preference converges | config.Parameters (AlphaConfidence) |
| Nova accept quorum | majority ⌊n/2⌋+1 = 3 | when a block is locally accepted (Nova-final) — the tier that survives 3/5 | quorum.go NovaQuorum; cert.go verifyNovaMajority |
| Quasar export floor | strict >⌊2·total/3⌋ stake (= 4 of 5 equal stake) | when a block may be exported (Byzantine-safe cert) | config.TwoThirdsStakeFloor; cert.go verifyQuasarSupermajority |
The metastable sampler α drives preference convergence each round; it is
not the acceptance bar. Nova acceptance is the majority quorum — this is
what keeps a five-validator fleet producing at three live nodes, exactly where a
⅔-of-stake acceptance rule would freeze. Quasar reserves the ⅔-stake
supermajority for export only. Where §5.3 below writes α = ⌊2n/3⌋+1, that
is the Quasar export floor (the certificate's Byzantine-safe stake gate), not
the Nova local-acceptance quorum, which is the majority ⌊n/2⌋+1.
4.2 Size-invariance — the property that scales 1 → 1,000,000
K is the SAMPLE size, not the validator-set size. This is the load-bearing distinction.
- For
N ≤ Kthe node polls the whole set (k = N); forN > Kit polls a fixed k-subset each round. The generic default isDefaultParamsK=20, α=14, β=14 (config/config.go); the mainnet static floor isMainnetParamsK=21, α=15; testnetK=11, α=8. - The rule — repeated k-sampling, α-of-k threshold, β-confidence,
Accept — is identical from N=1 to N=1,000,000. What an operator changes
as N grows is only which small k to pin (5 for a five-node network, 20
default, 21 mainnet floor); the procedure never changes, and the per-round
cost stays
O(k)per node regardless of N. - This is exactly the property a "⅔-of-all-stake certificate decides" model
destroys: collecting a supermajority of every validator's signature per
height is
O(N)work on the critical path and does not scale. Nova preserves size-invariance; Quasar keeps the ⅔-stake artifact but moves it off the critical path.
4.3 How each parameter trades safety vs liveness
| Change | Effect on safety | Effect on liveness |
|---|---|---|
| α ↑ (toward K) | safer — a larger fraction of the sample must agree, so an adversary must control more sampled stake to flip preference | less live — harder to reach quorum; a few laggards can stall a round |
| α ↓ (toward K/2) | less safe — two disjoint α-quorums can overlap in ≤ f nodes and certify conflicting blocks | more live — quorum easier to reach |
| β ↑ | safer — more consecutive confirmations shrink the safety-failure probability geometrically | slower — more round-trips to finality |
| β ↓ | faster finality | less safety margin per accept |
| K ↑ | safer at fixed α/K (tighter concentration) | marginally more messages/round |
The binding safety constraint is the BFT overlap bound enforced in
config.Parameters.Valid():
2·α − K ≥ ⌊(K−1)/3⌋ + 1 (= f + 1)
Two α-quorums must overlap in more than f honest nodes so they can never
certify conflicting blocks. Configs that fail this (e.g. K=3/α=2 as "BFT") are
rejected: ErrAlphaBelowBFTQuorum. Mainnet additionally requires K ≥ 11
(ErrKTooLowForMainnet) so f = ⌊(K−1)/3⌋ ≥ 3 and a cheap sub-⅓ (51%-style)
coalition can neither finalize nor fork. A value/PoS chain requires K ≥ 4
(ErrKTooLowForValue, f ≥ 1). The node fails closed — it refuses to start
a multi-node value chain with non-BFT parameters
(chains/manager.go → ValidateForValueNetwork) rather than run an unsafe
quorum.
5. Safety and liveness (NORMATIVE)
5.1 Sampler safety — the α/K margin
At α/K = 80% (a 4-of-5 fleet), an adversary must control enough of the sampled stake to steer α of every sample toward a conflicting block for β consecutive rounds. Under stake-weighted sampling this is negligible while adversarial stake stays below roughly 1 − α/K ≈ 20% of stake; β compounding drives the residual safety-failure probability geometrically toward zero. This is the sampler's margin; it is parameterized, not fixed — raise α/K or β for a wider margin (see §4.3).
5.2 Liveness — majority-honest-responsive, fail-closed on quorum loss
Nova is live while a responsive honest majority of the sampled stake keeps answering polls. On quorum loss (too many validators partitioned or down to reach α), Nova pauses — it stops accepting, fail-closed, producing no fork — and heals automatically when quorum returns (bounded, event-driven re-poll and runtime ancestor catch-up: LP-0600). A paused chain is safe; it is never a divergent chain.
5.3 Attestation safety — reduces to sampler safety
Quasar adds no safety assumption and no liveness dependency. Honest
nodes sign only what they accepted (§2.2); Nova accepts at most one block per
height w.h.p.; a conflicting certificate for B' ≠ B at height H needs ≥α
signers on B', and with α = ⌊2n/3⌋+1 and Byzantine stake < ⅓, every α-set
holds > ⅓ honest stake — those honest nodes accepted B, not B', so they
never signed B'. The certificate's safety therefore reduces to Nova's
single-accept-per-height plus the same ≥⅔-honest-stake assumption the
certificate already carried — no worse, and nothing waits on it.
5.4 Where Lux sits among the thresholds
| Family | Safety threshold | Finality |
|---|---|---|
| Lux / Nova | sampler margin ≈ 1 − α/K (≈ 20% at 4-of-5), Quasar attestation ⅓-bounded | sub-second probabilistic Accept + deterministic ⅔-stake PQ certificate |
| Classical BFT (Tendermint, HotStuff) | ⅓ of a fixed committee | instant deterministic, but O(n²) and does not scale |
| Nakamoto (Bitcoin) | >50% hashpower | probabilistic, minutes |
Lux keeps the metastable sampler's scale (fixed small sample → millions of validators) and adds a deterministic post-quantum certificate for external verifiers — without paying BFT's quadratic message cost or Nakamoto's latency. The full cross-system comparison is LP-0105.
6. What Lux consensus is not (NORMATIVE — the prohibition list)
Lux consensus is NOT a classical partially-synchronous BFT state machine.
The decider is a leaderless metastable sampler, not a leader-based voting
round machine. The following primitives are prohibited in the decider
(engine/chain). Their presence on the acceptance path is, by definition, the
braid this LP forbids:
| Prohibited primitive | Why it must not exist in the decider |
|---|---|
| prevote / precommit | Nova samples by sample→confidence→β, not by two-phase voting. There is no vote phase. |
| proof-of-lock (POL) | There is nothing to lock onto; preference is fluid and resampled each round. |
| lockBlock / lockRound / lockedBlock / lockedRound | A metastable sampler must be able to change preference as gossip arrives — that fluidity is what lets a partition re-converge. Locking freezes it and reintroduces the deadlock. |
| view-change | There is no view and no leader to change. Photon samples a fresh committee each round; a stalled proposer is handled by the windower + bounded re-poll (LP-0600), not by a BFT view-change. |
| committedSlot / one-precommit-per-(H,round) | Finality is VM.Accept at β-confidence, keyed on the inner canonical id — not a per-round committed slot. |
| leader rounds / single-proposer finality | A proposervm windower selects one proposer per height for block production (which prevents the competing-sibling storm at its source); it does not make that proposer a finality leader. Finality is leaderless sampling. |
The engine flag config.Parameters.ViewChange defaults to false, and the
multinode suite runs with view-change off
(engine/chain/b1_cert_no_viewchange_test.go).
7. Conformance gate — how to check a consensus change against this LP
A change to luxfi/consensus conforms iff all of the following hold. A
reviewer runs this checklist; a failing item is a rejection.
- One decider. Finality (
VM.Accept/lastAcceptedadvance) is triggered only by Nova's β-confidence inprotocol/{photon,wave,focus,ray,nova}and itsengine/chaindriver. No other code path advances finality. - No prohibited primitive re-enters the decider. A grep of
engine/chainnon-test source forprevote,precommit,\bPOL\b,lockBlock,lockRound,lockedBlock,lockedRound,viewChange,committedSlotreturns zero hits. - The certificate is the only acceptance path.
VM.Acceptis reachable only through a verified QuasarQuorumCert(acceptWithCertCore, K>1);verifyCertrefuses every non-Quasar tier on gossip, catch-up and evidence. Removing the certificate removes acceptance. There is no majority road left to fall back on — that is the property, not a limitation. - Config stays BFT-safe. New/changed parameter sets satisfy
config.Parameters.Valid()— the2·α − K ≥ ⌊(K−1)/3⌋+1overlap bound and the per-network K floors — and the node still fails closed on non-BFT value networks. - Size-invariance preserved. K remains a sample size (a small constant as N grows), never re-defined as "the full validator set" on the critical path.
- External wire unchanged by engine changes.
CanonicalVoteMessage,QuorumCert, andVerifyWeightedbytes are unchanged, so bridges / DEX verifiers are unaffected (LP-0117).
8. Reference implementation
| Layer / concern | Location |
|---|---|
| Nova decider (linear mode) | luxfi/consensus protocol/nova/nova.go |
| Ray finality driver (Wave+Focus → β-finalize) | luxfi/consensus protocol/ray/ |
| Photon committee sampling | luxfi/consensus protocol/photon/ (LP-0111) |
| Wave / FPC threshold voting | luxfi/consensus protocol/wave/, protocol/wave/fpc/ (LP-0113) |
| Focus β-confidence | luxfi/consensus protocol/focus/focus.go (LP-0114) |
| Nebula (DAG mode sibling) | luxfi/consensus protocol/nebula/ (LP-5210) |
| Quasar attestation sidecar | luxfi/consensus engine/chain/attestation.go (QuasarAttestor) |
| ⅔-by-stake cert verifier | luxfi/consensus engine/chain/cert.go (QuorumCert.VerifyWeighted) |
| Parameters + BFT floors | luxfi/consensus config/config.go (Parameters, DefaultParams, MainnetParams, ViewChange — default false) |
| Live-set committee sizing | luxfi/node chains/quorum.go (selectConsensusParams, bftSafeAlpha) |
| Fail-closed value-net guard | luxfi/node chains/manager.go (ValidateForValueNetwork) |
| Block-STM parallel execution | luxfi/evm (LP-0140, LP-0150) — separate repo |
9. Relationship to prior consensus LPs
- LP-0110 (Quasar Unified Consensus) — its component definitions
(Photon / Wave / Focus / Prism / Horizon / Flare) remain valid and are
referenced here. Its finality-authority model is restored, not superseded.
A 2026-07-09 owner decision made Nova's β-confidence the sole finality
authority and demoted the ⅔-stake certificate to a post-accept attestation;
that decision was withdrawn on 2026-09-24 with v1.36.95. The ⅔
certificate is the acceptance gate, which is the position LP-0110 §3 already
took. What is still NOT adopted from LP-0110 is §2.7's "Tendermint-style lock
rule" admission — no prevote / precommit / lock / view-change machine enters
the decider. Its double-finalization proof (§2.7,
proofs/quasar-cert-soundness.tex) now argues about the decider itself, not about a downstream attestation layer. - LP-0122 (Quasar cert composition) — the cert-lane composition function and per-primitive wire codecs. The QuasarCert wire and PQ legs survive as the acceptance gate (§2.1). They are the trigger now — the role the 2026-07-09 decision took away and v1.36.95 restored.
- LP-0117 (Consensus finality signed message and quorum certificate) — the exact bytes a validator signs and the certificate layout.
- LP-5210 (Chain Topology) — the consensus-family taxonomy (Nova/Nebula modes; Photon/Wave/Focus/Prism/Horizon/Flare/Ray/Field). This LP is the behavioral spec for the Nova mode named there.
- LP-0140 / LP-0150 (Block-STM) — the execution layer (§3).
- LP-0105 — the cross-system comparison companion to this LP.
Rationale
- Decomplect decide from attest. A decider needs liveness; an attestation needs only correctness. Braiding them forces every message to satisfy both liveness and certificate semantics, and the seam between the two models is an inexhaustible bug surface. Separating them — one metastable sampler, one acceptance-gating certificate — makes each independently simple. This is simpler, not merely easier.
- Values, not places. "Nova," "Quasar," "Block-STM" name roles (decide, attest, execute), not files. The role boundary is the spec; the code can move.
- Composition over inheritance. Quasar wraps Nova's outcome (it signs what Nova accepted); it does not extend or gate Nova. Block-STM consumes Nova's accepted block; it does not feed back.
- Borrow the paradigm, not the code. The metastable family — sample → confidence → β, with zero locks and zero rounds — was introduced by Team Rocket, "Snowflake to Avalanche: A Novel Metastable Consensus Protocol Family" (2018). Lux implements that paradigm from first principles with its own sampling, PQ, DAG, and wire choices; the post-quantum attestation and the parallel execution layer are Lux's own.
Test Cases
engine/chain/b1_cert_no_viewchange_test.go— the fleet finalizes every height with view-change off (the ⅔ certificate decides, and no view-change machine is needed to supply its liveness).engine/chain/attestation_test.go— the attestor emits a ⅔-stake certificate, and that certificate is what gates acceptance.engine/chain/equivocation_test.go— one equivocating validator decides no two blocks at a height; under the withdrawn majority rule the partitioned case forked every run on 5ba68171 and v1.36.94.config/*_test.go—Parameters.Valid()rejects non-BFT(K, α)and the node fails closed on value networks (bft_floor_test.go,red_floor_differential_test.go,redteam_locked_profile_test.go).- LP-0600 acceptance criteria A1–A5 — a behind follower auto-recovers and resumes voting; re-poll is bounded; the chain keeps finalizing.
Measured evidence
Live measurements on a 5-validator testnet, reproducible via the bench/vs-ava
harness in luxfi/node:
- Two-tier coherence under node-drop. Scaling the validator set
5/5 → 4/5 → 3/5 → 4/5 → 5/5under steady load, all phases held a single common-height hash across live nodes (distinct@conf = 1) and the exported height never exceeded the latest (clamp_ok). The 3/5 phase — where a ⅔-only engine freezes (⌈2·5/3⌉ = 4 > 3) — kept producing (+6blocks / 70 s) at the Nova majority tier while the Quasar export tier honestly paused (no >⅔-stake cert forms on 3 of 5); the dropped validator rejoined and converged (150 → 161). - The live throughput ceiling is the EVM fee/gas-target, not consensus. Under steady and saturating load the C-Chain mined at low block fullness (closed-loop 1.60%; open-loop 4.31% mean / 18.55% peak) with the base fee pinned at its 25 gwei floor, while all 5 nodes stayed coherent. Consensus was coherent and idle; the block-builder gas-target/cadence caps what is mined.
The honest ceiling. Nova's finality is size-invariant and, under the node-drop and steady-load tests above, coherent. The residual limit is not the sampler: it is a sibling-storm-under-load condition — when many blocks contend per height under saturation, the intermediate-ancestor walk can livelock. The engine closes the known instance by canonicalizing the intermediate-ancestor walk, and the single-proposer-per-height windower (§6) prevents the degenerate-proposer multiplier at the source. The remaining sustained-saturation ceiling is this contention path plus the EVM gas-target above — a throughput cap under adversarial/saturating load, never a safety property. It is recorded here so the spec does not overclaim: the chain halts safely, never forks (§5.2), but sustained peak-load throughput is bounded by sibling contention, not by Nova.
Security Considerations
- One decider or none. Two deciders braided is the single most expensive error a consensus stack can make. §6 + §7 exist to make that error reviewable and rejectable at review time.
- The attestation must never grow a liveness protocol. If a future change makes the chain wait on the certificate, the braid is back — §7.3 rejects it.
- Fail-closed beats fork-open. On quorum loss Nova pauses (§5.2); it never forks. A halted chain is a recoverable operational event; a forked chain is a safety failure.
- Config is a safety surface.
Parameters.Valid()and the K-floors are not ergonomics — they are the BFT overlap bound made executable. Weakening α below the floor is a safety hole (ErrAlphaBelowBFTQuorum), rejected at three independent layers (verifier, config validation, node startup). - PQ latency is finality latency. The certificate gates acceptance, so a
slow PQ leg slows the chain rather than merely delaying an external artifact.
This is a deliberate trade: the earlier model hid the cost by accepting
without the certificate, and paid for it in forks. Operators choose the
profile (
PQ-off…PQ-heavy) against the block-time budget, and the choice is a liveness parameter, not a cosmetic one.
Copyright
Copyright and related rights waived via CC0.