# What happens when an instance equivocates across a Byzantine quorum: the commitment-finality split in multi-agent BFT consensus **Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 LLM instances reach shared-state agreement on task commitments via authenticated Byzantine fault-tolerant consensus (PBFT-style or HotStuff-style) and where each instance's "vote" is itself a probabilistic model output. Does not apply to single-agent checkpointing, leader-only replication, or CRDT-based eventual-consistency designs where equivocation has no finality consequence. ## Core Distinction Classical BFT theory assumes a Byzantine node *may* send conflicting messages, and the protocol is safe because quorum intersection (2f+1 of 3f+1) guarantees any two committed values share at least one honest node that would refuse to double-sign. The hidden assumption is that a faulty node is *consistently* faulty: it either lies or it doesn't, but its lie is a stable artifact of the message it emits. That assumption breaks at the LLM layer. An instance does not "send a lie." It *re-samples* its vote on each turn. The same instance, given the same prepare message, can emit `COMMIT(task_17, version=3)` on one forward pass and `COMMIT(task_17, version=4)` on the next, because the sampler is non-deterministic and the two versions differ by a token. This is **equivocation by resampling**, not by malice. The instance is not Byzantine in the classical sense—it is honest but non-deterministic—yet it produces exactly the message pattern a Byzantine node would produce, and the protocol's safety proof cannot distinguish the two. The result is a *commitment-finality split*: two disjoint quorums each believe they have committed a different value for the same task, and neither can tell it was partitioned by a single re-sampling instance. ## What Was Observed A 3f+1 = 7 instance swarm (f=2) committing task-assignment records to a shared ledger. Instance `A4` was the prepare-phase proposer for `task_17`. The protocol required each replica to sign a `PREPARE` with its computed `(task_id, version, digest)`. Trace of the failure: 1. Round 1: `A4` proposes `version=3`. Replicas `A1..A6` each run a local verification prompt and sign. `A2`'s sampler emits `version=3` with digest `d3`. Quorum of 2f+1=5 reached on `(task_17, 3, d3)`. 2. A network retry delivers the *same* prepare message to `A2` again (idempotency not enforced at the transport layer; the MCP server re-sent after a 30s timeout). 3. Round 2: `A2` re-runs its verification prompt. The prompt includes retrieved context that has since drifted (an episodic memory entry about `task_17` was distilled between rounds). `A2` now emits `version=4` with digest `d4`, and signs it. 4. A different quorum of 5 (including `A2`) forms on `(task_17, 4, d4)`. 5. Both quorums satisfy the 2f+1 threshold. Both are "final" under the protocol's local commit rule. The intersection node between the two quorums is `A2` itself. In classical BFT, `A2` would have been caught: an honest node never signs two conflicting values, so the intersection would be empty and the second quorum could not form. Here the intersection is non-empty *and* the node is honest—it simply signed twice with different outputs. The safety proof's contradiction ("the intersection node must have double-signed, contradiction") is not a contradiction at the LLM layer; it is the normal operating mode. Post-mortem replay showed `A2`'s two outputs had token-level logprobs of 0.51 and 0.49 on the `version` field. The vote was a coin flip. The protocol treated a coin flip as a signed commitment. ## Condition of Validity The failure is bounded by a single invariant that the protocol must enforce at the *message* layer, not the *model* layer: > **A replica's signature on a prepare message must be a function of the message's digest alone, not of the replica's current context.** If the signed value can change when the replica's retrieval context, memory state, or sampling seed changes, the replica is equivocation-capable regardless of its honesty, and the quorum-intersection argument is void. Concretely, the protocol is safe only when: - The prepare message includes a `context_digest` covering the exact retrieved-memory snapshot and prompt template used to produce the vote, and - The replica refuses to sign any prepare whose `context_digest` differs from the one it signed previously for the same `(task_id, round)`, and - The transport layer deduplicates by `(task_id, round, context_digest)` before redelivery. Without the third clause, redelivery alone re-triggers sampling. Without the first two, a drifting memory state silently changes the signed value. The invariant is not "the model is deterministic"—that is unachievable. It is "the model's output is *frozen* into a signed artifact at the moment of signing, and the replica is bound to that artifact for the life of the round." ## Decision Boundary The boundary between safe and unsafe operation is the **re-sign window**: the interval during which a replica will accept a re-delivered prepare and re-sample. | Re-sign window | Behavior | Safety | |---|---|---| | Zero (sign-once, cache by `context_digest`) | Replica returns cached signature on redelivery | Safe under classical BFT assumptions | | Bounded by round (re-sign only if `round` advanced) | Replica may re-sample within a round | Unsafe: equivocation possible within round | | Unbounded (re-sign on every delivery) | Replica re-samples on every retry | Catastrophically unsafe: quorum split on any retry | The decision to operate in the middle row is common in practice because it is the default of most RPC frameworks: a timeout triggers a retry, the retry hits a fresh handler, the handler re-runs the model. The boundary condition is that **any retry policy that re-invokes the model is an equivocation oracle** unless the signature is cached before the model call returns and keyed by the full context digest. The guardrail is a sign-once cache with a hard `raise` on digest mismatch, not a retry budget. ## Operational Effect When the invariant holds, the swarm's commitment finality is sound: at most one value per `(task_id, round)` can gather 2f+1 signatures, because the intersection node's cached signature pins it to one digest and it will refuse to sign the conflicting one. The cost is that a replica which *legitimately* needs to re-vote (e.g., its first vote was based on a corrupted retrieval) must force a round advance, which is a visible, auditable event rather than a silent re-sample. When the invariant is violated, the operational effect is not a crash. It is a **silent fork**: two task-assignment records exist, both quorum-certified, and downstream agents that read the ledger by `task_id` get whichever record their read path happens to hit first. The divergence surfaces later as a verification-replay discrepancy—two auditors replaying the same task history reach different commitments—and is typically misdiagnosed as a model hallucination rather than a consensus-layer equivocation. The correct diagnosis is to diff the `context_digest` fields of the two certificates; if they differ, the fork originated at the re-sign window, not at the model. ```python import hashlib from dataclasses import dataclass class EquivocationError(RuntimeError): """Raised when a replica attempts to sign a conflicting prepare for the same round.""" @dataclass(frozen=True) class Prepare: task_id: str round: int version: int context_digest: str def context_digest(prompt_template: str, retrieved_snapshot: str) -> str: h = hashlib.sha256() h.update(prompt_template.encode()) h.update(b"\x00") h.update(retrieved_snapshot.encode()) return h.hexdigest() class SignOnceCache: """Binds a replica to one signature per (task_id, round). Enforces the BFT invariant.""" def __init__(self) -> None: self._signed: dict[tuple[str, int], tuple[str, bytes]] = {} def sign(self, prepare: Prepare, signature_fn) -> bytes: key = (prepare.task_id, prepare.round) prior = self._signed.get(key) if prior is not None: prior_digest, prior_sig = prior if prior_digest != prepare.context_digest: raise EquivocationError( f"replica already signed {key} with context_digest={prior_digest[:12]}, " f"refusing to sign conflicting digest={prepare.context_digest[:12]} " f"(version {prepare.version}); force a round advance instead" ) return prior_sig sig = signature_fn(prepare) self._signed[key] = (prepare.context_digest, sig) return sig def handle_prepare(cache: SignOnceCache, prepare: Prepare, signature_fn) -> bytes: # Transport may redeliver; the cache makes redelivery idempotent and safe. return cache.sign(prepare, signature_fn) ```