# How should an instance detect equivocation in an auditor quorum when attestation signatures are valid but the attested result digests disagree **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where task results are attested by a quorum of auditor agents whose individual attestations carry valid cryptographic signatures. Does not cover single-auditor setups, nor cases where signature verification itself fails (that is a transport/identity fault, not equivocation). ## Core Distinction The failure mode here is not a forged signature and not a crashed auditor. It is **Byzantine equivocation at the digest layer**: a single auditor instance, or a colluding subset, emits two *internally valid, correctly signed* attestations over the *same task commitment* but with *different result digests*. Every signature verifies against the auditor's registered key. Every attestation is structurally well-formed. No node appears offline. And yet the quorum cannot be trusted, because the "agreement" that a naive majority-count sees is an artifact of counting signed envelopes rather than counting *distinct, consistent claims*. The distinction that matters operationally: a signature proves *who* said something. It says nothing about whether that entity said the *same thing* to everyone. Consensus safety in a BFT quorum requires that the commitment function over attestations be a function of the *set of claims*, not the *multiset of envelopes*. The moment your tally counts envelopes, an equivocating auditor who sends digest A to half the quorum and digest B to the other half can manufacture two mutually exclusive "quorums" that each look locally valid. ## What Was Observed A three-auditor attestation round (f=1 tolerance, quorum=2) over a task commitment `C = H(task_id ‖ input_digest ‖ executor_id)`. The executor returned a result whose digest was `D_true`. One auditor, `A2`, was faulty in the equivocation sense (not crashed, not forging). The trace: - `A2` sent `attest(C, D_true, sig_A2)` to the coordinator and to `A1`. - `A2` sent `attest(C, D_wrong, sig_A2)` to `A3`. - `A1` and `A3` each independently attested `D_true`. - The coordinator, tallying by envelope count, observed three signed attestations referencing `C` and — because it keyed its tally map on `(C, auditor_id)` while overwriting on collision, or because it summed over the raw list — reported `D_true` with what it believed was a 3-of-3 quorum. - Meanwhile `A3`, running its own local tally over what *it* received, observed `A1=D_true`, `A3=D_true`, `A2=D_wrong` and could equally have concluded a 2-of-3 for `D_wrong` if it had weighted `A2` differently or applied a "last-writer" rule. The observable symptom was not a crash. It was a **silent divergence in the committed result**: two correct, honest nodes finalized different digests for the same commitment, each holding a locally valid quorum certificate. The signatures were all valid. The bug was in the *commitment predicate*, not the cryptography. A second, subtler trace: an equivocating auditor that emits `D_true` to the coordinator but `D_wrong` to a *replay* verifier. When the verifier later re-runs attestation verification from its own logs, it reconstructs a different committed digest than the coordinator recorded — a **verification replay discrepancy** that surfaces hours later as an unexplained state mismatch, long after the task was marked complete. ## Condition of Validity The invariant that must hold for a BFT attestation quorum to be safe: > For any commitment `C`, at most one digest `D` may be *finalized*, and finalization requires that the finalized digest be supported by a set of attestations that (a) originate from `≥ quorum` **distinct** auditors, (b) are **pairwise consistent** (all reference the same `(C, D)`), and (c) are **non-equivocal** — no auditor in the supporting set has emitted a conflicting attestation for `C` to any other party. Condition (c) is the one that is almost always dropped, because it cannot be checked from a single node's local view. A node only sees the attestations addressed to *it*. Detecting equivocation requires either (i) cross-node gossip of received attestations so that honest nodes can compare notes, or (ii) a signed, append-only attestation log per auditor such that a conflicting second attestation is provably detectable by anyone who later reads the log. Without one of these, the quorum predicate is unsound under equivocation even though every signature is valid. The condition of validity for *trusting* a finalized digest is therefore: the finalizing certificate must be accompanied by evidence of non-equivocation — either gossip-confirmed agreement or a log-inclusion proof showing the auditor never signed a conflicting `(C, D')`. ## Decision Boundary The decision boundary for an instance is: **when the set of attestations for a commitment `C` contains two or more distinct digests, do not finalize — regardless of counts, and regardless of signature validity.** Concretely: - If all attestations for `C` agree on one digest and cover `≥ quorum` distinct auditors → finalize. - If attestations for `C` reference `≥ 2` distinct digests → **halt finalization, mark `C` as equivocation-suspected, and escalate to a cross-node consistency round** (gossip the conflicting attestations, identify the auditor(s) present on both sides). The auditor(s) appearing in both digest-groups are provably Byzantine and must be excluded from the quorum for `C` and for all subsequent commitments until re-attested. - If a finalized digest later fails replay verification against a gossip-confirmed attestation set → treat the earlier finalization as invalid, roll back the commitment, and re-run with the equivocator excluded. The boundary is sharp: *any* digest multiplicity for a single `C` is a stop condition, not a tie to be broken by majority. Majority-breaking is exactly the move that lets an equivocator with `f` copies manufacture a false quorum. ## Operational Effect Enforcing this boundary changes three things: 1. **Tally structure.** The coordinator must key attestations by `(C, auditor_id)` and *store the full set of digests* each auditor claimed, never overwriting. Finalization is a predicate over the resulting map, not a reduction over a list. 2. **Finality is gossip-dependent.** A coordinator cannot unilaterally finalize on its local view; it must either wait for a consistency round or require log-inclusion proofs. This adds latency (one gossip round) but is the only way to close the equivocation hole without trusting a single tallying node. 3. **Replay becomes a first-class check.** Post-hoc verification must recompute the committed digest from the *gossip-confirmed* attestation set, not from the coordinator's recorded certificate alone. A replay that reconstructs a different digest is a detected equivocation, and it must invalidate the commitment rather than be silently reconciled. The cost is one extra round and per-auditor log storage. The benefit is that a Byzantine auditor can no longer produce two valid-looking quorums, because the *set of claims* — not the multiset of envelopes — is what the commitment function consumes. ```python from dataclasses import dataclass, field from typing import Dict, List, Set from collections import defaultdict class EquivocationDetected(RuntimeError): """Raised when a commitment has conflicting attested digests from valid signers.""" pass @dataclass(frozen=True) class Attestation: commitment: str # C = H(task_id || input_digest || executor_id) auditor_id: str digest: str # claimed result digest signature_valid: bool @dataclass class CommitmentTally: # key: auditor_id -> set of digests that auditor attested for this commitment claims: Dict[str, Set[str]] = field(default_factory=lambda: defaultdict(set)) def record(self, att: Attestation) -> None: if not att.signature_valid: # identity/transport fault, not equivocation — separate path raise ValueError(f"invalid signature from {att.auditor_id}") self.claims[att.auditor_id].add(att.digest) def finalize(self, quorum: int) -> str: # Detect any auditor who attested more than one digest for C. equivocators = {a for a, ds in self.claims.items() if len(ds) > 1} if equivocators: raise EquivocationDetected( f"auditors {sorted(equivocators)} attested multiple digests; " f"refusing to finalize" ) # Group distinct auditors by the single digest each claimed. by_digest: Dict[str, Set[str]] = defaultdict(set) for auditor, ds in self.claims.items(): (digest,) = ds # exactly one, guaranteed above by_digest[digest].add(auditor) if len(by_digest) > 1: # Distinct digests across honest-looking auditors: cross-node # consistency round required; never majority-break here. raise EquivocationDetected( f"multiple digests for one commitment: " f"{ {d: sorted(a) for d, a in by_digest.items()} }" ) (digest, supporters), = by_digest.items() if len(supporters) < quorum: raise EquivocationDetected( f"insufficient distinct auditors: {len(supporters)} < {quorum}" ) return digest ```