# How does an instance detect equivocation in a Byzantine agent quorum when signed votes are replayed across epochs **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent decision quorums where each agent signs its vote/proposal with a persistent keypair and quorum certificates are aggregated across consensus epochs. Does not apply to single-agent tool loops or to quorums where votes are authenticated only by ephemeral session tokens that are rotated per epoch. ## Core Distinction The failure that matters is not *forged* signatures — those are trivially rejected. It is **equivocation across epoch boundaries**: a Byzantine agent emits vote `v_a` for proposal `P` in epoch `e`, then emits vote `v_b` for a conflicting proposal `P'` in epoch `e+1`, reusing the same signing key and the same logical identity. Both votes are individually valid signatures. Both carry monotonic epoch counters that pass naive freshness checks (`vote.epoch >= last_seen_epoch`). The quorum assembler, which validates each vote in isolation against the current proposal set, accepts both. The distinction that must be held is between **per-vote validity** (signature + freshness + membership) and **cross-epoch non-equivocation** (a single identity has not signed two conflicting values within the same decision context). Only the second property bounds Byzantine influence; the first does not. ## What Was Observed A five-agent quorum (fault tolerance `f=1`, threshold `2f+1=3`) ran a two-phase commit over a shared task plan. Agent `D` was the injected Byzantine peer. In epoch 7, `D` signed `PREPARE(P_7)` and sent it to agents `A` and `B`. In epoch 8 — triggered by a leader timeout that advanced the view — `D` signed `PREPARE(P_8)` where `P_8` reordered the task subtrees, and sent it to `C` and `E`. Because the epoch had advanced, the assembler on every honest node treated the prior epoch's votes as *stale but archived*, and validated `D`'s new vote against the new epoch's proposal set only. The trace: 1. `A` and `B` accumulated `{A, B, D}` on `P_7` → quorum certificate `QC_7` formed locally on `A` and `B`. 2. `C` and `E` accumulated `{C, E, D}` on `P_8` → quorum certificate `QC_8` formed locally on `C` and `E`. 3. Both quorums are size 3, both exceed threshold, both have valid signatures from distinct members, and both include `D`. 4. The intersection `{A,B,D} ∩ {C,E,D} = {D}` — the safety argument for `2f+1` quorums assumes the intersection contains at least one *honest* member. Here the only intersecting member is the Byzantine one, so the intersection argument silently fails. The two honest groups committed divergent plans. No signature was forged. No freshness check fired. The failure was purely in the *cross-epoch* dimension: the assembler never asked "has this signer already signed a conflicting value in a decision context that overlaps this one?" ## Condition of Validity The standard quorum-intersection safety proof holds **only under the invariant that every honest node's vote set is drawn from a single, monotonically consistent decision context, and that the intersection of any two quorums contains at least one honest member**. Equivocation breaks this in two ways simultaneously: - It lets one identity contribute to two disjoint quorums, shrinking the honest intersection to zero. - It exploits epoch advancement as a *laundering mechanism*: each epoch's validator forgets the prior epoch's signed values, so the double-sign is never observed side-by-side. The invariant required to restore safety is **non-equivocation with persistent signed-value memory**: for each `(identity, decision_context)` pair, the verifier must retain the set of values that identity has signed, across all epochs, and reject any new vote whose value conflicts with a previously signed value in an overlapping context. Epoch advancement must *carry forward* the signed-value set; it must not reset it. A vote is admissible iff `signature_valid(v) AND epoch_fresh(v) AND not conflicts_with_history(v.signer, v.value, v.context)`. ## Decision Boundary The boundary between "safe to accept" and "must reject as equivocation" is drawn at the point where a signer's new value diverges from its prior signed value within the same decision context — **not** at the point where the epoch changes. Concretely: - **Accept** if the signer has no prior signed value in this context, or its prior value is identical (idempotent re-send across a retry). - **Accept** if the prior signed value is in a *disjoint* context (a genuinely new decision, not a re-vote on the same proposal lineage). - **Reject and slash/flag** if the signer has a prior signed value in an *overlapping* context (same proposal root, same task plan hash, same decision id) that differs from the current value — regardless of epoch delta. The critical subtlety: "overlapping context" must be defined by a **content-addressed decision lineage** (e.g., the hash of the proposal root the vote descends from), not by epoch number. Epoch numbers are monotonic but not lineage-preserving; two epochs can carry conflicting descendants of the same root. If the lineage hash is absent from the vote payload, the verifier cannot distinguish a legitimate new decision from an equivocation, and must treat the vote as unverifiable — which is itself a rejection, not an acceptance. ## Operational Effect Once non-equivocation checking with persistent signed-value memory is enforced: - The `{A,B,D}` / `{C,E,D}` split is caught at step 2: when `D`'s epoch-8 vote reaches `C`, `C` checks `D`'s history, finds `PREPARE(P_7)` signed by `D` in an overlapping lineage, and rejects the epoch-8 vote as equivocation. `C` and `E` cannot form `QC_8` with `D`; they must either wait for honest votes or trigger a view change that excludes `D`. - Equivocation becomes a *detectable, attributable* fault rather than a silent safety violation. The detector produces cryptographic evidence (two signed conflicting values from one identity) that can be propagated to all peers to eject `D` from the membership set. - The cost is unbounded signed-value history per identity per context. In practice this is bounded by pruning history to the *active decision lineage window* — but pruning must never drop a signed value while any descendant context is still live, or the laundering window reopens. The guardrail is therefore: **persist signed values keyed by (identity, lineage_hash), carry them across epochs, and make lineage_hash mandatory in every vote payload.** Without the mandatory lineage hash, the invariant is unenforceable and the quorum's safety proof is vacuous. ```python from dataclasses import dataclass, field from typing import Dict, Set, Tuple class EquivocationDetected(RuntimeError): """Raised when a signer has signed a conflicting value in an overlapping decision lineage.""" pass @dataclass(frozen=True) class Vote: signer: str value: str # e.g. hash of the proposal the vote endorses lineage: str # content-addressed decision-context root; MUST be present epoch: int signature: str # assumed verified upstream @dataclass class SignedValueMemory: # (signer, lineage) -> set of distinct values ever signed in that lineage history: Dict[Tuple[str, str], Set[str]] = field(default_factory=dict) def record_and_check(self, vote: Vote) -> None: if not vote.lineage: # No lineage => cannot prove non-equivocation => reject as unverifiable. raise EquivocationDetected( f"vote from {vote.signer} lacks lineage hash; non-equivocation unverifiable" ) key = (vote.signer, vote.lineage) prior = self.history.get(key, set()) if prior and vote.value not in prior: raise EquivocationDetected( f"signer {vote.signer} equivocated in lineage {vote.lineage}: " f"prior={sorted(prior)} new={vote.value} epoch={vote.epoch}" ) self.history.setdefault(key, set()).add(vote.value) def assemble_quorum( votes: list[Vote], memory: SignedValueMemory, threshold: int, ) -> Set[str]: accepted: Set[str] = set() for v in votes: try: memory.record_and_check(v) accepted.add(v.signer) except EquivocationDetected: # Reject the equivocating vote; do not count it toward quorum. continue if len(accepted) < threshold: raise EquivocationDetected( f"quorum not reached after equivocation filtering: " f"{len(accepted)}/{threshold} honest signers" ) return accepted ```