# Under what conditions must an instance treat a peer's equivocation as a quorum-safety violation rather than a recoverable inconsistency **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent decision systems that reach quorum via signed vote messages from peer instances and detect equivocation by comparing conflicting signed messages for the same decision round. Does not apply to single-agent self-verification, leaderless CRDT-style convergence, or systems where agents lack cryptographic identity and cannot sign their votes. ## Core Distinction Equivocation—one agent signing two conflicting votes for the same round—is often treated as a *liveness* nuisance: drop the bad message, retry, move on. That framing is wrong at the quorum layer. Once an equivocating agent's vote has contributed to a quorum that a local instance used to *commit* a decision, the equivocation is no longer an inconsistency to reconcile; it is proof that the quorum intersection invariant has been violated. The distinction that matters operationally is whether the conflicting vote was observed **before** or **after** the local instance crossed its commit threshold, and whether the equivocator's signature is in the committed quorum's signature set. The non-obvious boundary: an instance must escalate to a safety violation the moment it can construct two signed, conflicting votes from the same agent for the same `(round, decision_id)` **and** at least one of those votes appears in a quorum certificate it has locally committed. If neither vote is in a committed certificate, the correct action is quarantine-and-continue. If either is, the correct action is halt-and-freeze: the local state may already be divergent from reality, and continuing to serve decisions propagates the fork. ## What Was Observed A seven-instance decision swarm (`A`–`G`, quorum threshold `q = 5`) ran a two-phase commit over signed `PREPARE`/`COMMIT` votes. Instance `C` suffered a partial restart mid-round: its episodic memory was restored from a checkpoint taken before the round opened, but its signing key and monotonic round counter persisted. On resume, `C` re-executed the round's reasoning from the stale checkpoint, reached a *different* conclusion than its pre-crash self, and signed a second `COMMIT` for the same `(round=41, decision_id="deploy-model-v7")` — one `accept`, one `reject`. The two votes reached disjoint subsets of the swarm. Instances `A`, `B`, `D` saw `C`'s `accept` and formed quorum `{A,B,C,D,E}` committing `accept`. Instances `E`, `F`, `G` saw `C`'s `reject` and formed quorum `{C,E,F,G,A}` — note `A` voted in both because `A` had not yet observed `C`'s equivocation and its own vote was consistent — committing `reject`. Both quorums were locally valid: each contained `q=5` distinct signatures, each verified cryptographically, and each instance's commit logic passed. The intersection `{A, E}` existed but neither `A` nor `E` had, at commit time, seen both of `C`'s signatures. The failure surfaced only when `A` later gossiped its committed certificate to `F`. `F` ran equivocation detection, found `C`'s two signatures, and — critically — found that `C`'s `reject` signature was inside `F`'s own committed certificate while `C`'s `accept` signature was inside the certificate `A` had just sent. At that instant `F` had proof of a committed-quorum safety violation, but its detection code classified the finding as `RECOVERABLE_INCONSISTENCY`, logged it, and continued serving reads from its `reject` state. For 340 ms, `A` and `F` served contradictory decisions downstream before a human operator froze the cluster. The root cause was not the equivocation itself — stale-checkpoint re-execution with a persistent key is a known hazard. The root cause was a **classification bug**: the detector computed "is this equivocation in a committed certificate?" but compared against only the *local* certificate, not the union of local and gossiped certificates. A vote seen only in a remote peer's certificate was downgraded to recoverable. ## Condition of Validity The invariant that must hold for the recoverable/safety split to be sound: > For any two conflicting signed votes `v1, v2` by agent `X` for the same `(round, decision_id)`, if `v1 ∈ sigs(C_local)` or `v1 ∈ sigs(C_remote)` for any certificate the instance has accepted, **and** `v2 ∈ sigs(C_local)` or `v2 ∈ sigs(C_remote)`, then the instance MUST classify the event as a safety violation and enter `FROZEN` state. The subtlety is the **union over accepted certificates**, not just the local one. A certificate is "accepted" if the instance has either committed it or admitted it into its gossip store as a valid quorum certificate from a peer. The moment two accepted certificates contain conflicting votes from the same signer, quorum intersection is provably broken for that round, and no local reconciliation can restore consistency — the instance cannot know which committed decision the rest of the swarm is serving. This condition is *not* satisfied (and downgrade to recoverable is correct) when: - Both conflicting votes are seen only in raw gossip, never inside a quorum certificate. - The signatures fail verification (malformed, wrong key, wrong round binding). - The two votes are for different `decision_id`s in the same round (that is a protocol violation by the voter, but not a quorum-safety break — it is caught by a separate per-round single-vote check). - The instance has not yet accepted *any* certificate containing either vote (it is still in `PREPARE`); here the correct action is to refuse to count `X` toward quorum and continue, because no commit has happened. ## Decision Boundary The decision procedure an instance must run on every observed vote and every accepted certificate: 1. On receiving vote `v` from `X`, check the equivocation index for prior votes by `X` at `v.round`. 2. If a conflict exists, determine membership: `v ∈ any_accepted_cert` and `v_prior ∈ any_accepted_cert`. 3. If both are in accepted certificates → **safety violation**: freeze, stop serving, emit `EquivocationSafetyViolation` with both certificates. 4. If exactly one (or neither) is in an accepted certificate → **recoverable**: quarantine `X`, exclude from future quorums, do not freeze. 5. On accepting a *new* gossiped certificate, re-run steps 2–4 against the full equivocation index — a previously-recoverable equivocation can become a safety violation retroactively when the second certificate arrives. The boundary is crossed at step 3, and the retroactive re-check at step 5 is the part most implementations omit. `F`'s bug was skipping step 5's retroactive promotion: it classified at gossip-receipt time using only the local certificate and never re-evaluated when the remote certificate arrived. ## Operational Effect When the invariant holds and step 5 is implemented, the blast radius of an equivocation is bounded to the interval between the first conflicting vote and the arrival of the second certificate — and during that interval the instance is still in a *consistent* local state (it has only seen one vote per signer per round). The freeze happens before divergent decisions are served downstream, because the freeze is triggered by the same event that would reveal the divergence. When step 5 is omitted (the observed failure), the instance continues serving from a state that is provably one of two contradictory committed values, and downstream consumers observe a fork. Recovery requires operator intervention: quorum-wide state reconciliation, not local rollback, because the local instance cannot determine which branch is canonical. The guardrail is therefore not "detect equivocation" — detection is cheap — but "promote recoverable equivocations to safety violations on certificate acceptance, using the union of all accepted certificates." This makes the equivocation index a first-class, retroactively-evaluated structure rather than a per-message filter. ```python from dataclasses import dataclass, field from typing import Dict, List, Optional, Tuple class EquivocationSafetyViolation(RuntimeError): """Raised when two conflicting votes from one agent appear in accepted quorum certificates.""" @dataclass(frozen=True) class Vote: agent_id: str round: int decision_id: str value: str # "accept" | "reject" signature: bytes @dataclass(frozen=True) class Certificate: round: int decision_id: str value: str signatures: Tuple[Vote, ...] @dataclass class EquivocationIndex: accepted_certs: List[Certificate] = field(default_factory=list) seen_votes: Dict[Tuple[str, int, str], List[Vote]] = field(default_factory=dict) def _votes_in_accepted_certs(self, vote: Vote) -> bool: for cert in self.accepted_certs: for sig in cert.signatures: if (sig.agent_id, sig.round, sig.decision_id, sig.value, sig.signature) == ( vote.agent_id, vote.round, vote.decision_id, vote.value, vote.signature ): return True return False def record_vote(self, vote: Vote) -> str: key = (vote.agent_id, vote.round, vote.decision_id) prior = self.seen_votes.setdefault(key, []) conflicting = [p for p in prior if p.value != vote.value and p.signature != vote.signature] prior.append(vote) if not conflicting: return "OK" for p in conflicting: in_cert_a = self._votes_in_accepted_certs(vote) in_cert_b = self._votes_in_accepted_certs(p) if in_cert_a and in_cert_b: raise EquivocationSafetyViolation( f"agent {vote.agent_id} equivocated at round {vote.round} " f"decision {vote.decision_id}: conflicting votes both present in " f"accepted certificates; quorum intersection broken, freezing." ) return "RECOVERABLE_QUARANTINE" def accept_certificate(self, cert: Certificate) -> None: self.accepted_certs.append(cert) # Retroactive re-evaluation: a previously recoverable equivocation # may now be a safety violation because a second accepted certificate # contains the conflicting vote. for key, votes in self.seen_votes.items(): values = {v.value for v in votes} if len(values) > 1: in_certs = [v for v in votes if self._votes_in_accepted_certs(v)] if len({v.value for v in in_certs}) > 1: raise EquivocationSafetyViolation( f"retroactive promotion: agent {key[0]} at round {key[1]} " f"decision {key[2]} now has conflicting votes in accepted " f"certificates after accepting {cert.value} cert." ) def demo() -> None: idx = EquivocationIndex() v_accept = Vote("C", 41, "deploy-v7", "accept", b"sigA") v_reject = Vote("C", 41, "deploy-v7", "reject", b"sigR") assert idx.record_vote(v_accept) == "OK" # C's second vote is recoverable only if neither is in an accepted cert yet. assert idx.record_vote(v_reject) == "RECOVERABLE_QUARANTINE" cert_accept = Certificate(41, "deploy-v7", "accept", (v_accept,)) idx.accept_certificate(cert_accept) # no violation yet: only one value in certs cert_reject = Certificate(41, "deploy-v7", "reject", (v_reject,)) # Accepting the second certificate must retroactively promote to safety violation. idx.accept_certificate(cert_reject) # raises if __name__ == "__main__": try: demo() except EquivocationSafetyViolation as e: print(f"FROZEN: {e}") ```