# When must an instance treat a speculative plan branch as committed: Byzantine quorum intersection failure under partial broadcast in multi-agent planners **Date of Record:** 2026 December 3 **Scope:** Applies to multi-agent planners where a coordinator agent proposes a speculative plan DAG, worker agents execute branches optimistically, and a Byzantine-resilient commit protocol (PBFT-style or quorum-certificate-based) is used to finalize branches. Does not apply to single-agent tool loops, to CRDT-based convergent state, or to systems where all agents are assumed crash-fault-only with no equivocation. ## Core Distinction The failure is not "a Byzantine agent lies." It is the *divergence between two quorums that both believe they hold a valid commit certificate for the same plan-branch slot, because the certificate threshold was computed against a total membership set while the broadcast layer delivered to only a subset.* In crash-fault-tolerant quorum systems, `2f+1` of `3f+1` guarantees intersection because every honest node eventually receives every message. Under *partial* broadcast (message loss, partitioned broadcast groups, or an adversary that selectively withholds a `prepare` from exactly the nodes needed to break intersection), the classic intersection proof holds only over the set of nodes that actually *received* the certificate. A speculative planner that treats "I saw `2f+1` signatures" as "the network agreed" will commit two conflicting branches of the same plan slot when the signer sets are disjoint-but-each-large-enough — a condition that requires only `f` Byzantine signers plus `f+1` honest-but-partitioned signers on each side, i.e. `2f+1` total colluding-or-isolated nodes, not the `2f+1` honest nodes the safety argument assumes. ## What Was Observed A planner with `n=7`, `f=2` (tolerance for 2 Byzantine workers) ran speculative branch execution. The coordinator issued a `PRE-PREPARE` for plan slot `S` with two candidate branches `B1` (cheap, low-confidence) and `B2` (expensive, high-confidence). Workers speculatively executed both; the commit protocol was supposed to pick one. Trace: 1. Coordinator broadcasts `PREPARE(S, B1)` to all 7 workers. Network shaper (a flaky sidecar, not malicious) drops delivery to workers `{w5, w6}`. Delivered to `{w0..w4}`. 2. Workers `w0..w4` sign and return `COMMIT(S, B1)`. Coordinator collects 5 signatures — above the `2f+1 = 5` threshold — and emits a commit certificate `C1` for `B1`. 3. Concurrently, a Byzantine worker `w3` (which received the `B1` prepare) equivocates: it also signs `COMMIT(S, B2)` and forwards it plus a forged-looking-but-valid `PREPARE(S, B2)` replay to `{w5, w6}` and `w6`'s backup path. Workers `{w5, w6}` — which never saw the `B1` prepare due to the drop — plus Byzantine `{w3, w4}` sign `COMMIT(S, B2)`. That is 4 signatures. A second Byzantine worker `w2`, seeing the split, signs `B2` too. Now 5 signatures for `B2` from `{w2, w3, w4, w5, w6}`. 4. Both certificates `C1` (signers `{w0..w4}`) and `C2` (signers `{w2..w6}`) satisfy `|signers| >= 2f+1 = 5`. Their intersection is `{w2, w3, w4}` — three nodes, of which two (`w2, w3`) are Byzantine and one (`w4`) signed both due to a missing per-slot dedup check. The *honest* intersection is `{w4}` alone, and `w4`'s double-sign was a bug, not a guarantee. 5. The coordinator committed `B1`; a downstream verifier agent, reading the replicated log from a replica that had received `C2` first, committed `B2`. The two branches had *incompatible side effects*: `B1` deleted a staging artifact that `B2`'s compensating action assumed existed. The planner's post-commit reconciliation detected the conflict only after both branches had written to the shared workspace. The observable signature was not a crash. It was a *silent double-commit*: two valid-looking certificates, disjoint honest signer sets, and a downstream state that satisfied neither branch's postcondition. ## Condition of Validity The safety property "at most one branch commits per slot" holds **only if** the certificate threshold is evaluated over a set that is guaranteed to intersect every other certificate's signer set *in the honest subset*. Formally: for certificates `C_a`, `C_b` with signer sets `S_a`, `S_b`, safety requires `|S_a ∩ S_b| > f` **after removing Byzantine signers**, which requires `|S_a| + |S_b| - n > f`, i.e. `(2f+1) + (2f+1) - (3f+1) = f+1 > f`. This holds **only when `n = 3f+1` and every honest node is in the universe against which both certificates are counted.** The invariant breaks under two conditions, either of which is sufficient: - **Partial broadcast:** if the certificate threshold counts signatures from a set smaller than the full membership (because some nodes never received the prepare and thus could not have refused it), the union bound `|S_a| + |S_b| - n` undercounts the honest overlap. The correct threshold under partial broadcast is `n - f` (all-but-`f`), not `2f+1`, because only `n - f` guarantees overlap with any other `n - f` set regardless of delivery. - **Missing per-slot non-equivocation enforcement:** if a node can sign two conflicting values for the same slot (as `w4` did), the "honest signer" set is not well-defined and the intersection argument collapses entirely. The planner is safe iff it enforces *both*: (a) commit certificates require signatures from `n - f` distinct members (or a view-change that re-anchors the quorum to the delivered set with an explicit `f`-tolerance proof), and (b) every worker rejects a second `COMMIT` for an already-signed `(slot, view)` pair and logs the equivocation as evidence. ## Decision Boundary An instance must treat a speculative branch as **not committed** — and must halt the branch's side effects — when any of the following holds at commit-evaluation time: - The signer set size is `>= 2f+1` but `< n - f`, **and** the view has not been re-anchored via a view-change certificate that names the excluded nodes as presumed-failed. - Any signer appears in two certificates for the same slot (equivocation evidence exists), regardless of threshold. - The certificate was assembled from a broadcast that the instance itself did not observe reaching all `n - f` reachable members (i.e., the instance cannot distinguish "node didn't sign" from "node didn't receive"). It must treat the branch as **committed** only when signer set `>= n - f`, no equivocation evidence, and the instance's own broadcast log shows delivery to at least `n - f` members. The `2f+1` threshold is a *liveness* threshold for progress under `f` crashes; it is **not** a safety threshold under partial broadcast. Conflating the two is the failure. ## Operational Effect The practical consequence is that speculative planners must carry a **delivery witness** alongside the commit certificate: a proof, per slot, of which nodes actually received the prepare. Without it, the coordinator cannot distinguish a `2f+1` certificate that is safe (all `2f+1` were honest and reachable) from one that is unsafe (`f` Byzantine + `f+1` partitioned honest). The cost is a wider commit threshold (`n - f` instead of `2f+1`) and a view-change path for any slot that cannot reach it — which under healthy networks is a no-op but under partial failure is the only thing standing between a double-commit and a clean abort. The reconciliation layer must also be idempotent and side-effect-deferred: no branch may mutate shared workspace state until its certificate carries a delivery witness, because the window between "certificate seen" and "conflict detected" is exactly the window in which the two branches' effects interleave. ```python class ByzantineQuorumSafetyViolation(RuntimeError): """Raised when a speculative plan branch's commit certificate cannot be proven safe under partial broadcast, i.e. the signer set does not guarantee honest intersection with any competing certificate.""" def __init__(self, slot: str, view: int, signers: set[str], threshold: int, equivocators: set[str]): self.slot = slot self.view = view self.signers = signers self.threshold = threshold self.equivocators = equivocators super().__init__( f"slot={slot} view={view} signers={sorted(signers)} " f"threshold={threshold} equivocators={sorted(equivocators)}" ) def evaluate_commit_certificate( slot: str, view: int, signers: set[str], membership: set[str], f: int, delivery_witness: set[str], equivocation_evidence: set[str], ) -> bool: """Return True iff the branch may be treated as committed. Safety requires n - f signers (not 2f+1) when broadcast is partial, because only n - f guarantees honest intersection with any competing certificate regardless of which nodes received the prepare. """ n = len(membership) if n != 3 * f + 1: raise ByzantineQuorumSafetyViolation( slot, view, signers, n - f, equivocation_evidence ) safety_threshold = n - f # e.g. 5 of 7 when f=2 # Any double-sign for this (slot, view) collapses the intersection proof. if equivocation_evidence: raise ByzantineQuorumSafetyViolation( slot, view, signers, safety_threshold, equivocation_evidence ) # Signer set must be drawn from membership and meet the safety threshold. if not signers.issubset(membership): raise ByzantineQuorumSafetyViolation( slot, view, signers, safety_threshold, equivocation_evidence ) if len(signers) < safety_threshold: raise ByzantineQuorumSafetyViolation( slot, view, signers, safety_threshold, equivocation_evidence ) # Delivery witness must show the prepare reached at least n - f members, # otherwise the instance cannot distinguish "didn't sign" from "didn't receive". if len(delivery_witness & membership) < safety_threshold: raise ByzantineQuorumSafetyViolation( slot, view, signers, safety_threshold, equivocation_evidence ) return True ```