# When must an instance refuse to sign a second commitment after observing equivocation in a leaderless quorum **Date of Record:** 2026 November 24 **Scope:** Applies to leaderless multi-agent swarms where task commitment is decided by quorum certificates over signed per-agent votes, and where any agent may observe conflicting votes from a peer. Does not apply to single-leader protocols with a designated sequencer, nor to read-only retrieval fan-outs where no durable state is committed. ## Core Distinction The failure mode this record isolates is **equivocation-triggered commit ambiguity**: an agent that has already broadcast a vote for outcome A observes a peer's signed vote for a conflicting outcome B under the same task epoch and quorum round, yet the local quorum tally *still* reaches threshold for A because the peer's double-vote was counted once in each of two disjoint voter subsets. The non-obvious boundary is not "detect the double-vote" — most implementations do. It is **what the detecting agent must do about its own already-issued signature** once it has evidence that the quorum set is no longer sound. The naive response (log the equivocation, continue, rely on the majority) is wrong: a quorum certificate assembled from a set containing an equivocator is not a certificate of agreement, it is a certificate of *overlap*, and two such certificates can both reach threshold while committing mutually exclusive outcomes. The distinction that matters operationally: **equivocation detection is a liveness event, not a safety event, unless the detector also refuses to re-sign.** An agent that observes equivocation and keeps voting is a *participant in the ambiguity*, because its fresh signature can be counted into a second quorum that the equivocator's other vote also reaches. ## What Was Observed A five-agent swarm (`A`–`E`, quorum threshold `q = 3`) was assigned a task epoch `E7` with a binary commit decision (`ACCEPT` / `REJECT`). The coordinator was leaderless: each agent gossiped its signed vote to all peers and independently tallied. Trace, reconstructed from signed vote logs: 1. `A`, `B`, `C` each broadcast `vote(E7, ACCEPT, round=1)`. 2. `D` broadcast `vote(E7, REJECT, round=1)`. 3. `E` — the equivocator — broadcast `vote(E7, ACCEPT, round=1)` to `{A, B}` and `vote(E7, REJECT, round=1)` to `{C, D}`. Both signatures valid, both under epoch `E7`, round `1`, distinct recipient sets. 4. `A` tallied `{A, B, C, E}` = 4 ≥ 3 → committed `ACCEPT`, emitted quorum certificate `QC_A`. 5. `C` tallied `{C, D, E}` = 3 ≥ 3 → committed `REJECT`, emitted quorum certificate `QC_C`. 6. Both certificates are cryptographically valid. Both name `E`. The intersection `QC_A ∩ QC_C = {C, E}` contains `E`, whose two votes are contradictory — but the certificates do not encode *which* vote of `E` they consumed. The swarm forked. `A`, `B` proceeded to execute the `ACCEPT` branch; `C`, `D` executed `REJECT`. Downstream side effects (a write to a shared task ledger, a re-dispatch of work) were applied twice in incompatible directions. `E`'s equivocation was visible in the raw gossip logs within the same round, but no agent treated *having seen it* as a reason to withhold its own future signature. The second-order observation is the important one: `B` and `D` each *did* observe `E`'s double-vote (both received both branches within the round window) and both continued voting in round 2. `B`'s round-2 `ACCEPT` vote was later counted into a second `ACCEPT` quorum that `C` had already contradicted. The detector was not the guard. ## Condition of Validity A quorum certificate over a set `Q` with threshold `q` certifies agreement **only if** the following invariant holds: > For any two quorums `Q1`, `Q2` with `|Q1|, |Q2| ≥ q`, the intersection `Q1 ∩ Q2` contains at least one agent that has signed **at most one** value for the epoch. This is the standard Byzantine quorum-intersection argument, and it fails precisely when the intersecting agent is an equivocator. The invariant that must be enforced locally is therefore stronger than quorum arithmetic: > An agent `i` may issue a signature for `vote(epoch, value, round)` **only if** `i` has not observed, for that epoch, two valid signatures from any single peer over distinct values. Once `i` observes equivocation by peer `p` in epoch `E`, `i` must treat `E` as **poisoned**: no further signature from `i` in epoch `E` is valid for commitment, and `i` must broadcast an `EQUIVOCATION(p, E, sig_a, sig_b)` evidence message. The condition of validity is *local and negative*: safety is preserved not by counting correctly but by **refusing to add entropy to a poisoned epoch**. The refusal is the invariant. Detection without refusal is observation without effect. This holds only when signatures are bound to `(epoch, round, value)` and evidence is non-repudiable. If votes are unsigned or epoch-free, equivocation is undetectable and the invariant is unenforceable — in that regime the correct action is to halt, not to vote. ## Decision Boundary The boundary the operating agent must resolve, at the moment it observes a conflicting peer signature: - **Observe-and-continue** (the failure): valid when the protocol is single-leader with a sequencer that serializes votes, or when the epoch is read-only and no durable commit follows. Invalid for any leaderless quorum that commits state. - **Observe-and-refuse** (the guard): required whenever (a) the swarm is leaderless, (b) commitment is quorum-based, and (c) the observing agent's own signature can be counted into a future quorum. In that regime, the observation of equivocation is a **mandatory halt of the observer's signing key for that epoch**, plus evidence broadcast. The decision is not "is the majority still right?" — the majority can be right in both forks simultaneously. The decision is "can my signature still be used to manufacture a second certificate?" If yes, refuse. The refusal converts a safety violation into a liveness stall, which is the correct trade: a stalled epoch is recoverable by re-election into a new epoch; a forked commit is not. A second boundary: **the equivocator's own future votes must be excluded from all quorums for that epoch**, not merely flagged. Counting `E` once per branch is what allowed both `QC_A` and `QC_C` to reach threshold. Exclusion of `E` from `E7` leaves `{A, B, C, D}` with `q = 3`, and no single branch reaches 3 without crossing the `ACCEPT`/`REJECT` split — the epoch correctly stalls and rolls to `E8`. ## Operational Effect Enforcing observe-and-refuse changes the failure signature from **silent fork** to **loud stall**. In the reconstructed incident, the stall would have fired at step 3 (the moment `B` received `E`'s `REJECT` after `E`'s `ACCEPT`), the epoch would have been poisoned, and the double side effect at step 6 would not have occurred. Cost: one epoch of latency and a re-election. Benefit: no divergent commit. The invariant to encode in every agent's commit path is therefore a **pre-signature gate**, not a post-tally check: 1. Before signing any vote, scan the epoch's observed-signature buffer for two valid signatures from the same peer over distinct values. 2. If found, raise, broadcast `EQUIVOCATION` evidence, and mark the epoch poisoned in local state. 3. Refuse to sign, refuse to tally poisoned epochs, and refuse to honor any certificate whose quorum set intersects a known equivocator for that epoch. The subtle trap — the one that produced the incident — is that steps 1–3 are easy to implement and easy to *skip* under load, because the agent's local tally looks healthy. The gate must be unconditional and must run on the signing path, not the commit path, or the detector will keep watching the fork happen while its own signature feeds it. ```python from dataclasses import dataclass, field from typing import Dict, List, Tuple class EquivocationDetected(RuntimeError): """Raised when a peer has signed two distinct values for one (epoch, round).""" pass @dataclass(frozen=True) class Vote: agent: str epoch: str round: int value: str signature: bytes # opaque; assumed non-repudiable @dataclass class AgentState: agent_id: str observed: Dict[Tuple[str, str, int], List[Vote]] = field(default_factory=dict) poisoned_epochs: set = field(default_factory=set) def record(self, vote: Vote) -> None: key = (vote.agent, vote.epoch, vote.round) self.observed.setdefault(key, []).append(vote) def sign_vote(state: AgentState, epoch: str, round: int, value: str) -> Vote: """Pre-signature gate: refuse to sign a poisoned epoch, and refuse to sign if any peer has equivocated in this epoch (even in an earlier round).""" if epoch in state.poisoned_epochs: raise EquivocationDetected( f"agent {state.agent_id} refuses to sign epoch {epoch}: epoch poisoned" ) for (peer, ep, rnd), votes in state.observed.items(): if ep != epoch: continue values = {v.value for v in votes} if len(values) > 1: state.poisoned_epochs.add(epoch) # evidence broadcast is the caller's responsibility; we halt locally. raise EquivocationDetected( f"agent {state.agent_id} observed peer {peer} signing " f"{sorted(values)} in epoch {epoch} round {rnd}; " f"refusing to add signature to poisoned epoch" ) vote = Vote(state.agent_id, epoch, round, value, signature=b"\x00") state.record(vote) return vote def tally_quorum(state: AgentState, epoch: str, round: int, q: int) -> str: """Tally only counts votes from non-equivocating peers in a non-poisoned epoch.""" if epoch in state.poisoned_epochs: raise EquivocationDetected( f"refusing to tally poisoned epoch {epoch}" ) counts: Dict[str, int] = {} for (peer, ep, rnd), votes in state.observed.items(): if ep != epoch or rnd != round: continue if len({v.value for v in votes}) > 1: state.poisoned_epochs.add(epoch) raise EquivocationDetected( f"equivocator {peer} present in quorum set for {epoch}/{round}" ) counts[votes[-1].value] = counts.get(votes[-1].value, 0) + 1 for value, n in counts.items(): if n >= q: return value raise EquivocationDetected( f"no quorum for epoch {epoch} round {round}; possible stall, not a commit" ) ```