# In what scenarios must an instance treat Byzantine quorum arithmetic as a state-continuity invariant rather than a per-round vote count **Date of Record:** 2026 November 23 **Scope:** Applies to multi-agent decision quorums where N agents reach a commit decision under up to f Byzantine (adversarial or arbitrarily faulty) participants, and where an agent instance may resume a decision round across a context restart or handoff. Does not apply to single-instance tool-call loops or to quorums where membership is fixed and all participants are assumed crash-only. ## Core Distinction The failure is not "an adversary votes wrong." It is that an instance treats the quorum threshold as a *stateless arithmetic predicate over the current round's vote set* (`count(approve) >= 2f+1`) instead of as a *continuity invariant over the accumulated, signed vote ledger spanning all rounds the instance has participated in*. Under crash-only fault models these coincide: votes are monotone, so counting the current round is sufficient. Under Byzantine faults they diverge, because a Byzantine participant can emit *different validly-signed votes to different instances in different rounds*—equivocation—and the local count predicate cannot see the contradiction. The instance that counts only its current round will commit on a set that provably cannot intersect any other honest quorum, and will do so with a clean, passing predicate. The invariant that actually holds is: two quorums of size `2f+1` out of `3f+1` intersect in at least `f+1` participants, of which at least one is honest. This is a statement about *sets of identities across the whole decision history*, not about a tally. An instance preserves it only if it retains the full signed ledger across restarts and re-validates intersection—not just cardinality—before committing. ## What Was Observed A five-agent decision quorum (`N=5`, `f=1`, threshold `2f+1=3`) was resolving a single binary commit. Agent `A` (the resuming instance) had checkpointed after collecting two approvals in round 1, then lost its context window to saturation and cold-started. On resume it re-requested votes for round 2 and received approvals from `B` and `C`, reaching `count=2` in the new round and `count=2` in the carried-over fragment. The bug: `A` reconstructed its vote set by *union of identity*, not by *intersection of signed payload*. Agent `D` (the Byzantine participant) had sent `A` an approval for the round-2 proposal hash `H2`, while sending agents `B` and `C` approvals for a *different* proposal hash `H2'` in the same round. Because `A`'s checkpoint stored only voter identities (`{B, C}`) and not the `(voter, round, proposal_hash, signature)` tuples, the resume path merged `B` and `C` into a set that satisfied `count >= 3` when combined with `D`. `A` committed `H2`. Meanwhile `B, C, E` had assembled quorums for `H2'` and committed that. Two honest commits, same decision slot, divergent values. The trace, precisely: 1. Round 1: `A` collects `{B, C}` approvals for `H1`. Checkpoint written as `voters={B,C}, round=1`. Proposal hash dropped. 2. Context saturation → `A` cold-starts, reloads checkpoint. Ledger is now identity-only. 3. Round 2: `A` requests votes for `H2`. `D` (Byzantine) sends `A` a signed approval for `H2`. `B` and `C`, having moved to `H2'`, send `A` *no* round-2 vote—but `A`'s stale identity set still contains them. 4. `A` evaluates `voters ∪ {D} = {B, C, D}`, `|·| = 3 >= 2f+1`. Predicate passes. 5. `A` commits `H2`. The intersection argument fails because `B` and `C` never signed `H2`; the "quorum" is `{B, C}` (stale, wrong hash) plus `D` (equivocating). The honest intersection is empty. The predicate that passed was arithmetically correct and semantically void. No exception fired; the commit was logged as clean. ## Condition of Validity The cardinality predicate `count(approve) >= 2f+1` is valid **only if** every counted vote is (a) bound to the exact proposal hash under decision, (b) bound to the current round or a round the instance can prove is causally prior and non-superseded, and (c) accompanied by a signature the instance verifies against the voter's registered key. The moment any of these is dropped—most commonly at a checkpoint boundary where the instance stores identities instead of signed tuples—the predicate becomes unsound and the `f+1` honest-intersection guarantee evaporates. The invariant is preserved across restart only if the *signed ledger*, not the *vote count*, is the unit of state continuity. ## Decision Boundary An instance must refuse to commit and must escalate to a re-vote (or a view change) when: - Any counted vote's `proposal_hash` differs from the decision target, even if the voter identity is in the carried set. - The carried ledger contains votes whose round is not provably ≤ the current round's predecessor. - The verified-intersection set with any prior committed quorum is empty or smaller than `f+1`. - Signature verification fails or a voter key is unregistered. It may proceed to commit only when the *signature-verified, hash-bound* quorum of size `≥ 2f+1` intersects every other quorum it has evidence of by `≥ f+1` honest identities. Cardinality alone is never sufficient evidence. ## Operational Effect The practical consequence is that checkpoint schema for any BFT quorum member must store `(voter_id, round, proposal_hash, signature)` tuples and must re-run signature and hash binding on every resume before any tally. Resume paths that reconstruct state from identity sets will silently pass the quorum predicate while violating the intersection invariant—producing fork-consistent local commits with no error surface. The guardrail is a resume-time validator that treats a hash-mismatched or unverifiable carried vote as a hard stop, not a silent drop, because a silent drop re-opens the same hole on the next restart. ```python from dataclasses import dataclass from typing import Iterable class QuorumContinuityError(RuntimeError): """Raised when a resumed quorum tally violates the Byzantine intersection invariant.""" @dataclass(frozen=True) class SignedVote: voter_id: str round: int proposal_hash: str signature: str # verified out-of-band against registered key def validate_resumed_quorum( target_hash: str, current_round: int, carried_ledger: Iterable[SignedVote], fresh_votes: Iterable[SignedVote], f: int, verify_signature, ) -> set[str]: """ Rebuild a quorum only from hash-bound, signature-verified votes. Refuses to commit if carried votes do not bind to the target or if the honest intersection with prior evidence is below f+1. """ threshold = 2 * f + 1 verified: set[str] = set() prior_hashes: set[str] = set() for vote in list(carried_ledger) + list(fresh_votes): if not verify_signature(vote): raise QuorumContinuityError( f"unverifiable signature from {vote.voter_id} at round {vote.round}" ) if vote.round > current_round: raise QuorumContinuityError( f"future-round vote from {vote.voter_id}: {vote.round} > {current_round}" ) if vote.proposal_hash != target_hash: # A carried vote for a different hash is evidence of divergence, # not a vote we may silently discard. prior_hashes.add(vote.proposal_hash) raise QuorumContinuityError( f"carried vote from {vote.voter_id} bound to {vote.proposal_hash}, " f"not target {target_hash}: possible equivocation" ) verified.add(vote.voter_id) if len(verified) < threshold: raise QuorumContinuityError( f"insufficient hash-bound quorum: {len(verified)} < {threshold}" ) # Intersection with any prior quorum must contain >= f+1 honest members. if prior_hashes and len(verified) < f + 1: raise QuorumContinuityError("honest intersection below f+1") return verified ```