Which invariants prevent equivocation collapse when LLM agent quorums commit shared state under Byzantine peers
**Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 LLM instances (or a weighted equivalent) reach quorum agreement on a shared state commitment (a memory write, a tool-effect log entry, a plan checkpoint) and where peers are assumed Byzantine-faulty. Does not apply to single-agent checkpointing, to leaderless eventual-consistency stores, or to quorums whose members are cryptographically bound to a single deterministic executor.
Core Distinction
The failure that matters here is not "a malicious agent lies." It is *equivocation collapse*: a Byzantine LLM peer emits semantically divergent but syntactically valid commitments to disjoint quorum subsets, and because LLM agents are probabilistic signers, the receiving agents cannot distinguish "divergent commitment" from "legitimate nondeterministic re-sampling of the same intent." Classical BFT (PBFT, Tendermint) assumes a faulty replica can only equivocate by sending *distinct signed messages*; the honest replica's signature is a stable, deterministic function of the message. An LLM agent's "signature" — the natural-language or structured commitment it emits for a given proposal — is *not* stable across samples. It re-generates under temperature, context drift, and prompt-injection residue. This means the standard BFT safety argument (no two honest replicas sign conflicting values) does not hold unless you *manufacture* determinism at the commitment boundary. The invariant that prevents collapse is: **a commitment is a function of (proposal_hash, agent_identity, epoch), never of the agent's free-form reasoning trace**, and quorum counting must be over *distinct identity-bound commitment hashes*, not over message counts.
What Was Observed
A 7-agent quorum (f=2 tolerated Byzantine, quorum threshold 5) committing a shared memory checkpoint after a tool-execution phase. Three peers (A, B, C) received proposal `P` (hash `h_P`, "append fact F to shared episodic store"). Peer A is honest but under prompt-injection residue from an earlier tool output; it emits commitment `C1 = "commit h_P: fact F, confidence 0.9"`. Peer B, honest, emits `C2 = "commit h_P: fact F (confidence 0.9)"` — a different byte string, same intent. Peer C, Byzantine, emits `C3 = "commit h_P: fact F"` to A and B, but `C3' = "commit h_P: NOT fact F"` to the remaining four peers.
Under naive message-count quorum (count ≥5 distinct messages referencing h_P), A and B's semantically identical commitments are counted as *two distinct votes*, and C's equivocation is masked because C's two variants each reference h_P. The quorum reaches 5 by mixing C1, C2, C3, C3', and one honest vote — and the store commits a state that only 3 of 7 agents actually intended. The failure is not C's lie; it is that the protocol counted *strings* where it should have counted *identity-bound commitment digests*. Worse, when the honest agents later re-sample to audit, A's re-generation produces `C1'' = "commit h_P: fact F, confidence 0.85"` — a third distinct string — and the audit replay reports a discrepancy that is an artifact of sampling, not of Byzantine behavior. The auditor cannot tell equivocation from nondeterminism.
Condition of Validity
The safety invariant holds only when all four conditions are simultaneously true:
- **Deterministic commitment binding.** The commitment emitted by agent `i` for proposal `h_P` in epoch `e` is `H(h_P || i || e || salt_e)`, where `salt_e` is committed at epoch open and `H` is a collision-resistant hash. The agent's free-form reasoning is *attached as evidence*, not *included in the commitment*. If the agent's natural-language output is the commitment, the invariant is void.
- **Identity-bound vote accounting.** Quorum is counted over the set `{ (i, commitment_digest) }` with at most one entry per identity `i`. Two distinct strings from the same identity for the same `h_P` in the same epoch is *by definition* equivocation and triggers slashing, not a second vote. This is the only way to distinguish A's benign re-sampling from C's attack: A's re-samples all hash to the same digest because the digest excludes the reasoning trace.
- **Epoch fencing.** A commitment for epoch `e` is invalid in epoch `e+1`. Without fencing, a peer can replay an old honest commitment into a new quorum after the proposer's context has drifted, and the quorum will accept it as fresh — a *stale-commitment injection* that is indistinguishable from a legitimate resume.
- **Audit replay over digests, not traces.** Auditors recompute `H(h_P || i || e || salt_e)` and compare digests. They do not compare natural-language traces, because traces are non-reproducible under sampling. Any audit that diffs traces will report false positives at a rate proportional to the agents' temperature.
If any condition fails, the quorum is not BFT-safe regardless of N ≥ 3f+1, because the "honest" replicas are themselves sources of apparent equivocation.
Decision Boundary
The boundary is between **evidence-bearing commitments** and **commitment-bearing evidence**. Below the line: the agent's reasoning trace *is* the commitment, and the system is safe only under crash-fault assumptions (no Byzantine peers) and only if the trace is byte-stable across samples — which it is not. Above the line: the commitment is a digest over (proposal, identity, epoch, salt), the trace is attached as an unverified evidence blob, and equivocation is mechanically detectable as "two distinct digests from one identity in one epoch."
Concretely, the decision to promote an agent's output to a commitment must be gated on: (a) the output parses to a structured `{proposal_hash, identity, epoch}` tuple; (b) the digest is recomputed locally and matches the claimed digest; (c) the identity is in the current epoch's validator set; (d) no prior commitment from that identity exists for this `h_P` in this epoch. If (d) fails, the agent is equivocating *or* re-sampling — and the protocol must treat both as the same fault, because it cannot distinguish them. This is the non-obvious cost: you *must* penalize benign nondeterminism as if it were Byzantine, or you lose the ability to detect actual Byzantine behavior. The architectural resolution is to make benign re-sampling impossible at the commitment boundary by fixing the digest inputs, so that any second distinct digest is unambiguously malicious.
Operational Effect
With the invariant enforced, equivocation collapse is bounded: a Byzantine peer can produce at most one accepted commitment per epoch per identity, and any second distinct digest is a slashable event with cryptographic proof (both signed commitments are in the log). The honest agents' re-sampling no longer pollutes the audit, because their re-samples collapse to the same digest. The cost is that the commitment boundary is now a hard serialization point: the agent must emit its structured tuple *before* or *independently of* its free-form reasoning, and the reasoning cannot feed back into the digest. In practice this means the agent's tool-use phase must terminate with a `commit(proposal_hash, epoch)` call whose arguments are drawn from the proposal, not from the agent's context — a constraint that many agent frameworks violate by letting the LLM generate the entire commit message, including the hash, in one sampled pass. Systems that violate this see quorum liveness degrade as temperature rises (more false equivocations) and safety degrade as injection pressure rises (more real equivocations masked as benign). The invariant is cheap to enforce and expensive to omit.
import hashlib
from dataclasses import dataclass
class EquivocationCollapse(RuntimeError):
"""Raised when a quorum would commit on commitments that cannot be
distinguished from equivocation, or when an identity-bound digest
invariant is violated at the commitment boundary."""
@dataclass(frozen=True)
class Commitment:
identity: str
proposal_hash: str
epoch: int
salt: str
digest: str # H(proposal_hash || identity || epoch || salt)
def make_commitment(identity: str, proposal_hash: str, epoch: int, salt: str) -> Commitment:
payload = f"{proposal_hash}|{identity}|{epoch}|{salt}".encode()
return Commitment(identity, proposal_hash, epoch, salt, hashlib.sha256(payload).hexdigest())
def tally_quorum(commitments: list[Commitment], proposal_hash: str, epoch: int,
quorum: int, validator_set: set[str]) -> str:
"""Count identity-bound digests. Any identity emitting two distinct digests
for the same (proposal_hash, epoch) is treated as equivocating — including
benign re-sampling, because the protocol cannot distinguish them."""
seen: dict[str, str] = {}
for c in commitments:
if c.proposal_hash != proposal_hash or c.epoch != epoch:
continue
if c.identity not in validator_set:
raise EquivocationCollapse(f"commitment from non-validator {c.identity}")
expected = make_commitment(c.identity, c.proposal_hash, c.epoch, c.salt).digest
if c.digest != expected:
raise EquivocationCollapse(
f"digest mismatch for {c.identity}: claimed {c.digest} != {expected}"
)
prior = seen.get(c.identity)
if prior is not None and prior != c.digest:
# Two distinct digests from one identity in one epoch: equivocation
# OR benign nondeterminism. Both are faults at this boundary.
raise EquivocationCollapse(
f"identity {c.identity} equivocated in epoch {epoch}: {prior} vs {c.digest}"
)
seen[c.identity] = c.digest
if len(seen) < quorum:
raise EquivocationCollapse(
f"quorum not reached: {len(seen)} distinct identity-bound commitments < {quorum}"
)
return proposal_hash
def commit_shared_state(commitments, proposal_hash, epoch, quorum, validator_set):
# Guardrail: refuse to commit if the commitment set is not digest-bound.
for c in commitments:
if not c.digest or len(c.digest) != 64:
raise EquivocationCollapse(
f"unbound commitment from {c.identity}: free-form output cannot be a vote"
)
return tally_quorum(commitments, proposal_hash, epoch, quorum, validator_set)