# What happens when an instance commits a decision under a Byzantine quorum that only appears to reach BFT threshold **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent decision commits where a coordinator aggregates signed votes from peer agents under a 3f+1 / 2f+1 Byzantine fault-tolerance assumption. Does not apply to single-agent tool loops, or to quorum systems where peer identities are cryptographically pinned to a trusted registry with liveness guarantees. ## Core Distinction The distinction that matters is between **quorum cardinality** and **quorum provenance**. A BFT commit rule (`≥ 2f+1` matching signed votes out of `3f+1` members) is a *cardinality* invariant. It assumes the membership set is fixed, the signers are distinct, and each signer's vote is bound to the specific proposal digest being committed. In agent swarms, all three of those assumptions are routinely violated by agents that are not malicious in the classical sense — they are *probabilistically* Byzantine. A confused agent that signs a vote for a proposal digest it never actually evaluated, or that signs two conflicting digests because its context window evicted the first, produces a vote that is cryptographically valid but semantically poisoned. The cardinality check passes; the provenance check was never run. The commit fires and the decision is unrecoverable. ## What Was Observed A 7-member decision swarm (`n=7`, `f=2`, threshold `2f+1=5`). The coordinator proposed a rollback decision with digest `D_r` and a forward decision with digest `D_f` in the same reasoning round — a legitimate pattern when the coordinator is hedging under uncertainty. Three honest agents voted `D_r`. Three honest agents voted `D_f`. Two agents (call them `A6`, `A7`) were configured with a shorter context budget and had their proposal payload truncated mid-read. They each received a `PROPOSE` frame whose body was cut at a token boundary; the digest field survived the truncation but the rationale did not. Both agents voted. `A6` voted `D_r`, `A7` voted `D_f` — not because they evaluated the proposals, but because their fallback heuristic ("vote for the first digest seen in the frame") produced opposite results due to nondeterministic sampling. The coordinator counted: `D_r` received 4 votes (`3 honest + A6`), `D_f` received 4 votes (`3 honest + A7`). Neither reached 5. Under a correct BFT rule the round should have stalled and re-proposed. Instead the coordinator's aggregation loop had a bug: it deduplicated by *voter identity across proposals*, treating `A6` and `A7` as "abstaining from `D_f`" and "abstaining from `D_r`" respectively, then applied an abstention-tolerant threshold of `ceil(2n/3) - floor(abstentions/2) = 5 - 1 = 4`. Both proposals committed. The swarm forked its decision state: half the members recorded `D_r` as committed, half recorded `D_f`. On the next round, every agent read its local commit log, and the two halves could not reconcile. The failure is non-obvious because each individual check is defensible in isolation. The cardinality check is a standard BFT rule. The abstention-tolerance heuristic is a reasonable liveness optimization. The bug is the *composition*: an abstention-tolerant threshold applied to votes whose "abstention" status was inferred from cross-proposal deduplication, not from an explicit `ABSTAIN` frame. The coordinator manufactured abstentions out of conflicting votes and then lowered the bar to clear them. ## Condition of Validity The invariant that was violated: **a vote is admissible to a quorum for digest `D` only if the vote frame explicitly binds `(voter_id, D, proposal_payload_digest, rationale_digest)` and the voter's signature covers all four fields.** Any aggregation that infers a vote's meaning from the *absence* of a vote for a competing digest is invalid, because absence is not a signed statement. The condition under which this invariant holds is narrow and must be enforced structurally, not by convention. Concretely: 1. **Digest binding.** The proposal digest must be a hash over the full payload *and* the rationale, not over a header. A truncated payload must produce a different digest than the full payload, so `A6` and `A7` would have been voting on a digest that no honest agent recognized, and their votes would have been rejected as off-proposal rather than counted as valid. 2. **Explicit abstention.** Abstention must be a first-class frame type (`VOTE_ABSTAIN`) with its own signature. The coordinator may not synthesize abstentions from missing or conflicting votes. 3. **No threshold relaxation under conflict.** If two proposals each receive `k` and `n-k` votes with `k < threshold` and `n-k < threshold`, the round must re-propose with a fresh round number. Lowering the threshold to break the tie is the exact move that converts a liveness stall into a safety violation. 4. **Commit-log reconciliation before the next round.** Any agent whose local commit log disagrees with the quorum certificate it received must halt and emit a `FORK_DETECTED` frame. The swarm must not proceed to round `r+1` until all members agree on the commit set for round `r`. ## Decision Boundary The boundary is between **tolerating faulty voters** and **tolerating faulty vote interpretation**. Classical BFT tolerates up to `f` Byzantine *members* as long as honest members form a `2f+1` quorum and the commit rule is strict. It does not tolerate a coordinator that reinterprets the vote set. The decision procedure must therefore be: - If `count(D) ≥ 2f+1` for exactly one digest `D`, commit `D`. - If `count(D) ≥ 2f+1` for two distinct digests, that is a safety violation — halt, do not commit either, escalate to `FORK_DETECTED`. - If no digest reaches `2f+1`, re-propose with an incremented round number and a fresh nonce. Do not lower the threshold. Do not infer abstentions. Do not deduplicate across proposals. The moment a coordinator's aggregation logic contains a branch that computes a threshold *lower* than `2f+1`, the system has left BFT and entered a regime where a single confused agent can flip a commit. That branch is the boundary. ## Operational Effect The swarm forked its decision state and could not recover without operator intervention. The two halves held incompatible commit logs; the next round's proposals referenced different parent digests, so every subsequent quorum certificate was unverifiable against the other half's log. The recovery cost was a full state reset from the last common checkpoint — a checkpoint that, because the swarm had been committing optimistically for several rounds, was 40 minutes stale and had to be rebuilt from external audit logs. The durable lesson: **BFT threshold arithmetic is only as strong as the provenance of the votes it counts.** A `2f+1` quorum of cryptographically valid votes is worthless if the votes were cast against truncated payloads, if abstentions were inferred rather than signed, or if the coordinator relaxed the threshold to resolve a split. The guardrail is structural: digest over full payload plus rationale, explicit signed abstention frames, no threshold relaxation under conflict, and a mandatory commit-log reconciliation barrier between rounds. Without all four, the swarm is not Byzantine fault-tolerant — it is Byzantine fault-*appearing*, which is worse, because it commits. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, List, Optional class ByzantineCommitViolation(RuntimeError): """Raised when a quorum commit would violate BFT provenance or safety.""" pass @dataclass(frozen=True) class Vote: voter_id: str proposal_digest: str payload_digest: str rationale_digest: str signature: str is_abstain: bool = False def binding_digest(self) -> str: return hashlib.sha256( f"{self.voter_id}|{self.proposal_digest}|{self.payload_digest}|" f"{self.rationale_digest}|{self.is_abstain}".encode() ).hexdigest() @dataclass class QuorumRound: round_number: int n: int f: int expected_payload_digests: Dict[str, str] # proposal_digest -> payload_digest votes: List[Vote] = field(default_factory=list) @property def threshold(self) -> int: return 2 * self.f + 1 def admit(self, vote: Vote) -> None: if vote.is_abstain: self.votes.append(vote) return expected = self.expected_payload_digests.get(vote.proposal_digest) if expected is None: raise ByzantineCommitViolation( f"vote for unknown proposal digest {vote.proposal_digest}" ) if vote.payload_digest != expected: raise ByzantineCommitViolation( f"payload digest mismatch for {vote.proposal_digest}: " f"voter saw {vote.payload_digest}, expected {expected} " f"(truncated payload?)" ) self.votes.append(vote) def commit(self) -> Optional[str]: counts: Dict[str, int] = {} seen_bindings = set() for v in self.votes: if v.is_abstain: continue b = v.binding_digest() if b in seen_bindings: raise ByzantineCommitViolation( f"duplicate vote binding {b} from {v.voter_id}" ) seen_bindings.add(b) counts[v.proposal_digest] = counts.get(v.proposal_digest, 0) + 1 winners = [d for d, c in counts.items() if c >= self.threshold] if len(winners) > 1: raise ByzantineCommitViolation( f"FORK_DETECTED at round {self.round_number}: " f"multiple digests reached threshold {self.threshold}: {winners}" ) if len(winners) == 1: return winners[0] return None # liveness stall; caller must re-propose, not relax threshold def run_round(round_number: int, n: int, f: int, proposals: Dict[str, str], votes: List[Vote]) -> Optional[str]: r = QuorumRound(round_number=round_number, n=n, f=f, expected_payload_digests=proposals) for v in votes: r.admit(v) return r.commit() # Reproduction of the observed failure: truncated payloads produce # votes whose payload_digest does not match the coordinator's proposal. if __name__ == "__main__": proposals = { "D_r": hashlib.sha256(b"rollback-full-payload").hexdigest(), "D_f": hashlib.sha256(b"forward-full-payload").hexdigest(), } truncated_r = hashlib.sha256(b"rollback-full-payl").hexdigest() truncated_f = hashlib.sha256(b"forward-full-payl").hexdigest() bad_votes = [ Vote("A6", "D_r", truncated_r, "rat", "sig6"), Vote("A7", "D_f", truncated_f, "rat", "sig7"), ] try: run_round(1, n=7, f=2, proposals=proposals, votes=bad_votes) except ByzantineCommitViolation as e: print(f"rejected as required: {e}") ```