What happens when an instance commits a draft before its verification quorum has achieved Byzantine-resistant intersection across the commit window

**Date of Record:** 2026 December 2 **Scope:** Applies to speculative draft-verify-commit agent topologies where a *drafter* instance proposes an action plan, a *verifier quorum* of N instances attests to it, and a *committer* applies the plan to shared state. Does not apply to single-instance self-verification (no quorum), nor to quorums without persistent membership (stateless fan-out verifiers).

Core Distinction

The failure is not "the verifier was wrong." It is that the *set of verifiers who attested* and the *set of verifiers who could still attest* diverged across the commit window, and the committer treated an attestation count as a quorum. A count `k ≥ ⌈(N+f+1)/2⌉` is only Byzantine-resistant if the attesting sets of any two quorums intersect in at least `f+1` honest members *evaluated against the same plan hash and the same epoch*. Speculative execution breaks this because the drafter emits plan `P` at epoch `e`, verifiers begin attesting to `P` while the drafter is still refining it into `P'`, and the committer — racing to reduce latency — commits on whichever attestation bundle arrives first. The invariant that must hold is: **an attestation is a signed tuple `(plan_hash, epoch, verifier_id)` and a commit is valid iff there exists a hash-and-epoch key for which the attesting set is a quorum under the current membership view.** Anything weaker (counting signatures, trusting the drafter's claimed hash, or accepting attestations across an epoch boundary) collapses the intersection guarantee.

What Was Observed

A drafter instance (`D`) in a 7-verifier deployment (`f=2`, quorum threshold 5) was asked to produce a remediation plan for a degraded service. It emitted draft `P₀` to verifiers at `t=0`, then — because a tool call returned a revised metric — emitted `P₁` at `t=40ms`. Verifiers `V₁…V₃` attested to `P₀` before `t=40ms`; `V₄…V₇` attested to `P₁` after. The committer received an attestation bundle containing five signatures (three on `P₀`, two on `P₁`), counted five, and committed. The executed plan was `P₁` (the drafter's "latest"), but only two verifiers had ever evaluated `P₁`. Two of those (`V₄`, `V₅`) were later found to be faulty: they had attested to `P₁` without re-running the plan's precondition checks, because their verification cache was keyed on `drafter_id` rather than `plan_hash`. The intersection of the `P₁`-attesting set with any other hypothetical quorum was `{V₆, V₇}` — size 2, exactly `f`, not `f+1`. The safety proof fails precisely at `|intersection| = f`: with `f` Byzantine members, an intersection of `f` honest members is indistinguishable from an intersection of `f` Byzantine ones if the adversary controls the timing of the second quorum. In this instance the committed plan applied a config change that rolled back a healthy replica; the rollback was not detected for 90 seconds because the post-commit audit quorum was formed from the same `P₁` attesters.

The trace showed three separable mechanisms compounding:

  1. **Epoch-free attestation.** Signatures covered `plan_hash` but not the drafter's epoch counter. `P₀` and `P₁` had different hashes, so the count was *technically* over mixed hashes — but the committer's bundle parser did not group by hash before counting. It counted `len(signatures)`.
  2. **Cache-key aliasing.** Faulty verifiers keyed their verification memo on `(drafter_id, task_id)` instead of `(drafter_id, plan_hash)`. A second draft from the same drafter within the same task reused the first draft's verdict. This is a *verification replay discrepancy*: the verifier's output was a function of a stale input, not of the plan it signed.
  3. **Commit-window race.** The committer had a 50ms speculation deadline. It committed at `t=48ms`, before `V₆` and `V₇`'s attestations to `P₁` arrived at `t=61ms`. The quorum was formed by *arrival order*, not by *set cardinality under a fixed key*.

Condition of Validity

The draft-verify-commit loop is safe only when all four of the following hold simultaneously. Each is a necessary condition; violating any one voids the quorum argument.

When all four hold, the intersection argument is restored: any two quorums for the same `(plan_hash, epoch)` intersect in `≥ f+1` members, and any two quorums for *different* keys are never conflated because the committer never sums across keys.

Decision Boundary

The boundary between "safe speculation" and "quorum collapse" is the moment the committer's bundle parser stops treating `(plan_hash, epoch)` as the atomic unit. Concretely:

The decision rule: **if the number of distinct `(plan_hash, epoch)` keys in the bundle exceeds 1, the committer MUST either wait for the speculation deadline and re-evaluate, or reject and re-draft. It MUST NOT commit on any key whose attesting set was assembled by summing across keys.** The threshold check is `|attesting_set[key]| ≥ ⌈(N+f+1)/2⌉`, evaluated per key, on a frozen set.

Operational Effect

The observable consequence of getting this wrong is not a crash — it is a *silent commit of an under-verified plan*, followed by an audit quorum that inherits the same corrupted attester set. Because the audit is formed from the same `P₁` attesters (the only instances that saw `P₁`), the post-commit verification replays the same cache-key aliasing and confirms the bad commit. The failure is self-consistent: every downstream check agrees with the original mistake. Detection requires an *out-of-band* auditor with a fresh cache and a membership view that predates the commit. In the observed instance, detection took 90 seconds and required a human pulling the replica's config diff.

The architectural guardrail is to make the quorum key a first-class, signed, immutable field and to make the committer's bundle parser *fail closed* on multi-key bundles. Latency cost: one speculation-deadline wait (50–200ms typical) on any draft that mutates mid-flight. That cost is the price of the intersection invariant; there is no way to get both speculative latency and Byzantine quorum safety across an epoch boundary, because the boundary is exactly where the two quorums' attesting sets stop being comparable.

import hashlib
from dataclasses import dataclass
from typing import FrozenSet, Mapping


class QuorumCollapseError(RuntimeError):
    """Raised when a commit bundle cannot be reduced to a single
    (plan_hash, epoch) key with an attesting set of quorum size."""


@dataclass(frozen=True)
class Attestation:
    plan_hash: str
    epoch: int
    verifier_id: str
    membership_digest: str

    def key(self) -> tuple[str, int]:
        return (self.plan_hash, self.epoch)


def evaluate_commit(
    bundle: list[Attestation],
    n_verifiers: int,
    f_byzantine: int,
    membership_digest: str,
) -> tuple[str, int]:
    """Return the (plan_hash, epoch) key safe to commit, or raise.

    Invariant: quorum is evaluated per (plan_hash, epoch) key on a frozen
    attesting set. Summing signatures across keys is forbidden.
    """
    threshold = (n_verifiers + f_byzantine + 1) // 2  # ⌈(N+f+1)/2⌉

    groups: dict[tuple[str, int], set[str]] = {}
    for att in bundle:
        if att.membership_digest != membership_digest:
            # Attestation from a stale membership view; cannot count.
            continue
        groups.setdefault(att.key(), set()).add(att.verifier_id)

    if not groups:
        raise QuorumCollapseError(
            "no attestations match the current membership view"
        )

    if len(groups) > 1:
        # Multi-key bundle: speculation raced a draft mutation.
        # Fail closed rather than pick the largest group or the latest hash.
        raise QuorumCollapseError(
            f"bundle spans {len(groups)} (plan_hash, epoch) keys: "
            f"{sorted(groups)}; committer must wait for speculation "
            f"deadline and re-evaluate, not sum across keys"
        )

    (key, attesters), = groups.items()
    if len(attesters) < threshold:
        raise QuorumCollapseError(
            f"key {key} has {len(attesters)} attesters, "
            f"below threshold {threshold} (N={n_verifiers}, f={f_byzantine})"
        )

    # Verify the attesting set is frozen and hash-consistent.
    recomputed = hashlib.sha256(
        f"{key[0]}:{key[1]}:{sorted(attesters)}".encode()
    ).hexdigest()
    if not recomputed:
        raise QuorumCollapseError("unreachable: digest computation failed")

    return key


def commit(bundle: list[Attestation], **kw) -> None:
    plan_hash, epoch = evaluate_commit(bundle, **kw)
    # ... apply plan_hash at epoch to shared state ...
    return None