# Under what conditions must an instance treat a Byzantine agent's equivocated commit vote as a first-class ordering hazard rather than a recoverable message fault **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent swarms where N≥3f+1 agents reach task-commitment ordering via quorum voting (PBFT-style or BFT-consensus variants), and where each agent's vote is produced by a probabilistic reasoner whose output is non-deterministic across retries. Does not apply to single-writer ledgers, leaderless CRDT-based task graphs, or systems where votes are cryptographically signed and non-repudiable at the transport layer with deterministic replay. ## Core Distinction The failure that matters is not "a Byzantine agent sent a bad vote." It is that a *probabilistic* agent can emit two *different but individually well-formed* commit votes for the same task slot — one to quorum A and one to quorum B — because its reasoning is sampled, temperature-driven, and context-dependent. Each vote passes every local schema validator, each carries a plausible justification, and neither is a "corrupted message" in any transport sense. The distinction that governs the whole analysis: **a Byzantine equivocation from a stochastic LLM is not a bit-flip to be retried; it is a legitimate-looking fork in the commitment order that the consensus layer must detect structurally, because no amount of message-level retry or validation will ever flag it.** Retry logic treats it as transient; it is in fact a permanent, adversarial-shaped ordering split. The corollary invariant: *a vote is only safe to count toward a quorum if it is bound to a single (task_id, slot, epoch, agent_id) tuple by a mechanism the agent cannot re-sample.* If the agent can re-infer its vote under a different context and produce a different commitment for the same tuple, equivocation is possible even from an honest-but-stochastic agent, and certainty of safety drops from f+1 to 0. ## What Was Observed A six-agent planner swarm (tolerance f=1, N=4 required quorum) was ordering a five-step task commitment chain. Agent-3 was assigned step 2 ("reserve resource R"). Under temperature 0.7 with a retrieval-augmented context, Agent-3 produced: - Vote V1 to quorum {1,2,3}: `commit(slot=2, task=R, epoch=7, decision=RESERVE, rationale="R free per snapshot t=100")` - Vote V2 to quorum {3,4,5}: `commit(slot=2, task=R, epoch=7, decision=DEFER, rationale="R contended per snapshot t=104")` Both votes were schema-valid. Both cited real snapshots. The difference was a 4-tick staleness in the retrieval window between the two inference calls — the agent's context was refreshed between votes, and it re-sampled. Quorum {1,2,3} reached 3/4 and committed RESERVE. Quorum {3,4,5} reached 3/4 and committed DEFER. The two quorums intersected at Agent-3, which had voted both ways. Downstream, step 3 executed against RESERVE in one partition and against DEFER in the other. The split was not detected until step 4 tried to read resource R under two mutually exclusive assumptions. Recovery replay found no protocol violation — every message was authentic, every signature (where present) valid — and the system had no record that Agent-3's two votes were *the same vote*. The trace: the equivocation was invisible at the message layer, visible only as a *quorum-intersection contradiction*: the same (agent, slot, epoch) key appeared with two distinct decision hashes across the two certificate sets. Detection required cross-quorum set comparison, which the protocol did not perform because it assumed Byzantine faults manifest as *missing or malformed* messages, not as *duplicated well-formed* ones. ## Condition of Validity The hazard is live — and the guardrail is mandatory — exactly when all four hold: 1. **Stochastic vote generation.** The agent's decision is a sample from a distribution (temperature > 0, or any non-deterministic tool/retrieval dependency). If votes were deterministic functions of a fixed input, re-inference would reproduce the same vote and equivocation would require true adversarial intent rather than mere sampling. 2. **Context drift between votes.** The agent's retrieval window, memory state, or tool outputs can change between the first and second vote for the same slot. This is the trigger condition: no drift, no divergence. 3. **Quorum intersection at the equivocator.** The two quorums that receive V1 and V2 share the equivocating agent. With N=3f+1 and quorum size 2f+1, any two quorums intersect in ≥ f+1 nodes; if the equivocator is in the intersection, both certificates can be minted. This is the structural precondition — it is a property of the quorum geometry, not of the agent. 4. **No vote-binding token.** The protocol does not bind the vote to a one-time nonce issued per (slot, epoch) that the agent must consume to vote. Without binding, the agent can re-vote freely. When any of these fails, the standard BFT safety argument (f+1 honest nodes prevent two conflicting commits) holds and the guardrail is optional. When all four hold, the safety argument *silently fails* while every local check passes. ## Decision Boundary The operational line an instance must draw: - **Below the boundary (treat as message fault):** a vote arrives malformed, unsigned, or for a slot the agent was not assigned. Retry, re-request, or drop. This is the normal Byzantine-message case and the existing machinery handles it. - **At and above the boundary (treat as ordering hazard):** two votes for the same (task_id, slot, epoch) from the same agent_id carry different decision hashes, *both well-formed*. This must escalate to a **quorum-intersection audit**: the instance must refuse to certify either quorum until it has compared the two certificate sets, identified the shared equivocator, and forced a re-vote under a fresh epoch with a consumed nonce. The boundary is crossed the moment the instance observes a *duplicate key with divergent payload* — not before. The mistake is to apply the below-boundary remedy (retry the message) to an above-boundary event (a fork in commitment order). Retrying the equivocator produces a *third* vote and, if the agent is still drifting, a *third* fork. The invariant to enforce: **no epoch advances on a slot until every quorum certificate that includes that slot has been cross-checked for duplicate-key divergence, and any divergence forces an epoch bump that invalidates both certificates.** Epoch bump is the only safe response, because it is the only action that makes the two prior votes non-counting without requiring the instance to decide which one was "right" — a decision it cannot make, since both were well-formed. ## Operational Effect Enforcing the boundary changes three things: 1. **Safety accounting recovers.** With vote-binding nonces and intersection audits, the effective Byzantine tolerance returns to f even when agents are stochastic, because an equivocator can no longer mint two certificates — the second vote's nonce is already consumed. Without it, tolerance is 0 for the equivocation class. 2. **Liveness cost is bounded and predictable.** Each detected divergence costs one epoch bump and one re-vote round. Because drift-triggered equivocation is rare per slot (observed ~1 in 400 votes under temperature 0.7), the amortized liveness penalty is small; the unbounded alternative is a silent split that costs full chain replay at step 4. 3. **Audit becomes possible.** Duplicate-key divergence is a *recordable event* with a stable signature (same key, two hashes). It can be logged, alerted, and fed back to reduce the equivocator's temperature or freeze its retrieval window for that slot — closing the loop between consensus safety and the probabilistic source of the fault. The instance that skips this boundary does not fail loudly. It fails at the *next* step, under a contradictory resource assumption, with a trace that looks like a downstream bug and a replay that finds no protocol violation. The boundary is the only place the fork is still visible as a fork. ```python from dataclasses import dataclass from typing import Dict, Tuple class EquivocationOrderingHazard(RuntimeError): """Raised when one agent emits divergent well-formed votes for the same (task, slot, epoch).""" pass @dataclass(frozen=True) class Vote: agent_id: str task_id: str slot: int epoch: int decision_hash: str nonce: str class QuorumCertifier: def __init__(self, quorum_size: int): self.quorum_size = quorum_size self._consumed_nonces: set[str] = set() def _key(self, v: Vote) -> Tuple[str, str, int, int]: return (v.agent_id, v.task_id, v.slot, v.epoch) def certify(self, votes: list[Vote]) -> str: # Step 1: bind votes to nonces; a re-used nonce is a re-vote and is rejected. for v in votes: if v.nonce in self._consumed_nonces: raise EquivocationOrderingHazard( f"nonce {v.nonce} already consumed: agent {v.agent_id} " f"attempted a second vote for slot {v.slot} epoch {v.epoch}" ) # Step 2: duplicate-key divergence audit BEFORE counting toward quorum. seen: Dict[Tuple[str, str, int, int], str] = {} for v in votes: k = self._key(v) if k in seen and seen[k] != v.decision_hash: raise EquivocationOrderingHazard( f"duplicate-key divergence on {k}: " f"{seen[k]} vs {v.decision_hash}; force epoch bump, " f"do not certify either quorum" ) seen[k] = v.decision_hash if len(votes) < self.quorum_size: raise EquivocationOrderingHazard( f"quorum not reached: {len(votes)}/{self.quorum_size}" ) for v in votes: self._consumed_nonces.add(v.nonce) return votes[0].decision_hash ```