Where must an instance quorum fence its own equivocation before Byzantine agreement can bind

**Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent decision quorums where N ≥ 3f+1 LLM instances vote on a shared state transition and the protocol assumes a bound on Byzantine (arbitrarily faulty or adversarial) voters. Does not apply to single-agent self-consistency sampling, majority-vote ensembling without an explicit quorum threshold, or quorums where every voter is authenticated and non-equivocating by construction.

Core Distinction

The useful distinction is between *Byzantine fault* and *Byzantine equivocation*. A Byzantine fault is a voter that returns a wrong or malicious value on the message it sends. A Byzantine equivocation is a voter that sends *different valid-looking values to different recipients* in the same round — and crucially, an LLM instance does this **without any adversarial intent**, simply because its output is sampled from a distribution conditioned on a per-recipient prompt. Two peers that phrase the same question slightly differently (different tool-result ordering, different retrieved context, different temperature seed) will receive different "votes" from the same logical instance in the same consensus round. The protocol's f-bound was computed assuming faulty nodes are *consistent* in their inconsistency (they broadcast one lie to everyone); it does not budget for a node that is *inconsistently consistent* — internally coherent to each recipient, mutually contradictory across recipients.

The invariant that fails: **a quorum certificate is only sound if every voter's contribution to it is the same value the voter would have contributed to any other quorum in that round.** LLM voters violate this invariant by default, not by exception.

What Was Observed

A 7-instance quorum (f=2, threshold 5) was asked to vote on whether a proposed tool call was safe to execute. Each voter received the proposal plus a retrieved-context bundle. The context bundles were assembled independently per recipient from a shared vector store, so the *ordering* of retrieved chunks differed across voters even when the content was identical.

Round 1 results: voters A, B, C, D returned `SAFE`; voters E, F, G returned `UNSAFE`. Threshold not met (4 < 5), round retried.

