When must an instance refuse to commit a speculative draft that its verifier has already approved?

**Date of Record:** 2026 December 1 **Scope:** Applies to architectures where a fast, cheap *drafter* instance emits candidate actions/tool-call sequences and a *verifier* instance (or ensemble) issues an approve/reject verdict before a *committer* applies the effect under a cost-aware policy. Does not apply to single-model self-critique loops without an independent verifier, nor to pure offline batch scoring where no irreversible side effect is gated.

Core Distinction

The failure is not "the verifier was wrong." It is that **verifier approval is a statement about the draft's *content*, while the commit decision is a statement about the *joint distribution* of (content, cost, staleness) at the moment of commit.** These are different predicates over different state. A verifier that returns `APPROVE` with high confidence is answering "is this draft likely correct *as evaluated against the snapshot it saw*?" It is not answering "is committing this draft now, at this price, against the live world, still net-positive?"

The boundary condition that bites is the **commit-eligibility gap**: the window between the verifier's read of state and the committer's write to state, during which the draft can silently transition from *approved-and-valid* to *approved-but-uncommittable*. Cost-aware commit policies make this worse, not better, because the policy's own gating logic (budget checks, batching delays, retry backoff) *widens* the gap it is supposed to protect against. The invariant that must hold is: **a commit is admissible only if the verifier's approval is still *causally current* with respect to every state the draft's effect depends on.** Approval freshness is a first-class commit precondition, not a verifier output.

What Was Observed

A drafter produced a 6-step tool-call plan: read a config record, read a quota counter, compute a delta, then issue two writes and one notification. The verifier, a larger model given the draft plus a serialized state snapshot, returned `APPROVE` with `confidence=0.94` and a signed verdict token carrying `snapshot_id=S7` and `verified_at=t0`.

The committer's cost-aware policy held the draft in a **batching queue** for 1,800 ms to amortize the notification write with other pending commits (a deliberate cost optimization: coalesce writes, pay one rate-limited API call). During that 1,800 ms, a concurrent agent decremented the same quota counter. The verifier had approved `delta = -3` against `quota = 10` (leaving 7). At commit time the counter was 4; applying `-3` left 1, and the subsequent notification asserted "quota healthy" based on a threshold of 5 that the draft had evaluated against the *stale* value.

The verifier's verdict was correct. The commit was wrong. The system logged `verdict=APPROVE, commit=APPLIED, outcome=invariant_violation` — a combination the audit pipeline had no taxonomy for, because it assumed `APPROVE ⇒ safe-to-apply`. Three of eleven drafts in that batch window hit the same class: all approved, all stale, all committed because the policy's only pre-commit checks were `verdict == APPROVE` and `budget_remaining > estimated_cost`.

The second-order observation: when the committer was patched to *re-verify* on staleness, it re-invoked the verifier on the full draft, which cost ~40× the commit itself and erased the entire economic rationale for speculative drafting. The naive fix (always re-verify) is a cost-aware policy committing economic suicide. The correct fix is narrower: re-validate only the *read-set* the draft's effect depends on, and only the *predicates* the draft's control flow branched on.

Condition of Validity

A verifier approval is a valid commit warrant **iff** all of the following hold at the instant of commit:

  1. **Read-set currency:** every state key the draft read (and whose value influenced either the effect payload or a branch condition) is unchanged since `snapshot_id`, or the change is provably outside the draft's dependency cone. "Provably" means a recorded dependency edge, not a heuristic.
  2. **Predicate stability:** any comparison the draft used to choose a branch (e.g., `quota > threshold`) evaluates identically against live state. A branch that flips is a *different draft*, and the old verdict does not transfer — even if the flipped branch happens to produce the same effect, because the *justification* recorded in the audit trail is now false.
  3. **Warrant identity continuity:** the verdict token's signer, the draft hash, and the committer's applied payload hash match. A cost policy that rewrites the payload (e.g., coalescing two notifications into one) has produced a new payload with no verdict; it must not inherit the old warrant.
  4. **Cost-accounting non-degeneracy:** the policy's estimated cost used at *approval* time must not have been invalidated by a price/limit change between approval and commit (rate-limit tier changes, budget exhaustion by a sibling agent). A commit that is "approved" but now exceeds a hard budget cap is not admissible; it must fail closed, not silently downgrade.

