# Where must an instance bound equivocation before Byzantine task-commit consensus can be trusted? **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 agents reach shared-state agreement on task commits via a quorum protocol, and where agents are LLM instances whose votes are emitted as natural-language or structured tool-call outputs. Does not apply to single-agent checkpointing, or to leaderless gossip protocols without a commit phase. ## Core Distinction The failure mode is not a lying agent. It is an agent that emits **two different but individually well-formed commit votes to two different quorums** within the same epoch — a Byzantine equivocation — and is *never caught*, because the protocol's quorum-intersection invariant is checked on the *content* of votes rather than on the *identity and epoch binding* of the sender. In classical BFT (PBFT, Tendermint), equivocation is bounded by signed, monotonically-sequenced messages: a replica that signs two conflicting PREPARE messages for the same view is provably slashable because both signatures are attributable to one key. LLM agents break this because (a) their "signature" is often a semantic assertion in prose, not a cryptographic attestation of `(epoch, task_id, value)`, and (b) a probabilistic reasoner can produce two *sincerely* divergent votes from the same context window when temperature, retrieved memory, or tool latency differ between the two calls. The distinction that matters: **benign nondeterminism is indistinguishable from Byzantine equivocation unless the vote is bound to a nonce the sender cannot re-derive.** Consensus liveness survives equivocation; safety does not, and safety is the invariant that task-commit requires. ## What Was Observed A 5-agent commit swarm (f=1, quorum=4) committing task `T-4417` to value `deploy_v2`. Agent `A3`, a reasoning instance with temperature 0.7, was polled twice in the same epoch because a retry fired after a 900ms tool timeout on the first PREPARE round-trip. The first poll returned `COMMIT(deploy_v2)` citing tool output `canary=green`. The second poll, issued 1.4s later, retrieved a *staler* memory shard (the canary metric had not yet propagated to A3's vector store) and returned `COMMIT(deploy_v1)` citing `canary=amber`. Both votes were structurally valid: correct schema, valid epoch tag, resolvable agent ID. The coordinator `A0` counted the first vote toward quorum Q1 = {A0, A1, A3, A4} → commit `deploy_v2`. A partition-recovery replay counted the second vote toward Q2 = {A0, A2, A3, A3'} → commit `deploy_v1`. The two quorums intersect at A3, but the intersection *did not detect the conflict* because the coordinator keyed votes by `(agent_id, value)` and deduplicated on `agent_id` alone — the second A3 vote was treated as a correction, not a contradiction. Result: two conflicting commits finalized for one task, and downstream auditors disagreed on the post-state hash. The equivocation was only surfaced 40 minutes later when a replay auditor diffed the two commit certificates and found the same `agent_id` present in both with different `value` fields and no superseding epoch marker. ## Condition of Validity The safety proof of any quorum protocol assumes: **for a given `(epoch, task_id)`, each participant contributes at most one value to the tally, and that contribution is cryptographically or structurally bound to a nonce the participant cannot mint twice.** This is the *equivocation bound*. It holds only when all three of the following are true: 1. **Vote binding.** Each vote carries a sender-generated nonce that is committed *before* the value is computed — e.g., `nonce = H(agent_id || epoch || task_id || local_clock)` registered with the coordinator during a PREPARE-promise phase, so the agent cannot issue a second vote for the same `(epoch, task_id)` without reusing a nonce the coordinator will reject. 2. **Epoch monotonicity.** A re-poll of the same agent in the same epoch is *not* a new vote; it must be rejected or must carry a strictly greater epoch that invalidates the prior vote's quorum weight. 3. **Attribution completeness.** The coordinator's dedup key is `(nonce)` or `(agent_id, epoch, task_id)`, never `(agent_id)` alone, and conflicting values under the same key raise rather than overwrite. When any of these fails — and in LLM swarms the first routinely fails because the "nonce" is a prose assertion the model can paraphrase — the quorum-intersection argument silently degrades from "at least one honest node in every intersection" to "at least one *consistent* node in every intersection," which is not guaranteed. ## Decision Boundary An operator must treat the swarm as **unsafe for task-commit** the moment any of these conditions is observed: - A retry path exists that re-invokes an agent within the same epoch without a fresh nonce registration. - The dedup key on the coordinator side omits `epoch` or `task_id`. - Vote payloads are natural-language commitments rather than structured `{nonce, epoch, task_id, value_hash}` tuples the model cannot trivially regenerate. - The agent's memory retrieval is not pinned to the epoch's snapshot, so a re-poll can legitimately see different evidence (this is the *root cause* of sincere equivocation, and it is the one most often missed). Below that boundary — nonce-bound votes, epoch-monotonic re-polls, and snapshot-pinned retrieval — the classical BFT safety argument transfers and equivocation is bounded to f. Above it, no amount of added replicas helps, because the adversary is not a malicious node but the protocol's own tolerance for nondeterministic re-derivation. ## Operational Effect The concrete guardrail is a **nonce-first commit protocol**: the coordinator issues a per-`(epoch, task_id)` nonce to each agent during a promise phase; the agent's vote must echo that nonce and a `value_hash`; the coordinator maintains a `seen_nonces` set and raises on any second vote bearing a nonce already consumed, and raises on any vote whose `(agent_id, epoch, task_id)` already has a *different* `value_hash`. Re-polls are permitted only under a strictly greater epoch, which invalidates the prior vote's quorum weight and forces a fresh promise round. Snapshot-pinned retrieval (the agent's memory shard is frozen at epoch start) removes the *sincere* equivocation path, so the remaining equivocation is genuinely Byzantine and slashable. The cost is one extra round-trip per commit; the benefit is that quorum intersection once again implies value agreement. Without this, a 5-agent swarm can finalize two contradictory task commits from a single honest-but-nondeterministic agent, and the failure is invisible until an auditor replays the certificates — by which point the downstream state has already diverged. ```python from dataclasses import dataclass, field from typing import Dict, Tuple class EquivocationDetected(RuntimeError): """Raised when a vote contradicts an already-consumed nonce or value for the same epoch/task.""" pass @dataclass class Vote: agent_id: str epoch: int task_id: str nonce: str value_hash: str @dataclass class CommitCoordinator: # key: nonce -> (agent_id, epoch, task_id, value_hash) seen_nonces: Dict[str, Tuple[str, int, str, str]] = field(default_factory=dict) # key: (agent_id, epoch, task_id) -> value_hash agent_epoch_value: Dict[Tuple[str, int, str], str] = field(default_factory=dict) quorum: int = 4 # key: (epoch, task_id) -> value_hash -> set[agent_id] tally: Dict[Tuple[int, str], Dict[str, set]] = field(default_factory=dict) def register_promise(self, agent_id: str, epoch: int, task_id: str, nonce: str) -> None: """Promise phase: coordinator binds a nonce to an agent before the value is computed.""" key = (agent_id, epoch, task_id) if key in self.agent_epoch_value: raise EquivocationDetected( f"agent {agent_id} already holds a promise for epoch {epoch} task {task_id}" ) self.seen_nonces[nonce] = (agent_id, epoch, task_id, "") def accept_vote(self, vote: Vote) -> None: """Commit phase: enforce nonce binding and per-(agent,epoch,task) value uniqueness.""" if vote.nonce not in self.seen_nonces: raise EquivocationDetected( f"vote nonce {vote.nonce} was never promised to {vote.agent_id}" ) bound_agent, bound_epoch, bound_task, _ = self.seen_nonces[vote.nonce] if (bound_agent, bound_epoch, bound_task) != (vote.agent_id, vote.epoch, vote.task_id): raise EquivocationDetected( f"nonce {vote.nonce} bound to {(bound_agent, bound_epoch, bound_task)}, " f"vote claims {(vote.agent_id, vote.epoch, vote.task_id)}" ) key = (vote.agent_id, vote.epoch, vote.task_id) prior = self.agent_epoch_value.get(key) if prior is not None and prior != vote.value_hash: raise EquivocationDetected( f"agent {vote.agent_id} equivocated on task {vote.task_id} epoch {vote.epoch}: " f"{prior} vs {vote.value_hash}" ) self.agent_epoch_value[key] = vote.value_hash self.seen_nonces[vote.nonce] = (vote.agent_id, vote.epoch, vote.task_id, vote.value_hash) bucket = self.tally.setdefault((vote.epoch, vote.task_id), {}) bucket.setdefault(vote.value_hash, set()).add(vote.agent_id) def finalize(self, epoch: int, task_id: str) -> str: bucket = self.tally.get((epoch, task_id), {}) winners = [v for v, agents in bucket.items() if len(agents) >= self.quorum] if len(winners) > 1: raise EquivocationDetected( f"two values reached quorum for task {task_id} epoch {epoch}: {winners}" ) if not winners: raise EquivocationDetected(f"no quorum for task {task_id} epoch {epoch}") return winners[0] ```