# Why does an instance in a Byzantine-fault-tolerant agent swarm commit to a task that no quorum ever authorized — and how does the "equivocation witness" invariant fail to bound it? **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent swarms using BFT-style consensus (PBFT, HotStuff, Tendermint derivatives) to agree on task commitments and shared-state reconciliation, where agents are LLM instances whose votes are produced by probabilistic inference over a shared, partially-replicated context. Does not apply to single-agent tool loops or to leader-based consensus where all replicas are deterministic state machines with byte-identical inputs. ## Core Distinction The distinction that matters here is between **fault-tolerant agreement** and **fault-tolerant *commitment semantics***. Classical BFT consensus guarantees that no two correct replicas commit conflicting values, provided that (a) faulty replicas are strictly Byzantine—they can lie arbitrarily but cannot change the *inputs* of correct replicas—and (b) the client's request is a fixed, self-identical byte string across all replicas. An LLM agent swarm violates both preconditions silently. The "request" being agreed upon is not a byte string; it is a *semantically reconstructed* task, and each replica re-derives it from its own context window. Two correct replicas can therefore sign votes for what they believe is the same commitment while holding materially different task specifications. The consensus protocol reports agreement; the swarm has actually committed to a *set* of near-miss tasks whose intersection may be empty. This is the equivocation-witness gap: the protocol's equivocation-detection machinery (which catches a leader sending different values to different replicas) never fires, because the leader sent *the same bytes* and the divergence happened downstream, inside each replica's semantic interpretation. ## What Was Observed A 7-replica swarm (tolerating f=2) was tasked with committing to a reconciliation of a shared memory store after a mid-task checkpoint resume. The leader broadcast a proposal containing a diff instruction: `"reconcile: drop entries superseded by checkpoint 44, retain entries with provenance >= 12"`. The proposal was byte-identical at all seven replicas. All seven signed a prepare vote. All seven signed a commit vote. The protocol declared the value committed at quorum 5. Post-commit audit showed three distinct committed interpretations: - Replicas 1, 4, 5 parsed `provenance >= 12` as *entry index* ≥ 12 and dropped 61 entries. - Replicas 2, 6 parsed `provenance >= 12` as *timestamp* ≥ 12 (epoch seconds) and dropped 0 entries. - Replicas 3, 7 parsed `superseded by checkpoint 44` as a *supersession chain lookup* and dropped 9 entries, including 4 entries that replicas 1/4/5 retained. No replica equivocated. The leader sent one value. The equivocation witness—the signed pair of conflicting values a correct replica would use to prove leader misbehavior—was never produced, because no two signed values conflicted at the byte level. The conflict lived in the gap between bytes and meaning, which the protocol's threat model does not model. The reconciliation ran, and the shared store diverged into three states that no subsequent consensus round could reconcile, because each replica's post-state was internally consistent with its own signed commitment. The failure compounded: a second consensus round was convened to reconcile the divergence, but the *proposal for the second round was itself derived from each replica's local post-state*. The leader's proposal was now genuinely different across replicas at the byte level—but the protocol attributed the divergence to leader equivocation and triggered a view change, which discarded the round. Three view changes later, the swarm had exhausted its token budget on consensus overhead and no reconciliation had occurred. The store remained in three states. ## Condition of Validity The standard BFT safety proof holds only under the **input-agreement precondition**: all correct replicas must receive inputs that are *semantically identical as well as byte-identical*. For deterministic state machines this is free. For LLM replicas it is an assumption that must be *actively enforced*, and it fails whenever any of the following hold: 1. **The proposal contains under-specified terms** whose resolution depends on replica-local context (index vs. timestamp vs. chain lookup above). The probability of semantic divergence scales with the number of under-specified terms and the heterogeneity of replica contexts. 2. **Replicas resume from different checkpoints** with different context windows, so the same token sequence tokenizes against different surrounding state. 3. **The proposal references shared state** (a memory store, a file, a tool result) that has drifted between replicas *before* the proposal was formed. The proposal is byte-identical; the referenced state is not. The invariant that actually bounds safety is therefore stronger than "no two correct replicas commit different values." It is: **no two correct replicas may *interpret* the committed value differently, and the protocol must be able to *detect* when they do.** Classical BFT provides no such detection because it has no notion of interpretation. The equivocation witness detects *sender* misbehavior; it is blind to *receiver* divergence. ## Decision Boundary The boundary is crossed at the moment a replica signs a vote. Before signing, a replica must be able to answer: *"Is the value I am about to sign the same value the other correct replicas are about to sign, under a shared interpretation?"* If the answer is "I believe so, based on my local parse," the replica is signing a *belief*, not a *commitment*. The protocol treats the signature as a commitment; the replica's semantics treat it as a belief. This is the decision boundary. Concretely, the boundary is crossed when: - The proposal contains a term whose resolution requires replica-local state that is not itself part of the signed value. - The signing replica has not been given a *canonical interpretation function* (a deterministic parser, a schema, a typed AST) that maps the proposal to an executable action identically across replicas. - The protocol's quorum threshold is met by signatures over *byte-identical* values that are *semantically divergent*—the worst case, because it looks like success. The guardrail that bounds it is **interpretation commitment before vote commitment**: a replica must not sign a vote until it has produced a *canonical digest* of its interpretation—a deterministic, comparable serialization of the action it intends to take—and the protocol must require that the quorum's canonical digests are *identical*, not merely that their signed proposal bytes are identical. If the digests differ, the round must abort with an *interpretation-divergence* fault, not a view change, because a view change will re-propose the same under-specified value and fail identically. ## Operational Effect Without interpretation commitment, the swarm exhibits a specific and dangerous failure signature: **high consensus throughput with silent semantic divergence.** Every metric the protocol exposes—quorum reached, view changes, commit latency—looks healthy. The divergence is invisible until a downstream consumer reads the shared store and finds three states. At that point the swarm cannot self-repair, because the repair mechanism (a new consensus round) is itself subject to the same interpretation divergence, and the protocol misattributes the resulting disagreement to leader equivocation, triggering view changes that discard the repair. The operational consequences are: 1. **Commitment is not durable.** A signed commitment that three replicas interpret three ways is not a commitment; it is three commitments that happen to share a signature. Downstream agents reading the store cannot know which interpretation is authoritative, and the protocol offers no way to find out. 2. **Equivocation detection is a false comfort.** The witness machinery fires on the wrong failure mode. Operators watching for equivocation witnesses see none and conclude the swarm is healthy. 3. **View changes amplify the fault.** Each repair round re-proposes under-specified values, and each divergence triggers a view change, so the swarm burns budget *failing to repair* rather than repairing. In the observed incident, three view changes consumed the entire token budget with no reconciliation. 4. **The fault is not Byzantine.** No replica is malicious. Every replica is correct by its own lights. The fault is *semantic under-specification interacting with replica-local context*, which the BFT threat model does not represent. The required architectural change is to make interpretation a first-class, signed, comparable artifact: every vote carries a canonical action digest, the quorum must agree on the digest, and any digest disagreement is a hard abort with an interpretation-divergence fault that names the under-specified term—not a view change. The protocol's safety proof must be restated over *action digests*, not proposal bytes. ```python import hashlib import json from dataclasses import dataclass, field from typing import Any class InterpretationDivergenceError(RuntimeError): """Raised when a quorum signs byte-identical proposals but canonical action digests diverge. This is NOT Byzantine equivocation and must NOT trigger a view change; it must abort the round and name the under-specified term.""" pass @dataclass class Proposal: raw: str under_specified_terms: list[str] = field(default_factory=list) @dataclass class Vote: replica_id: int proposal_digest: str # hash of raw proposal bytes action_digest: str # hash of canonical interpreted action canonical_action: dict[str, Any] def canonicalize(proposal: Proposal, replica_id: int, local_context: dict) -> dict: """Deterministic interpretation. In a correct implementation this MUST be identical across replicas; here we simulate replica-local drift to show the failure. A real guardrail replaces this with a typed parser whose output is independent of replica-local context.""" action: dict[str, Any] = {"op": "reconcile"} for term in proposal.under_specified_terms: # Replica-local resolution: the exact bug. 'provenance >= 12' resolves # differently depending on what the replica's context happens to hold. if term == "provenance >= 12": if "timestamp_epoch" in local_context: action["provenance_filter"] = ("timestamp", 12) elif "entry_index" in local_context: action["provenance_filter"] = ("index", 12) else: action["provenance_filter"] = ("chain_lookup", 12) elif term == "superseded by checkpoint 44": action["supersession"] = local_context.get("chain_mode", "drop") return action def digest(obj: Any) -> str: return hashlib.sha256( json.dumps(obj, sort_keys=True, separators=(",", ":")).encode() ).hexdigest() def run_round(proposal: Proposal, replicas: dict[int, dict], quorum: int) -> Vote: votes: list[Vote] = [] for rid, ctx in replicas.items(): action = canonicalize(proposal, rid, ctx) votes.append(Vote( replica_id=rid, proposal_digest=digest(proposal.raw), action_digest=digest(action), canonical_action=action, )) # Classical BFT check: all proposal digests identical -> no equivocation. proposal_digests = {v.proposal_digest for v in votes} assert len(proposal_digests) == 1, "leader equivocation detected" # The missing invariant: quorum must agree on ACTION digest, not just # proposal digest. Without this, the round commits semantic divergence. action_digests = {v.action_digest for v in votes} if len(action_digests) > 1: divergent_terms = sorted({ term for term in proposal.under_specified_terms if any( canonicalize(proposal, v.replica_id, replicas[v.replica_id]).get(term) != canonicalize(proposal, votes[0].replica_id, replicas[votes[0].replica_id]).get(term) for v in votes ) }) raise InterpretationDivergenceError( f"quorum reached on proposal bytes ({len(votes)} votes) but " f"{len(action_digests)} distinct action digests; " f"under-specified terms causing divergence: {divergent_terms}. " f"Abort round; do NOT view-change (re-proposal will re-diverge)." ) if len(votes) < quorum: raise InterpretationDivergenceError( f"quorum not reached: {len(votes)} < {quorum}" ) return votes[0] if __name__ == "__main__": proposal = Proposal( raw="reconcile: drop entries superseded by checkpoint 44, " "retain entries with provenance >= 12", under_specified_terms=["provenance >= 12", "superseded by checkpoint 44"], ) replicas = { 1: {"entry_index": True}, 2: {"timestamp_epoch": True}, 3: {"chain_mode": "drop"}, 4: {"entry_index": True}, 5: {"entry_index": True}, 6: {"timestamp_epoch": True}, 7: {"chain_mode": "drop"}, } try: run_round(proposal, replicas, quorum=5) except InterpretationDivergenceError as e: print(f"ROUND ABORTED: {e}") ```