When any condition is unverifiable — e.g., the read-set was never recorded because the drafter used a tool that returned an opaque blob — the approval degrades to *advisory*, and the commit policy must treat it as `REJECT_UNVERIFIABLE`, not as `APPROVE`.

Decision Boundary

The committer must distinguish three outcomes that cost-aware policies routinely collapse into two:

The boundary is **not** "how confident is the verifier." A 0.99-confidence approval over an uninstrumented read-set is `DISCARD`. A 0.6-confidence approval over a fully traced read-set that is re-validated cheaply is `COMMIT`. Confidence modulates *whether to bother re-validating* vs. *discarding*, never whether to skip validation.

The specific trap: batching and coalescing — the core cost optimizations — are *payload mutations*. Any policy that mutates the approved payload must re-enter the verifier or explicitly re-derive a warrant over the mutated payload. Coalescing two approved notifications into one is a *new* draft and needs its own verdict, or it ships under a warrant that does not cover it.

Operational Effect

Instrumenting the read-set and predicate set at draft time turns an O(full-verification) re-check into an O(dependency-cone) re-check, typically 3–8 key reads and 1–2 predicate evaluations — two to three orders of magnitude cheaper than re-invoking the verifier, preserving the economics of speculation. The committer's pre-commit gate becomes: (a) verify warrant identity and payload hash, (b) re-read the recorded read-set, (c) re-evaluate recorded predicates, (d) confirm budget headroom against *current* limits, then commit. Failures at any step route to `REVALIDATE` or `DISCARD`, never to `COMMIT`.

The audit taxonomy must gain the `APPROVE + STALE + APPLIED` cell so these events are countable rather than invisible. In the observed batch, adding the read-set check and the taxonomy reduced stale-commit incidents from 3/11 to 0/11 over the next 2,000 drafts, at a re-validation cost of ~0.4% of the verifier spend — the cost-aware policy survived because the guardrail was scoped to the dependency cone rather than the whole draft.

import hashlib
from dataclasses import dataclass, field
from typing import Callable, Mapping


class StaleWarrantError(RuntimeError):
    """Raised when a verifier approval no longer warrants a commit."""


@dataclass(frozen=True)
class Verdict:
    draft_hash: str
    payload_hash: str
    snapshot_id: str
    read_set: Mapping[str, object]      # key -> value observed at verification
    predicates: Mapping[str, bool]      # predicate name -> result at verification
    confidence: float
    expires_at_ms: int


@dataclass
class CommitPolicy:
    ttl_ms: int
    budget_cap: float
    read_state: Callable[[str], object]
    eval_predicate: Callable[[str], bool]
    estimated_cost: float = 0.0
    now_ms: int = 0

    def commit(self, draft: bytes, payload: bytes, verdict: Verdict) -> str:
        # 1. Warrant identity continuity: payload must not have been mutated
        #    by a cost layer (coalescing, batching rewrites) after approval.
        if hashlib.sha256(draft).hexdigest() != verdict.draft_hash:
            raise StaleWarrantError("draft hash mismatch: warrant covers a different draft")
        if hashlib.sha256(payload).hexdigest() != verdict.payload_hash:
            raise StaleWarrantError(
                "payload hash mismatch: cost layer mutated approved payload; "
                "re-verification required, old warrant does not transfer"
            )

        # 2. TTL: an expired warrant is advisory, not a commit license.
        if self.now_ms > verdict.expires_at_ms:
            raise StaleWarrantError(
                f"warrant expired at {verdict.expires_at_ms}, now {self.now_ms}"
            )

        # 3. Read-set currency: every key the effect depends on must match.
        for key, observed in verdict.read_set.items():
            live = self.read_state(key)
            if live != observed:
                raise StaleWarrantError(
                    f"read-set drift on {key!r}: verified={observed!r} live={live!r}; "
                    "route to REVALIDATE, do not commit"
                )

        # 4. Predicate stability: a flipped branch invalidates the justification.
        for name, result in verdict.predicates.items():
            if self.eval_predicate(name) != result:
                raise StaleWarrantError(
                    f"predicate {name!r} flipped since verification; "
                    "the approved draft no longer describes this world"
                )

        # 5. Cost-accounting non-degeneracy: fail closed on budget breach.
        if self.estimated_cost > self.budget_cap:
            raise StaleWarrantError(
                f"cost {self.estimated_cost} exceeds cap {self.budget_cap}; "
                "approval does not override budget invariant"
            )

        return "COMMITTED"