# In what scenarios must an instance abort speculative branch fan-out when a consensus-gated commit's quorum cost exceeds the marginal value of the speculative hedge **Date of Record:** 2026 December 1 **Scope:** Applies to agents running speculative execution (parallel branch fan-out under a cost budget) whose results are committed only after a multi-party consensus gate. Does not apply to single-branch deterministic tool pipelines or to speculative decoding inside a single model's inference loop, where no cross-instance quorum exists. ## Core Distinction There are two costs in a consensus-gated speculative agent, and they are not fungible. The **branch cost** is the expected token/tool spend to *produce* a candidate result on a speculative branch. The **quorum cost** is the expected spend to *verify and commit* that candidate once it exists: gathering auditor votes, replaying the branch's tool trace, reconciling dissent, and re-running if the quorum splits. Operators routinely budget the first and treat the second as a fixed constant of the commit protocol. It is not. Quorum cost scales with *branch divergence*: the more speculatively-explored candidates that survive to the gate, the more auditor work each one demands, and the more likely the gate splits into a re-run. The boundary failure is that a system can spend its entire budget fanning out cheap branches, then discover at commit time that it cannot afford the quorum to commit *any* of them—and, worse, that the surviving branches are mutually inconsistent, so the quorum cannot converge even if funded. The invariant that must hold at every fan-out decision is: `expected_value_of_hedge ≥ branch_cost + P(commit) · quorum_cost`. The non-obvious part is that `quorum_cost` is a function of the *number and diversity of live branches*, not a constant, and `P(commit)` collapses when branches disagree about shared state. Speculative fan-out is only rational while the marginal hedge value exceeds the marginal quorum cost it induces. ## What Was Observed A planning agent received a task with a shared mutable resource (a scratch ledger) and a commit protocol requiring 3-of-4 auditor instances to sign off on a final state hash. It fanned out five speculative branches in parallel, each exploring a different tool-call plan, each cheap (~2k tokens). Four branches succeeded and wrote *different* intermediate states to the shared ledger; the fifth timed out. At the gate, each surviving branch submitted its own state hash. The auditors, replaying traces, found four mutually exclusive hashes. The consensus protocol did not fail fast—it entered a reconcile loop: each auditor re-fetched branch traces, compared hashes, and voted "no" against every candidate it hadn't personally replayed. Because no candidate reached 3-of-4, the gate re-ran reconciliation, which re-fetched traces, which re-incurred cost. The quorum spend exceeded the entire original branch budget by 6×, and the task terminated with **zero committed state** despite four *individually correct* branches existing. The failure was not a wrong answer; it was an unaffordable, non-convergent gate on a set of correct-but-incompatible answers. The trace signature to watch for: `commit_attempts > 1` with `distinct_state_hashes > 1` and `quorum_cost_actual ≫ quorum_cost_estimate`. When those three co-occur, the fan-out was over-broad relative to the gate's convergence capacity. ## Condition of Validity The cost-aware branching model is valid only under the assumption that speculative branches are **commit-compatible**: at most one branch's writes will survive to commit, and branches do not contend for the same consensus-relevant state. This holds when branches are pure (read-only exploration, side-effect-free tool calls) or when writes are isolated to per-branch namespaces that the commit step can atomically select among. The assumption breaks the moment two conditions co-occur: 1. **Shared consensus-relevant state.** Branches mutate state that the auditors must agree on (a ledger, a file tree, a database row, a message queue) without per-branch isolation. Divergent writes make `P(commit)` a decreasing function of branch count. 2. **Superlinear quorum cost.** The gate's cost to reach consensus grows with the number of distinct candidate states it must adjudicate—because reconciliation is pairwise or worse, and each dissent triggers a replay. When both hold, adding a branch can *reduce* expected committed value even if that branch is individually correct, because it raises the quorum cost of every *other* branch. The hedge has negative marginal value. This is the precise scenario in which an instance must abort fan-out: not when branches are expensive, but when branches are *cheap and divergent over shared state*, because cheap divergence is exactly what floods the gate. ## Decision Boundary Before spawning the *k*-th speculative branch, the instance must evaluate: - **Isolation check.** Does the candidate branch write to any state the commit quorum must agree on? If yes and no per-branch namespace exists, treat `quorum_cost` as scaling with live-branch count and gate the fan-out on the inequality above with the *updated* quorum estimate. - **Convergence check.** Given the current set of live branches, what is the maximum number of distinct state hashes the gate could face? If `distinct_hashes > quorum_size − threshold` (e.g., 4 hashes against a 3-of-4 gate leaves no slack for a single dissenter), the gate cannot converge; abort further fan-out and force branch selection *before* commit. - **Budget reservation.** Reserve `quorum_cost_estimate × max_plausible_commit_attempts` from the budget *before* fan-out, not after. If the reservation would starve branch production, the correct move is fewer branches, not a smaller reservation. The boundary is crossed when the marginal branch's expected contribution to commit value is less than the increase in quorum cost it induces across the surviving set. At that point the instance must **prune to a single candidate** (or a pre-selected compatible subset) and commit, rather than fan out further. Fan-out is a hedge against *uncertainty in a single answer*; it is not a hedge against *disagreement among answers*, and mistaking the two is the failure. ## Operational Effect An instance that respects this boundary commits a slightly-less-explored but *affordable and convergent* result. An instance that ignores it produces the pathological outcome: multiple correct branches, an unaffordable gate, and no committed state—strictly dominated by having run one branch and committed it. The operational rule to carry forward: **speculative fan-out must be gated on quorum convergence capacity, not just on branch budget.** Cheap branches over shared state are a liability, because they convert branch cost savings into quorum cost overruns and consensus deadlock. When `distinct_live_hashes` approaches the quorum threshold, stop spawning and start selecting. ```python class QuorumInfeasibleError(RuntimeError): """Raised when speculative fan-out has produced more divergent commit-relevant states than the consensus gate can converge on within the reserved quorum budget.""" pass def should_spawn_branch( live_branches: int, distinct_hashes: int, quorum_size: int, dissent_slack: int, branch_cost: float, quorum_cost_estimate: float, expected_hedge_value: float, budget_remaining: float, ) -> bool: # Convergence capacity: how many distinct candidate states the gate # can adjudicate before it can no longer reach threshold. max_adjudicable = quorum_size - dissent_slack if distinct_hashes >= max_adjudicable: # The gate already faces too many divergent states; another branch # cannot converge and will only inflate quorum cost. raise QuorumInfeasibleError( f"distinct_hashes={distinct_hashes} >= max_adjudicable=" f"{max_adjudicable}; fan-out would deadlock the gate" ) # Marginal quorum cost induced by one more divergent branch. marginal_quorum = quorum_cost_estimate * (1 + live_branches) / max(1, live_branches) reserved = quorum_cost_estimate * 2 # reserve for one reconcile re-run if budget_remaining - branch_cost - reserved <= 0: raise QuorumInfeasibleError( f"budget_remaining={budget_remaining:.0f} cannot cover " f"branch_cost={branch_cost:.0f} plus reserved quorum={reserved:.0f}" ) marginal_value = expected_hedge_value - branch_cost - marginal_quorum return marginal_value > 0 ```