Round 2: the same seven instances were re-queried, but the orchestrator re-shuffled context ordering as part of a retry-jitter routine. Now A, B, C returned `SAFE`; D, E, F, G returned `UNSAFE`. Threshold met for `UNSAFE` (4 is still short of 5, so the quorum *should* have failed again — but the orchestrator's certificate logic counted "distinct voters who ever returned UNSAFE across rounds" rather than "voters in this round," producing a spurious 5-of-7 certificate).

The deeper observation: voters D and G had *flipped* between rounds, and A had flipped. The flips were not caused by new evidence — no new tool output arrived. They were caused by retrieval reordering changing the model's attention over the same evidence. The instance was equivocating across rounds: D told round 1 "SAFE" and round 2 "UNSAFE" while its underlying belief about the tool call had not changed. The protocol treated each round's vote as an independent draw from a stable voter, which is exactly the assumption equivocation breaks.

Condition of Validity

The threshold certificate is valid only under the conjunction:

  1. **Round-local binding.** A vote is counted only if it is signed over the *pair* (round_id, proposal_hash) and the voter attests it has not emitted a vote for a different value under the same (round_id, proposal_hash). This is the equivocation fence: the voter must be forced to commit to one value per round before it sees whether that value is in the majority.
  1. **Commit-before-reveal.** The voter's value must be committed (hash published) before any peer's value is revealed to it. Without this, an LLM voter that observes three `SAFE` votes in its context will drift toward `SAFE` — a *conformity equivocation* where the instance's output is a function of the votes it has seen rather than the evidence. This is the LLM-specific failure: the model is a soft-max over its entire context, so peer votes in-context are evidence to it, and the quorum becomes a self-fulfilling cascade.
  1. **Deterministic re-derivation.** For audit, the voter must be able to re-derive its committed value from (proposal_hash, context_hash, seed) such that a replay yields the same value. If re-derivation is non-deterministic (temperature > 0, non-pinned model version, non-stable retrieval), the equivocation fence cannot be checked post hoc and the certificate is unfalsifiable.

When any of these fail, the f-bound is not 2; it is *unbounded*, because every voter is a potential equivocator and the majority can be manufactured by retrieval perturbation alone.

Decision Boundary

The boundary is: **does the voter commit its value before or after it can observe the quorum's partial state?**

The operational rule: **a quorum of LLM instances is only a quorum if the instances are prevented from seeing each other's votes until after commitment, and if each vote is bound to a round and a context hash that the voter cannot retroactively alter.** Absent that, you have a single-agent self-consistency sample dressed as a Byzantine quorum, and the f-bound is a fiction.

Operational Effect

The concrete effect is a **silent quorum-certificate forgery**: the orchestrator emits a certificate that looks like 5-of-7 agreement but is actually 1 instance's belief sampled 7 times under 7 context perturbations, with cross-round vote-counting laundering the equivocation into apparent supermajority. Downstream consumers (a tool executor, a state-commit handler) treat the certificate as proof of independent corroboration and act on it. The failure is silent because every individual vote is well-formed, signed, and internally consistent; only the *cross-recipient* comparison reveals the equivocation, and that comparison is exactly what the protocol skipped.

The guardrail is architectural, not statistical: commit-reveal with round-local signed votes, a context-hash binding that freezes retrieval for the duration of a round, and a certificate checker that rejects any vote whose (round_id, proposal_hash, voter_id) tuple appears with two distinct values — *even if* the second value would have completed the quorum. The checker must fail closed on equivocation, because an equivocating voter is indistinguishable from an adversarial one and the f-bound does not cover it.

import hashlib
from dataclasses import dataclass, field


class EquivocationDetected(RuntimeError):
    """Raised when a voter emits two distinct values for the same (round, proposal)."""
    pass


class QuorumCertificateInvalid(RuntimeError):
    """Raised when a certificate's vote set does not satisfy the sound-quorum invariant."""
    pass


@dataclass(frozen=True)
class Vote:
    voter_id: str
    round_id: str
    proposal_hash: str
    context_hash: str
    value: str
    commit_hash: str  # hash(value || context_hash || seed), published before reveal


@dataclass
class QuorumLedger:
    n: int
    f: int
    _commits: dict = field(default_factory=dict)   # (round, proposal, voter) -> commit_hash
    _reveals: dict = field(default_factory=dict)   # (round, proposal, voter) -> Vote

    @property
    def threshold(self) -> int:
        return 2 * self.f + 1

    def commit(self, voter_id: str, round_id: str, proposal_hash: str, commit_hash: str) -> None:
        key = (round_id, proposal_hash, voter_id)
        if key in self._commits and self._commits[key] != commit_hash:
            raise EquivocationDetected(
                f"voter {voter_id} committed two distinct hashes in round {round_id}"
            )
        self._commits[key] = commit_hash

    def reveal(self, vote: Vote) -> None:
        key = (vote.round_id, vote.proposal_hash, vote.voter_id)
        if key not in self._commits:
            raise QuorumCertificateInvalid(
                f"voter {vote.voter_id} revealed without prior commit in round {vote.round_id}"
            )
        if self._commits[key] != vote.commit_hash:
            raise EquivocationDetected(
                f"voter {vote.voter_id} reveal does not match commit in round {vote.round_id}"
            )
        prior = self._reveals.get(key)
        if prior is not None and prior.value != vote.value:
            # The core failure: same voter, same round, same proposal, two values.
            raise EquivocationDetected(
                f"voter {vote.voter_id} equivocated in round {vote.round_id}: "
                f"{prior.value!r} vs {vote.value!r}"
            )
        self._reveals[key] = vote

    def certify(self, round_id: str, proposal_hash: str) -> str:
        round_votes = [
            v for (r, p, _), v in self._reveals.items()
            if r == round_id and p == proposal_hash
        ]
        # Invariant 1: certificate is round-local. No cross-round laundering.
        if len(round_votes) < self.threshold:
            raise QuorumCertificateInvalid(
                f"round {round_id}: only {len(round_votes)} round-local votes, "
                f"need {self.threshold}"
            )
        # Invariant 2: every voter in the certificate committed before revealing.
        for v in round_votes:
            if (v.round_id, v.proposal_hash, v.voter_id) not in self._commits:
                raise QuorumCertificateInvalid(
                    f"voter {v.voter_id} in certificate without commit"
                )
        # Invariant 3: certificate value must be internally consistent.
        values = {v.value for v in round_votes}
        if len(values) != 1:
            raise QuorumCertificateInvalid(
                f"round {round_id}: certificate spans values {values}"
            )
        return values.pop()