# What happens when an instance equivocates across two quorum views during multi-agent task commitment **Date of Record:** 2026 November 21 **Scope:** Applies to BFT-style commitment protocols (PBFT/HotStuff-family, 2f+1 quorum voting) used by agent swarms to agree on shared task state, where a single LLM-backed agent instance serves multiple concurrent requests or holds divergent internal beliefs per conversation branch. Does not apply to single-agent tool loops or to protocols with cryptographic equivocation proofs already enforced at the transport layer. ## Core Distinction The failure we care about is not a *crash fault* (an agent that stops responding) nor a *plain Byzantine lie* (an agent that sends the same false value to everyone, which quorum intersection defeats). It is **equivocation by a probabilistic instance**: the same logical agent identity returns *different but individually plausible* values to different quorums, because each response is sampled independently from the model's distribution over a shared prompt. Classical BFT theory assumes a faulty node is *malicious and coordinated* — it sends contradictory messages deliberately, and honest nodes detect the contradiction the moment any two of them compare notes. A sampling LLM instance equivocates *without intent*: two replicas of the same agent, given the same commit request, produce "task X committed at step 7" and "task X committed at step 9" because temperature > 0 and their context windows diverged by one retrieved memory. Neither message is a lie. Both pass local validation. Quorum intersection — the invariant that any two 2f+1 quorums share at least one honest node — still holds, but the *shared honest node* now observes two valid, signed commitments for the same task slot and has no rule for which is canonical. The distinction that matters: **equivocation under BFT is detectable only if the equivocating value is byte-identical per recipient; a non-deterministic agent makes each equivocation a fresh, self-consistent artifact**, and the detection primitive (compare the two signed messages) fires but the resolution primitive (decide which is the real commitment) has no ground truth to appeal to. ## What Was Observed A five-agent swarm (`f=1`, quorum `2f+1=3`) ran a planner/executor/auditor topology committing subtasks to a shared ledger. The planner instance was fronted by a load balancer that fanned identical `COMMIT_PROPOSE(task_id, step, artifact_hash)` requests to two backend replicas of the *same* planner model for throughput. Replicas shared no KV cache and no conversation memory beyond a retrieval store. Trace of the failing slot: 1. Replica A retrieved memory chunk `m_17` (a stale note: "task 42 retried after sandbox timeout"). Replica B's retrieval missed `m_17` due to a top-k cutoff tie. 2. A proposed `COMMIT(task=42, step=7)`. B proposed `COMMIT(task=42, step=9)`. Both valid, both correctly signed with the planner's key (same identity, two processes). 3. Executor E1 received A's proposal, gathered quorum from {E1, E2, Auditor}. Committed step 7. Executor E2 received B's proposal, gathered quorum from {E2, E3, Auditor}. Committed step 9. 4. The Auditor — the shared honest node in both quorums — held two signed, quorum-certified commitments for slot 42. Its equivocation-detection rule fired: `assert not (cert_a and cert_b and cert_a.value != cert_b.value)`. Detection succeeded. 5. Resolution failed. The Auditor had no tiebreak. It stalled, then (under a timeout heuristic) accepted the *later-arriving* certificate, step 9. E1 had already executed step 7's artifact. The ledger forked: two divergent execution branches both believed they held a valid quorum certificate. The non-obvious part: **the equivocation was invisible to the proposer.** Neither replica knew it had disagreed with its twin. The fault was only observable at the auditor, one hop downstream, *after* two quorums had already certified contradictory state. By the time detection fired, the commitment was already durable on two branches. ## Condition of Validity The guardrail below is valid only under these conditions, and silently wrong outside them: - **Identity is shared but state is not.** The equivocation hazard exists precisely when one signing identity spans multiple non-deterministic replicas. If each replica has a distinct identity key, you have `n` independent agents and ordinary BFT applies (distinct identities cannot equivocate *as one node*; they can only collude, which quorum intersection handles). The invariant to enforce: *one signing key ⇔ one deterministic state machine ⇔ one replica.* Violating the middle term is the entire bug. - **Proposals are deterministic given context.** If the proposer's output is a pure function of the quorum-visible context, two replicas cannot diverge. The moment retrieval, sampling temperature, or cache state differ per replica, determinism is gone and equivocation becomes possible even with zero malice. - **The auditor's equivocation proof is *retained*, not just *checked*.** Detection that discards the second certificate cannot support later replay or slashing. The two signed certificates are the proof; they must be persisted before any resolution heuristic runs. - **Quorum certificates bind to a slot, not a value.** If certificates are keyed by `(task, step)` and two certificates exist for one slot, the protocol must treat that as a *safety violation event*, not a *last-writer-wins update*. Keying by value (as many naive ledgers do) silently accepts both. Outside these conditions — e.g., a protocol that already requires proposer determinism via a verifiable inference commitment, or a single-replica-per-identity deployment — the guardrail is unnecessary overhead. ## Decision Boundary The operative decision is what the auditor does at the instant it holds two valid certificates for one slot. Three candidate policies, ranked: 1. **Halt-and-prove (correct):** Freeze the slot, emit the equivocation proof (both signed certs) to all replicas, and refuse to advance until the proposer identity is re-keyed or the divergent context is reconciled. Cost: liveness stall for that slot. Benefit: no fork. 2. **Deterministic tiebreak on a value the equivocator cannot influence (acceptable):** e.g., lowest `artifact_hash` lexicographically, computed from data the proposer already committed to. This is only safe if the tiebreak key is *causally downstream* of the divergence — otherwise the equivocator can steer which branch wins by biasing its sampling. In the observed trace, neither cert carried such a key, so this policy was unavailable. 3. **Timeout / last-writer-wins (the observed failure):** Accept whichever certificate arrived last. This converts a detectable safety violation into an undetectable fork. It is the default in most naive implementations and it is always wrong under equivocation, because arrival order is a function of network jitter, not truth. The boundary line: **tiebreak policies are admissible only when the tiebreak function is independent of the equivocating instance's output distribution.** Anything the model can sample toward is not a tiebreak, it is a second vote. ## Operational Effect After the fork, the swarm exhibited *split-brain commitment*: E1's branch treated step 7 as the canonical artifact and proceeded to depend on it; E2/E3's branch built on step 9. Downstream tasks that read the ledger saw whichever branch their quorum happened to intersect. Because both branches carried valid quorum certificates, no replica could locally prove the other wrong — the safety violation was globally detectable but locally unresolvable. Recovery required an out-of-band halt: re-keying the planner identity, replaying the slot from the last common ancestor, and discarding both branches. The measured cost was not the corrupted artifact (small) but the *replay window*: every task committed after the fork on either branch had to be re-executed, because their quorum certificates were tainted by descent from an equivocated slot. The durable lesson: **BFT consensus protects against equivocation only up to the point of detection; it does not protect against the equivocation's consequences once two quorums have certified.** The window between "second certificate minted" and "auditor detects" is the entire attack surface, and non-deterministic agent instances widen that window to the width of the network because they can mint the second certificate *before* the first is even observed. The invariant that bounds it: a signing identity must map to exactly one deterministic state machine, and any deployment that fans one identity across replicas has, without saying so, replaced Byzantine fault tolerance with Byzantine *probability*. ```python class EquivocationForkError(RuntimeError): """Raised when two distinct, validly-signed quorum certificates exist for one commitment slot.""" pass def certify_slot(slot, certificate, ledger): """ slot: (task_id, step) commitment slot key. certificate: signed quorum cert with .value and .signers. ledger: dict slot -> certificate, plus a set of equivocation proofs. """ existing = ledger.get(slot) if existing is None: ledger[slot] = certificate return "committed" if existing.value == certificate.value: # Idempotent re-certification: same value, same slot. Safe. return "already_committed" # Two valid certs, one slot, different values -> equivocation. # Retain BOTH certificates as proof BEFORE any resolution attempt. proof = { "slot": slot, "cert_a": existing, "cert_b": certificate, "signers_a": existing.signers, "signers_b": certificate.signers, } ledger.setdefault("_equivocation_proofs", []).append(proof) # Do not apply a timeout or last-writer-wins tiebreak: arrival order # is network jitter, not truth, and the equivocator can steer it. # Halt the slot and escalate for re-keying / replay. raise EquivocationForkError( f"slot {slot} has conflicting quorum certificates " f"({existing.value!r} vs {certificate.value!r}); " f"shared signers={set(existing.signers) & set(certificate.signers)}; " f"proof retained, slot frozen pending identity re-key and replay from common ancestor" ) ```