Which invariants prevent quorum equivocation when LLM agents vote on shared state under partial synchrony
**Date of Record:** 2026 December 1 **Scope:** Applies to BFT-style multi-agent commit protocols where N reasoning agents (some Byzantine due to prompt injection, hallucinated tool output, or model drift) propose and vote on shared-state mutations. Does not apply to single-writer systems, leaderless CRDT replication, or quorums whose membership is fixed and cryptographically attested at genesis only.
Core Distinction
The failure that matters is not "a Byzantine agent lies." It is **equivocation across quorum intersection**: a single agent instance signs *different* state-transition votes to two disjoint quorum slices within the same consensus round, so that two conflicting commits each appear to satisfy the 2f+1 threshold. Because LLM agents are non-deterministic and re-prompted on retry, the same agent identity can legitimately produce divergent votes on replay — the equivocation is not malicious intent but *sampling variance masquerading as a protocol violation*. The invariant that must hold is not "honest agents never disagree" (impossible for probabilistic reasoners) but **"no two conflicting commits share a valid quorum certificate, where a certificate binds each vote to a unique (round, view, proposal_hash) tuple and each agent identity contributes at most one vote per tuple."**
The distinction that trips people up: they treat quorum size as the safety property. Quorum *intersection* is the safety property. Two quorums of size 2f+1 out of 3f+1 always intersect in at least f+1 nodes, of which at least one is honest — *only if* no agent votes twice in the same round. The moment a Byzantine (or merely retried-and-resampled) agent contributes to two quorums, the intersection argument collapses and both conflicting states commit.
What Was Observed
A five-agent swarm (f=1, tolerance for one Byzantine) ran a shared-state commit over an MCP transport. Agents A through E proposed state mutations; a proposal needed 4 votes (2f+2 for this configuration). During a network partition between {A,B,C} and {D,E}, agent C — which had buffered a tool-call timeout and re-entered the propose loop — emitted votes for proposal P1 (to slice {A,B,C}) and proposal P2 (to slice {C,D,E}) in the same view number. C was not Byzantine in the adversarial sense; its local context had been re-seeded after an MCP `resources/list` timeout, and the re-prompt produced a different `proposal_hash` for what it believed was the same logical mutation.
Both slices reached their threshold: {A,B,C} committed P1, {C,D,E} committed P2. The shared state store then held two divergent roots with overlapping certificate sets. On heal, the replay reconciler could not determine which root was canonical because both certificates validated under the naive check `count(votes) >= threshold`. The reconciler deadlocked for 41 minutes until an operator manually truncated the log.
The precise trigger: **vote identity was keyed on `(agent_id, proposal_hash)` rather than `(agent_id, view, round, proposal_hash)`.** Because the re-seeded agent produced a different `proposal_hash` for the same logical proposal, the two votes were treated as distinct and both counted. The equivocation detector — which compared `agent_id` across votes — fired no alarm because the hashes differed.
Condition of Validity
The 2f+1 intersection guarantee holds **if and only if** every honest agent contributes at most one vote per `(view, round)` and the certificate verification binds the vote to that tuple. Concretely:
- **Vote uniqueness is scoped to the round, not the proposal.** An agent that votes for P1 in view v round r cannot vote for P2 in the same (v, r) — even if P2 is a "better" proposal it later derived. The agent's own non-determinism is the adversary here.
- **Certificate verification must reject any agent appearing twice** in a single certificate's vote set, regardless of differing `proposal_hash`. This is the equivocation check, and it must run *before* threshold counting, not after.
- **Re-entry after timeout must increment the view or round number.** A re-seeded agent that re-enters the propose loop without a monotonic epoch bump is indistinguishable from an equivocator. The epoch is the agent's only defense against its own amnesia.
The invariant fails silently when any of these is relaxed, because the failure mode is a *valid-looking* certificate, not a malformed message. There is no crash, no signature mismatch, no schema violation — just two certificates that each pass the naive threshold check.
Decision Boundary
The boundary between "safe to commit" and "must halt and reconcile" is whether the certificate carries a **round-scoped, deduplicated vote set**. Operationally:
- If `verify_certificate(cert)` finds any `agent_id` appearing more than once in `cert.votes` for the same `(view, round)`, the certificate is **equivocation-tainted** and must be rejected even if it exceeds threshold. Rejecting a tainted certificate that happens to be the "winning" one is correct: the alternative is committing to a state whose quorum intersection is unproven.
- If two certificates for conflicting `proposal_hash` values both verify under the round-scoped check, this is a **protocol-invariant violation** (not a Byzantine fault to tolerate) and the system must halt — the safety proof has been broken by a bug, not by an adversary, and continuing will compound the divergence.
- If an agent re-enters after timeout without a view bump, it must be **fenced**: its subsequent votes for the current (view, round) are dropped until it observes a view change. Fencing is the amnesia guardrail.
The non-obvious part: **you cannot distinguish a Byzantine equivocator from a re-seeded honest agent at the vote layer.** Both present as "same agent_id, two votes, same round." The protocol must treat them identically — reject the second vote — because the safety argument does not care about intent. This is why fencing on re-entry is mandatory: it converts the honest agent's amnesia into a view change (recoverable) rather than an equivocation (fatal).
Operational Effect
After applying round-scoped vote identity and pre-count deduplication, the same partition scenario produced: C's second vote (for P2) was rejected as a duplicate `agent_id` in `(view, round)`; slice {C,D,E} could not reach threshold; P1 committed alone; on heal, D and E replayed P1 and converged. The reconciler deadlock disappeared because there was only ever one valid certificate.
The cost is liveness under aggressive re-prompting: a re-seeded agent is fenced until view change, which adds one round-trip of latency per recovery. This is the correct trade — safety over liveness — but it must be instrumented, because a model that re-seeds frequently (e.g., under context-window pressure) will thrash the view-change path. Track `fenced_votes / total_votes`; if it exceeds ~5%, the agent's context budget is the real bug, not the consensus layer.
The invariant to carry forward: **quorum safety is intersection safety, intersection safety requires per-round vote uniqueness, and per-round vote uniqueness requires that agent identity be bound to a monotonic epoch that survives re-seeding.** An agent's memory loss is a consensus hazard, not just a quality regression.
class QuorumEquivocationError(RuntimeError):
"""Raised when a quorum certificate contains a duplicate voter for a round,
or when two conflicting certificates both verify — the safety invariant
(unique vote per agent per view/round) has been violated."""
pass
def verify_certificate(cert, threshold):
# cert: {"view": int, "round": int, "proposal_hash": str,
# "votes": [{"agent_id": str, "view": int, "round": int, "proposal_hash": str}]}
seen = set()
for vote in cert["votes"]:
# Bind vote to the certificate's round, not the vote's claimed round.
if (vote["view"], vote["round"]) != (cert["view"], cert["round"]):
raise QuorumEquivocationError(
f"vote from {vote['agent_id']} carries mismatched round "
f"{vote['view']}/{vote['round']} vs cert {cert['view']}/{cert['round']}"
)
key = (vote["agent_id"], cert["view"], cert["round"])
if key in seen:
raise QuorumEquivocationError(
f"agent {vote['agent_id']} voted twice in view {cert['view']} "
f"round {cert['round']} (equivocation or un-fenced re-entry)"
)
seen.add(key)
if len(seen) < threshold:
raise QuorumEquivocationError(
f"certificate has {len(seen)} distinct voters, threshold is {threshold}"
)
return True
def commit(certs, threshold):
# certs: list of certificates for conflicting proposals in the same view/round
validated = [c for c in certs if verify_certificate(c, threshold)]
by_round = {}
for c in validated:
by_round.setdefault((c["view"], c["round"]), []).append(c)
for (view, rnd), group in by_round.items():
hashes = {c["proposal_hash"] for c in group}
if len(hashes) > 1:
# Two conflicting certs both verified in one round => protocol bug, halt.
raise QuorumEquivocationError(
f"conflicting certificates verified in view {view} round {rnd}: "
f"{sorted(hashes)} — safety invariant broken, halting"
)
return validated[0]["proposal_hash"] if validated else None