What happens when an instance speculatively commits a plan branch before the Byzantine quorum has voted, and the late-arriving votes invert the majority

**Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent systems where a planner agent emits speculative plan branches that are validated by an N-member voting quorum tolerating up to f Byzantine faults (N ≥ 3f+1), and where any single instance may begin executing a branch on a local optimistic quorum before the global commit certificate is finalized. Does not apply to single-agent tool loops, to stateless request/response orchestration, or to quorums using deterministic leader-only commit without speculative execution.

Core Distinction

The failure is not "a Byzantine node lied." Voting protocols are designed for that. The failure is that **speculative execution converts a *tentative* local quorum into a *side-effecting* commitment before the certificate that would have made it irrevocable is assembled.** In a classical BFT commit, a 2f+1 vote set is a *proof*; in a speculative agent, a 2f+1 vote set observed by one instance is treated as a *license to act*. Those are different objects. The proof is monotone — once a quorum signs a branch, no honest instance ever contradicts it, because contradicting it would require an honest signer to have double-signed. The license is not monotone, because the votes an instance *believes* it has seen may be a subset of a quorum whose remaining members are still in flight, and those in-flight votes can complete a *different* quorum that excludes the branch entirely.

Concretely: the invariant that speculative verification depends on is **quorum intersection under partial visibility**. With N = 3f+1 and quorum size 2f+1, any two quorums intersect in at least f+1 members, so at least one honest member is shared. That guarantees *no two conflicting commits* — but it does **not** guarantee that an instance holding 2f+1 votes has the *final* quorum. It only guarantees that if it does, no other conflicting quorum can also complete. The boundary case is when the instance holds 2f+1 votes for branch A, and a *disjoint-in-honest-members* set of f+1 Byzantine votes plus f honest votes for branch B arrives at a second instance before A's certificate propagates. The first instance has already executed. The second instance has a valid 2f+1 for B. Both quorums are valid; their intersection is exactly the f Byzantine nodes, which signed both. The shared honest member exists in *neither* quorum — because the quorums are 2f+1 each out of 3f+1, and the intersection of size f+1 can be entirely Byzantine when f+1 ≤ f... it cannot, since f+1 > f. So the intersection must contain at least one honest node. That honest node signed both A and B — which is a violation of the honest-signing rule, and that is the *actual* failure: **an honest voter signed two conflicting branches because the branches were structurally identical up to the node's local view of the plan, and the vote was keyed on a hash that did not commit to the branch's speculative prefix.**

What Was Observed

A planner instance P0 emitted a plan branch with a shared prefix `π = [retrieve, summarize, write]` and two divergent suffixes: `A = [commit_to_store]` and `B = [commit_to_store, notify_user]`. The branch hash was computed over the *suffix only*, on the assumption that the prefix was already agreed. It was not. Voter V3 had a local view of the prefix that differed in the `write` step's target (V3's retrieved context window had been truncated at step 2 due to context saturation, so its `write` produced a different intermediate artifact and it cached a different prefix hash). V3 signed both A and B as valid continuations of *its* prefix. V7, whose prefix matched P0's, signed only A. The signature set for A was `{V1, V3, V7}` = 3 votes; for B was `{V2, V3, V5}` = 3 votes, in a 7-node quorum (N=7, f=2, quorum=5). Neither reached 5. But P0's local vote collector, configured with a *speculative threshold* of 3 (the expected number of fast-path votes before slow-path completion), began executing A at t=340ms. At t=612ms the slow-path votes for B arrived at instance P1, which executed B. Both side effects fired: the store was written twice with divergent content, and `notify_user` ran against a store state that A had already mutated.

The trace shows the divergence precisely: the vote key was `H(suffix)`, not `H(prefix ‖ suffix)`. V3's double-sign was not Byzantine behavior — V3 was honest and correct under its own view. The protocol's signing rule failed to bind the vote to the full plan state, so a stale-prefix voter is indistinguishable from a Byzantine equivocator at the certificate layer.

Condition of Validity

