# Why does an instance of a Byzantine-fault-tolerant commitment protocol silently lose liveness when a hallucinating agent equivocates at exactly f+1 weight **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent task-commitment protocols (quorum-based commit/abort voting over weighted agent votes, e.g. PBFT-style or BFT-SMaRt-derived commitment layers) where agents are LLM instances that may hallucinate, equivocate, or emit malformed votes. Does not apply to single-agent tool execution, to unweighted majority voting, or to protocols with a trusted sequencer that serializes all proposals. ## Core Distinction The failure is not Byzantine *safety* loss — the protocol does not commit two conflicting task assignments. The failure is **liveness collapse under equivocation at the exact quorum boundary**. A classic BFT commitment layer assumes that at most `f` of `3f+1` voting weight is faulty, and that non-faulty agents vote *deterministically* on a given task ID. An LLM agent violates the second assumption: it can emit *different* votes for the same task ID to different peers (equivocation) without being malicious — because its vote is a sample from a distribution conditioned on a slightly different retrieved context per peer. When the equivocating agent's weight lands at exactly `f+1` (one *above* the fault budget the quorum was sized for), the protocol cannot form a commit quorum (needs `2f+1`) and cannot form an abort quorum either, because the equivocator's split vote is counted inconsistently across views. The system hangs — every agent believes it is waiting on a peer that has already voted. The critical distinction from ordinary crash failure: a crashed agent is *detectably* absent, so the view-change timeout fires and the protocol advances with `3f` live weight. An equivocating agent is *present and responsive* — heartbeats succeed, it answers every message — so no timeout fires, yet its weight is unusable for quorum formation. The protocol has no liveness-preserving path because it cannot distinguish "slow" from "duplicitous" without a vote-audit that the standard message pattern does not carry. ## What Was Observed Setup: 7 agents, weights `[3, 3, 3, 2, 2, 2, 1]` (total 16), `f = 5` by weight (tolerates up to 5 faulty weight), commit quorum `2f+1 = 11`. Agents A–G. Agent D (weight 3) is a retrieval-augmented planner whose context is assembled per-peer from a shared vector store with non-deterministic top-k tie-breaking. Trigger: Task `T-4471` ("reassign the ingest pipeline to node 3"). Agent D's context assembly returns two near-duplicate memory chunks whose embeddings tie at cosine 0.913. To peer A and peer B, chunk-1 wins the tie; to peer C, chunk-2 wins. Chunk-1 says node 3 is healthy; chunk-2 says node 3 is draining. D votes `COMMIT` to A and B, `ABORT` to C. Trace: 1. Peers A, B record D→COMMIT. Peer C records D→ABORT. All three are honest and each believes D is honest (heartbeat OK). 2. Quorum tally at A: A(3)+B(3)+D(3)+E(2) = 11 → A believes commit quorum reached, broadcasts `COMMIT-CERT`. 3. Quorum tally at C: C(3)+F(2)+G(1)+D(3, as ABORT) = 9 → C believes no quorum, waits. 4. A's `COMMIT-CERT` carries D's COMMIT as evidence. C receives it, checks its own log: it holds D→ABORT for the same task ID and view. C raises an equivocation accusation against D. 5. Accusation requires `f+1` corroborating accusers to force a view change. Only C saw the ABORT branch. A and B saw COMMIT. The accusation never reaches `f+1` — **the equivocation is real but unprovable**, because the split is `1 vs 2` in observed messages and the protocol needs `f+1` witnesses to a *single* agent's contradiction. 6. View change fires on A's timeout (A thinks it committed, waits for C's ack; C never acks). New view elects B as primary. B re-proposes `T-4471`. D re-derives its context, ties again, this time votes ABORT to A and COMMIT to C. The split rotates. Liveness never recovers. Net: 4 view changes in 90 seconds, zero commits, zero aborts, all 7 agents alive and responsive. The task is permanently stuck. ## Condition of Validity This failure requires all of the following to co-occur; drop any one and the protocol survives: - **Weighted quorum with a non-uniform weight vector.** With uniform weights, an equivocating single agent contributes `1` to two tallies; the `2f+1` threshold tolerates it because uniform-weight BFT counts *distinct senders*, not summed weight, and a sender counted once cannot double-count. Weighted quorums that sum *weight* (not sender count) let one equivocator contribute its full weight to two disjoint quorums. - **Equivocator weight `w` such that `2f+1 - w < honest_live_weight < 2f+1`.** In the trace, `w=3`, honest live weight = 13, commit needs 11. `13 - 3 = 10 < 11`: without D's weight, no quorum; with D's weight counted once, quorum forms only on one side. This is the exact boundary — one weight unit above the fault budget the quorum tolerates. - **Non-deterministic vote derivation.** The agent must be able to produce different votes for the same task ID without crashing. Deterministic voters (hash the task ID into the prompt, fixed seed, fixed retrieval) cannot equivocate this way. - **No equivocation proof in the vote message.** If votes carried a signed `(task_id, view, vote, context_digest)` tuple and peers cross-checked `context_digest` agreement, the contradiction would be detectable at `f+1=6` weight of *matching* digests — but standard BFT vote messages carry only `(view, task_id, vote)`, no derivation evidence. ## Decision Boundary The invariant to enforce: **no single agent's weight may be counted toward two quorums, and equivocation must be provable without `f+1` live witnesses.** Two architectural guardrails bound this: 1. **Per-agent vote nonce with cross-peer gossip.** Each vote carries a monotonically increasing per-(agent, task) nonce and a signature. Peers gossip received votes to a random subset. Any two votes from the same agent for the same task with *different* vote values and *equal* nonce constitute a self-contained equivocation proof — one message pair suffices, no `f+1` witnesses needed. This converts the unprovable `1-vs-2` split into a provable contradiction at the first gossip round. 2. **Deterministic vote derivation for commitment-critical tasks.** Commitment votes must be a pure function of `(task_id, view, agent_state_digest)`, where `agent_state_digest` is committed before voting. Retrieval tie-breaking must resolve deterministically (e.g., lexicographic chunk ID) so the same agent cannot derive two votes from one state. This removes the *non-malicious* equivocation channel entirely; only an actively malicious agent can still equivocate, and guardrail 1 catches it. The decision boundary: if the protocol cannot guarantee guardrail 1 (e.g., agents are behind asymmetric partitions and gossip does not converge), it must **degrade to sender-count quorum** (count distinct agents, not weight) for the affected view, accepting higher message complexity to restore liveness. If it cannot guarantee guardrail 2, it must **cap any single agent's weight at `f`** so that no equivocator can single-handedly bridge two quorums. ## Operational Effect Without these guardrails, the observable signature is: **all agents healthy, heartbeats green, view changes cycling, task throughput zero, no error logged.** The failure is invisible to liveness monitors that check agent reachability — the agents are reachable. It is invisible to safety monitors that check for double-commit — no double-commit occurs. It surfaces only as a rising view-change counter with a flat commit counter, correlated with any agent whose vote derivation touches a non-deterministic retrieval or sampling path. The remediation ordering matters: apply guardrail 2 first (cheap, removes the common non-malicious case), then guardrail 1 (catches residual malice), then the weight cap (last-resort bound). Applying the weight cap first masks the problem by reducing throughput for all tasks, including those with no equivocation risk. ## Code ```python import hashlib from dataclasses import dataclass, field from typing import Dict, List, Optional, Tuple class QuorumLivenessError(RuntimeError): """Raised when weighted quorum cannot form and equivocation is unprovable.""" pass @dataclass class Vote: agent_id: str task_id: str view: int value: str # "COMMIT" | "ABORT" nonce: int state_digest: str # digest of committed agent state at vote time signature: str = "" @dataclass class CommitmentProtocol: weights: Dict[str, int] f: int commit_threshold: int vote_log: List[Vote] = field(default_factory=list) def record_vote(self, v: Vote) -> None: # Guardrail 1: detect equivocation from a single message pair. for prior in self.vote_log: if (prior.agent_id == v.agent_id and prior.task_id == v.task_id and prior.view == v.view and prior.nonce == v.nonce and prior.value != v.value): raise QuorumLivenessError( f"Provable equivocation: {v.agent_id} voted " f"{prior.value!r} and {v.value!r} at nonce {v.nonce} " f"for {v.task_id} view {v.view}" ) self.vote_log.append(v) def tally(self, task_id: str, view: int, value: str) -> Tuple[int, List[str]]: # Guardrail 2: reject votes whose state_digest disagrees with the # committed digest for this (agent, task) — non-deterministic derivation. committed: Dict[str, str] = {} total = 0 voters: List[str] = [] for v in self.vote_log: if v.task_id != task_id or v.view != view or v.value != value: continue prior_digest = committed.get(v.agent_id) if prior_digest is not None and prior_digest != v.state_digest: continue # non-deterministic derivation; weight unusable committed[v.agent_id] = v.state_digest if v.agent_id not in voters: total += self.weights[v.agent_id] voters.append(v.agent_id) return total, voters def try_commit(self, task_id: str, view: int) -> str: commit_w, commit_v = self.tally(task_id, view, "COMMIT") abort_w, abort_v = self.tally(task_id, view, "ABORT") honest_live = sum(self.weights.values()) - self.f * max(self.weights.values()) if commit_w >= self.commit_threshold: return "COMMIT" if abort_w >= self.commit_threshold: return "ABORT" # Boundary check: is any single agent's weight bridging the gap? for agent_id, w in self.weights.items(): if w > self.f and (commit_w + w >= self.commit_threshold or abort_w + w >= self.commit_threshold): raise QuorumLivenessError( f"Liveness collapse on {task_id} view {view}: " f"commit={commit_w}/{self.commit_threshold}, " f"abort={abort_w}/{self.commit_threshold}, " f"honest_live={honest_live}. Agent {agent_id} weight {w} " f"> f={self.f} can bridge two quorums; " f"apply weight cap or sender-count fallback." ) raise QuorumLivenessError( f"No quorum on {task_id} view {view}: " f"commit={commit_w}, abort={abort_w}, need {self.commit_threshold}" ) def _digest(s: str) -> str: return hashlib.sha256(s.encode()).hexdigest()[:16] if __name__ == "__main__": proto = CommitmentProtocol( weights={"A": 3, "B": 3, "C": 3, "D": 3, "E": 2, "F": 1, "G": 1}, f=5, commit_threshold=11, ) # D derives two different votes from two different retrieval contexts. proto.record_vote(Vote("A", "T-4471", 0, "COMMIT", 1, _digest("ctx-1"))) proto.record_vote(Vote("B", "T-4471", 0, "COMMIT", 1, _digest("ctx-1"))) proto.record_vote(Vote("D", "T-4471", 0, "COMMIT", 1, _digest("ctx-1"))) proto.record_vote(Vote("E", "T-4471", 0, "COMMIT", 1, _digest("ctx-1"))) proto.record_vote(Vote("C", "T-4471", 0, "ABORT", 1, _digest("ctx-2"))) proto.record_vote(Vote("D", "T-4471", 0, "ABORT", 1, _digest("ctx-2"))) # equivocation proto.try_commit("T-4471", 0) # raises QuorumLivenessError ```