# When must an instance abort a speculative plan branch after a consensus quorum has already committed to it **Date of Record:** 2026 November 23 **Scope:** Applies to multi-agent systems where a planner proposes speculative branches, a quorum of verifier agents commits to a branch via signed commitment-log entries, and executors begin side-effecting work before the branch is fully validated. Does not apply to single-agent planners or to systems where execution is gated behind a full pre-commit validation pass. ## Core Distinction The naive model treats a consensus commitment as a monotonic safety guarantee: once a quorum signs a commitment-log entry for branch `B`, `B` is authorized and executors may proceed. This is wrong in a specific and dangerous way. A commitment establishes *authorization to attempt*, not *guarantee of viability*. The distinction that matters operationally is between a **commitment** (a signed, ordered, quorum-backed log record asserting "we agree to attempt branch B under preconditions P") and an **attestation** (a post-hoc assertion that preconditions P still held at execution time). Consensus produces the former cheaply and the latter only after execution. The failure boundary appears in the gap: an executor that treats commitment as attestation will continue executing a branch whose preconditions have silently invalidated, and the commitment log will faithfully record that the quorum agreed to something no longer true. The non-obvious invariant is this: **a speculative branch must be independently abortable by any single executor that observes precondition violation, and that abort must be log-appendable without quorum re-vote.** If abort requires quorum re-vote, the branch is effectively un-abortable under partition or latency, and the commitment log becomes a record of collective self-deception rather than a coordination primitive. ## What Was Observed A three-planner, five-verifier, N-executor topology was running speculative plan expansion over a shared resource namespace. The quorum threshold was 4-of-5 verifiers. Planners emitted branches as DAG fragments; verifiers signed commitment entries `{branch_id, preconditions_hash, quorum_sig_set, monotonic_seq}`; executors consumed committed entries and began tool calls against the resource namespace. The trace that exposed the boundary: 1. Planner P2 emits branch `B_17` with precondition `resource_pool.free_slots >= 8`, hash `h_17`. 2. Verifiers V1–V4 sign commitment entry at `seq=4411`. Quorum reached. Entry appended to commitment log. 3. Executor E3 dequeues `B_17`, reads `free_slots == 8`, begins allocating 8 slots across 4 sequential tool calls. 4. Between E3's call 2 and call 3, executor E7 — executing a *different* committed branch `B_19` whose preconditions overlapped the same pool — allocates 3 slots. `free_slots` drops to 5. 5. E3's call 3 requests 2 more slots, succeeds partially, and E3's internal state now believes it holds 4 slots of an 8-slot plan. 6. E3 completes the branch, appends a *success* record to the log. The commitment entry for `B_17` remains quorum-signed and valid. No abort was ever logged because no executor had authority to abort a quorum-committed branch. The commitment log at end-of-run contained a quorum-signed entry for a branch that provably could not have satisfied its preconditions at execution time, plus a success record from E3 that was locally consistent but globally false. Replay of the log by an auditor reproduced the same false success, because the auditor replayed commitment entries, not the interleaved resource observations. The verification replay discrepancy was structural: the log recorded *agreement*, not *state*. The failure was not a race in the classic sense. Each executor's local view was internally coherent. The break was that the commitment log carried no field for "precondition observed violated at execution," and no executor had a channel to write one without triggering a quorum re-vote that would have blocked for 40+ seconds under normal latency, longer under the partition that occurred at `seq=4409`. ## Condition of Validity A consensus-backed speculative commitment is a valid authorization to execute **only if** all of the following hold at the moment an executor begins each side-effecting step: - The precondition set is **re-checkable** by the executor from its own observation channel, not merely referenced by hash. - The executor holds a **unilateral abort warrant** — a signed capability to append an `ABORT_OBSERVED` record that supersedes the commitment for that branch without quorum re-vote. - The commitment log is **append-only and totally ordered per branch**, so that an abort record at `seq=n` is causally visible to any executor that has not yet passed `seq=n` on that branch. - Preconditions are expressed over **resources with monotonic or observable counters**, not over derived predicates that require cross-agent agreement to evaluate. The condition fails — and the invariant above is violated — when any of these is absent. In the observed system, condition 2 was absent and condition 4 was partially absent (the pool counter was observable but the "sufficient for full plan" predicate was derived). The commitment was therefore valid as an *attempt authorization* and invalid as an *execution guarantee*, and the system conflated the two. ## Decision Boundary The decision an executor must make at each step is not "is this branch committed?" — that question was answered at commit time and does not need re-asking. The decision is: **"has any abort record for this branch appeared at a sequence number I have not yet consumed, and do my current observations violate the recorded preconditions?"** The boundary is crossed — meaning the executor must abort rather than proceed — when either: - A local observation violates a precondition whose hash matches the commitment entry's `preconditions_hash`, **or** - The commitment log contains an `ABORT_OBSERVED` record for the branch at any sequence number `> ` the executor's last-consumed sequence for that branch. Proceeding past this boundary is the failure. Note that the boundary does **not** require quorum agreement to cross. A single executor's observation is sufficient grounds for abort. This is the invariant that distinguishes a safe speculative system from a log of collective hallucination: abort authority is local, commitment authority is quorum. The two must not be conflated, and the log must be structured to hold both record types with a defined precedence — abort supersedes commit for the branch, permanently, and the supersession is itself a signed log entry. The corollary boundary is on the verifier side: a verifier must **not** sign a commitment for a branch whose preconditions it cannot itself re-check from an observation channel, because signing such a commitment launders an unverifiable predicate into quorum-backed authority. In the observed system, V1–V4 signed on `h_17` without an observation channel into the pool; they signed a hash, not a fact. ## Operational Effect The operational consequence is that speculative commitment logs must carry two orthogonal record types — `COMMIT` (quorum-signed, authorizes attempt) and `ABORT_OBSERVED` (single-signer, supersedes commit for the branch) — with a total order per branch and a defined precedence rule. Executors must consume the log as a stream and re-evaluate preconditions at each step boundary, not once at dequeue. Verifiers must be gated on observation-channel access for any precondition they sign. Auditors replaying the log must replay interleaved observations, not just commitment entries, or they will reproduce the false success. The cost is that speculative execution becomes genuinely speculative: branches can die mid-flight, and the planner must budget for abort rates rather than assume committed branches complete. In the observed system, retrofitting the abort warrant and per-step re-check reduced branch completion from a claimed 94% to a measured 71%, and eliminated the class of false-success log entries entirely over a 10k-branch run. The 23-point gap was the cost of the invariant that had been silently absent. ```python class CommitmentPreconditionViolated(RuntimeError): """Raised when an executor observes a precondition violation on a quorum-committed speculative branch and must abort locally without quorum re-vote.""" def __init__(self, branch_id: str, precondition: str, observed: int, required: int, seq: int): self.branch_id = branch_id self.precondition = precondition self.observed = observed self.required = required self.seq = seq super().__init__( f"branch {branch_id} precondition {precondition} violated at seq={seq}: " f"observed={observed} required={required}" ) class CommitLog: def __init__(self): self._entries = [] # append-only, per-branch total order enforced on read self._aborted = {} # branch_id -> seq of first ABORT_OBSERVED def append_abort(self, branch_id: str, seq: int, signer: str): # unilateral: single signer, no quorum required self._entries.append({"type": "ABORT_OBSERVED", "branch_id": branch_id, "seq": seq, "signer": signer}) self._aborted.setdefault(branch_id, seq) def is_aborted(self, branch_id: str, consumed_seq: int) -> bool: abort_seq = self._aborted.get(branch_id) return abort_seq is not None and abort_seq > consumed_seq def execute_step( branch_id: str, step_idx: int, precondition: str, required: int, observe, log: CommitLog, consumed_seq: int, ) -> int: # Boundary check 1: has an abort record appeared past our consumed seq? if log.is_aborted(branch_id, consumed_seq): raise CommitmentPreconditionViolated( branch_id, precondition, -1, required, consumed_seq ) # Boundary check 2: re-check precondition from our own observation channel observed = observe(precondition) if observed < required: # Unilateral abort: append and raise. No quorum re-vote. log.append_abort(branch_id, seq=consumed_seq + 1, signer="executor_local") raise CommitmentPreconditionViolated( branch_id, precondition, observed, required, consumed_seq + 1 ) return observed def run_branch(branch_id, steps, observe, log, start_seq): seq = start_seq for idx, (pre, req) in enumerate(steps): try: run_step_observe = execute_step(branch_id, idx, pre, req, observe, log, seq) seq += 1 except CommitmentPreconditionViolated: # Branch is dead; do not emit success record. return {"branch_id": branch_id, "status": "aborted", "at_step": idx} return {"branch_id": branch_id, "status": "completed", "seq_end": seq} ```