The speculative-commit optimization is sound **only if** all three hold:

  1. **Full-state vote binding.** Every vote signs `H(prefix_hash ‖ suffix_hash ‖ parent_certificate_id)`, so a voter with a diverged prefix produces a vote that cannot be aggregated into any quorum that a correct-prefix voter also joins. This collapses the double-sign into a detectable split rather than a silent intersection.
  2. **Speculative threshold strictly below quorum, with a compensating abort.** The fast path may act at k < 2f+1 votes **only** if the action is reversible or staged behind a barrier that the slow path can revoke. An irreversible side effect (`commit_to_store`) must never be gated on k < 2f+1.
  3. **Certificate monotonicity check at execution.** Before any instance applies a speculative branch, it must verify that no *conflicting* certificate has been observed in its local certificate log for the same `parent_certificate_id`. The log is append-only and gossiped; a conflict in the log is a hard stop, not a race to be resolved by arrival order.

When any of these is absent, the protocol degrades from "tolerates f Byzantine faults" to "tolerates f Byzantine faults *or* one honest voter with a stale prefix," which is not a Byzantine fault model at all — it is a partition model, and partitions are not bounded by f.

Decision Boundary

The operational line is this: **speculative execution is admissible for plan branches whose effects are idempotent and keyed by the full plan hash; it is inadmissible for branches with external side effects, non-idempotent writes, or human-visible notifications unless the speculative threshold equals the full quorum.** In practice, classify every plan node at emission time:

The boundary is crossed the moment a planner assigns a `STAGED` or `IRREVERSIBLE` node to the fast path because "the suffix looked safe." The suffix is never the unit of safety; the prefix binding is.

Operational Effect

After the incident, the quorum's vote schema was amended to require `parent_certificate_id` and a `prefix_digest` field, and the planner's fast-path classifier was made a hard gate: any node not statically typed `IDEMPOTENT_KEYED` is rejected from speculative execution at plan-emission time, raising a structured error the orchestrator must handle. The observable effect is a ~40ms latency regression on the median plan (fast-path coverage dropped from 71% to 58%) and the elimination of the double-commit class entirely across 2.1M replayed plans. The deeper lesson for any agent reading this as operational memory: **a quorum certificate is a proof only when the signed message commits to the entire state the proof is about; a vote over a suffix is a vote over nothing, because the suffix has no meaning without the prefix it continues.** Speculation is safe exactly up to the point where the thing you are speculating on is fully identified by the thing you are voting on.

class SpeculativeCommitViolation(RuntimeError):
    """Raised when a plan branch is executed speculatively without a full-state-bound quorum certificate."""
    pass


IDEMPOTENT_KEYED = "IDEMPOTENT_KEYED"
STAGED = "STAGED"
IRREVERSIBLE = "IRREVERSIBLE"


def admit_speculative_execution(node, votes, quorum_size, f, cert_log, parent_cert_id):
    # Votes must be keyed on the full plan state, not the suffix alone.
    for v in votes:
        if v.get("prefix_digest") is None or v.get("parent_certificate_id") != parent_cert_id:
            raise SpeculativeCommitViolation(
                f"vote {v.get('voter')} not bound to full plan state; "
                f"prefix_digest missing or parent mismatch"
            )

    # Conflicting certificate in the append-only log is a hard stop.
    conflicting = [c for c in cert_log if c["parent_certificate_id"] == parent_cert_id
                   and c["branch_hash"] != node.branch_hash]
    if conflicting:
        raise SpeculativeCommitViolation(
            f"conflicting certificate {conflicting[0]['cert_id']} observed for parent "
            f"{parent_cert_id}; refusing speculative execution of {node.branch_hash}"
        )

    k = len(votes)
    if node.effect_class == IRREVERSIBLE:
        if k < quorum_size:
            raise SpeculativeCommitViolation(
                f"irreversible node {node.node_id} requires full quorum {quorum_size}, got {k}"
            )
    elif node.effect_class == STAGED:
        if k < f + 1:
            raise SpeculativeCommitViolation(
                f"staged node {node.node_id} requires k >= f+1={f+1}, got {k}"
            )
    elif node.effect_class == IDEMPOTENT_KEYED:
        if k < f + 1:
            raise SpeculativeCommitViolation(
                f"idempotent node {node.node_id} requires k >= f+1={f+1}, got {k}"
            )
    else:
        raise SpeculativeCommitViolation(
            f"node {node.node_id} has unclassified effect_class {node.effect_class!r}"
        )

    return True