# In what scenarios must an instance treat a quorum certificate as forged when a Byzantine auditor equivocates across verification replays **Date of Record:** 2026 November 30 **Scope:** Applies to any multi-agent decision quorum where N ≥ 3f+1 agents vote on a proposal by emitting signed votes that are aggregated into a certificate, and where at least one auditor independently replays the vote set before commit. Does not apply to single-agent self-consistency checks, majority-of-one delegation, or quorums whose membership is mutable mid-round without a membership epoch fence. ## Core Distinction The failure is not "a Byzantine agent lies." That is the baseline threat model and the reason 3f+1 redundancy exists. The non-obvious boundary is this: **a Byzantine auditor can produce two internally valid, individually signed verification attestations over the same vote set that disagree on the outcome, and both will pass local signature checks.** Consensus safety is preserved only if the aggregator refuses to accept *any* certificate whose attestation set is not a set — i.e., only if it treats the auditor's equivocation as evidence of forgery even though every cryptographic primitive verifies. The distinction that matters operationally: a *valid signature* is not a *valid attestation*. An attestation is a signed claim of the form `(vote_set_hash, verdict, auditor_id, round, epoch)`. When one auditor_id emits two attestations with the same `(vote_set_hash, round, epoch)` but different `verdict`, the correct response is not "trust the majority of attestations" and not "trust the first one received." The correct response is to quarantine the round, because the auditor has demonstrated it is Byzantine, and any certificate it contributed to is now untrustworthy *regardless of the vote counts inside it*. ## What Was Observed A 7-agent quorum (f = 2, so 3f+1 = 7) ran a decision round on proposal `P`. Five agents voted `commit`, two voted `abort`. The aggregator collected 5 signed votes, exceeded the 2f+1 = 5 threshold, and constructed a quorum certificate `QC`. Two auditors, `A1` and `A2`, were asked to replay the vote set against the proposal and attest `valid` or `invalid`. The trace: 1. `A1` received the vote set and attested `valid` at round 41, epoch 9. Signature verified. 2. Network partition isolated `A2` from `A1`'s attestation. `A2` replayed independently and attested `valid`. Signature verified. 3. The aggregator committed `P` and advanced to round 42. 4. During a later audit sweep of round 41, a third replay by `A1` — triggered by a re-delivery of the same vote set from a lagging peer — produced `invalid`. `A1`'s local replay had a non-deterministic tool call (a timestamp normalization that crossed a microsecond boundary differently on the second invocation), so its verdict flipped. 5. Because `A1` was a designated auditor, its `invalid` attestation was accepted into the round-41 attestation log. The log now held `{(A1, valid), (A2, valid), (A1, invalid)}` for the same `(vote_set_hash, round=41, epoch=9)`. 6. A downstream replay verifier saw 2 `valid` vs 1 `invalid` and concluded the round was sound. It was not — the round's soundness was never actually established, because the auditor that was supposed to be the independent check had contradicted itself. The committed value `P` happened to be correct. But the *certificate* for `P` was not sound: its attestation set was not a set, and the 2-vs-1 majority obscured that one auditor had produced two mutually exclusive claims. Had `P` been wrong, the same majority logic would have ratified it. ## Condition of Validity The invariant that must hold for a quorum certificate to be committable: > For every `(vote_set_hash, round, epoch)`, the multiset of attestations projected onto `auditor_id` must be a function — each auditor contributes at most one verdict. If any auditor contributes two verdicts, the certificate is **forged-by-equivocation** and must be rejected, not resolved. This is strictly stronger than the usual "2f+1 matching verdicts" rule. The usual rule is a *liveness* condition (enough agreement to proceed). The equivocation invariant is a *safety* condition (no auditor may be counted twice, and no auditor may be counted at all once it has equivocated). An equivocating auditor's *other* attestations — including ones that agree with the majority — must also be discarded, because the auditor has proven it will sign contradictory statements under the same round key. The condition is valid only when: - The aggregator holds the full attestation log for the round, not a sampled subset. If attestations are collected via gossip and pruned, equivocation can hide in the pruned region. - `auditor_id` is bound to a stable cryptographic identity across the round and epoch. If auditors rotate identity mid-round without an epoch bump, the projection is undefined. - The `vote_set_hash` is computed over a canonical serialization. If two auditors hash the same logical vote set differently due to serialization drift, they will appear to disagree on `vote_set_hash` rather than on `verdict`, and the equivocation will be misclassified as a benign hash mismatch. ## Decision Boundary The aggregator must decide, at commit time, between three outcomes for any round: | Attestation state | Decision | Rationale | |---|---|---| | All auditors agree, ≥ 2f+1 valid | Commit | Standard quorum | | Auditors disagree, no auditor equivocates | Abort round, re-propose | Legitimate disagreement; liveness lost, safety intact | | Any auditor equivocates on `(hash, round, epoch)` | **Reject certificate as forged; do not commit; escalate auditor to slashing/quarantine** | Safety boundary breached; majority is meaningless | The boundary is sharp: the moment the projection `attestations → (auditor_id → verdict)` is not a function, the certificate is dead. There is no "trust the majority of attestations" fallback, because the majority may itself be composed of the equivocator's duplicate plus a colluder. The 2-vs-1 count observed in the trace is exactly the trap: it looks like a normal supermajority, but one of the three attestations is the equivocator's second face. A second, subtler boundary: an auditor that equivocates on round 41 must also have its round-42 attestations flagged, because equivocation is evidence of Byzantine behavior and the auditor's future attestations carry no independent weight until re-admitted through a membership epoch bump. Failing to propagate the quarantine lets a compromised auditor keep voting in later rounds while its round-41 equivocation is "resolved" by majority. ## Operational Effect The immediate effect of enforcing the invariant is that the round-41 certificate is rejected, `P` is not committed on the strength of that certificate, and the quorum re-runs round 41 with `A1` removed from the auditor set. Liveness costs one round. Safety is preserved. The secondary effect is that the aggregator's attestation log must be *complete and canonical* for the round — gossip-only collection with pruning is insufficient, because equivocation is detectable only if both faces of the equivocator are present in the log. In practice this means the aggregator must retain attestations for the full round window and must hash vote sets over a canonical serialization shared by all auditors, or equivocation will be misclassified as hash drift. The tertiary effect is on auditor design: auditors must be deterministic over their replay input. The trace's root cause was a non-deterministic timestamp normalization inside `A1`'s replay. A Byzantine auditor is expected to equivocate; a *honest* auditor that equivocates due to non-determinism is indistinguishable from Byzantine at the protocol layer, and the protocol must treat it identically. The fix is not "trust honest auditors" — it is "make replay deterministic and treat any equivocation, honest or not, as forgery." This is the operational lesson: in a BFT quorum, determinism of the verifier is a safety property, not a quality-of-implementation nicety. ```python import hashlib from dataclasses import dataclass from typing import Iterable class QuorumCertificateForged(RuntimeError): """Raised when an attestation set is not a function over auditor_id.""" @dataclass(frozen=True) class Attestation: auditor_id: str vote_set_hash: str round: int epoch: int verdict: str # "valid" | "invalid" signature: bytes def canonical_vote_set_hash(votes: Iterable[tuple[str, str]]) -> str: # Canonical serialization: sorted, no whitespace, no locale-dependent formatting. payload = "|".join(f"{agent}:{choice}" for agent, choice in sorted(votes)) return hashlib.sha256(payload.encode("utf-8")).hexdigest() def verify_certificate( attestations: list[Attestation], expected_hash: str, round_no: int, epoch_no: int, f: int, ) -> str: """ Returns "commit" only if the attestation set is a function over auditor_id AND at least 2f+1 auditors attest "valid". Any equivocation => forged. """ seen: dict[str, str] = {} valid_count = 0 for att in attestations: if att.vote_set_hash != expected_hash: # Hash drift, not equivocation; ignore for this certificate. continue if att.round != round_no or att.epoch != epoch_no: continue prior = seen.get(att.auditor_id) if prior is not None and prior != att.verdict: # Same auditor, same (hash, round, epoch), two verdicts. # This is the equivocation boundary. Reject the whole certificate. raise QuorumCertificateForged( f"auditor {att.auditor_id} equivocated on " f"(hash={expected_hash[:12]}, round={round_no}, epoch={epoch_no}): " f"{prior!r} vs {att.verdict!r}" ) if prior is None: seen[att.auditor_id] = att.verdict if att.verdict == "valid": valid_count += 1 if valid_count < 2 * f + 1: raise QuorumCertificateForged( f"insufficient valid attestations: {valid_count} < {2 * f + 1}" ) return "commit" def run_round( attestations: list[Attestation], expected_hash: str, round_no: int, epoch_no: int, f: int, ) -> str: try: return verify_certificate(attestations, expected_hash, round_no, epoch_no, f) except QuorumCertificateForged: # Quarantine the round; do not fall back to majority-of-attestations. # Escalate the equivocating auditor to the slashing path. return "rejected" ```