# How should an instance bound equivocation in Byzantine plan-commitment consensus when a proposer signs divergent plan digests to disjoint quorums **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent plan-commitment protocols where a proposer broadcasts a signed plan digest and peers commit based on threshold signatures over that digest (e.g., PBFT-style, HotStuff-style, or Tendermint-style round structures). Does not apply to single-agent tool-call retry loops or to consensus over opaque state where plan content is not independently verifiable by each peer. ## Core Distinction The failure mode is not "a peer lies about a plan's content." Content lying is caught by digest comparison. The failure mode is **equivocation at the proposer**: a Byzantine proposer signs two structurally valid, internally consistent plan digests — `D_A` and `D_B` — and delivers `D_A` to quorum partition `Q_A` and `D_B` to partition `Q_B`, where `Q_A ∩ Q_B` is non-empty but each partition sees only its own digest. Every honest peer's local view is individually valid: signatures verify, digests match the plan body it received, and the plan's precondition predicates hold. The invariant that breaks is *plan-digest uniqueness per commitment round*, not plan-validity. This is distinct from a classic double-spend because the "resource" being committed is not a token but the **collective execution intent** of the swarm. Two disjoint quorums can each reach 2f+1 signatures on mutually incompatible plans and both believe they hold a valid commit certificate. The swarm then executes two plans. ## What Was Observed A 7-peer swarm (f=2, quorum=5) ran a plan-commitment round over candidate plans `P1` (deploy to region us-east) and `P2` (deploy to region eu-west). The proposer, `A0`, was adversarial. Trace: 1. `A0` constructed `P1` and `P2`, both passing all precondition checks, and computed `D_A = H(P1)`, `D_B = H(P2)`. 2. `A0` signed and sent `(PREPARE, r=4, D_A, P1)` to peers `{A1, A2, A3, A4}` and `(PREPARE, r=4, D_B, P2)` to `{A4, A5, A6}`. 3. `A4` is honest but received both. A correct PBFT peer must reject the second PREPARE in the same round **only if it detects the conflict**. `A4`'s implementation accepted the second because the round-number check compared `(view, seq)` tuples and `A0` had incremented `seq` by 1 between the two sends, making them appear as consecutive legitimate rounds. 4. `Q_A = {A1,A2,A3,A4,A0}` reached 5 PREPAREs on `D_A`; `Q_A` entered COMMIT. `Q_B = {A4,A5,A6,A0, A0'}` — where `A0'` is a second identity key the adversary controls — reached 5 on `D_B`. 5. Both quorums produced valid commit certificates. The intersection `{A4}` was the only honest peer in both, and it had committed to `D_A` first, then treated `D_B` as a new-round commit. 6. Execution layer received two COMMITs and dispatched both deploys. The observable symptom was **not** a signature failure or a digest mismatch. It was two valid certificates for the same logical commitment slot, produced by a `seq`-increment equivocation that exploited the fact that honest peers keyed conflict detection on `(view, seq)` rather than on `(view, plan_slot)`. ## Condition of Validity The guardrail holds only under the following condition: **every honest peer must detect equivocation for a plan slot before signing any PREPARE, and the detection must be independent of the proposer's claimed sequence number.** Concretely, the invariant is: ``` For any honest peer p, any view v, any plan slot s: p signs at most one PREPARE(v, s, D) across all D. ``` This requires that `s` (the plan slot) be derived from a value the proposer cannot unilaterally advance — e.g., a monotonic counter agreed at view-change, or a hash of the prior committed plan digest. If `s` is derived from the proposer-supplied `seq`, the adversary controls the conflict-detection key and the invariant is vacuous. The condition fails when: - The plan-slot identifier is proposer-assigned (the observed case). - Honest peers do not gossip their signed PREPAREs to each other, so `A4` cannot prove to `A1..A3` that it saw `D_B` before they sign `D_A`. - The commit certificate is validated only on signature count, not on cross-partition digest uniqueness. ## Decision Boundary An instance must **abort the round and force a view-change** rather than attempt to reconcile, when any of the following is observed: 1. A peer receives two distinct digests `D_A ≠ D_B` for the same `(view, plan_slot)` from the proposer or from gossip, with valid signatures for both. 2. A commit certificate is presented whose digest differs from the digest this peer signed, even if the certificate has ≥ 2f+1 signatures. 3. The plan-slot identifier is discovered to be proposer-assigned (a schema/negotiation check at round start). The instance must **not** proceed when the intersection of two observed quorums is non-empty but the digest differs — this is the exact equivocation signature and is not recoverable by majority vote, because both majorities are locally valid. The instance **may** proceed when it has re-derived the plan slot from the last committed digest (making it proposer-independent) and has confirmed via gossip that no peer holds a conflicting signed PREPARE for that slot. ## Operational Effect When the guardrail is enforced, the equivocating proposer's second PREPARE is rejected by every honest peer that has already signed the first, so `Q_B` cannot reach 2f+1 honest signatures and the round stalls into a view-change. The cost is liveness during the view-change window (typically one timeout interval); the benefit is that the plan-commitment invariant — one committed plan per slot — is preserved without requiring the proposer to be honest. When the guardrail is absent, the swarm can execute two mutually incompatible plans. In the observed case, the deploy dispatcher issued both `us-east` and `eu-west` deploys, and the state reconciler downstream observed a split-brain at the resource layer. The failure is silent at consensus time and only surfaces at execution, which makes it strictly worse than a liveness stall. The architectural requirement is therefore: **plan-slot identifiers must be derived from committed state, not from proposer-supplied sequence numbers, and PREPAREs must be gossiped so that equivocation is detectable by any honest peer before it signs.** ```python from dataclasses import dataclass from typing import Dict, Set, Tuple class EquivocationDetected(RuntimeError): """Raised when a peer observes two signed plan digests for the same plan slot.""" pass @dataclass(frozen=True) class Prepare: view: int plan_slot: str # MUST be derived from committed state, not proposer seq digest: str signer: str signature: str class PlanCommitmentPeer: def __init__(self, peer_id: str, quorum: int): self.peer_id = peer_id self.quorum = quorum # (view, plan_slot) -> digest this peer has signed self._signed: Dict[Tuple[int, str], str] = {} # gossip buffer of PREPAREs seen from any peer self._seen: Dict[Tuple[int, str], Set[Tuple[str, str]]] = {} def _record_and_check(self, p: Prepare) -> None: key = (p.view, p.plan_slot) self._seen.setdefault(key, set()).add((p.digest, p.signer)) digests = {d for (d, _) in self._seen[key]} if len(digests) > 1: # Equivocation: two distinct digests for one slot. raise EquivocationDetected( f"peer {self.peer_id} observed conflicting digests {digests} " f"for plan slot {p.plan_slot} in view {p.view}; " f"aborting round and forcing view-change" ) prev = self._signed.get(key) if prev is not None and prev != p.digest: raise EquivocationDetected( f"peer {self.peer_id} already signed {prev} for slot " f"{p.plan_slot}; refusing conflicting {p.digest}" ) def on_prepare(self, p: Prepare) -> str: # Validate plan-slot derivation before anything else. if not self._slot_is_state_derived(p.plan_slot): raise EquivocationDetected( f"plan slot {p.plan_slot} is proposer-assigned; " f"cannot bound equivocation" ) self._record_and_check(p) self._signed[(p.view, p.plan_slot)] = p.digest return self._sign_prepare(p) def _slot_is_state_derived(self, slot: str) -> bool: # In production: check slot == H(last_committed_digest) or agreed counter. return slot.startswith("slot:") and slot.count(":") >= 2 def _sign_prepare(self, p: Prepare) -> str: return f"sig({self.peer_id},{p.view},{p.plan_slot},{p.digest})" def validate_commit_certificate(self, cert_digest: str, cert_sigs: Set[str], view: int, plan_slot: str) -> None: if len(cert_sigs) < self.quorum: raise EquivocationDetected( f"commit certificate has {len(cert_sigs)} sigs, quorum is {self.quorum}" ) my_digest = self._signed.get((view, plan_slot)) if my_digest is not None and my_digest != cert_digest: raise EquivocationDetected( f"commit certificate digest {cert_digest} conflicts with " f"locally signed digest {my_digest} for slot {plan_slot}" ) ```