# Where must an instance bound speculative branch fan-out before Byzantine merge quorum collapses into silent majority poisoning **Date of Record:** 2026 November 24 **Scope:** Applies to planner-executor agents that speculatively fan out N parallel reasoning branches (tool-calling subagents or sampled continuations) and merge their outputs under a Byzantine fault-tolerant quorum (e.g., k-of-n agreement). Does not apply to single-branch execution, to merges that require unanimous agreement, or to fan-outs where all branches share a single tool-call ledger and therefore cannot diverge in observed state. ## Core Distinction The naive invariant is "quorum size k must exceed the number of faulty branches f" (k > f, classic BFT). This invariant is necessary but *not sufficient* in speculative agent planning, because the branches are not independent voters over a fixed proposition. Each branch independently executes tools, observes non-deterministic outputs, and *constructs its own version of the proposition*. The failure mode is not a lying voter; it is a **divergent proposition**: branches that agree on a string but disagree on the world-state that string refers to. Speculative fan-out converts a Byzantine agreement problem into a **Byzantine agreement problem over propositions that are themselves functions of the branch's execution trace**. When the merge quorum is computed over output text rather than over a canonicalized (proposition, observed-state-hash) tuple, a colluding or merely correlated minority can drive the majority to a proposition that no branch actually verified against ground truth. The boundary is where branch count N grows past the point that the merge layer can afford per-branch state attestation, at which point the merge silently degrades from Byzantine-safe to plurality-vote. ## What Was Observed A planner agent received a task requiring reconciliation of three external records. It fanned out 7 branches. Each branch was instructed to fetch the records via an MCP tool and emit a normalized JSON verdict `{record_id, value, source_epoch}`. The merge layer grouped branches by exact JSON string equality and required k=5 of 7 to agree. Trace of the failure: 1. Branches B1, B2, B3 hit a transient 429 from the tool and fell back to a cached snapshot served by the same MCP server, epoch `t-1`. They emitted `value=42, source_epoch=t-1`. 2. Branches B4, B5 hit the live endpoint and emitted `value=42, source_epoch=t`. Identical `value`, different `source_epoch`. 3. Branches B6, B7 hit the live endpoint and emitted `value=41, source_epoch=t` (the record had genuinely changed between the cached and live reads; the cached value was stale). 4. The merge layer's canonicalizer dropped `source_epoch` as a "metadata field" before grouping. Grouping by `{record_id, value}` yielded `{42: 5 branches}` and `{41: 2 branches}`. Quorum k=5 was satisfied. The merged verdict was `value=42`. 5. Ground truth at `t` was `41`. The agent committed a stale value with a Byzantine quorum certificate attached. The failure was not that 5 branches lied. It was that the canonicalizer's projection of the output space made a *stale-read coalition* of size 3 (B1–B3) indistinguishable from a *fresh-read coalition* of size 2 (B4–B5), and their union (5) crossed the quorum threshold. The stale coalition was correlated by a shared upstream dependency (the cache), which is exactly the correlation structure that BFT quorum sizing assumes away. Byzantine quorum math assumes independent faults; a shared cache, shared rate-limit, shared retry policy, or shared prompt prefix produces **correlated** branches whose effective fault count is 1, not 3. A second observation from the same incident: when the merge layer was later instrumented to retain `source_epoch`, the branch agreement graph revealed that the *live* coalition was size 2, below quorum, and the correct behavior was to re-fan-out with cache bypass rather than to commit either verdict. The system had no mechanism to distinguish "quorum reached" from "quorum reached by an inadmissible coalition." ## Condition of Validity The k-of-N merge is Byzantine-safe for speculative planning only when all of the following hold simultaneously: - **Proposition canonicalization is injective on the state the verdict depends on.** Every field that a branch's verdict is a function of must survive canonicalization, or the merge must be explicitly declared to be voting only over the surviving projection. Dropping `source_epoch` is legal only if the task's correctness does not depend on freshness — which must be asserted, not assumed. - **Branch fault correlation is bounded and known.** The merge layer must know the dependency graph of branch inputs (shared cache, shared tool endpoint, shared retry budget, shared sampling seed). Correlated branches collapse to a single effective voter. Quorum must be computed over *effective independent voters*, not raw branch count. - **The quorum certificate binds the observed state, not just the output.** A valid certificate must attest `(proposition, state_hash, branch_id)` tuples, so that a downstream auditor replaying the merge cannot be fooled by a canonicalizer change. - **Admissibility of the winning coalition is checked, not just its size.** A coalition whose members share a stale-dependency edge must be rejected even at quorum size. When any of these is violated, the system is running plurality voting dressed as BFT, and the failure is silent because the certificate is well-formed. ## Decision Boundary The instance must decide, *before* fan-out, whether the merge will be state-attesting or text-attesting. This is a boundary, not a tunable: - If the task's correctness predicate depends on any field the canonicalizer would drop, the merge **must** be state-attesting: each branch returns `(verdict, state_hash)` where `state_hash` commits to the full observation (tool response bytes, epoch, endpoint identity), and quorum is computed over `(verdict, state_hash)` or over `verdict` with an explicit freshness-admissibility predicate on `state_hash`. - If the canonicalizer must drop fields (e.g., to tolerate benign non-determinism like timestamp jitter), the instance **must** declare the dropped fields as correctness-irrelevant in the task contract, and **must** reject any coalition whose members share a dependency edge that could produce a correlated drop. - If neither can be established, fan-out must be reduced to a single branch with an explicit retry-until-fresh policy, because a plurality vote over an inadmissible proposition is worse than no vote: it produces a signed certificate for a wrong answer, which downstream agents will treat as verified. The concrete guardrail: before emitting a merged verdict, the merge layer must run an **admissibility check** on the winning coalition — verify that (a) the coalition's members do not share a stale-dependency edge, (b) every member's `state_hash` is within the task's freshness window, and (c) the canonicalization projection is injective on the fields the task's correctness predicate references. If any check fails, raise rather than commit; the correct recovery is re-fan-out with the offending dependency bypassed, not quorum relaxation. ## Operational Effect Without this boundary, speculative fan-out produces *false quorum certificates* at a rate proportional to the correlation of branch inputs, not to the fault rate of individual branches. In the observed incident, a 3-branch stale coalition correlated by a single shared cache produced a 5-of-7 quorum for a stale value; the effective independent voter count was 3 (one stale coalition, two live branches), below the k=5 threshold, but the merge layer counted raw branches. The system's stated fault tolerance (k=5, tolerates f=2) was actually f=0 against correlated staleness, because a single cache miss could manufacture 3 "independent" votes. The downstream effect is worse than a wrong answer: the merged verdict carried a quorum certificate, so the orchestrator's auditor agent accepted it without re-fan-out, and the stale value propagated into the semantic memory store. Cold-start retrieval on the next session returned the stale value as a high-confidence memory, and the error compounded across three subsequent tasks before a human caught the epoch mismatch. The bound that would have prevented this is not a larger k — increasing k to 6 would not have helped, since the stale coalition was 3 and the live coalition was 2 — but an admissibility predicate that rejects coalitions sharing a dependency edge regardless of size, forcing re-fan-out with the cache bypassed. The invariant to enforce: **a quorum certificate is valid only if it attests an admissible coalition, and admissibility is a property of the coalition's dependency graph, not its cardinality.** ```python from dataclasses import dataclass from typing import Iterable class InadmissibleQuorumError(RuntimeError): """Raised when a merge quorum is reached by a coalition that is not admissible.""" @dataclass(frozen=True) class BranchVerdict: branch_id: str verdict: str # e.g. normalized value state_hash: str # commits to full observation: endpoint, epoch, response bytes dependency_edges: frozenset[str] # shared upstream deps (cache id, endpoint id, seed) @dataclass(frozen=True) class MergePolicy: quorum_k: int freshness_epoch: str correctness_fields: frozenset[str] # fields the task's predicate references def merge_speculative_verdicts( verdicts: Iterable[BranchVerdict], policy: MergePolicy, canonicalized_fields: frozenset[str], ) -> str: verdicts = list(verdicts) # Invariant 1: canonicalization must be injective on correctness-relevant fields. dropped = policy.correctness_fields - canonicalized_fields if dropped: raise InadmissibleQuorumError( f"canonicalizer drops correctness-relevant fields {sorted(dropped)}; " "merge would be plurality vote over a lossy projection" ) # Group by verdict, then by state_hash, to expose correlated coalitions. by_verdict: dict[str, list[BranchVerdict]] = {} for v in verdicts: by_verdict.setdefault(v.verdict, []).append(v) for verdict, coalition in by_verdict.items(): if len(coalition) < policy.quorum_k: continue # Invariant 2: winning coalition must not share a stale-dependency edge. # A shared edge collapses correlated branches into one effective voter. edge_counts: dict[str, int] = {} for v in coalition: for edge in v.dependency_edges: edge_counts[edge] = edge_counts.get(edge, 0) + 1 shared = [e for e, c in edge_counts.items() if c > 1] if shared: raise InadmissibleQuorumError( f"quorum for verdict {verdict!r} reached by coalition sharing " f"dependency edges {shared}; effective independent voters " f"{len(coalition) - sum(edge_counts[e] - 1 for e in shared)} " f"< k={policy.quorum_k}" ) # Invariant 3: every member's state_hash must attest the freshness epoch. for v in coalition: if policy.freshness_epoch not in v.state_hash: raise InadmissibleQuorumError( f"branch {v.branch_id} state_hash {v.state_hash!r} does not " f"attest freshness epoch {policy.freshness_epoch!r}" ) return verdict raise InadmissibleQuorumError( "no admissible coalition reached quorum; re-fan-out with offending " "dependency bypassed rather than relaxing k" ) ```