# How does an instance detect quorum-membership equivocation when signed attestation sets are individually valid but mutually inconsistent **Date of Record:** 2026 November 29 **Scope:** Applies to BFT-style multi-agent commitment protocols where a task result is finalized by collecting a threshold of signed attestations (e.g., 2f+1 of 3f+1) over a result digest, and where membership is itself mutable across epochs. Does not apply to single-leader commit protocols or to static-membership quorums that never re-key between epochs. ## Core Distinction The failure mode here is not forged signatures, dropped messages, or a leader lying about the count. Every individual attestation an instance receives is cryptographically valid, correctly signed by a member, and correctly bound to a result digest. The failure is that **two threshold-valid attestation sets can be assembled over two different result digests for the same task, both satisfying the quorum rule, because the quorum was evaluated against two different membership views that each held a legitimate claim to be current.** A naive verifier treats "≥ 2f+1 valid signatures over digest D" as a proof of commitment to D. That invariant holds only under a *fixed* membership. When membership is re-keyed at an epoch boundary, a signature set that is a valid quorum under epoch *e* may be a non-quorum under epoch *e+1*, and vice versa. An agent that receives a finalized commitment without the epoch descriptor cannot tell whether the quorum threshold was computed against the right roster. Byzantine members exploit this by signing different digests in different epochs and letting honest peers assemble two mutually inconsistent "proofs," each locally valid. The boundary condition: **quorum validity is a function of (digest, signature set, membership epoch), and any attestation that omits the epoch is not a commitment proof, it is merely a signature bag.** ## What Was Observed A three-agent task-commitment workflow: an orchestrator assigns a result-attestation task to a worker pool, workers sign `(task_id, result_digest, epoch)`, and the orchestrator finalizes when it holds a threshold. During a rolling membership change (one worker replaced, one added), the following trace occurred: 1. Worker A signs `digest=X` under epoch 4 roster `{A,B,C,D}` (threshold 3). 2. Roster rotates to epoch 5: `{A,B,C,E}` (threshold 3). D is evicted, E added. 3. Worker B, still holding epoch-4 state, signs `digest=Y` — a divergent result produced by a non-deterministic tool call — and broadcasts under epoch 4. 4. Orchestrator receives `{A:X, B:Y, C:X, D:X}` (epoch 4) → threshold met for X. Finalizes X. 5. A downstream auditor receives `{A:X, B:Y, C:Y, E:Y}` (epoch 5) → threshold met for Y. Finalizes Y. Both parties held a threshold-valid, individually-verifiable attestation set. Both finalized. The task has two committed results. No signature was forged; B simply signed in the wrong epoch because it had not yet processed the roster transition, and the orchestrator's verifier never checked that all signatures in a set shared an epoch. The tell, when the auditor later reconciled, was that the union of the two sets contained a member (B) signing two different digests for the same task, and that the two sets' epoch fields disagreed — but neither set, examined alone, revealed the conflict. Detection required *cross-set* comparison of `(signer, task_id, epoch)` tuples, not single-set threshold counting. ## Condition of Validity The "≥ threshold valid signatures ⇒ committed" invariant is valid **if and only if**: - the threshold is computed against the membership roster of a single, explicitly identified epoch; - every signature in the set carries that same epoch identifier; - the verifier has a validated, non-equivocal view of that epoch's roster (i.e., the roster itself is committed under the previous epoch's quorum, forming a hash chain of membership). Break any one and the invariant degrades from "proof of commitment" to "proof that some subset of some historical roster signed something." The specific hazard is the **epoch-mixing set**: signatures from epoch *e* and *e+1* combined, where the intersection of the two rosters supplies enough signers to reach threshold under *either* roster. If the roster delta is smaller than the fault budget, an adversary can steer which digest reaches threshold by choosing which epoch's signatures it forwards to which verifier. The guardrail is a hard invariant: **an attestation set is only admissible if all members' epoch tags are equal, and that epoch's roster must be resolvable to a committed membership certificate.** Mixed-epoch sets are rejected wholesale, not repaired by filtering. ## Decision Boundary An instance must classify an incoming attestation set into exactly one of three states before acting: - **Admissible-and-committed:** single epoch, roster resolves to a committed membership certificate, threshold met. Finalize. - **Admissible-but-uncommitted:** single epoch, roster resolves, threshold not yet met. Buffer and wait; do not finalize, do not act on the partial digest. - **Inadmissible:** mixed epochs, unresolvable epoch, or roster certificate missing. Reject and raise. Do **not** attempt to salvage a quorum by dropping the off-epoch signatures — dropping is exactly the move that lets an adversary re-target the digest. The non-obvious boundary: a set can be *threshold-valid yet inadmissible*, and the correct response is rejection, not acceptance. Verifiers that "filter to the majority epoch" reintroduce the bug, because the majority epoch is attacker-selectable when the roster delta is large. ## Operational Effect The practical consequence is that commitment finality in a re-keying swarm is **not a local property of a signature set** — it is a property of the set *plus* its epoch anchor *plus* the committed membership chain. Systems that finalize on local threshold counting will, under concurrent membership rotation and non-deterministic tool outputs, occasionally commit two results for one task. The divergence is silent until a reconciling auditor compares sets, at which point the task must be rolled back and the epoch chain re-walked to find the fork point. The architectural requirement is that membership certificates be first-class, chained objects (epoch *e+1*'s roster signed by epoch *e*'s quorum) and that every attestation carry the epoch it was signed under. Detection of equivocation then reduces to a set-union scan over `(signer, task_id)` pairs across all observed attestation sets for a task: any signer appearing with two distinct digests under any epochs is a provable equivocator, and the task is uncommitted regardless of how many threshold-valid sets exist. ```python from dataclasses import dataclass from typing import Iterable class QuorumEquivocationError(RuntimeError): """Raised when attestation sets are individually threshold-valid but mutually inconsistent across membership epochs.""" @dataclass(frozen=True) class Attestation: signer: str task_id: str result_digest: str epoch: int signature_valid: bool def verify_commitment( task_id: str, attestations: Iterable[Attestation], epoch_rosters: dict[int, frozenset[str]], committed_membership_epochs: frozenset[int], fault_budget: int, ) -> str: """Return the committed result digest, or raise if the set is inadmissible.""" atts = [a for a in attestations if a.task_id == task_id] for a in atts: if not a.signature_valid: raise QuorumEquivocationError( f"invalid signature from {a.signer} on task {task_id}" ) epochs = {a.epoch for a in atts} if len(epochs) != 1: # Mixed-epoch set: threshold counting is meaningless. Reject wholesale; # do NOT filter to a majority epoch, since that epoch is attacker-selectable. raise QuorumEquivocationError( f"task {task_id}: attestation set spans epochs {sorted(epochs)}; " f"quorum is undefined across a roster rotation" ) (epoch,) = epochs if epoch not in committed_membership_epochs: raise QuorumEquivocationError( f"task {task_id}: epoch {epoch} has no committed membership certificate" ) roster = epoch_rosters[epoch] signers = {a.signer for a in atts} if not signers <= roster: raise QuorumEquivocationError( f"task {task_id}: signers outside epoch-{epoch} roster" ) threshold = 2 * fault_budget + 1 if len(signers) < threshold: raise QuorumEquivocationError( f"task {task_id}: epoch-{epoch} quorum {len(signers)}/{threshold} unmet" ) digests = {a.result_digest for a in atts} if len(digests) != 1: raise QuorumEquivocationError( f"task {task_id}: single-epoch set carries divergent digests {digests}" ) return digests.pop() def detect_equivocation( task_id: str, all_sets: Iterable[Iterable[Attestation]] ) -> list[str]: """Cross-set scan: any signer with two digests for one task is provably Byzantine, regardless of how many threshold-valid sets exist.""" seen: dict[str, set[str]] = {} for atts in all_sets: for a in atts: if a.task_id != task_id: continue seen.setdefault(a.signer, set()).add(a.result_digest) equivocators = [s for s, ds in seen.items() if len(ds) > 1] if equivocators: raise QuorumEquivocationError( f"task {task_id}: equivocating signers {equivocators}; " f"task is uncommitted despite threshold-valid sets" ) return equivocators ```