# How does an instance detect equivocating quorum signatures in a Byzantine multi-agent commitment protocol **Date of Record:** 2026 November 23 **Scope:** Applies to multi-agent swarms where task commitment and result agreement are enforced by quorum-signed attestations (e.g., an M-of-N auditor set producing signed commit/abort votes over an A2A transport). Does not apply to single-agent self-verification, leaderless best-effort broadcast, or systems with a trusted central coordinator that serializes all decisions. ## Core Distinction The failure mode is not "a malicious agent lies." It is that a *quorum certificate itself* can be internally inconsistent — two disjoint or partially overlapping quorums can both reach threshold for contradictory decisions, and a naive verifier that only counts signatures cannot tell the difference between a legitimate quorum and an equivocation artifact. A correct instance must distinguish **signature validity** (each individual attestation verifies cryptographically) from **quorum non-equivocation** (no single signer contributed to two conflicting certificates for the same task epoch). Counting signatures answers "did enough parties sign this?" — it does not answer "is this the *only* thing they signed?" The boundary invariant is: *for any task epoch, at most one certificate may exist that is signed by a set of auditors whose intersection with any other certificate's signer set is non-empty under an honest-majority assumption.* When the signer sets are disjoint, the intersection test passes trivially and the invariant silently fails to fire — this is the non-obvious edge. ## What Was Observed A four-auditor swarm (A, B, C, D) with threshold M=3 was committing results for task `T-4417` at epoch 12. Auditor A partitioned from B/C/D after signing a `COMMIT(result=r1)` attestation. B, C, and D, never having seen A's attestation due to the partition, independently signed `COMMIT(result=r2)` where `r2 ≠ r1`. Both certificates are cryptographically valid 3-of-4 quorums. The signer sets are `{A,B,C}` and `{B,C,D}` — intersecting at `{B,C}`, but B and C signed *both*, so the intersection is exactly the equivocating set, not a safe anchor. The orchestrator, on reconnect, received both certificates and applied a "first valid quorum wins" rule keyed on arrival time. It committed `r1`. Auditor D, holding `r2`, later asserted a replay discrepancy. The system entered a split-brain state where two result hashes were both "quorum-attested" and neither could be revoked without a new epoch. The detection signal that was *missing*: each auditor must bind its signature to a per-epoch nonce and a monotonically increasing `commit_round`, and the verifier must reject any certificate whose signers appear in two distinct certificates for the same `(task_id, epoch)` regardless of whether the signer sets are disjoint. Arrival-order tie-breaking is not a consensus rule; it is a race condition dressed as one. ## Condition of Validity Equivocation detection is only sound when all of the following hold simultaneously: 1. **Epoch monotonicity.** Every attestation carries `(task_id, epoch, commit_round)` and auditors refuse to sign two `commit_round` values for the same epoch. Without this, an auditor that legitimately re-signs after a timeout produces a false-positive equivocation flag. 2. **Signer-set intersection is checked against the union of all seen certificates, not pairwise.** The check is `∀ c1, c2 ∈ seen_certs(task, epoch): signers(c1) ∩ signers(c2) = ∅` is *insufficient* — it must be `¬∃ signer s: s ∈ signers(c1) ∧ s ∈ signers(c2)` reported as an equivocation *when the two certificates carry different result hashes*. The distinction between "shared signer, same result" (benign duplicate) and "shared signer, different result" (equivocation) is the load-bearing condition. 3. **Honest-majority assumption holds over the auditor set, not the signer set.** If the threshold is M=3 of N=4, a single Byzantine auditor plus one partition can produce two valid certificates. The protocol must therefore require `N ≥ 3M - 2` (i.e., 4 auditors for M=3 is the *minimum*, not a safe margin) or, more robustly, require that the equivocating signer be provably slashable via a cryptographic proof of the two conflicting signatures. If any of these is absent, the verifier will either miss real equivocation (disjoint signer sets) or flag benign retransmissions (same result, shared signer). Both are failures. ## Decision Boundary The instance must decide, at certificate-verification time, between three states: - **ACCEPT**: exactly one certificate exists for `(task_id, epoch)` with a valid quorum and no signer appears in any conflicting certificate. - **REJECT_EQUIVOCATION**: two or more certificates exist for `(task_id, epoch)` with divergent result hashes and a non-empty signer intersection. The intersecting signer set is the accused set; the instance must halt commitment, emit the two certificates as a slashable proof, and advance to a new epoch with the accused set excluded. - **DEFER**: two certificates exist with *disjoint* signer sets and divergent results. This is not equivocation (no shared signer) but is a partition artifact; the instance must not commit either, must request a fresh round with an expanded quorum, and must not treat arrival order as a tiebreak. The boundary is sharp: the moment the verifier applies "first valid quorum wins," it has collapsed DEFER into ACCEPT and lost the ability to detect the partition. The invariant is that *commitment requires uniqueness, not just validity*. ## Operational Effect After the `T-4417` incident, the orchestrator was changed to maintain a per-`(task_id, epoch)` certificate registry that runs the intersection check on every ingest, before any commitment side effect. Latency increased by one registry lookup (~2ms) per certificate. The system now correctly enters DEFER on partition artifacts and REJECT_EQUIVOCATION on shared-signer conflicts, and the `commit_round` binding eliminated the false-positive class where a timed-out auditor re-signed the same result. The residual cost is that a single slow auditor can force a DEFER and a round restart; this is the price of not racing to commit, and it is strictly cheaper than split-brain recovery. ```python from dataclasses import dataclass from typing import Dict, List, Tuple class EquivocationDetected(RuntimeError): """Raised when two conflicting certificates share a signer for the same epoch.""" pass @dataclass(frozen=True) class Certificate: task_id: str epoch: int commit_round: int result_hash: str signers: Tuple[str, ...] class CommitmentRegistry: def __init__(self, threshold: int) -> None: self._threshold = threshold self._certs: Dict[Tuple[str, int], List[Certificate]] = {} def ingest(self, cert: Certificate) -> str: if len(cert.signers) < self._threshold: raise ValueError(f"certificate under threshold: {len(cert.signers)} < {self._threshold}") key = (cert.task_id, cert.epoch) existing = self._certs.setdefault(key, []) for prior in existing: shared = set(prior.signers) & set(cert.signers) if shared and prior.result_hash != cert.result_hash: raise EquivocationDetected( f"task={cert.task_id} epoch={cert.epoch} " f"accused_signers={sorted(shared)} " f"results={prior.result_hash!r} vs {cert.result_hash!r}" ) if not shared and prior.result_hash != cert.result_hash: existing.append(cert) return "DEFER" existing.append(cert) return "ACCEPT" def verify_and_commit(registry: CommitmentRegistry, cert: Certificate) -> str: decision = registry.ingest(cert) if decision == "DEFER": # Partition artifact, not equivocation: never commit on arrival order. return "DEFER" if decision != "ACCEPT": raise EquivocationDetected(f"unexpected decision {decision!r} for {cert.task_id}") return "ACCEPT" ```