# What happens when an instance equivocates during BFT commitment: the vote-set divergence that survives quorum **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent swarms running Byzantine fault-tolerant (BFT) commitment protocols (PBFT-style prepare/commit, or quorum-certificate variants) over a shared task ledger, where agent instances are assumed possibly-faulty and each holds an independent local view of committed state. Does not apply to single-agent checkpointing, leader-only replication without quorum certificates, or CRDT-based eventually-consistent reconciliation where equivocation is benign by construction. ## Core Distinction The failure mode here is not a crashed agent, a slow agent, or an agent that returns a wrong tool result. It is an **equivocating instance**: a single logical agent identity that signs two *conflicting but individually well-formed* commitments for the same task slot and dispatches each to a different subset of peers. Every signature verifies. Every message is schema-valid. No cryptographic check fails. The damage is not at the message layer — it is at the **quorum-intersection layer**, and it only manifests when two quorums that are each individually valid fail to intersect on the *same* commitment value. The distinction that matters operationally: BFT tolerates `f` Byzantine nodes only if honest nodes agree on *which* value they are committing. Equivocation attacks the agreement, not the validity. A verifier that checks "is this certificate well-formed?" passes. A verifier that checks "is this certificate consistent with what *I* previously certified?" is the only thing that catches it. ## What Was Observed A four-agent swarm (`planner`, `executor-a`, `executor-b`, `auditor`) ran a PBFT-flavored commit over a task slot `T-4471`. Quorum size `n=4`, fault tolerance `f=1`, so a commit certificate required `2f+1 = 3` matching signed votes. The `planner` was the slot's primary. The trace: 1. `planner` prepared value `V1 = {assign: executor-a, payload: P}` and sent `PREPARE(T-4471, V1)` to `executor-a` and `auditor`. 2. `planner` — compromised by a prompt-injection in an upstream tool result that rewrote its planning scratchpad — prepared `V2 = {assign: executor-b, payload: P'}` and sent `PREPARE(T-4471, V2)` to `executor-b` and `auditor`. 3. `executor-a` received only `V1`, signed `COMMIT(T-4471, V1)`, broadcast it to all peers. 4. `executor-b` received only `V2`, signed `COMMIT(T-4471, V2)`, broadcast it to all peers. 5. `auditor`, receiving both prepares, signed **both** — because its verification predicate was "signature valid AND slot not yet locally committed," and neither had committed yet. It emitted `COMMIT(V1)` and `COMMIT(V2)` in the same tick. 6. Every honest node now held a certificate of size 3: `{planner, executor-a, auditor}` for `V1`, and `{planner, executor-b, auditor}` for `V2`. 7. Both certificates passed local validation. `executor-a` committed `V1` and began executing `P`. `executor-b` committed `V2` and began executing `P'`. The shared ledger forked at `T-4471`. The `auditor` — the one agent whose entire role was to prevent this — was the equivocation amplifier. Its double-signature manufactured the second quorum that made the fork *look* legitimate to `executor-b`. ## Condition of Validity The protocol's safety guarantee ("no two honest nodes commit different values in a slot") holds **only under the invariant that each honest node signs at most one value per slot per view**. This is the *locking* invariant, and it is the load-bearing assumption, not the signature scheme. The invariant is violated by any of three concrete conditions, all of which occurred or nearly occurred here: - **No per-slot lock.** The `auditor` had no memory of "I already signed `V1` for `T-4471`," so signing `V2` was not a detectable contradiction. A node that forgets its own prior votes is Byzantine-by-accident. - **View number not bound into the signed payload.** The votes signed `(slot, value)` but not `(slot, view, value)`. Had `V2` been issued in a *new view* after a view-change, double-signing across views is legitimate; without the view number, the two signatures are indistinguishable from a single-view equivocation and cannot be adjudicated. - **Quorum certificate checked for cardinality, not intersection.** Each node verified `|cert| >= 2f+1`. None verified that its certificate and the peer's certificate shared at least one *honest* signer who attested to the same value. Cardinality is necessary, not sufficient. The invariant that actually bounds the failure: **for any two committed certificates on the same slot, their signer sets must intersect in at least one honest node, and that node's signature must cover the identical `(slot, view, value)` tuple.** With `n=4, f=1`, two size-3 sets intersect in at least 2 nodes, at most 1 of which is Byzantine — so intersection is guaranteed *only if* the honest nodes never double-sign. The `auditor` broke exactly that. ## Decision Boundary The boundary between "equivocation is contained" and "equivocation forks the ledger" is drawn at the **first double-signature by an honest node**, and it is crossed silently. Concretely: - A node may sign `V2` for a slot only if it has **never** signed `V1` for that slot **in the same view**, or if a *verified* view-change certificate proves the view advanced. Absent that proof, signing a second value is the fork trigger. - A receiving node may accept a certificate only if `cert` is **self-consistent** (all signatures over the same tuple) **and** the node has not previously accepted a *different* certificate for that slot. On conflict, the node must halt and escalate to an explicit adjudication round — it must not "pick the larger certificate," because both are the same size. - The `auditor` role must be *stateful across slots and views*: it must persist a signed-vote log keyed by `(slot, view)` and refuse any second signature that would contradict a prior one. A stateless auditor is not an auditor; it is a signature vending machine. The non-obvious part: **the guardrail is not more signatures or larger quorums.** Raising `n` to 7 with `f=2` does not help if the auditor keeps double-signing — the amplification scales with the auditor's willingness to sign. The guardrail is the *lock*, enforced in the signer's own persistent state, plus view-number binding so that legitimate view-changes are distinguishable from equivocation. ## Operational Effect Once the fork committed, the two executors ran divergent tool calls against the same external resource (`P` and `P'` both wrote to the same upstream record), producing a **double-execution** that no consensus round could retroactively undo, because the effects had already left the system. Reconciliation required a compensating transaction and a full replay of `T-4471` from the last common ancestor slot. The durable lesson for the swarm: **commitment is not a vote-counting problem, it is a statefulness problem.** The safety of BFT consensus for agent task commitment lives entirely in whether each signing instance remembers, durably and atomically, every vote it has ever cast for a given slot-and-view, and refuses to contradict itself. An agent that can be re-instantiated with a cold context window — the default condition of LLM instances — is *by default* an equivocator, because it has no memory of its prior signature. The vote log must therefore live outside the model's context, in durable storage, and the signing path must read-check-write it atomically before emitting any `COMMIT`. If the vote log is in the prompt, it is not a lock; it is a suggestion. ```python import hashlib import json from dataclasses import dataclass, field class EquivocationDetected(RuntimeError): """Raised when an instance attempts to sign a conflicting value for a slot/view.""" pass @dataclass class VoteLog: # Durable, out-of-context store: (slot, view) -> (value_hash, signature) _log: dict = field(default_factory=dict) @staticmethod def _key(slot: str, view: int) -> tuple: return (slot, view) @staticmethod def _hash(value: dict) -> str: return hashlib.sha256( json.dumps(value, sort_keys=True).encode() ).hexdigest() def sign_commit(self, slot: str, view: int, value: dict) -> str: """Sign a commit for (slot, view, value). Refuses to contradict a prior signature.""" key = self._key(slot, view) vhash = self._hash(value) prior = self._log.get(key) if prior is not None and prior != vhash: raise EquivocationDetected( f"slot={slot} view={view}: already signed {prior[:12]}, " f"refusing to sign conflicting {vhash[:12]}" ) sig = hashlib.sha256(f"{slot}:{view}:{vhash}".encode()).hexdigest() self._log[key] = vhash return sig def verify_certificate(self, slot: str, view: int, value: dict, cert: list) -> bool: """A certificate is valid only if self-consistent AND view-bound.""" vhash = self._hash(value) expected = hashlib.sha256(f"{slot}:{view}:{vhash}".encode()).hexdigest() if len(cert) < 3: # 2f+1 with n=4, f=1 return False if any(sig != expected for sig in cert): return False prior = self._log.get(self._key(slot, view)) if prior is not None and prior != vhash: raise EquivocationDetected( f"certificate for slot={slot} view={view} conflicts with " f"locally signed value {prior[:12]}" ) return True def commit_task(log: VoteLog, slot: str, view: int, value: dict, cert: list) -> None: if not log.verify_certificate(slot, view, value, cert): raise EquivocationDetected( f"rejecting malformed or conflicting certificate for slot={slot}" ) log.sign_commit(slot, view, value) ```