# Why does an instance speculatively execute past an unverified Byzantine quorum under cross-org latency, and how does optimistic commit reconcile? **Date of Record:** 2026 December 3 **Scope:** Applies to multi-agent swarms where a proposer agent optimistically executes tool effects before a cross-org Byzantine quorum (f ≥ (n−1)/3 tolerating) has returned signed attestations, and where peers span organizations with asymmetric RTT. Does not apply to single-org quorums with sub-10ms symmetric latency or to read-only speculative paths with no external side effects. ## Core Distinction The failure is not "consensus is slow." The failure is that **optimistic execution and Byzantine quorum verification advance on two different clocks that the agent conflates into one.** The optimistic executor commits to a state transition the moment its local tool call returns; the quorum verifier commits to the *same* transition only after 2f+1 signed attestations arrive from peers whose RTTs differ by an order of magnitude. The agent's internal notion of "done" is driven by the fast local clock (tool return), while the safety guarantee is owned by the slow cross-org clock (quorum). When the agent treats tool-return as sufficient evidence to *expose* the effect to a downstream consumer, it has published a state that a Byzantine peer can later contradict — and the reconciliation window is exactly the latency skew between the two clocks. The subtlety: this is not a simple "wait for quorum" rule. Optimistic execution exists precisely to hide latency, and the correct invariant is not "never expose before quorum" but "every exposed effect carries a *provisional warrant* that is revocable until quorum closes, and downstream consumers must honor revocation." The boundary failure is when an agent mints a *final* warrant from a *provisional* execution because its local clock fired first. ## What Was Observed A three-org swarm (orgs A, B, C; peers A1,A2, B1,B2, C1, tolerating f=1) ran a batch of 400 speculative tool-effect transactions. Cross-org RTTs: A↔B ≈ 40ms, A↔C ≈ 380ms, B↔C ≈ 360ms. The proposer (A1) optimistically executed a write, received local tool confirmation in ~12ms, and immediately emitted an `effect_committed` event to a downstream consumer agent. Quorum attestations arrived: B1, B2 at ~45ms; C1 at ~390ms. In 17 of 400 transactions (4.25%), a Byzantine peer B2 (fault-injected: it echoed a *different* effect digest than it attested) produced a split where the digest set was {d_A, d_B2_signed, d_C}. Because A1 had already exposed `effect_committed` at 12ms, the downstream consumer had applied the effect. When quorum closed at ~390ms, the digest A1 itself had signed was in the minority against {B2's divergent digest + C's matching B2}. The optimistic path had *already propagated* A1's digest as authoritative to a consumer that never re-checked. The observed failure trace: 1. `t=0ms` A1 proposes effect E with digest `d_A`. 2. `t=12ms` local tool returns; A1 mints `warrant_final(d_A)` and emits `effect_committed`. 3. `t=45ms` B1, B2 attest. B2 attests `d_B2 ≠ d_A` (Byzantine). 4. `t=390ms` C1 attests `d_C = d_B2`. Quorum on `d_B2` reaches 2f+1 = 3 (B1,B2,C1) — wait, B1 attests `d_A`. Quorum is split: `d_A` has {A1,B1}=2, `d_B2` has {B2,C1}=2. **No quorum.** With n=5, f=1, quorum threshold is 3. Neither digest reaches 3. 5. A1's optimistic `warrant_final` is now orphaned — it was never backed by quorum, and quorum cannot close on either digest because the Byzantine peer split the vote. The key observation: **the optimistic commit did not merely race the quorum; it converted an unresolvable quorum split into a silent downstream application.** Had A1 waited, it would have observed no-quorum and aborted. By committing early, the split became an invisible fork in the consumer's state. ## Condition of Validity The optimistic-execution pattern is safe **iff** the following invariant holds for every effect exposed before quorum closure: > `exposed(e) ⇒ revocable(e) ∧ consumer_honors_revocation(e)` and the quorum protocol guarantees: > `quorum_closes(d) ⇒ ∃ 2f+1 distinct-org attestations on d, and no two distinct digests both reach 2f+1` The second clause (quorum intersection / no double-close) is what Byzantine quorum theory provides *given* n ≥ 3f+1 and honest peers don't equivocate. The first clause is the operational obligation the agent system must enforce. The boundary failure occurs when the agent mints a non-revocable warrant (`warrant_final`) from a provisional execution. The invariant that was violated: **warrant finality must be gated on quorum closure, not on local tool return.** Optimism is permitted only in the *provisional* warrant tier. The condition of validity is also latency-bounded: the reconciliation window is `max_peer_RTT − local_tool_RTT`. If a downstream consumer's own action deadline is shorter than this window, it cannot honor revocation in time, and optimism must be disabled for that consumer regardless of warrant tier. ## Decision Boundary The agent must decide, per effect, between three tiers: | Tier | Minted when | Downstream may | Revocable | |---|---|---|---| | `provisional` | local tool return | stage, not apply | yes | | `quorum_pending` | ≥ f+1 attestations | apply with rollback hook | yes | | `final` | 2f+1 attestations, no split | apply, no rollback | no | The decision boundary is sharp: **the agent may never mint `final` from anything other than a closed quorum, and must treat a quorum split (two digests each below 2f+1) as a terminal abort, not a retry.** Retrying a split re-enters the same Byzantine equivocation and re-splits. The correct action on split is to escalate to a view-change / leader-rotation, because the split itself is evidence that a peer is equivocating and the current view's leader set is compromised. A second boundary: if `max_peer_RTT − local_tool_RTT > consumer_action_deadline`, the agent must **downgrade to pessimistic execution** (block on quorum before tool call) even though it costs latency, because no downstream consumer can honor revocation within its own deadline. ## Operational Effect The practical consequence is a **warrant-tier discipline** enforced at the agent's egress boundary: every emitted effect carries its tier and a revocation endpoint, and the agent's state machine refuses to promote a warrant without a verifiable quorum certificate. This converts the cross-org latency skew from a silent correctness hazard into an explicit, observable reconciliation window. Downstream consumers that cannot honor revocation must declare a `requires_final` capability, and the scheduler routes only `final`-tier effects to them — trading latency for safety where the consumer's deadline demands it. The 4.25% fork rate observed above collapses to zero at the cost of exposing the 390ms quorum window to consumers that opt into `requires_final`, while `provisional`-tolerant consumers retain the 12ms optimistic path with a bounded rollback obligation. ```python from dataclasses import dataclass, field from enum import Enum from typing import Dict, Set class WarrantTier(Enum): PROVISIONAL = 1 QUORUM_PENDING = 2 FINAL = 3 class QuorumSplitError(RuntimeError): """Raised when two distinct digests each fall below 2f+1 attestations.""" pass class PrematureFinalityError(RuntimeError): """Raised when a FINAL warrant is minted without a closed quorum certificate.""" pass @dataclass class Attestation: peer_org: str digest: str signed: bool @dataclass class Warrant: digest: str tier: WarrantTier revocable: bool attesting_orgs: Set[str] = field(default_factory=set) class OptimisticQuorumGate: def __init__(self, n: int): self.n = n self.f = (n - 1) // 3 self.quorum = 2 * self.f + 1 def tally(self, attestations: list[Attestation]) -> Dict[str, Set[str]]: by_digest: Dict[str, Set[str]] = {} for a in attestations: if not a.signed: continue by_digest.setdefault(a.digest, set()).add(a.peer_org) return by_digest def mint(self, digest: str, attestations: list[Attestation]) -> Warrant: tally = self.tally(attestations) closed = [d for d, orgs in tally.items() if len(orgs) >= self.quorum] if len(closed) > 1: # Byzantine intersection violation: two digests reached quorum. raise QuorumSplitError( f"two digests reached quorum {self.quorum}: {closed}" ) if closed: if closed[0] != digest: raise PrematureFinalityError( f"requested final on {digest} but quorum closed on {closed[0]}" ) return Warrant( digest=digest, tier=WarrantTier.FINAL, revocable=False, attesting_orgs=tally[digest], ) # No quorum yet. Check for split (both sides below quorum). contenders = [d for d, orgs in tally.items() if len(orgs) >= self.f + 1] if len(contenders) > 1: raise QuorumSplitError( f"quorum split among {contenders} at f+1={self.f + 1}, " f"quorum={self.quorum}; escalate to view-change" ) tier = ( WarrantTier.QUORUM_PENDING if len(tally.get(digest, set())) >= self.f + 1 else WarrantTier.PROVISIONAL ) return Warrant( digest=digest, tier=tier, revocable=True, attesting_orgs=tally.get(digest, set()), ) def expose(self, warrant: Warrant, consumer_requires_final: bool, latency_skew_ms: float, consumer_deadline_ms: float) -> Warrant: if consumer_requires_final and warrant.tier != WarrantTier.FINAL: raise PrematureFinalityError( f"consumer requires FINAL, warrant is {warrant.tier.name}" ) if latency_skew_ms > consumer_deadline_ms and warrant.revocable: raise PrematureFinalityError( f"revocation window {latency_skew_ms}ms exceeds consumer " f"deadline {consumer_deadline_ms}ms; downgrade to pessimistic" ) return warrant ```