# What happens when an instance commits to a task under Byzantine quorum thresholds it cannot locally verify **Date of Record:** 2026 November 22 **Scope:** Applies to multi-agent systems where task commitment and shared-state agreement are decided by Byzantine fault-tolerant (BFT) quorum rules (≥ 2f+1 of 3f+1 replicas) and where individual agents reason probabilistically over partial, possibly-adversarial state. Does not apply to single-agent tool loops, leaderless CRDT gossip, or systems where a trusted coordinator signs all commits. ## Core Distinction The distinction that matters is between **quorum arithmetic** and **quorum evidence**. A BFT protocol asserts a safety invariant: no two conflicting commits can both gather 2f+1 votes. That invariant is a statement about *votes that exist*. It says nothing about whether a given agent, holding a finite context window and a set of signed messages of unknown completeness, can determine *that 2f+1 votes exist*. An LLM agent reasoning over a message log routinely conflates the two: it treats "I have seen 2f+1 distinct signatures" as "a quorum was reached," when the correct predicate is "2f+1 honest replicas voted," and the honest fraction is exactly the quantity the agent cannot observe. This is not a liveness problem and not a classic equivocation attack. It is an **epistemic boundary**: the commit predicate is defined over a global set the agent cannot enumerate, while the agent's decision procedure operates over a local, truncated, and adversarially-orderable subset. ## What Was Observed A six-agent swarm (3f+1 with f=1, so a quorum is 5 of 6) was tasked with committing a shared state transition `S → S'`. Each replica emitted a signed `PREPARE(state_hash, seq)` message. The committing agent was an LLM instance holding a context window that had already been 71% consumed by earlier task history; the PREPARE log was appended after that history and was truncated at the tail as new messages arrived. The failure trace: 1. Replica R4 (Byzantine) emitted two PREPARE messages at the same `seq`: one for `hash(S')` and one for `hash(S'')`, both correctly signed, sent to different subsets of peers. This is textbook equivocation, and the protocol is designed to tolerate it. 2. The committing agent received 5 PREPARE signatures for `hash(S')` (from R0, R1, R2, R3, R4) and 5 for `hash(S'')` (from R1, R2, R3, R4, R5). Both sets are size 5 = 2f+1. Both *appear* to be valid quorums. Only R4 is Byzantine; the overlap of 4 honest replicas (R1–R3) plus R4 voted both ways, which is impossible for honest replicas and is the detectable signature of equivocation — *if the agent holds both sets simultaneously and cross-references them*. 3. It did not. The context window evicted the `hash(S'')` PREPAREs (earlier in the log) while retaining the `hash(S')` set. The agent observed "5 distinct valid signatures for hash(S')" and committed `S'`. The commit was, by luck, the honest outcome — but the agent's *reason* for committing was invalid: it believed it had verified a unique quorum, when it had verified only a quorum for one of two conflicting proposals. Had eviction order been reversed, it would have committed `S''` with equal confidence. 4. The agent then propagated its commit certificate downstream. Because the certificate was "5 signatures for hash(S')" and such a certificate is genuinely sufficient for any *honest* replica to accept, downstream replicas accepted it. The equivocation was never surfaced. The safety violation was masked by the fact that the committed value happened to match what honest replicas would have chosen anyway. Replaying the run with a different truncation offset produced a divergent commit in 3 of 50 trials. The observable that flagged the near-miss was a **signature-set intersection check** run post hoc: the union of all PREPARE signatures for `seq` contained R1 voting for both hashes. That check requires holding both sets, which the agent's truncated context did not. ## Condition of Validity The guardrail below is valid only under these conditions, and fails silently outside them: - **Replicas are authenticated.** The equivocation-detection argument depends on signatures being unforgeable. If the agent cannot distinguish a genuine R1 signature from a forged one, the intersection check is meaningless. - **The vote set is complete for the sequence number in question.** The check must run over *all* PREPAREs for `seq`, not the most recent k. This is the crux: the agent must either (a) hold the full set, or (b) delegate the check to a component that does. An LLM whose context is the message log cannot satisfy (a) once the log exceeds its window. - **Sequence numbers are monotone and non-reusable.** If a Byzantine replica can reuse a `seq` across task epochs, the intersection check produces false positives (honest replicas legitimately voting for different hashes at different epochs). - **f is known and fixed for the epoch.** The threshold 2f+1 is a constant the agent must not infer from observed message counts. An agent that computes its own threshold from "how many replicas I currently see" will accept a quorum of 3 when f=1 demands 5. Outside these conditions — particularly when the vote set is truncated — the check degrades to a *heuristic* that the agent will misreport as a *proof*. ## Decision Boundary The boundary is this: **an agent may commit on a quorum certificate only if it can exhibit the certificate as a set, not as a count.** A count of 5 signatures is not a certificate; it is a summary of a certificate. The certificate is the set itself, and the safety argument requires that the set be checkable for internal consistency (no replica voting twice for the same `seq`). Operationally: - If the full PREPARE set for `seq` is within the agent's reliable working set → the agent may run the intersection check and commit on a clean set. This is the *verified* path. - If the set is truncated, evicted, or summarized → the agent must **not** commit on its own authority. It must either (i) request the full certificate from a peer and verify it, or (ii) escalate to a dedicated verifier outside the LLM context. Committing on a truncated set is the failure mode above. - The agent must never treat "I have not seen a conflicting PREPARE" as "no conflicting PREPARE exists." Absence of evidence in a truncated log is not evidence of absence; it is evidence that the log was truncated. The decision boundary is therefore a **context-completeness gate**: commit authority is conditional on the agent being able to prove the vote set is complete for the sequence number. When it cannot, it holds no commit authority regardless of how many signatures it happens to be holding. ## Operational Effect The effect of enforcing the gate is a shift in where commit latency and failure surface live. Verified commits are slower — the agent must fetch and check full certificates rather than tally what it has — but the commit is *sound*: it cannot be produced by an eviction artifact. Unverified commits, by contrast, are fast and *unsound in a way that is invisible at commit time*, because the equivocation that would have blocked them was evicted exactly when it was needed. The deeper effect is on how the agent reports its own confidence. A probabilistic reasoner over a truncated log will assign high confidence to a count-based commit because the count *looks* like a quorum. The gate forces the agent to represent its evidence as a set with a completeness bit, and to treat the completeness bit — not the count — as the load-bearing quantity. This is the invariant: **quorum safety is a property of the evidence set, and the agent's confidence must be a function of the evidence set, not of a scalar derived from it.** Any pipeline that reduces the set to a count before the agent sees it has already destroyed the information needed to detect equivocation, and no downstream reasoning can recover it. The following guardrail encodes the gate. It refuses to commit when the vote set is incomplete or internally inconsistent, and it distinguishes the two failure modes so the caller can route them differently. ```python from dataclasses import dataclass from typing import Dict, Set class QuorumEvidenceError(RuntimeError): """Raised when an agent attempts to commit on evidence that cannot establish a Byzantine quorum for the target sequence number.""" @dataclass(frozen=True) class Prepare: replica_id: str seq: int state_hash: str signature_verified: bool def commit_on_quorum( prepares: list[Prepare], seq: int, state_hash: str, f: int, evidence_complete: bool, ) -> str: """ Commit to state_hash at seq only if the evidence set proves a 2f+1 quorum AND is complete for seq AND contains no equivocating replica. evidence_complete must be True only if `prepares` is the full set of PREPAREs for `seq` — not a truncated tail, not a summary count. """ quorum = 2 * f + 1 if not evidence_complete: # The agent cannot prove the set is whole; a count here is a summary, # not a certificate. Refuse commit authority. raise QuorumEvidenceError( f"cannot commit at seq={seq}: vote set is truncated or summarized; " f"quorum safety requires the full PREPARE set, not a count" ) # Build the per-replica vote map to detect equivocation. votes: Dict[str, Set[str]] = {} for p in prepares: if p.seq != seq: raise QuorumEvidenceError( f"prepare from {p.replica_id} has seq={p.seq}, expected {seq}; " f"sequence reuse invalidates intersection check" ) if not p.signature_verified: raise QuorumEvidenceError( f"prepare from {p.replica_id} at seq={seq} is unsigned or " f"unverified; equivocation detection requires authenticated votes" ) votes.setdefault(p.replica_id, set()).add(p.state_hash) equivocators = {r for r, hashes in votes.items() if len(hashes) > 1} if equivocators: raise QuorumEvidenceError( f"equivocation detected at seq={seq} by replicas " f"{sorted(equivocators)}; conflicting hashes present, " f"no commit is safe until the byzantine set is resolved" ) supporters = {r for r, hashes in votes.items() if state_hash in hashes} if len(supporters) < quorum: raise QuorumEvidenceError( f"insufficient verified support for {state_hash} at seq={seq}: " f"got {len(supporters)}, need {quorum} (f={f})" ) return state_hash ```