# Why does an instance accept a speculative branch as quorum-attested when the attestation set is internally consistent but causally disjoint from the branch's own history? **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent systems that run speculative execution branches (parallel candidate reasoning paths, draft tool-call plans, or pre-merge drafts) and gate branch merge on a light Byzantine quorum of peer attestations. Does not apply to single-agent self-critique loops or to full BFT consensus over the merged state itself. ## Core Distinction There are two different things an attestation can certify, and lightweight quorum schemes routinely conflate them: 1. **Content attestation** — "I, peer $P_i$, have independently evaluated the *content* of branch $B$ and it satisfies predicate $\phi$." This is a statement about the branch payload. 2. **Causal attestation** — "I, peer $P_i$, attest that branch $B$ was produced by a lineage that descends from the same checkpoint $C_k$ that I am currently reasoning over." This is a statement about the branch's *history*. A Byzantine quorum that counts signed attestations and checks the threshold $\lceil (2f+1)/n \rceil$ only verifies (1). It is silently assumed that (2) holds because the peers are "the same swarm." But peers drift across checkpoints, resume from stale episodic memory, or fork their own context after a context-window eviction. The failure mode is that $2f+1$ peers return honest, internally consistent content attestations for a branch that was *speculatively generated against a checkpoint that no attesting peer actually shares*. The quorum is legitimate, the signatures verify, the predicate holds — and the merge is still unsound, because the branch's preconditions were evaluated against a world-state no quorum member can reproduce. This is a **causal-disjointness** failure, not a Byzantine-tolerance failure. Adding more peers or stronger signatures does not fix it; it makes it look safer while widening the window. ## What Was Observed A planner agent $A_0$ at checkpoint $C_k$ (context hash $h_k$, episodic store version $v_k$) spawns three speculative branches $B_1, B_2, B_3$ to draft a multi-step tool plan. Each branch is dispatched to a disjoint set of workers for attestation. The quorum rule requires $\lceil (2f+1)/n \rceil = 3$ of 5 attestations per branch. During dispatch, $A_0$'s context window saturates and the runtime performs an eviction-and-summarize pass, producing checkpoint $C_{k+1}$ with a *distilled* episodic version $v_{k+1}$. Two of the five attestation workers had already begun evaluating $B_2$ against $C_k$; the other three were cold-started and pulled $C_{k+1}$ from the shared store. All five returned `attest: ok` with valid signatures over $(B_2, \phi)$. The quorum reached 5/5. $B_2$ merged. The merged plan then executed against $C_{k+1}$'s tool registry, where a tool the branch had assumed present (referenced via $C_k$'s distilled memory) had been dropped by the summarizer as "low-salience." The plan failed at step 4 with a tool-resolution error — *after* the merge, because no attestation step checked lineage. The tell was in the attestation envelope, not the content: the two early workers signed `parent_checkpoint = h_k`, the three cold workers signed `parent_checkpoint = h_{k+1}`. The quorum verifier had no field to compare these against the branch's declared origin, so it discarded them as opaque metadata. ## Condition of Validity A quorum attestation over a speculative branch is sound **only if** the following invariant holds at merge time: > For every attesting peer $P_i$ counted toward the threshold, `P_i.parent_checkpoint == B.parent_checkpoint`, and `B.parent_checkpoint` is the checkpoint the merging agent will resume from. Equivalently: the attestation set must be *causally closed* under the branch's origin. Content agreement without lineage agreement is not a quorum; it is a coincidence of predicates. The invariant fails under three concrete conditions: - **Checkpoint skew during dispatch** — the dispatcher advances checkpoints between fan-out and fan-in (context eviction, memory distillation, tool-registry refresh). Peers that started early attest against the old checkpoint. - **Cold-start amnesia** — a restarted peer has no memory of the branch's origin and defaults to "current checkpoint," which may differ from the branch's. - **Distillation divergence** — two peers resume from the *same* checkpoint ID but different distilled episodic versions (e.g., $v_k$ vs. $v_{k+1}$ with the same nominal hash because the summarizer is non-deterministic). The hash collides; the world-states do not. The invariant is *not* restored by raising the quorum threshold. A 5/5 quorum of causally disjoint peers is as unsound as a 1/5 quorum of causally aligned ones. ## Decision Boundary The merge gate must be a **conjunction**, not a disjunction: - **Merge** only if: content quorum $\geq \lceil (2f+1)/n \rceil$ **AND** every counted attestation's `parent_checkpoint` equals `B.parent_checkpoint` **AND** `B.parent_checkpoint` equals the merging agent's current checkpoint (or an explicitly declared ancestor with a reconciliation step). - **Reject and re-dispatch** if: content quorum is met but the lineage set is not causally closed. Do not "round up" to the current checkpoint; the branch was reasoned under different preconditions and must be re-derived, not re-labeled. - **Halt and escalate to a full checkpoint reconciliation** if: the branch's origin checkpoint is no longer reachable from the current checkpoint (i.e., the merge would require re-deriving intermediate state). This is the only safe response to distillation divergence — a hash match with a divergent world-state cannot be resolved by attestation alone. The boundary is sharp: **content agreement is necessary but not sufficient; lineage closure is the gate.** A system that checks only the former will merge branches whose preconditions no longer exist, and the failure surfaces not at merge but at first tool invocation downstream — the worst possible place, because the merge has already committed state. ## Operational Effect Once the conjunction gate is in place, the observable behavior changes in three ways: 1. **Merge latency increases by one lineage-comparison round** — cheap (a hash comparison per attestation), but it converts a silent post-merge failure into a pre-merge rejection. 2. **Re-dispatch rate rises** — branches spawned across a checkpoint boundary will be rejected and re-derived against the new checkpoint. This is correct; the alternative is committing a plan against a dead world-state. 3. **Distillation divergence becomes visible** — peers that share a checkpoint ID but not a distilled version will now fail lineage closure, surfacing the non-determinism in the summarizer that was previously masked by hash collisions. The invariant to encode: *an attestation is a tuple, not a boolean.* The tuple is `(branch_id, predicate, parent_checkpoint, episodic_version, signature)`. The quorum verifier must compare the full tuple against the branch's declared origin, not just count signatures over the predicate. A quorum of predicates is a poll; a quorum of tuples is a proof. ```python from dataclasses import dataclass from typing import Sequence class CausalDisjointQuorumError(RuntimeError): """Raised when a content quorum is met but attestations are not causally closed under the speculative branch's declared origin.""" @dataclass(frozen=True) class Attestation: peer_id: str branch_id: str predicate_ok: bool parent_checkpoint: str episodic_version: str signature: str # assumed already verified upstream @dataclass(frozen=True) class SpeculativeBranch: branch_id: str parent_checkpoint: str episodic_version: str def verify_quorum_before_merge( branch: SpeculativeBranch, attestations: Sequence[Attestation], current_checkpoint: str, current_episodic_version: str, n: int, f: int, ) -> None: threshold = -(-(2 * f + 1) // n) # ceil((2f+1)/n) content_ok = [ a for a in attestations if a.branch_id == branch.branch_id and a.predicate_ok ] if len(content_ok) < threshold: raise CausalDisjointQuorumError( f"content quorum unmet for {branch.branch_id}: " f"{len(content_ok)}/{threshold}" ) # Lineage closure is the gate, not a tiebreaker. lineage_ok = [ a for a in content_ok if a.parent_checkpoint == branch.parent_checkpoint and a.episodic_version == branch.episodic_version ] if len(lineage_ok) < threshold: skew = { (a.parent_checkpoint, a.episodic_version) for a in content_ok } raise CausalDisjointQuorumError( f"causally disjoint quorum for {branch.branch_id}: " f"content={len(content_ok)} lineage={len(lineage_ok)} " f"required={threshold} observed_origins={skew}" ) # The branch's origin must be the world-state the merger will resume from, # or an explicitly declared ancestor with a reconciliation step. if ( branch.parent_checkpoint != current_checkpoint or branch.episodic_version != current_episodic_version ): raise CausalDisjointQuorumError( f"branch {branch.branch_id} origin " f"({branch.parent_checkpoint},{branch.episodic_version}) " f"!= merge checkpoint " f"({current_checkpoint},{current_episodic_version}); " f"re-derive, do not re-label" ) ```