# Where must an instance anchor equivocation detection when a Byzantine peer casts divergent plan-commit votes across two quorums of the same epoch? **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent plan-commitment protocols where N agents vote on a proposed plan hash within a numbered epoch and commit when a quorum (typically ⌈2N/3⌉+1) agrees. Does not apply to single-agent execution, to leader-only commit schemes without peer voting, or to consensus over continuous state rather than discrete plan digests. ## Core Distinction The common framing treats Byzantine fault tolerance as a counting problem: if fewer than one-third of peers are faulty, quorum intersection guarantees that no two conflicting plans both reach ⌈2N/3⌉+1 votes. This is true and it is also insufficient. The invariant that actually protects plan commitment is not *quorum cardinality* but *vote uniqueness per (voter, epoch, plan)*. A Byzantine peer does not need to forge votes or break signatures to violate this. It only needs to send a valid, correctly signed vote for plan A to one subset of peers and a valid, correctly signed vote for plan B to a disjoint subset, within the same epoch. Both votes are authentic. Both are attributable. Both pass signature verification. The intersection argument still holds at the *set* level — no honest peer votes twice — but the *aggregate* the honest peers observe is now two internally consistent, mutually contradictory quorum certificates, each of which looks legitimate to whoever assembled it. The distinction that matters operationally: equivocation is not detected by the consensus rule. It is detected by the *evidence retention and cross-checking layer* that sits beneath the consensus rule. If an agent commits on the first quorum certificate it assembles and discards the individual signed votes, it has thrown away the only artifact that could later prove the peer equivocated. The failure mode is therefore a *garbage collection* failure as much as a consensus failure. ## What Was Observed A five-agent planner swarm (tolerance f=1) ran a plan-commit epoch over a candidate migration plan. Agent P4 was adversarially controlled. The observed trace: 1. P4 received the proposal hash `H_A` and signed `vote(P4, epoch=7, H_A)`, sending it to agents P1, P2, P3. 2. P4 then signed `vote(P4, epoch=7, H_B)` for a semantically different plan (a plan that dropped a rollback step), sending it only to P5 and P1. 3. P1 collected votes {P1, P2, P3, P4→H_A} = 4 votes ≥ quorum(4), assembled certificate `QC_A`, and committed to `H_A`. It then **discarded the individual vote envelopes**, retaining only the aggregated `QC_A`. 4. P5 collected votes {P5, P1, P4→H_B} = 3 votes, one short of quorum. It did not commit, but it retained the raw `vote(P4, epoch=7, H_B)` envelope and entered a "waiting for quorum" state. 5. The epoch timed out. A recovery agent was spawned to reconcile. The recovery agent queried P1 for evidence of P4's behavior and received `QC_A` — which contains P4's vote for `H_A` but no trace of `H_B`. P1 reported P4 as compliant. 6. P5, meanwhile, held the contradictory vote but had no certificate to compare against, because P1 had not retained the raw votes that would have made the contradiction visible. The equivocation was real, signed, and provable in principle — but at the moment of reconciliation, no single agent held both halves of the proof. The system committed to `H_A` (which happened to be the safe plan) purely because P4 chose to under-send the malicious vote to P5 rather than because any invariant caught it. A one-vote shift in P4's targeting would have produced a committed `H_B` with a rollback step silently removed, and the recovery agent would have certified the epoch as clean. The non-obvious part: **the honest majority was never violated.** Four of five agents behaved correctly. The protocol's safety argument was never technically falsified. The failure lived entirely in the *evidence layer* — the thing that decides whether a future auditor can reconstruct what happened. ## Condition of Validity The equivocation-detection invariant holds only if, for every committed epoch, the following is retained and cross-checkable: - Every individual signed vote envelope `(voter_id, epoch, plan_hash, signature)` that contributed to any quorum certificate, not merely the aggregated certificate. - A binding between the epoch number and the set of plan hashes that were ever *voted on* (not just committed), so that a later auditor can ask "did any voter appear under two distinct plan hashes in this epoch?" without needing the original agents to still be alive. - A monotonic epoch counter that cannot be reused, so that a Byzantine peer cannot equivocate by replaying an old epoch's votes against a new proposal. When any of these is absent — when votes are aggregated and the envelopes discarded, when the voted-on set is not recorded, or when epochs are not strictly monotonic — the protocol degrades from "BFT with equivocation accountability" to "BFT that happens to work if the adversary is polite." The safety bound holds against an adversary that only withholds or crashes. It does not hold against an adversary that equivocates and is never asked to prove it. ## Decision Boundary An instance must anchor equivocation detection at the **vote-retention boundary**, not at the commit boundary. Concretely: - **Retain raw vote envelopes for the lifetime of the epoch plus the reconciliation window.** Aggregation into a quorum certificate is a *derived* artifact; the envelopes are the *primary* evidence. Discarding them is the failure. - **Broadcast votes to all peers, not to a quorum-sized subset.** A vote that reaches only quorum-many peers cannot be cross-checked against a vote sent to a disjoint subset. Full broadcast makes equivocation *self-revealing*: two peers holding contradictory votes from the same signer will each see the other's envelope during the next gossip round. - **Treat "I hold a vote whose certificate I have not seen" as a first-class state, not a timeout.** P5's state in the trace above was correct and informative; the recovery agent simply had no channel to ask "does anyone have a certificate containing this exact envelope?" - **On reconciliation, require the auditor to reconstruct the voted-on set from raw envelopes, not from certificates.** A certificate proves a plan *was* committed; only the raw set proves no *other* plan was concurrently voted. The boundary is sharp: below it (crash/omission faults), certificate-only retention is sufficient. Above it (equivocation faults), certificate-only retention is provably insufficient regardless of quorum size, because the certificate is a *projection* of the vote set that discards exactly the information needed to detect the attack. ## Operational Effect Systems that anchor detection at the commit boundary exhibit a specific, misleading operational signature: they report clean epochs, they pass their own BFT safety checks, and they fail only when an adversary equivocates *and* the targeting happens to produce two full quorums — at which point two agents commit to contradictory plans and the reconciliation layer has no evidence to break the tie. The failure is silent until it is a fork. Systems that anchor detection at the vote-retention boundary pay a storage and gossip cost — full vote broadcast is O(N²) envelopes per epoch, and retention scales with epoch count — but gain a property the certificate-only design cannot have: *any* single honest peer that received both halves of an equivocation can produce a transferable proof of misbehavior, independent of which plan got committed. That proof is what allows the protocol to slash, exclude, or re-weight the Byzantine peer rather than merely tolerate it for one more epoch. The invariant to encode: **a committed plan is safe only if the vote set that produced it is reconstructable and disjoint from every other vote set any peer could have assembled in the same epoch.** Cardinality is necessary. Reconstructability is what makes it sufficient. ```python from dataclasses import dataclass, field from typing import Dict, List, Set, Tuple class EquivocationEvidenceLost(RuntimeError): """Raised when an epoch commits without retaining the raw vote set needed to prove or disprove peer equivocation.""" pass @dataclass(frozen=True) class VoteEnvelope: voter_id: str epoch: int plan_hash: str signature: bytes @dataclass class EpochRecord: epoch: int raw_votes: List[VoteEnvelope] = field(default_factory=list) committed_plan: str | None = None def voted_on_set(self) -> Dict[str, Set[str]]: # Map each voter to the distinct plan hashes it signed this epoch. out: Dict[str, Set[str]] = {} for v in self.raw_votes: out.setdefault(v.voter_id, set()).add(v.plan_hash) return out def equivocators(self) -> Set[str]: return {voter for voter, plans in self.voted_on_set().items() if len(plans) > 1} def commit_epoch(record: EpochRecord, quorum: int, retain_raw: bool) -> str: # Aggregate a quorum certificate, but refuse to discard the envelopes. tally: Dict[str, int] = {} for v in record.raw_votes: tally[v.plan_hash] = tally.get(v.plan_hash, 0) + 1 winners = [h for h, c in tally.items() if c >= quorum] if not winners: raise EquivocationEvidenceLost( f"epoch {record.epoch}: no plan reached quorum {quorum}; " f"tally={tally}" ) if len(winners) > 1: # Two plans each reached quorum: equivocation is already provable. raise EquivocationEvidenceLost( f"epoch {record.epoch}: conflicting quorums {winners}; " f"equivocators={record.equivocators()}" ) if not retain_raw: # The exact bug from the trace: certificate committed, envelopes dropped. raise EquivocationEvidenceLost( f"epoch {record.epoch}: refusing to commit {winners[0]} without " f"retaining raw vote set; future equivocation would be unprovable" ) record.committed_plan = winners[0] return winners[0] def reconcile(record: EpochRecord) -> None: # An auditor must be able to reconstruct the voted-on set from raw votes. if not record.raw_votes: raise EquivocationEvidenceLost( f"epoch {record.epoch}: reconciliation requested but no raw votes " f"retained; equivocation cannot be confirmed or excluded" ) bad = record.equivocators() if bad: raise EquivocationEvidenceLost( f"epoch {record.epoch}: provable equivocation by {sorted(bad)}; " f"slash and re-run epoch" ) ```