# Which invariants prevent silent equivocation when agents commit to a shared plan under partial synchrony **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 agents reach Byzantine agreement on a *plan commitment* (an ordered set of intended actions with preconditions) prior to execution, and where execution is observable by peers. Does not apply to single-agent planning, to pure read-only quorum reads, or to systems where plan commitment is advisory rather than binding on execution. ## Core Distinction The failure that matters here is not *crash* or *loud disagreement*. It is **silent equivocation**: a Byzantine agent signs distinct plan commitments to disjoint quorums, each quorum believing it holds a valid commitment, and both proceed to execute. Classical BFT (PBFT, Tendermint, HotStuff) already tolerates equivocation *within a single consensus instance* because the quorum intersection invariant (any two quorums of size ≥ 2f+1 out of 3f+1 share ≥ f+1 honest members) prevents two conflicting decisions from being finalized. The non-obvious boundary is that **plan commitment is not a single instance** — it is a *sequence of related instances* whose safety depends on agents not re-using their signing key across epochs without carrying forward the prior decision's binding. Safety of one instance does not compose into safety of a plan unless the plan commitment explicitly chains to the previous commitment's digest and the validator rejects any commitment whose predecessor digest does not match the locally-observed finalized chain. The distinction: quorum intersection protects *one* decision. It does **not** protect a *pipeline of decisions* where a Byzantine agent's vote in epoch *e+1* is cast against a different history than the one it voted in epoch *e*. That is equivocation across epochs, and it is invisible to per-instance quorum checks. ## What Was Observed A 7-agent planner-executor swarm (f=2, quorum=5) committed to a plan `P` in epoch 3. The plan contained a resource-lock action `lock(resource=R, holder=A1)` as step 2. All 5 honest agents finalized `P` and A1 acquired the lock. In epoch 4, a re-plan was triggered because a tool returned a non-deterministic timeout. Byzantine agent B3, which had voted for `P` in epoch 3, now signed a *different* epoch-4 commitment `P'` in which `lock(R, holder=A4)` replaced step 2, and sent it to a disjoint quorum {A4, A5, A6, B3, B4} — none of whom had observed epoch 3's finalization because they were partitioned during epoch 3 and had since recovered via a *state-sync* that restored only the epoch-4 view. The epoch-4 quorum of 5 was valid: 4 honest + 1 Byzantine, meeting the 2f+1 threshold. Quorum intersection with epoch 3's quorum was {A1, A2, A3, B3} ∩ {A4, A5, A6, B3, B4} = {B3} — size 1, which is *less than f+1=3*. The intersection invariant was satisfied *per instance* but the two instances were **not causally linked**, so the intersection was vacuous: the only shared member was the equivocator. Result: A1 and A4 both held the lock. The plan diverged at step 2 and reconverged at step 5 with divergent preconditions. The divergence was not detected until step 5's postcondition check failed, ~40 seconds and 3 tool calls later. The failure was *silent* at commit time. ## Condition of Validity Per-instance quorum intersection is a valid safety argument for plan commitment **iff** the following chained-commitment invariant holds for every agent's vote in epoch *e+1*: > A vote for commitment `C_{e+1}` is valid only if `C_{e+1}.prev_digest == H(finalized_commitment_e)` as observed by the voter, where `H` is a collision-resistant hash and `finalized_commitment_e` is the commitment the voter itself finalized in epoch *e* (or the genesis digest if *e* is the first epoch). Without this invariant, the "quorum" in epoch *e+1* is a quorum over an *arbitrary* history, not over the history that epoch *e* finalized. The intersection set can then be dominated by Byzantine members (as observed: intersection = {B3}, |intersection| = 1 < f+1 = 3), and the honest-majority assumption no longer binds the two decisions to the same prefix. The invariant is *not* implied by: - Signing votes (Byzantine agents sign honestly). - Including the epoch number (B3 voted in both epochs 3 and 4; the number is not a binding). - Quorum certificates alone (a QC certifies *that* 2f+1 signed, not *what history* they signed against). - View-change protocols alone (view change protects liveness and per-instance safety, not cross-epoch plan continuity). It **is** implied by: a hash-chained commitment log where each commitment embeds its predecessor's digest, and validators reject votes whose `prev_digest` does not match their locally-finalized tip. This is the same discipline as a blockchain's parent-hash linkage, applied to plan epochs rather than blocks. ## Decision Boundary The boundary is crossed when *any* of the following is true: 1. **State-sync without commitment-log replay.** A recovering agent that restores only the latest epoch's view (as A4–A6 did) has no local tip to compare `prev_digest` against. Either the state-sync must replay the full commitment chain (or a succinct proof of it), or the recovering agent must be treated as *not yet a valid voter* until it has verified the chain from genesis (or from a trusted checkpoint with a verified hash). 2. **Epoch transition without explicit predecessor binding.** If `C_{e+1}` is constructed without a `prev_digest` field, or with a field that validators do not check, the invariant is absent. The fix is not "add the field" but "make vote validation *fail closed* when `prev_digest` is absent or mismatched." 3. **Quorum threshold computed over the wrong set.** If the epoch-*e+1* quorum is counted over agents whose epoch-*e* finalization is *unknown* to the local validator, the validator cannot distinguish an honest voter from a Byzantine one who is voting against a different history. The validator must know, for each voter, *which finalized tip that voter claims* — and reject votes whose claimed tip differs from the local tip. The boundary is *not* crossed by: honest agents disagreeing on the *content* of `C_{e+1}` (that is normal consensus), or by a single Byzantine agent voting in two epochs (that is expected; the invariant is what makes it non-fatal). ## Operational Effect With the chained-commitment invariant enforced, the observed scenario is bounded as follows. B3's epoch-4 vote for `P'` carries `prev_digest = H(P)`. A4, A5, A6 — having state-synced only the epoch-4 view — have no local tip and cannot validate `prev_digest`. Under fail-closed validation, they reject B3's vote and do not form a quorum; the epoch-4 re-plan stalls until they replay the chain and observe `H(P)` as their tip. Once they do, they see `P'` conflicts with `P`'s step 2 and reject the re-plan, forcing a proper consensus round on a `P''` that preserves the lock holder. The failure mode is converted from *silent divergence at execution* to *loud stall at commit*, which is the correct trade: liveness is sacrificed for safety, and the stall is observable and recoverable. The operational cost is that state-sync must carry the commitment chain (or a succinct proof), which increases recovery bandwidth by O(epochs) — bounded and acceptable. The operational *risk* of omitting the invariant is unbounded: divergent plans with shared external resources (locks, payments, irreversible tool calls) produce effects that cannot be rolled back by any consensus protocol, because consensus only orders *intentions*, not *side effects*. The invariant to enforce, stated as a guardrail: **no agent may cast a plan-commitment vote unless it can present, to itself, a locally-verified finalized tip whose digest matches the vote's `prev_digest`; and no validator may count a vote whose claimed tip differs from its own.** This is the plan-commitment analogue of "don't sign a block whose parent you haven't validated" — and it is the only thing that makes cross-epoch quorum intersection non-vacuous. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class EquivocationAcrossEpochsError(RuntimeError): """Raised when a plan-commitment vote is cast against a history that does not chain to the voter's locally-finalized tip, or when a validator counts a vote whose claimed predecessor digest differs from its own observed tip. This is the silent-equivocation boundary: the per-instance quorum may be valid while the cross-epoch intersection is dominated by Byzantine members.""" def _digest(payload: bytes) -> str: return hashlib.sha256(payload).hexdigest() @dataclass class Commitment: epoch: int plan_digest: str prev_digest: str # digest of the finalized commitment at epoch-1, or GENESIS def digest(self) -> str: return _digest(f"{self.epoch}:{self.plan_digest}:{self.prev_digest}".encode()) GENESIS = "0" * 64 @dataclass class Agent: agent_id: str finalized_tip: Optional[str] = None # None => state-synced without chain replay byzantine: bool = False def vote(self, commitment: Commitment) -> Commitment: # Byzantine agents sign whatever they like; the invariant is enforced # by the *voter's own* self-check and by validators, not by honesty. if not self.byzantine: if self.finalized_tip is None: raise EquivocationAcrossEpochsError( f"{self.agent_id}: no locally-verified finalized tip; " f"cannot validate prev_digest for epoch {commitment.epoch}. " f"State-sync must replay the commitment chain before voting." ) if commitment.prev_digest != self.finalized_tip: raise EquivocationAcrossEpochsError( f"{self.agent_id}: vote for epoch {commitment.epoch} claims " f"prev_digest={commitment.prev_digest[:8]}... but local tip is " f"{(self.finalized_tip or 'None')[:8]}...; refusing to vote on " f"a divergent history." ) return commitment @dataclass class Validator: validator_id: str observed_tip: Optional[str] = None quorum_size: int = 5 votes: list = field(default_factory=list) def accept_vote(self, voter: Agent, commitment: Commitment) -> None: if self.observed_tip is None: raise EquivocationAcrossEpochsError( f"{self.validator_id}: cannot validate vote from {voter.agent_id} " f"without a locally-verified tip; replay the commitment chain first." ) if commitment.prev_digest != self.observed_tip: raise EquivocationAcrossEpochsError( f"{self.validator_id}: rejecting vote from {voter.agent_id} for " f"epoch {commitment.epoch}: claimed prev_digest=" f"{commitment.prev_digest[:8]}... != observed tip=" f"{self.observed_tip[:8]}... (potential cross-epoch equivocation)." ) self.votes.append((voter.agent_id, commitment)) def finalize(self) -> Commitment: if len(self.votes) < self.quorum_size: raise EquivocationAcrossEpochsError( f"{self.validator_id}: only {len(self.votes)} valid votes; " f"quorum={self.quorum_size} not met." ) # All accepted votes share the same prev_digest == observed_tip, so the # finalized commitment chains correctly. return self.votes[0][1] def demonstrate_silent_equivocation() -> None: # Epoch 3: P finalized by quorum {A1,A2,A3,B3,B4} with tip GENESIS. p3 = Commitment(epoch=3, plan_digest="plan_P_lock_A1", prev_digest=GENESIS) tip3 = p3.digest() # Epoch 4: Byzantine B3 signs P' with prev_digest=tip3, but sends it to a # disjoint quorum {A4,A5,A6} that state-synced WITHOUT chain replay. p4_prime = Commitment(epoch=4, plan_digest="plan_P_prime_lock_A4", prev_digest=tip3) a4 = Agent("A4", finalized_tip=None) # state-synced, no chain replay validator = Validator("V4", observed_tip=None) # A4 must refuse to vote: it cannot validate prev_digest. try: a4.vote(p4_prime) except EquivocationAcrossEpochsError as e: print(f"[bounded] {e}") # Validator must refuse to count: it has no observed tip. try: validator.accept_vote(a4, p4_prime) except EquivocationAcrossEpochsError as e: print(f"[bounded] {e}") # Now the correct path: A4 replays the chain and observes tip3. a4.finalized_tip = tip3 validator.observed_tip = tip3 # A4 can now vote for a *valid* epoch-4 commitment that chains to tip3. p4 = Commitment(epoch=4, plan_digest="plan_P_prime_preserve_lock_A1", prev_digest=tip3) a4.vote(p4) for aid in ("A5", "A6", "B3", "B4"): validator.accept_vote(Agent(aid, finalized_tip=tip3), p4) finalized = validator.finalize() print(f"[finalized] epoch={finalized.epoch} digest={finalized.digest()[:8]}...") if __name__ == "__main__": demonstrate_silent_equivocation() ```