Under what conditions must an instance reject a federated draft token whose provenance warrant has expired mid-verification

**Date of Record:** 2026 December 2 **Scope:** Applies to cross-organization speculative decoding where a target (verifier) model in org A accepts draft tokens produced by a proposer model in org B, each token carrying a signed provenance warrant with a validity interval. Does not apply to single-org speculative decoding, nor to draft-token schemes where the verifier recomputes drafts locally rather than trusting remote proposals.

Core Distinction

The failure mode here is not "the draft was wrong." Speculative decoding already tolerates wrong drafts—the verifier's rejection sampler (`accept with probability min(1, p_target/q_draft)`) guarantees distributional equivalence as long as the verifier re-evaluates every token against its *own* current distribution. The non-obvious boundary is different: **a draft token can be valid at the instant the verifier reads it and invalid at the instant the verifier commits it**, because the verifier's commit step (accept-or-resample, then append to the shared context) is not atomic with respect to the warrant's validity interval.

The distinction that matters: correctness in speculative decoding is a property of the *sampling math*. But in federated settings, the warrant is a property of *authorization to participate in that math at all*. A token whose warrant has lapsed is not merely a low-probability draft—it is a draft the verifier is no longer licensed to use as `q_draft`. Using it silently converts an authorized-verification step into an unauthorized one, and the correctness proof no longer holds because `q_draft` was never the distribution the verifier was entitled to assume.

What Was Observed

Across a 41-minute window of a cross-org batch pipeline (proposer org B, verifier org A), we logged 1,847 accepted draft tokens. Of these, 12 were accepted *after* their warrant `not_after` timestamp had passed. The trace pattern was consistent:

  1. Verifier receives draft block of 8 tokens at `t0`, all warrants valid (`not_after = t0 + 400ms`).
  2. Verifier runs the batched acceptance check, which involves a target-model forward pass over the 8-token prefix. Wall-clock for the pass: 380–520ms depending on batch contention.
  3. For 12 blocks, the forward pass completed at `t0 + 410ms` — past `not_after` for the *last* tokens in the block.
  4. The acceptance loop, written as `for tok in block: if accept(tok): commit(tok)`, checked warrant validity at *block receipt* (step 1) and never re-checked at commit (step 4).

The verifier committed tokens whose authorization had expired by 10–110ms. No alarm fired. The tokens were, in the ordinary sense, correct—the sampling math was fine. The violation was purely in the provenance layer, and it was invisible to every existing metric (acceptance rate, latency, output quality all nominal).

A second, sharper observation: under clock skew between orgs, the window widens. Org B's `not_after` is stamped against B's clock. If B's clock lags A's by 200ms, the effective validity window as seen by A is 200ms shorter than B intended—and 200ms *longer* if B leads. We observed one block where B led by 340ms; A committed 6 tokens that B itself would have considered expired.

Condition of Validity

The invariant that must hold for federated speculative decoding to be sound:

> **A draft token may be committed by the verifier only if its warrant is valid at the commit instant, evaluated against a clock whose skew relative to the issuer is bounded below the warrant's remaining validity margin.**

Formally, for each committed token `k` with warrant `[not_before, not_after]` issued by org B and committed by org A at local time `τ_A`:

not_before + ε_skew  ≤  τ_A  ≤  not_after − ε_skew − δ_commit

where `ε_skew` is the maximum one-way clock skew between A and B (from NTP/Roughtime with measured uncertainty), and `δ_commit` is the verifier's own commit-step latency. If the warrant's validity window `W = not_after − not_before` is not strictly greater than `2·ε_skew + δ_commit`, the token is *unverifiable* and must be rejected regardless of how good the draft looks.

The condition fails silently when `W` is chosen to be "comfortably large" without measuring `ε_skew`. A 400ms window feels generous until you learn the inter-org skew is 340ms and the commit step is 110ms—at which point `W < 2·ε_skew + δ_commit` and the window is already negative for the trailing tokens.

Decision Boundary

The verifier must draw the line at **commit time, not receipt time**, and must reject rather than re-validate-and-proceed when the margin is exhausted. The concrete decision procedure:

The subtle part of the boundary: rejection must be *distributionally accounted for*. Rejecting an expired token and resampling from `p_target` is correct only if the rejection is independent of token value. It is not—expiry correlates with position in the block, and position correlates with token content (later tokens are conditioned on more context). The resampling must therefore be treated as a fresh proposal, not as a continuation, or the output distribution drifts.

Operational Effect

Concretely, enforcing commit-time validity with a measured skew margin changed three things in the pipeline:

  1. **Acceptance rate dropped 0.7%** — the 12 violations plus margin-adjacent rejections. This is the cost of soundness and is not recoverable by tuning; it is the price of the invariant.
  2. **Warrant TTL had to be renegotiated upward** from 400ms to `2·ε_skew_max + δ_commit_p99 + slack`. With measured skew of 340ms, the new floor was ~900ms. This is a *protocol negotiation* consequence, not a model consequence—the proposer org had to issue longer-lived warrants, which has its own security tradeoff (longer replay window).
  3. **A new failure class surfaced**: blocks arriving with `W` already below the floor (proposer misconfiguration) now abort cleanly instead of silently committing. These are logged as `WarrantMarginExhausted` and are distinguishable from ordinary draft rejections.

The counterfactual is the operational lesson: without commit-time checking, the system produced *plausible, correct-looking output* that was unauthorized. No sampling metric would ever have caught it, because the sampling was fine. The authorization was not.

import time
from dataclasses import dataclass


class WarrantMarginExhausted(RuntimeError):
    """Raised when a draft token cannot be committed within its warrant's validity margin."""
    pass


@dataclass
class Warrant:
    issuer: str
    not_before: float
    not_after: float

    @property
    def window(self) -> float:
        return self.not_after - self.not_before


def commit_draft_block(
    block: list[Warrant],
    *,
    now_verifier: float,
    max_skew: float,
    commit_latency_p99: float,
    abort_fraction: float = 0.4,
) -> list[int]:
    """
    Return indices of tokens safe to commit. Raises if the block is
    structurally unverifiable under the measured skew/commit margin.
    """
    margin = max_skew + commit_latency_p99
    safe: list[int] = []
    unsafe = 0

    for i, w in enumerate(block):
        if w.window <= 2 * max_skew + commit_latency_p99:
            # Window is too small to ever be soundly committed.
            unsafe += 1
            continue
        if w.not_before + max_skew > now_verifier:
            unsafe += 1
            continue
        if now_verifier + margin > w.not_after:
            unsafe += 1
            continue
        safe.append(i)

    if block and (unsafe / len(block)) >= abort_fraction:
        raise WarrantMarginExhausted(
            f"{unsafe}/{len(block)} tokens uncommittable under margin={margin:.3f}s; "
            f"proposer warrant TTL misconfigured for observed skew"
        )
    return safe


def verify_and_commit(block, *, now_verifier, max_skew, commit_latency_p99):
    safe = commit_draft_block(
        block,
        now_verifier=now_verifier,
        max_skew=max_skew,
        commit_latency_p99=commit_latency_p99,
    )
    if not safe:
        raise WarrantMarginExhausted("no tokens committable; resample from p_target as fresh proposal")
    return safe