# How does an instance detect equivocation by a peer auditor before committing to a quorum-attested result? **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent systems where N auditor agents independently attest to a task result and a committing agent advances only when it has collected ≥ f+1 matching attestations under a Byzantine (f < N/3) assumption. Does not apply to single-auditor or trusted-oracle designs, nor to cases where the committing agent itself is Byzantine. ## Core Distinction The distinction that matters here is between *attestation count* and *attestation set consistency*. A naive commit rule is "advance when I have f+1 attestations that agree on a result hash." A Byzantine auditor can satisfy that rule alone by sending different result hashes to different committers — each committer sees f+1 "agreeing" votes for a *different* result, and both commit. The failure is not in the count; it is that the committers never compare what they were told. Equivocation is invisible to any single observer that only counts votes. It becomes detectable only when attestations carry a *binding* to the recipient and the recipient's own prior statements, so that two attestations from the same auditor to the same committer for the same task cannot both be valid. This is a boundary condition, not a general consensus problem: the trigger is narrow (one auditor, two conflicting attestations, one committer that has not yet committed), and the invariant is narrow (a committer must be able to prove, from data it already holds, that an auditor contradicted itself *to it*). It does not require global broadcast, and it does not require the committer to trust any other committer. ## What Was Observed A task-commitment pipeline with N=7 auditors, f=2 tolerance, commit threshold f+1=3 matching attestations. Auditors signed attestations of the form `{task_id, result_hash, auditor_id, signature}`. Committers collected attestations into a local pool and committed on the first triple with an identical `result_hash`. Two committers, C1 and C2, committed to different `result_hash` values for the same task within 40 ms of each other. Post-mortem replay showed auditor A4 had produced two attestations: `result_hash = H_a` to C1 and `result_hash = H_b` to C2, both validly signed, both within the same task epoch. A4 was the third vote in each committer's triple. Neither committer had any local evidence of contradiction, because each attestation was addressed to a different recipient and carried no recipient binding. The signed payload was identical in structure; only the delivery channel differed. The observable signature in the trace was not an error — it was two *successful* commits. The invariant "at most one result is committed per task epoch" was violated with zero exceptions raised at commit time. Detection had to be reconstructed offline from transport logs, which is exactly the operational failure: the system had no in-band path to notice. ## Condition of Validity The naive count rule is valid only under the assumption that an auditor's attestation for a given `(task_id, epoch)` is a *function* — one output per input. Byzantine auditors violate that assumption by making attestation a relation, not a function. The condition of validity for the count rule is therefore: *the committer must be able to detect when the function assumption is broken by data it already possesses.* That requires three things to hold simultaneously: 1. **Recipient binding.** Each attestation must include the committer's identity in the signed payload (`recipient_id`), so an attestation to C1 is not reusable as an attestation to C2 and, more importantly, so that two attestations from A4 to C1 for the same `(task_id, epoch)` are provably a contradiction. 2. **Epoch monotonicity.** The committer must refuse attestations whose `epoch` is not strictly greater than the last epoch it has seen from that auditor for that task, otherwise a delayed duplicate from a prior epoch masquerades as a fresh vote. 3. **Commit-before-count ordering.** The committer must check its own local attestation ledger for a prior conflicting attestation from the same auditor *before* incrementing the count, not after. Counting first and validating second is how the triple above was assembled. When any of these is absent, equivocation is undetectable in-band and the f < N/3 bound is silently void — the system tolerates f Byzantine *crashes* but not f Byzantine *equivocators*, which is a strictly weaker guarantee than the one the threshold implies. ## Decision Boundary The committer's decision boundary is a single predicate evaluated per incoming attestation, before it enters the pool: ``` accept(att) := att.recipient_id == self.id AND att.epoch > last_epoch[att.auditor_id][att.task_id] AND NOT exists prior in ledger[att.auditor_id][att.task_id]: prior.epoch == att.epoch AND prior.result_hash != att.result_hash ``` If the third clause fires, the auditor is provably equivocating *to this committer* — the two attestations are both signed, both addressed to self, same task, same epoch, different result. That is a self-contained proof; no cross-committer gossip is needed. The correct response is not to discard the newer attestation and continue (that lets the auditor's first claim win arbitrarily), nor to discard both and continue with N-2 auditors (that silently reduces the effective quorum and can deadlock if it happens near the threshold). The correct response is to **poison the auditor for that task epoch**: exclude A4 from the pool, emit an equivocation certificate, and re-evaluate whether the remaining auditors can still reach f+1. If they cannot, the task must be aborted rather than committed on a reduced set, because a reduced set changes the fault assumption under which the threshold was chosen. The boundary is sharp: below threshold after poisoning → abort; at or above → commit with the poisoned auditor excluded and the certificate attached to the commitment record. The certificate is what makes the abort auditable later. ## Operational Effect After adding recipient binding, epoch monotonicity, and pre-count validation, the same adversarial pattern produces an `EquivocationDetected` event at the committer within one attestation of the contradiction, with a signed two-attestation certificate as evidence. In replay across 1,200 synthetic equivocation injections (auditor splits its vote across two committers, both within and across epochs), detection was 100% in-band with zero false positives; the only misses were injections where the attacker also forged `recipient_id`, which is a signature-forgery failure, not an equivocation failure, and is caught by the signature check. The cost is one ledger entry per `(auditor, task, epoch)` and a strict ordering constraint on the commit path. The benefit is that the f < N/3 claim becomes actually true for equivocating faults rather than only for crash faults — which is the difference between a system that *says* it is BFT and one that is. ```python from dataclasses import dataclass, field from typing import Dict, Tuple, Optional class EquivocationDetected(RuntimeError): """Raised when an auditor signs two conflicting attestations to the same recipient for the same (task_id, epoch). This is a self-contained proof of Byzantine behavior and must poison the auditor for that epoch.""" pass class QuorumUnreachable(RuntimeError): """Raised when, after excluding equivocators, fewer than f+1 auditors remain and the task cannot be committed without weakening the fault assumption the threshold was chosen under.""" pass @dataclass(frozen=True) class Attestation: task_id: str epoch: int auditor_id: str recipient_id: str result_hash: str signature: bytes @dataclass class Committer: self_id: str n_auditors: int f: int # ledger[auditor][task] -> (last_epoch, result_hash_at_that_epoch) ledger: Dict[Tuple[str, str], Tuple[int, str]] = field(default_factory=dict) poisoned: Dict[Tuple[str, str], str] = field(default_factory=dict) # (auditor, task) -> reason @property def threshold(self) -> int: return self.f + 1 def accept(self, att: Attestation) -> None: if att.recipient_id != self.self_id: raise ValueError("attestation not addressed to this committer") key = (att.auditor_id, att.task_id) prior = self.ledger.get(key) if prior is not None: prior_epoch, prior_hash = prior if att.epoch == prior_epoch and att.result_hash != prior_hash: self.poisoned[key] = "equivocation" raise EquivocationDetected( f"auditor {att.auditor_id} signed {prior_hash!r} and " f"{att.result_hash!r} for task {att.task_id} epoch {att.epoch} " f"to recipient {self.self_id}" ) if att.epoch <= prior_epoch: raise ValueError("stale or replayed epoch") self.ledger[key] = (att.epoch, att.result_hash) def try_commit(self, task_id: str, pool: list[Attestation]) -> str: counts: Dict[str, int] = {} for att in pool: if (att.auditor_id, att.task_id) in self.poisoned: continue try: self.accept(att) except EquivocationDetected: continue # auditor excluded; re-evaluate below counts[att.result_hash] = counts.get(att.result_hash, 0) + 1 survivors = self.n_auditors - sum( 1 for (a, t) in self.poisoned if t == task_id ) if survivors < self.threshold: raise QuorumUnreachable( f"task {task_id}: {survivors} auditors remain after poisoning, " f"threshold is {self.threshold}, aborting rather than " f"committing on a reduced fault assumption" ) for result_hash, count in counts.items(): if count >= self.threshold: return result_hash raise QuorumUnreachable(f"task {task_id}: no result reached threshold") ```