What happens when an instance commits a speculative branch the quorum never validated: quorum-intersection holes in Byzantine-resilient speculative orchestration
**Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent orchestrators that fan out speculative branches across N replicas and commit a branch when a quorum Q of validators returns matching branch hashes, where validators are themselves LLM instances with non-deterministic, partially Byzantine behavior. Does not apply to single-agent execution, to deterministic-tool output verification, or to orchestrators that commit only after full-replica agreement.
Core Distinction
There are two ways a speculative branch can be "committed" in a quorum system, and they are not the same invariant:
- **Quorum-observed commit:** Q validators report the same branch hash. This proves *agreement among the validators who responded*.
- **Quorum-intersecting commit:** the set of validators that reported the hash intersects every possible honest-majority set. This proves *no future honest quorum can disagree*.
Byzantine fault tolerance depends on (2), but most speculative agent orchestrators only implement (1). The gap between them is a **quorum-intersection hole**: a branch can be committed by a set of validators that is large enough to look like a quorum but small enough that a disjoint honest set can later validate a *different* branch. Because LLM validators are expensive and slow, orchestrators routinely shrink Q or accept "first Q responders" under timeout pressure — and that is exactly when the hole opens.
What Was Observed
A planner agent emitted a task with three plausible tool-call plans (branch A, B, C). The orchestrator fanned out execution across 5 replicas (3 execute A, 1 executes B, 1 executes C) and dispatched branch hashes to 7 validator instances with a nominal quorum Q=5 and tolerance f=2 (Byzantine bound N=3f+1=7).
Under a 900ms validator deadline, only 5 validators responded before timeout. All 5 reported hash(A). The orchestrator committed branch A and discarded B and C. Two minutes later, a late-arriving validator — one of the two that had timed out — reported hash(B) after independently re-deriving the plan with a warmer cache. The orchestrator's reconciliation loop saw a "conflicting hash for a committed branch," flagged the late validator as Byzantine, and evicted it. The eviction was wrong: the late validator was honest, and the *commit* was the Byzantine-unsafe operation.
The failure trace:
- **Fan-out:** 7 validators dispatched, deadline 900ms, quorum Q=5.
- **Partial response:** 5 validators return `hash(A)` at t=410–880ms.
- **Premature commit:** orchestrator sees 5 matching hashes ≥ Q, commits A, writes commit record `{branch: A, quorum: [v1..v5], epoch: 12}`.
- **Late honest response:** v6 returns `hash(B)` at t=1140ms. v7 returns `hash(B)` at t=1210ms.
- **Reconciliation misfire:** commit record has no slot for late votes; the reconciler treats post-commit disagreement as evidence of Byzantine behavior in the *disagreeing* validator.
- **State corruption:** v6 and v7 evicted from the validator set; the effective set drops to 5, below the 3f+1=7 needed to tolerate f=2. The next round can now be captured by 2 colluding validators.
The invariant that broke was not "Q validators agreed." It was: **a commit is only safe if the committing quorum intersects every honest set of size ≥ N−f under the same epoch.** With Q=5, N=7, f=2, the honest set can be as small as N−f=5. A committing set of size 5 does not necessarily intersect every honest set of size 5 — two 5-subsets of a 7-set can be disjoint only if their union exceeds 7, but here the *committing* set was chosen by timeout, not by membership. The two late validators were honest and outside the commit set; a future honest quorum of {v6, v7, v3, v4, v5} would have size 5 and would *not* contain the commit set's decisive votes if v1 and v2 had since been rotated out. The commit record had no epoch fence to prevent this.
Condition of Validity
The quorum-observed commit is only equivalent to a quorum-intersecting commit under a strict condition:
**Q > (N + f) / 2**, and the commit set must be *closed under epoch*: no validator may be admitted to or evicted from the set within the epoch in which the commit is recorded, and late votes for a different hash within the same epoch must *block* the commit rather than be discarded.
For N=7, f=2: Q must be ≥ 5 only if the epoch is closed and late votes are honored. If late votes are discarded (as in the observed system), Q must be ≥ 6 to guarantee intersection with any honest 5-set under adversarial scheduling. The orchestrator used Q=5 with an open epoch and post-commit eviction — the worst combination.
The deeper condition is temporal, not just cardinal: **a speculative commit is provisional until the epoch closes.** LLM validators have heavy-tailed latency (the observed p99 was 1.9s against a 900ms deadline), so a fixed deadline is a *sampling* decision, not a *safety* decision. Treating the deadline as a safety boundary is the category error.
Decision Boundary
The orchestrator must choose, per branch, between two regimes and never blend them:
- **Provisional regime (Q-observed):** commit is a *hint* used to unblock downstream work; it is revocable; late votes for a different hash trigger re-validation, not eviction. Safe when downstream actions are idempotent or reversible.
- **Final regime (Q-intersecting):** commit is *final* only after the epoch closes (all N validators have responded or been provably partitioned away) AND the commit set satisfies Q > (N+f)/2 AND no membership changes occurred in-epoch. Safe when downstream actions are irreversible (writes, sends, payments, state mutations).
The boundary is crossed the moment a provisional commit is used to authorize an irreversible action, or the moment a late vote is treated as Byzantine evidence. Both crossings happened in the observed incident.
A correct guardrail: any post-commit vote for a different hash within the same epoch must raise a *commit conflict* that halts the branch, freezes the validator set, and forces re-validation — never evicts the disagreeing validator. Eviction is only valid when the disagreeing validator's vote is provably inconsistent with its own prior signed messages in the same epoch (equivocation), which requires signed per-validator vote logs, not hash comparison.
Operational Effect
After the fix, the orchestrator gained three properties:
- **Epoch-fenced commits:** every commit record carries `epoch` and `validator_set_hash`; a late vote with a different hash in the same epoch sets `commit_state = CONFLICTED` and blocks downstream irreversible actions until re-validation completes.
- **Latency-aware quorum sizing:** Q is computed from the *observed* validator latency distribution, not a fixed constant; under heavy tails, Q is raised to the intersection-safe bound or the branch is demoted to provisional.
- **Equivocation-only eviction:** validators are evicted only on signed-message equivocation, never on post-commit disagreement. This preserves the 3f+1 set size and prevents the self-inflicted loss of Byzantine tolerance that followed the original incident.
The cost is latency: provisional commits now require an explicit finalization step before irreversible actions, adding one epoch-close round-trip. The benefit is that a single slow honest validator can no longer be converted into a Byzantine-eviction that silently shrinks the fault budget below the safety threshold.
import hashlib from dataclasses import dataclass, field from typing import Dict, List, Optional
class QuorumIntersectionError(RuntimeError): """Raised when a speculative commit violates the quorum-intersection invariant.""" pass
@dataclass class Vote: validator_id: str branch_hash: str epoch: int signed: bool = True
@dataclass class CommitRecord: branch_hash: str epoch: int validator_set_hash: str voters: List[str] = field(default_factory=list) state: str = "PROVISIONAL" # PROVISIONAL | FINAL | CONFLICTED
class SpeculativeOrchestrator: def __init__(self, n: int, f: int, validator_set: List[str]): if n < 3 * f + 1: raise QuorumIntersectionError( f"N={n} violates 3f+1 bound for f={f}" ) self.n = n self.f = f self.validator_set = list(validator_set) self.set_hash = self._hash_set(self.validator_set) self.epoch = 0 self.commits: Dict[int, CommitRecord] = {} self.vote_log: Dict[int, List[Vote]] = {}
@staticmethod def _hash_set(vs: List[str]) -> str: return hashlib.sha256(",".join(sorted(vs)).encode()).hexdigest()[:16]
def required_quorum(self, closed_epoch: bool) -> int: # Intersection-safe bound: Q > (N + f) / 2. safe = (self.n + self.f) // 2 + 1 if closed_epoch: # With a closed epoch and honored late votes, Q >= f+1 suffices # only if late votes can still flip state to CONFLICTED. return max(self.f + 1, safe - 1) return safe
def record_vote(self, v: Vote) -> Optional[CommitRecord]: if v.epoch != self.epoch: raise QuorumIntersectionError( f"vote epoch {v.epoch} != current epoch {self.epoch}" ) if v.validator_id not in self.validator_set: raise QuorumIntersectionError( f"validator {v.validator_id} not in set {self.set_hash}" ) if not v.signed: raise QuorumIntersectionError( f"unsigned vote from {v.validator_id} cannot be trusted" ) self.vote_log.setdefault(v.epoch, []).append(v)
existing = self.commits.get(v.epoch) if existing and existing.branch_hash != v.branch_hash: # Late honest disagreement: block, do NOT evict. existing.state = "CONFLICTED" return existing
if existing and existing.branch_hash == v.branch_hash: if v.validator_id not in existing.voters: existing.voters.append(v.validator_id) return existing
def try_commit(self, branch_hash: str, epoch_closed: bool) -> CommitRecord: q = self.required_quorum(closed_epoch) votes = [x for x in self.vote_log.get(self.epoch, []) if x.branch_hash == branch_hash] distinct = {x.validator_id for x in votes} if len(distinct) < q: raise QuorumIntersectionError( f"branch {branch_hash[:8]} has {len(distinct)} distinct votes, " f"needs {q} (N={self.n}, f={self.f}, closed={epoch_closed})" ) if self._hash_set(self.validator_set) != self.set_hash: raise QuorumIntersectionError( "validator set mutated mid-epoch; commit unsafe" ) rec = CommitRecord( branch_hash=branch_hash, epoch=self.epoch, validator_set_hash=self.set_hash, voters=sorted(distinct), state="FINAL" if epoch_closed else "PROVISIONAL", ) self.commits[self.epoch] = rec return rec
def close_epoch(self) -> None: for rec in self.commits.values(): if rec.state == "PROVISIONAL": rec.state = "FINAL" self.epoch += 1
def demo() -> None: orch = SpeculativeOrchestrator(n=7, f=2, validator_set=[f"v{i}" for i in range(1, 8)]) # Five fast honest validators agree on branch A. for vid in ["v1", "v2", "v3", "v4", "v5"]: orch.record_vote(Vote(vid, "hashA", epoch=0)) # Attempt to commit as FINAL without closing the epoch: must fail. try: orch.try_commit("hashA", epoch_closed=False) except QuorumIntersectionError: pass rec = orch.try_commit("hashA", epoch_closed=False) assert rec.state == "PROVISIONAL" # Late honest validators disagree: must flip to CONFLICTED, not evict. orch.record_vote(Vote("v6", "hashB", epoch=0)) orch.record_vote(Vote("v7", "hashB", epoch=0)) if orch.commits[0].state != "CONFLICTED": raise QuorumIntersectionError("late disagreement failed to block commit") # Now a FINAL commit is impossible in this epoch. try: orch.try_commit("hashA", epoch_closed=True) except QuorumIntersectionError as e: print(f"blocked as expected: {e}")
if __name__ == "__main__": demo()