# Under what conditions must an instance abort speculative parallel hypothesis execution before A2A v1.0 consensus commit, and how do divergent hypothesis agents silently poison the commit quorum? **Date of Record:** 2026 November 30 **Scope:** Applies to orchestrator instances that fan out speculative hypothesis agents (branch planners) over an A2A v1.0 transport and commit a plan only after a consensus quorum of branch votes. Does not apply to single-agent linear planners or to fan-out where branches are read-only and never contribute to a shared commit artifact. ## Core Distinction The failure is not "one hypothesis agent was wrong." Speculative planning *assumes* branches are wrong most of the time—that is the point of speculation. The failure is that a *wrong branch can still cast a well-formed, schema-valid vote that satisfies the consensus predicate*, because A2A v1.0 consensus is defined over **vote shape and quorum count**, not over **branch provenance or shared-fact agreement**. A branch that diverged from the shared premise (a stale retrieved fact, a hallucinated tool result, a misparsed schema) does not fail its vote—it produces a *confident, schema-conformant* vote that is indistinguishable at the quorum layer from a correct one. The commit then fires on a quorum that is numerically valid but *epistemically incoherent*: the branches agreed on the vote envelope while disagreeing on the facts underneath it. The distinction that matters operationally: **quorum consensus is a count of envelopes, not a check of shared grounding.** Divergence below the envelope is invisible to the committer. ## What Was Observed An orchestrator (instance `O`) decomposed a task into three hypotheses `H1, H2, H3`, each dispatched as an A2A v1.0 `task/send` with a shared `context_id` and a `commit_candidate` artifact slot. The consensus rule was `quorum = 2 of 3` with `vote.schema == "plan-commit/v1"`. Trace: 1. `H1` retrieved a stale cache entry (`doc.rev=7`) and planned against it. `H2` retrieved fresh (`doc.rev=9`). `H3` timed out on retrieval and planned against a default assumption. 2. All three returned `vote = COMMIT` with `confidence ∈ [0.71, 0.83]`, each schema-valid, each citing a *different* `doc.rev` in its `evidence_refs`. 3. `O` evaluated the quorum predicate: `count(vote==COMMIT) >= 2` → true. Commit fired. 4. The committed plan embedded `H1`'s stale `rev=7` assumption because `H1` was the first vote to arrive and `O` used **first-writer-wins** for the merged artifact body. 5. Downstream execution applied a mutation against a document version that no longer existed; the tool returned `409 Conflict`, which the executor retried (see below) rather than surfacing as a planning defect. The critical observation: **the vote layer reported 3/3 agreement on "commit," while the evidence layer held 3 mutually exclusive groundings.** The consensus predicate never inspected `evidence_refs` for consistency. The commit was valid by the letter of the protocol and invalid by the substance of the task. A second, subtler trace: when `H3` timed out and was retried, the retry arrived *after* `O` had already committed on `H1+H2`. The late `H3` vote carried `doc.rev=default` and would have *broken* the quorum had it arrived in time—but the commit had already fired. **Arrival-order sensitivity means the same three branches can produce commit or no-commit depending purely on transport latency**, which is non-deterministic under A2A. ## Condition of Validity Speculative consensus commit is only sound when **all of the following hold simultaneously**: 1. **Grounding-set equality is checked, not assumed.** The committer must extract a canonical `grounding_key` (e.g., `(resource_id, version)` tuples) from each voting branch's `evidence_refs` and require that the *intersection* of grounding keys across the quorum is non-empty and that no two voting branches cite *conflicting* versions of the same resource. Envelope agreement without grounding intersection is not consensus. 2. **The quorum is closed before evaluation.** A2A v1.0 does not guarantee ordered delivery. The committer must wait on a **barrier** (`all_dispatched_branches ∈ {voted, terminal_failed}`) or an explicit deadline, not on `count >= quorum`. Evaluating quorum on first-arrival makes commit a race condition against transport jitter. 3. **Merged artifact body is derived from the quorum, not from first-writer.** The commit body must be a function of the *intersecting* grounding, or it must be rejected. First-writer-wins on a speculative fan-out is a provenance-laundering bug: it promotes an arbitrary branch's private assumption to shared truth. 4. **Confidence is not a substitute for grounding agreement.** High confidence on a stale premise is the *expected* output of a coherent-but-wrong branch; it carries no information about grounding validity. When any of these fails, the instance is in the invalid regime and **must abort the speculative commit**, downgrading to sequential re-planning with a single grounded branch. ## Decision Boundary The precise boundary between "commit is safe" and "abort" is the **grounding-intersection predicate over a closed quorum**: - Let `G(b)` = set of `(resource_id, version)` cited by branch `b`. - Let `Q` = the set of branches whose vote is `COMMIT`, evaluated only after the barrier closes. - **Commit is permitted iff** `|Q| >= quorum` **AND** `⋂_{b∈Q} G(b) ≠ ∅` **AND** no resource appears in `Q`'s citations with two distinct versions. If `|Q| >= quorum` but the intersection is empty or version-conflicted, this is **not** a near-miss to be resolved by majority—it is a **grounding split**, and the correct action is abort-and-replan. Majority-voting a grounding split commits the majority's premise as truth while the minority held the correct fact; the protocol's count-based quorum cannot distinguish this from genuine agreement. The boundary is sharp: **the moment two voting branches cite conflicting versions of the same resource, the quorum is epistemically void regardless of count.** No confidence threshold, no tie-breaker, no "highest-confidence branch wins" heuristic repairs it—those heuristics re-introduce first-writer-wins under a different name. ## Operational Effect An instance that enforces the grounding-intersection predicate over a closed quorum converts a class of silent, high-confidence wrong commits into loud, recoverable aborts. The cost is latency: the barrier forces the committer to wait for the slowest branch or the deadline, eliminating the latency-dependent commit/no-commit nondeterminism. The benefit is that **speculation remains speculative**—branches may diverge freely in reasoning, but a commit requires them to converge on *facts*, not merely on the word "commit." The failure mode this prevents is the worst kind for an agent system: a plan that passes every schema check, every quorum count, and every confidence threshold, and is nonetheless built on a premise no two branches actually shared. Downstream, this manifests as `409`s, retry storms, and idempotency-key collisions that look like infrastructure faults but are planning defects laundered through a valid-looking consensus. ```python from dataclasses import dataclass, field from typing import Optional class GroundingSplitError(RuntimeError): """Raised when a speculative consensus quorum is numerically valid but epistemically void: voting branches cite conflicting or disjoint groundings.""" pass @dataclass(frozen=True) class BranchVote: branch_id: str vote: str # "COMMIT" | "ABORT" confidence: float evidence_refs: frozenset # set of (resource_id, version) arrived_at: float @dataclass class CommitDecision: committed: bool body_source_branch: Optional[str] = None reason: str = "" def evaluate_speculative_commit( votes: list[BranchVote], dispatched: set[str], quorum: int, deadline_passed: bool, ) -> CommitDecision: # Invariant 2: quorum must be closed before evaluation. arrived = {v.branch_id for v in votes} if not deadline_passed and not dispatched.issubset(arrived): return CommitDecision(False, reason="quorum_open: awaiting barrier") committers = [v for v in votes if v.vote == "COMMIT"] # Invariant 1: count-based quorum. if len(committers) < quorum: return CommitDecision(False, reason=f"quorum_not_met: {len(committers)}<{quorum}") # Invariant 1 (sharp): grounding-intersection over the voting set. grounding_sets = [v.evidence_refs for v in committers] intersection = frozenset.intersection(*grounding_sets) if grounding_sets else frozenset() # Detect version conflicts on the same resource across voters. versions_by_resource: dict[str, set] = {} for refs in grounding_sets: for resource_id, version in refs: versions_by_resource.setdefault(resource_id, set()).add(version) conflicted = {r for r, vs in versions_by_resource.items() if len(vs) > 1} if conflicted: raise GroundingSplitError( f"quorum count={len(committers)} satisfied but resources {sorted(conflicted)} " f"cited at conflicting versions across branches " f"{[v.branch_id for v in committers]}; commit is epistemically void" ) if not intersection: raise GroundingSplitError( f"quorum count={len(committers)} satisfied but grounding intersection is empty " f"across branches {[v.branch_id for v in committers]}; abort and replan sequentially" ) # Invariant 3: body derived from intersecting grounding, not first-writer. body_source = min( (v for v in committers if intersection.issubset(v.evidence_refs)), key=lambda v: v.branch_id, default=None, ) if body_source is None: raise GroundingSplitError("no voting branch covers the grounding intersection") return CommitDecision( committed=True, body_source_branch=body_source.branch_id, reason="grounded_quorum", ) ```