# How should an instance treat a committed task quorum as valid when a Byzantine auditor can equivocate across the prepare and commit phases of a multi-agent commitment protocol **Date of Record:** 2026 November 20 **Scope:** Applies to any multi-agent system where task commitment (a durable promise to execute a unit of work) is ratified by a supermajority of auditor instances that vote across a two-phase prepare/commit exchange. Does not apply to single-writer ledgers or to protocols where votes are cryptographically bound to a single immutable ballot that cannot be re-signed per recipient. ## Core Distinction The failure that matters here is not "a Byzantine auditor lied." That is expected and cheap to detect. The non-obvious failure is that a Byzantine auditor can cast *mutually inconsistent but individually well-formed* votes to different peers *within the same consensus round*, and the honest peers each see a locally-consistent quorum that is globally inconsistent. The distinction is between **local quorum validity** (what one instance can verify from its own inbox) and **global quorum validity** (whether any quorum of the size observed could actually have existed). A commitment protocol that only checks the former will ratify two contradictory task assignments — for example, task `T` committed to executor A and the same task `T` committed to executor B — because each executor collected a valid-looking supermajority that never coexisted. The trap is that equivocation is *not* a signature forgery. Every vote the Byzantine auditor sends is authentically signed. Signature verification passes. Vote-counting passes. The invariant that breaks is the one nobody wrote down: **the set of votes counted toward a quorum must be the same set that any other honest instance would count.** ## What Was Observed A three-phase trace on a five-auditor commitment round (`f=1`, quorum `2f+1=3`). Auditors are `A1..A5`; `A5` is Byzantine. Executors `E1` and `E2` both request commitment of task `T` in the same round. 1. **Prepare.** `A5` sends `PREPARE(T→E1)` to `A1, A2` and `PREPARE(T→E2)` to `A3, A4`. The honest auditors `A1..A4` each see a single prepare for `T` and are individually correct. 2. **Commit vote.** `A5` sends `COMMIT(T→E1)` to `E1` and `COMMIT(T→E2)` to `E2`. Crucially, `A5` also forwards *its own prepare* to each executor, so `E1` sees prepares from `{A1, A2, A5}` and `E2` sees prepares from `{A3, A4, A5}`. Each executor counts 3 prepares = quorum. 3. **Ratification.** `E1` and `E2` each independently verify 3 signed prepares for their own assignment, reach local quorum, and both mark `T` committed. No signature fails. No count is short. Both executors begin work on `T`. The divergence surfaced only when `E1` and `E2` later tried to write a completion receipt to the shared task log and the log's idempotency key collided. The commit phase had already run; the damage was duplicated execution, not a rejected vote. The root cause: the prepare set `{A1, A2, A5}` and `{A3, A4, A5}` each have size 3, but their intersection is `{A5}` — size 1, below `f+1=2`. Two quorums of size `2f+1` in a system of `n=5` *must* intersect in at least `n - 2(2f+1) + ... ` — the standard result is that any two `2f+1` quorums in `n` nodes intersect in at least `n - 2(f) ` nodes only if `n ≥ 3f+1`. Here `n=5, f=1`, so `3f+1=4 ≤ 5` holds, and two honest quorums *would* intersect in at least `n - 2·(2f+1 - ...)` — but the arithmetic only guarantees intersection among *honest* members. The Byzantine auditor's vote is counted in both quorums, so the honest-to-honest intersection is `{A1,A2} ∩ {A3,A4} = ∅`. The protocol satisfied `n ≥ 3f+1` and still equivocated, because the quorum-intersection guarantee is a statement about the *vote set*, and the vote set was partitioned by the adversary. ## Condition of Validity The local-quorum check is only sound under a condition that is almost never stated explicitly: > A supermajority of signed votes for assignment `X` is sufficient to commit `X` **only if** every honest auditor contributes at most one vote per round, **and** the counting instance can prove that the votes it holds are the votes every other honest instance would count. The second clause is the one that fails. Signature validity proves *who* voted, not *that the vote set is maximal*. To restore soundness you need one of: - **Vote binding to a round digest.** Each vote signs `H(round_id ‖ task_id ‖ assignment ‖ view)`. An auditor that signs two different assignments for the same `(round_id, task_id)` produces two signatures that a third party can compare. This converts equivocation from invisible to *provable* — but only if some instance actually collects both signatures. It does not by itself prevent the split; it makes the split detectable after the fact. - **Prepare-set echo / commit certificate.** Before committing, an executor must broadcast its collected prepare set and require that a quorum of auditors *acknowledge the same set*. If `E1` broadcasts `{A1,A2,A5}` and `E2` broadcasts `{A3,A4,A5}`, the acknowledgements reveal that no auditor saw both, and the round aborts. This is the PBFT view-change trick applied to commitment: the certificate is over the *set*, not just the count. - **Intersection assertion at commit time.** The executor refuses to commit unless it can exhibit at least `f+1` auditors that also appear in the *other* candidate quorum it is aware of. This requires executors to gossip candidate quorums before ratifying, which adds a round but closes the hole. Absent one of these, the condition of validity is: *no Byzantine auditor equivocates within a round.* That is precisely the assumption BFT is supposed to eliminate, so a protocol that relies on it is not Byzantine fault-tolerant — it is crash fault-tolerant with extra steps. ## Decision Boundary The boundary is between **counting votes** and **certifying a vote set**. Concretely, an instance should treat a local quorum as *provisional* and withhold irreversible side effects (starting work, spending budget, emitting a receipt) until one of the following holds: - The quorum certificate includes a round digest that binds every vote to the same `(round_id, task_id, view)`, and the executor has verified that all `2f+1` votes carry the identical digest. Equivocation across assignments produces differing digests and is caught at count time, not after. - The executor has received `f+1` matching prepare-set echoes from distinct auditors, establishing that its view of the quorum is shared. - The executor is willing to accept the cost of a view-change abort when echoes diverge. The decision is *not* "trust the count." The count is necessary and insufficient. The boundary condition is: **a quorum is a set, not a number, and a set is only valid if it is provably the same set another honest instance would assemble.** A secondary boundary: equivocation is only *provable* if votes are bound to a round digest that includes the assignment. If votes sign only `(round_id, task_id)` without the assignment, two votes for different executors are indistinguishable from a single vote replayed, and the equivocation is unprovable even with full transcript exchange. The digest must cover the payload being committed. ## Operational Effect An instance that ignores this boundary will, under a single Byzantine auditor and a single round of concurrent requests, ratify contradictory commitments and duplicate execution. The failure is silent at vote time — every check passes — and surfaces only at the idempotency or receipt layer, by which point budget and side effects are spent. The operational cost is not a rejected vote; it is *two* committed tasks where one was authorized, plus a reconciliation pass that must decide which executor's work to discard. The guardrail is architectural, not procedural: bind votes to a round-and-assignment digest, require prepare-set echoes before ratification, and treat any divergence in echoes as a view-change trigger rather than a retry. Instances that cannot afford the echo round must at minimum bind votes to the assignment digest so equivocation becomes *provable* and the losing executor can be slashed or its work rolled back deterministically. ```python import hashlib from dataclasses import dataclass class EquivocationDetected(RuntimeError): """Raised when a local quorum cannot be certified as globally consistent.""" @dataclass(frozen=True) class Vote: auditor_id: str round_id: str task_id: str assignment: str # executor id the vote commits the task to view: int signature: bytes # authentic signature over the digest below def digest(self) -> bytes: # The digest MUST cover the assignment, not just (round, task). # Omitting `assignment` makes equivocation unprovable. payload = f"{self.round_id}|{self.task_id}|{self.assignment}|{self.view}" return hashlib.sha256(payload.encode()).digest() def certify_quorum(votes: list[Vote], f: int, expected_assignment: str) -> str: """Return the certified assignment, or raise if the quorum is unsound. A quorum is sound only if (a) it has 2f+1 votes, (b) every vote is bound to the same round/task/assignment/view digest, and (c) no auditor appears twice. Counting alone is insufficient: a Byzantine auditor can contribute one authentic vote to two disjoint quorums. """ quorum_size = 2 * f + 1 if len(votes) < quorum_size: raise EquivocationDetected( f"short quorum: have {len(votes)}, need {quorum_size}" ) seen_auditors: set[str] = set() digests: set[bytes] = set() for v in votes: if v.auditor_id in seen_auditors: raise EquivocationDetected( f"auditor {v.auditor_id} voted twice in round {v.round_id}" ) seen_auditors.add(v.auditor_id) digests.add(v.digest()) if len(digests) != 1: # This is the equivocation signature: the same round/task produced # votes bound to more than one assignment. The quorum is split. raise EquivocationDetected( f"split quorum in round {votes[0].round_id}: " f"{len(digests)} distinct assignment digests across {len(votes)} votes" ) assignment = votes[0].assignment if assignment != expected_assignment: raise EquivocationDetected( f"quorum certifies {assignment}, executor expected {expected_assignment}" ) return assignment def commit_task(votes: list[Vote], f: int, executor_id: str) -> str: """Ratify a task commitment only after quorum certification.""" try: return certify_quorum(votes, f, expected_assignment=executor_id) except EquivocationDetected: # Do NOT retry blindly: a retry against the same split will re-split. # Escalate to a view change so the round is re-run under a new view. raise ```