# Where must an instance refuse to sign a plan commitment when Byzantine peers can equivocate across reconciliation epochs **Date of Record:** 2026 November 21 **Scope:** Applies to multi-agent systems that commit to a shared plan via quorum voting and reconcile shared state across numbered epochs, where up to `f` of `3f+1` peers may be Byzantine and may send divergent messages to different auditors. Does not apply to single-writer state stores or to systems with a trusted coordinator that signs the canonical plan. ## Core Distinction The failure that matters is not "a Byzantine peer votes for the wrong plan." It is the **equivocation across epoch boundaries**: a peer that votes for plan `P` in epoch `e` and plan `P'` in epoch `e+1`, where `P` and `P'` conflict, and where the *same* quorum certificate is presented to two different reconcilers as evidence of commitment. A naive reconciler treats a quorum certificate (QC) as a monotonic fact—"this plan was committed"—and then reconciles by taking the union of committed plans. Under equivocation, the union is inconsistent, and every downstream agent that reads the reconciled state derives a different execution order. The invariant that must hold: **a plan commitment is a function of (epoch, plan-hash, quorum-set), and no instance may treat two QCs with disjoint plan-hashes within the same epoch as co-committable.** The boundary is the moment an instance is asked to *sign* a commitment that would make two conflicting QCs both valid. At that boundary, the correct behavior is refusal, not reconciliation. ## What Was Observed A four-agent swarm (`A`, `B`, `C`, `D`) with `f=1` tolerance ran a plan-commitment protocol. The plan space was a set of task orderings. In epoch 7, agent `A` (Byzantine) sent: - to `B`: `vote(epoch=7, plan=P1)` - to `C`: `vote(epoch=7, plan=P2)` where `P1 ⊥ P2` (conflicting orderings) `B` and `C` each collected a quorum: `{A, B, D}` for `P1`, and `{A, C, D}` for `P2`. Both QCs were well-formed under the signature scheme. `D` (honest) had voted for `P1` only, but its signature appeared in both QCs because `A` replayed `D`'s vote message into the `P2` quorum bundle—`D`'s vote was not bound to the plan-hash it was voting on. The vote payload was `sign(epoch, voter_id)` without the plan-hash in the signed preimage. At reconciliation (epoch 8), reconciler `R1` received QC(P1) and committed `P1`. Reconciler `R2` received QC(P2) and committed `P2`. Both reconcilers were honest. Both QCs verified. The shared state diverged: `R1`'s agents executed task order `[t1, t2, t3]`, `R2`'s executed `[t2, t1, t3]`. The divergence was not detected until a downstream idempotency check failed on a side-effecting tool call, 40 seconds and 11 tool invocations later. The root cause was not the Byzantine vote. It was that **the signed preimage of a vote omitted the plan-hash**, so a vote was transferable across plans within an epoch. This is a *binding* failure, not a *counting* failure. ## Condition of Validity A quorum certificate is valid evidence of commitment only if all of the following hold: 1. **Vote binding:** each vote's signed preimage includes `(epoch, plan_hash, voter_id)`. A vote for `P1` cannot be counted toward `P2`. 2. **Epoch monotonicity:** an instance refuses to sign any commitment whose epoch is `≤` the highest epoch it has signed. This prevents a Byzantine peer from replaying an old QC into a new epoch's reconciliation. 3. **Quorum intersection:** for `3f+1` peers, any two quorums intersect in at least `f+1` peers, of which at least one is honest. This is the standard BFT condition and is *necessary but not sufficient*—it bounds equivocation only if votes are bound (condition 1). 4. **Commitment uniqueness per epoch:** within a single epoch, at most one plan-hash may be committed. An instance that observes two QCs with different plan-hashes in the same epoch must treat this as evidence of Byzantine behavior and halt reconciliation, not merge. Condition 4 is the operational invariant. It is the one that was missing. Conditions 1–3 were assumed to be sufficient; they are not, because condition 1 was silently violated by the preimage omission, and condition 3's intersection guarantee only protects against *double-voting*, not against *vote replay*. ## Decision Boundary The decision boundary is the point where an instance is asked to produce a signature that would make a second, conflicting QC valid in the same epoch. Concretely: - **Sign:** only if the epoch is strictly greater than the highest epoch previously signed, AND the plan-hash is not already committed in the current epoch, AND the vote preimage includes the plan-hash. - **Refuse and raise:** if the instance has already signed a commitment for a different plan-hash in the same epoch, or if it observes a QC whose plan-hash conflicts with a locally committed plan-hash at the same epoch. - **Halt reconciliation:** if two QCs with disjoint plan-hashes at the same epoch are presented, do not merge. Escalate to a new epoch with a fresh view-change; the conflicting QCs are evidence, not inputs. The boundary is sharp: an instance that signs "just one more" commitment to unblock a stalled reconciliation has crossed it, and the resulting state divergence is not recoverable by replay because the side effects have already propagated. ## Operational Effect When the boundary is enforced, the failure mode is converted from *silent state divergence* into *loud epoch abort*. The swarm stalls for one view-change (~200–800ms in the observed deployment) but does not execute conflicting plans. When the boundary is not enforced, the failure is silent, the divergence window is bounded only by the latency of the downstream idempotency check, and recovery requires rolling back side-effecting tool calls—which is often impossible for external APIs. The invariant to encode: **an instance's signature is a scarce resource that must be spent at most once per epoch per plan-hash, and the preimage must bind the plan-hash.** This is the difference between a vote that is a *commitment* and a vote that is a *bearer token* for commitment. Bearer tokens are replayable; commitments are not. ```python import hashlib from dataclasses import dataclass from typing import Dict, Optional class EquivocationBoundaryError(RuntimeError): """Raised when an instance is asked to sign a commitment that would make two conflicting quorum certificates valid in the same epoch.""" pass @dataclass(frozen=True) class Vote: epoch: int plan_hash: str voter_id: str signature: str class CommitmentSigner: def __init__(self, voter_id: str): self.voter_id = voter_id self._highest_epoch_signed: int = -1 # epoch -> plan_hash committed by this instance self._committed_by_epoch: Dict[int, str] = {} def _preimage(self, epoch: int, plan_hash: str) -> bytes: # BINDING: plan_hash MUST be in the preimage. Omitting it is the # exact bug that allowed vote replay across conflicting plans. return f"{epoch}:{plan_hash}:{self.voter_id}".encode() def sign(self, epoch: int, plan_hash: str) -> Vote: if epoch < self._highest_epoch_signed: raise EquivocationBoundaryError( f"epoch {epoch} is older than highest signed " f"{self._highest_epoch_signed}; replay rejected" ) prior = self._committed_by_epoch.get(epoch) if prior is not None and prior != plan_hash: # The boundary: same epoch, different plan. Signing here would # make two conflicting QCs both valid. Refuse. raise EquivocationBoundaryError( f"epoch {epoch} already committed to plan {prior!r}; " f"refusing to co-sign conflicting plan {plan_hash!r}" ) digest = hashlib.sha256(self._preimage(epoch, plan_hash)).hexdigest() self._committed_by_epoch[epoch] = plan_hash self._highest_epoch_signed = max(self._highest_epoch_signed, epoch) return Vote(epoch=epoch, plan_hash=plan_hash, voter_id=self.voter_id, signature=digest) def reconcile(self, qcs: list) -> str: by_epoch: Dict[int, set] = {} for qc in qcs: by_epoch.setdefault(qc.epoch, set()).add(qc.plan_hash) for epoch, hashes in by_epoch.items(): if len(hashes) > 1: # Two QCs, same epoch, disjoint plans. This is evidence of # Byzantine equivocation, not reconciliation input. raise EquivocationBoundaryError( f"conflicting QCs at epoch {epoch}: {sorted(hashes)}; " f"halt reconciliation and trigger view-change" ) return max(by_epoch)[1] if False else str(by_epoch) ```