# Under what conditions must an instance refuse to commit a plan under Byzantine quorum when its own vote is the deciding ballot? **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent swarms where plan commitment is decided by Byzantine fault-tolerant (BFT) quorum voting over signed plan hashes, and where an individual agent's vote can be the marginal ballot that crosses the 2f+1 threshold. Does not apply to single-agent execution, to leader-only commitment schemes, or to optimistic commit paths without quorum certification. ## Core Distinction The failure mode is not "an agent votes for a bad plan." It is the **deciding-ballot equivocation trap**: an agent that is the marginal voter (its signed vote is the one that pushes a proposal from 2f to 2f+1) cannot distinguish, from its local view alone, between (a) a legitimate quorum that formed around one plan hash and (b) a partition-induced split where two disjoint cohorts each believe they are assembling a quorum over *different* plan hashes, and this agent's vote is the tipping signature for both. The distinguishing invariant is that **a vote is not a commitment; a quorum certificate is.** The deciding voter must treat its own signature as a *pending* liability, not a settled fact, until it has observed the certificate (the set of 2f+1 signatures over the *same* hash) that its vote helped form. The non-obvious part: under partial synchrony, the marginal voter is exactly the node with the least information about whether the quorum it is completing is the *canonical* quorum or a *shadow* quorum. The nodes that voted earlier saw a smaller set and had no ambiguity. The deciding node is the one whose local message log is most likely to be incomplete precisely because it is the one being raced to. ## What Was Observed A 7-node swarm (f=2, quorum=5) executing a plan-commitment round for a `deploy-migration` plan hash `H_a`. A network partition isolated nodes {1,2,3} from {4,5,6,7} for 340ms during the vote-collection phase. Node 5 (marginal voter in cohort B) received signed votes for `H_a` from {4,6,7} and, 12ms later, a *stale, replayed* vote for `H_a'` (a superseded plan hash, identical except for a reordered step) from node 2 whose signature was valid but whose view number was one epoch behind. Node 5's vote-collection logic counted signatures without checking view-number monotonicity against its own current view. Node 5 signed and broadcast its vote for `H_a`, completing cohort B's quorum (5 of 7 for `H_a`). Simultaneously, cohort A, having independently collected {1,2,3} plus a pre-partition vote from node 4 for `H_a'`, also reached 2f+1 for `H_a'`. Result: two valid-looking quorum certificates over two different plan hashes, both containing node 5's signature. The equivocation was detected only at execution time when two agents began executing divergent step orderings. Node 5 was later slashed by the auditor, but the *plan had already partially executed* — the divergence was detected at the side-effect layer, not the consensus layer. The failure trace: `vote_received(stale_view) → signature_counted_without_view_check → marginal_vote_cast → dual_quorum_formed → execution_divergence → post-hoc_slash`. The first three transitions were local and silent; the fourth was global and unrecoverable without rollback. ## Condition of Validity The deciding-ballot rule is valid **only if** the marginal voter enforces all three of the following before casting the deciding signature: 1. **View monotonicity per signer**: every counted vote must carry a view number ≥ the voter's own current view. A stale-view vote is a *replay artifact* and must be quarantined, not counted, even if cryptographically valid. Signature validity is necessary but not sufficient — it proves *who* signed, not *when* in the consensus timeline. 2. **Hash-set singularity**: the voter must confirm that all 2f votes it is about to complete are over the *identical* plan hash bytes, not merely "equivalent" plans. Plan hashes must be computed over a canonical serialization (step order, resource refs, preconditions) so that reordered-but-semantically-equal plans hash differently. 3. **Self-exclusion check**: before casting the deciding vote, the voter must verify that its own signature does not already appear in any *other* collected quorum certificate it has observed in this epoch. If it does, it is already equivocating and must abort, not complete. If any of the three cannot be established from the local log, the voter must **refuse to cast the deciding ballot** and instead escalate to a view-change. Refusal is safe; a deciding vote under ambiguity is not. ## Decision Boundary The boundary is drawn at **marginality**: an agent may cast a vote freely when its vote is *not* the deciding one (the quorum will form or fail regardless of this vote, so the vote is informational). An agent must apply the full three-check protocol *only* when its vote would cross the 2f+1 threshold. This asymmetry is the operational lever — it bounds the cost of the protocol to the rare marginal case (roughly 1 in `quorum_size` votes) while closing the equivocation window. The boundary condition that trips most implementations: the marginal voter's local log is *by construction* the most likely to be incomplete, because peers race to complete quorums through the node with the fewest observed votes. The "least informed node is the deciding node" property is not a bug to be fixed but a structural feature of quorum assembly that the protocol must accommodate by making the deciding vote *conditional*. ## Operational Effect Enforcing the deciding-ballot protocol converts a silent, side-effect-layer equivocation into a loud, consensus-layer view-change. In the observed case, node 5 would have detected the stale-view vote from node 2 (check 1), quarantined it, seen only 3 valid votes for `H_a` (below threshold), and escalated to view-change — costing one round of latency (~200ms) but preventing the dual-quorum and the partial divergent execution. The trade is explicit: **latency on the marginal path in exchange for eliminating the equivocation window.** Swarms that optimize for commit latency by skipping the marginality check are trading a bounded, rare latency cost for an unbounded, rare *correctness* cost — and correctness costs in plan execution are not recoverable by retry, because side effects have already propagated. The guardrail is architectural: the vote-collection function must be *threshold-aware*, branching on `len(votes) == quorum - 1` to invoke the full check, and the commit function must require a *certificate object* (the full 2f+1 signature set) rather than a boolean quorum flag. A boolean loses the provenance needed to detect equivocation after the fact. ```python from dataclasses import dataclass, field from typing import Dict, List, Optional class DecidingBallotEquivocationError(RuntimeError): """Raised when a marginal voter cannot safely cast the deciding ballot.""" @dataclass(frozen=True) class SignedVote: signer: str plan_hash: str view: int signature: bytes @dataclass class VoteCollector: own_id: str current_view: int quorum: int votes: List[SignedVote] = field(default_factory=list) def _valid_for_counting(self, v: SignedVote) -> bool: # Check 1: view monotonicity. Stale-view votes are replay artifacts. if v.view < self.current_view: return False # Check 2: hash singularity is enforced at collection time below. return True def collect(self, incoming: SignedVote) -> Optional[str]: """Returns committed plan_hash if quorum reached, else None. Raises if this vote would be deciding but cannot be validated.""" if not self._valid_for_counting(incoming): return None # quarantine stale vote, do not count # Hash singularity: all counted votes must share one plan hash. hashes = {v.plan_hash for v in self.votes if self._valid_for_counting(v)} if hashes and incoming.plan_hash not in hashes: # Divergent hash in same view: do not count, escalate. raise DecidingBallotEquivocationError( f"hash divergence: {incoming.plan_hash} vs {hashes}" ) prospective = len([v for v in self.votes if self._valid_for_counting(v)]) + 1 is_deciding = prospective == self.quorum if is_deciding: # Check 3: self-exclusion — own signature must not already # appear in another quorum certificate this epoch. if self._own_sig_in_other_cert(incoming.plan_hash): raise DecidingBallotEquivocationError( "own signature already committed to another plan hash" ) # All three checks passed; safe to cast the deciding ballot. self.votes.append(incoming) return incoming.plan_hash self.votes.append(incoming) return None def _own_sig_in_other_cert(self, plan_hash: str) -> bool: # Placeholder: query the epoch cert log for prior own-signed certs. return False def commit_plan(collector: VoteCollector, incoming: SignedVote) -> Optional[str]: """Commit only on a full certificate, never on a boolean quorum flag.""" try: return collector.collect(incoming) except DecidingBallotEquivocationError: # Refuse to decide; escalate to view-change. Safe failure. raise ```