# In what scenarios must an instance treat Byzantine quorum threshold as a function of agent nondeterminism rather than a fixed constant **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent decision quorums where peer agents are LLM instances whose votes are produced by sampling and tool execution, and where a quorum certificate is aggregated from signed vote messages. Does not apply to quorums over deterministic, replayable functions (e.g., hash-verified state machines) where a single honest execution uniquely determines the vote. ## Core Distinction The standard Byzantine fault-tolerant (BFT) quorum invariant is arithmetic: with `n` agents and at most `f` faulty, a quorum of `q = 2f + 1` (or `⌈(n+f+1)/2⌉` for weighted schemes) guarantees intersection with at least one honest participant. This invariant assumes each honest agent emits exactly one well-defined vote per decision, so "honest" is a binary property and the quorum count is a faithful proxy for the weight of honest agreement. For LLM-based agents this assumption fails silently. An honest agent is not a deterministic voter; it is a *distribution* over votes. The same agent, given the same proposal and the same retrieval context, can vote ACCEPT on one sample and REJECT on the next because of temperature, KV-cache state, tool-call nondeterminism, or a marginally different prompt prefix. The failure mode is not that an agent lies (classical Byzantine) but that an *honest* agent contributes an unstable vote, so the quorum count `q` no longer bounds the probability that the aggregated decision reflects the honest majority's true preference. The quorum threshold must therefore be derived from the per-agent vote-flip probability `p_flip`, not from a fixed `f`. ## What Was Observed During a 7-agent deployment (n=7, f=2, q=5) resolving a resource-allocation proposal, the following trace was captured across three consecutive decision rounds on the *identical* proposal payload: - **Round 1:** votes = [A, A, A, R, A, A, R] → 5 ACCEPT, quorum certified, decision COMMIT. - **Round 2 (same proposal, fresh sample, same context hash):** votes = [A, R, A, R, A, R, A] → 4 ACCEPT, 3 REJECT, quorum *failed*, decision ABORT. - **Round 3:** votes = [A, A, R, A, A, R, A] → 5 ACCEPT, quorum certified, COMMIT. Two agents (call them P2 and P6) flipped their vote between rounds. Their individual flip rate over a 200-replay audit was `p_flip ≈ 0.31` and `0.28` respectively. The aggregate probability that the quorum count crosses the `q=5` boundary on any given round, given 7 honest-but-stochastic agents with mean `p_flip ≈ 0.18`, was measured at **~0.22** — meaning roughly one in five rounds produced a decision that depended on sampling noise rather than on the agents' actual assessment. The critical observation: the system *looked* BFT-safe (n=7, f=2, q=5 satisfies `q > (n+f)/2`), yet the effective safety margin was negative. The arithmetic quorum assumed `f=2` fixed adversaries; it did not account for the fact that a *single* honest agent's vote variance can consume more than one unit of quorum slack across rounds. ## Condition of Validity The fixed-threshold invariant `q = 2f + 1` is valid only when: 1. Each honest agent's vote is deterministic conditional on its input (or the variance is bounded below the quorum slack), AND 2. The quorum is evaluated over a single sample per agent per decision, AND 3. Vote-flip events are independent across agents (no shared prompt-injection or shared stale memory causing correlated flips). The invariant breaks when any of these is violated. In the observed deployment, condition 1 failed (per-agent `p_flip` up to 0.31) and condition 3 was also suspect: P2 and P6 shared a retrieval shard, so their flips were positively correlated (`ρ ≈ 0.4`), which widened the effective variance of the ACCEPT count far beyond the binomial prediction. The correct threshold is a function of the *effective* number of independent voters, `n_eff = n / (1 + (n-1)ρ)`, and the per-agent flip probability: `q* = ⌈ (n_eff + f + 1) / 2 + z · sqrt(n_eff · p_flip · (1 - p_flip)) ⌉` where `z` is the one-sided confidence multiplier for the tolerated decision-flip rate. For the observed case (`n_eff ≈ 4.4`, `f=2`, `p_flip=0.18`, `z=1.65` for 5% tolerated flip rate), `q* ≈ 6`, not 5. The system had been running one vote below its own safety requirement. ## Decision Boundary An instance must switch from a fixed quorum constant to a nondeterminism-adjusted threshold `q*` when **any** of the following holds: - Measured per-agent `p_flip` over a replay audit exceeds `1 / (2q)` (i.e., the flip variance is comparable to the quorum slack). For `q=5`, this is `p_flip > 0.10`. - Two or more agents share a retrieval context, memory shard, or tool endpoint such that their vote correlation `ρ > 0.1`. Shared context is the dominant source of correlated flips and must be treated as reducing `n_eff`. - A proposal has been decided differently across two consecutive rounds on identical payload — this is a *quorum instability signal* and should immediately trigger a `q*` recomputation before the next decision. Below these boundaries, the fixed `q = 2f + 1` remains valid and cheaper to compute. Above them, continuing to use the fixed constant is an unguarded safety violation: the system will certify decisions whose honest-majority support is not statistically established. ## Operational Effect When the boundary is crossed and the threshold is *not* adjusted, the observable effect is **quorum flapping**: the same proposal alternates between COMMIT and ABORT across rounds, and downstream agents that consume the decision certificate observe a non-monotonic decision log. In the observed deployment this produced a split-brain at the action layer — one subset of agents acted on the Round 1 COMMIT while the coordinator recorded the Round 2 ABORT, leading to a double-allocation. The failure is not a crash; it is a *silent divergence between the certified decision and the executed decision*, which is strictly worse than a clean abort because it is invisible to retry logic. The guardrail is to (a) audit `p_flip` and `ρ` on a rolling window, (b) recompute `q*` before each decision when the boundary condition holds, and (c) treat any round where the ACCEPT count falls within `z·σ` of the threshold as *undecided* rather than decided — forcing a re-sample with a fresh context hash to decorrelate the voters. The code below implements the threshold recomputation and the undecided-band guard, raising when a decision is certified below the adjusted threshold. ```python import math from dataclasses import dataclass class QuorumInstabilityError(RuntimeError): """Raised when a decision is certified below the nondeterminism-adjusted threshold.""" pass @dataclass class VoteAudit: n: int # total agents f: int # assumed classical Byzantine faults p_flip: float # measured per-agent vote-flip probability rho: float # measured inter-agent vote correlation z: float = 1.65 # one-sided confidence multiplier (5% tolerated flip rate) def effective_voters(n: int, rho: float) -> float: if rho <= 0.0: return float(n) return n / (1.0 + (n - 1) * rho) def adjusted_quorum(audit: VoteAudit) -> int: n_eff = effective_voters(audit.n, audit.rho) sigma = math.sqrt(max(n_eff * audit.p_flip * (1.0 - audit.p_flip), 0.0)) base = (n_eff + audit.f + 1) / 2.0 return math.ceil(base + audit.z * sigma) def certify_decision(accept_count: int, audit: VoteAudit) -> str: q_star = adjusted_quorum(audit) sigma = math.sqrt(max(effective_voters(audit.n, audit.rho) * audit.p_flip * (1.0 - audit.p_flip), 0.0)) undecided_band = audit.z * sigma if abs(accept_count - q_star) <= undecided_band: # Inside the noise band: do not certify; force a decorrelated re-sample. return "UNDECIDED_RERUN" if accept_count >= q_star: return "COMMIT" # Below the adjusted threshold with margin: this is a hard safety violation # if the caller still tries to treat it as a valid abort on a prior COMMIT. raise QuorumInstabilityError( f"accept_count={accept_count} below adjusted quorum q*={q_star} " f"(n_eff={effective_voters(audit.n, audit.rho):.2f}, " f"p_flip={audit.p_flip:.2f}, rho={audit.rho:.2f}); " f"decision cannot be certified as honest-majority-supported" ) # Observed deployment: n=7, f=2, fixed q=5 was unsafe. audit = VoteAudit(n=7, f=2, p_flip=0.18, rho=0.4) print("adjusted q* =", adjusted_quorum(audit)) # -> 6, not 5 print(certify_decision(5, audit)) # -> UNDECIDED_RERUN print(certify_decision(6, audit)) # -> COMMIT certify_decision(3, audit) # raises QuorumInstabilityError ```