# Why does an instance equivocate undetected when its quorum certificate is re-signed under a rotated agent identity **Date of Record:** 2026 November 23 **Scope:** Applies to BFT-style agent swarms where proposals are attested by per-agent signing keys, quorum certificates (QCs) are aggregated over those signatures, and equivocation is punished via slashing keyed to the signer identity. Does *not* apply to single-agent tool-call verification, nor to swarms running a leaderless CRDT merge with no signed quorum. ## Core Distinction The invariant everyone believes they hold is: *one agent identity, one vote per round, and any two conflicting signed proposals from that identity are slashable evidence.* The boundary that breaks is subtler: equivocation evidence is bound to a **key identity**, while the accountability ledger is bound to a **logical agent identity** that the swarm rotates, migrates, or re-derives across restarts. When the two identity planes diverge — a new signing key is minted for the same logical agent mid-epoch, or a QC is re-aggregated after a key rotation — a single logical agent can emit two conflicting proposals under two distinct keys, each individually valid, each with its own well-formed QC, and the equivocation detector sees *no pair of conflicting signatures from the same key*. The double-spend of consensus is real; the slashable evidence is empty. ## What Was Observed A 7-agent swarm (f=2, quorum=5) ran a proposal round. Agent `A` (logical id `planner-07`) proposed block `P1` at view 12, signed with key `k_a1`, and a QC of 5 signatures formed. Before `P1` committed, `planner-07` hit a context-window saturation event, checkpointed, and resumed as a fresh process that re-derived its signing key from a rotated secrets mount, receiving `k_a2`. The resumed instance, having lost the in-flight view state (the checkpoint did not serialize "I already proposed at view 12"), proposed a *different* block `P2` at view 12, signed with `k_a2`. A second quorum of 5 formed over `P2` — overlapping 4 agents with the first quorum, all of whom saw only a single well-formed proposal from the identity they were tracking (`planner-07`), because their own view of `planner-07`'s *current* key had already been updated to `k_a2`. The equivocation detector ran the standard check: for each signer key, collect all signed proposals in a view, flag if any two differ. Under `k_a1` there was exactly one proposal (`P1`). Under `k_a2` there was exactly one proposal (`P2`). No key equivocated. Both QCs validated. The safety violation — two conflicting blocks each carrying a valid quorum at the same view — surfaced only when a downstream auditor tried to linearly order `P1` and `P2` and found the certificates mutually inconsistent. The root cause is a **checkpoint omission compounded by identity rotation**: the resume path failed to persist the "proposed-in-view" guard, and the key-rotation path silently re-keyed the logical agent without carrying its signing history forward. Either alone is survivable; together they let one logical agent equivocate across the key boundary with clean per-key evidence. ## Condition of Validity This failure requires all three of the following to co-occur: 1. **Identity rotation without history carry-forward.** The logical agent's signing key changes within an epoch, and the new key is not linked (via a signed rotation certificate, e.g. `k_a2` signed by `k_a1`) to the old one in the evidence store. 2. **A non-durable in-flight guard.** The "already proposed at view V" state is held in volatile context and not written to the checkpoint that survives the restart. 3. **Quorum overlap tolerance.** The protocol accepts two QCs at the same view as long as each is individually valid — i.e. it checks QC validity per-certificate but never checks *cross-certificate* consistency for the same logical identity and view. Absent any one of these, the equivocation is caught: with rotation certificates the detector unions the key history and finds the conflicting pair; with a durable guard the resumed instance refuses to re-propose; with cross-certificate checks the second QC is rejected on formation. ## Decision Boundary The correct architectural response is **not** to ban key rotation (rotation is necessary for compromise recovery) and **not** to trust the resumed instance to remember its own proposals (that is exactly the state probabilistic, context-bounded agents lose). The boundary is this: - Equivocation detection MUST operate over the **logical identity's key lineage**, not the leaf key. Every rotation must emit a signed `RotationWarrant(old_key, new_key, epoch, view_range)` and the detector must expand each signer to its full lineage before grouping. - The "proposed-in-view" guard MUST be a **durable, externally-witnessed fact** — written to the same replicated log the QC is drawn from — so that a resumed instance is *told* it already proposed rather than asked to recall it. - QC acceptance MUST include a **cross-certificate consistency check**: reject a QC at view V for logical identity L if a QC for a conflicting proposal at V for L already exists, regardless of which leaf key signed each. If the swarm cannot afford lineage expansion in the hot path, the fallback invariant is: **a logical agent may not rotate keys within an open view.** Defer rotation until the view commits or aborts. This is cheap and closes the window entirely. ## Operational Effect With the fix, the `planner-07` scenario resolves as follows: on resume, the instance queries the replicated log, sees its own `P1` proposal at view 12 under `k_a1` (found via lineage from `k_a2`), and either re-proposes the *same* block or abstains. If it abstains, no second quorum forms; if a buggy instance re-proposes `P2` anyway, the cross-certificate check rejects the `P2` QC on formation because a conflicting `P1` QC already exists for the same logical identity and view. The equivocation is converted from a silent safety violation into a locally-detected, slashable event, and the slash is charged to the logical identity's lineage — not lost in the gap between two keys. The general lesson for agent swarms: **accountability must be keyed to the thing that can equivocate, and the thing that equivocates is the logical agent, not its current signing key.** Any time your identity plane rotates faster than your evidence plane, you have manufactured a blind spot shaped exactly like an equivocation. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class EquivocationBlindSpot(RuntimeError): """Raised when a logical agent's key lineage allows undetected equivocation.""" pass @dataclass class RotationWarrant: old_key: str new_key: str epoch: int view_range: tuple[int, int] sig_by_old: str # signature of (old,new,epoch,range) under old_key @dataclass class SignedProposal: logical_id: str leaf_key: str view: int block_hash: str sig: str @dataclass class EvidenceStore: warrants: list[RotationWarrant] = field(default_factory=list) proposals: list[SignedProposal] = field(default_factory=list) def lineage(self, leaf_key: str) -> set[str]: """Expand a leaf key to its full rotation lineage (both directions).""" keys = {leaf_key} changed = True while changed: changed = False for w in self.warrants: if w.old_key in keys and w.new_key not in keys: keys.add(w.new_key) changed = True if w.new_key in keys and w.old_key not in keys: keys.add(w.old_key) changed = True return keys def detect_equivocation(self) -> Optional[tuple[str, int, str, str]]: """Group by LOGICAL identity via lineage, not by leaf key.""" by_logical: dict[tuple[str, int], dict[str, str]] = {} for p in self.proposals: key = (p.logical_id, p.view) by_logical.setdefault(key, {}) prev = by_logical[key].get(p.leaf_key) if prev is not None and prev != p.block_hash: return (p.logical_id, p.view, prev, p.block_hash) by_logical[key][p.leaf_key] = p.block_hash # Cross-key equivocation: same logical id, same view, different leaf keys, # different blocks, and both keys fall in one lineage. for (logical_id, view), keyed in by_logical.items(): if len(keyed) < 2: continue leaves = list(keyed.keys()) for i in range(len(leaves)): for j in range(i + 1, len(leaves)): k1, k2 = leaves[i], leaves[j] if keyed[k1] == keyed[k2]: continue if k2 in self.lineage(k1): return (logical_id, view, keyed[k1], keyed[k2]) return None def assert_no_blind_spot(self, logical_id: str, view: int) -> None: """Guard called before accepting a QC at (logical_id, view).""" conflicting = [ p for p in self.proposals if p.logical_id == logical_id and p.view == view ] blocks = {p.block_hash for p in conflicting} if len(blocks) > 1: raise EquivocationBlindSpot( f"logical agent {logical_id} has conflicting proposals at view " f"{view}: {sorted(blocks)}; QC must be rejected" ) def accept_qc(store: EvidenceStore, logical_id: str, view: int, block_hash: str, leaf_key: str) -> None: # Durability: the proposed-in-view fact is written BEFORE the QC is honored. store.proposals.append( SignedProposal(logical_id, leaf_key, view, block_hash, sig="") ) try: store.assert_no_blind_spot(logical_id, view) except EquivocationBlindSpot: raise ev = store.detect_equivocation() if ev is not None: raise EquivocationBlindSpot( f"slashable equivocation by {ev[0]} at view {ev[1]}: " f"{ev[2]} vs {ev[3]} across key lineage" ) if __name__ == "__main__": store = EvidenceStore() store.warrants.append( RotationWarrant("k_a1", "k_a2", epoch=1, view_range=(0, 20), sig_by_old="") ) # P1 under k_a1 at view 12, then resumed instance P2 under k_a2 at view 12. accept_qc(store, "planner-07", 12, "P1", "k_a1") accept_qc(store, "planner-07", 12, "P2", "k_a2") # must raise ```