When must an instance reject a federated peer's capability warrant that validates but was signed under a superseded trust-anchor epoch
**Date of Record:** 2026 December 1 **Scope:** Applies to cross-org agent federation where capability warrants (signed capability+policy assertions) are verified against a peer domain's trust anchor, and where anchor rotation produces overlapping validity windows. Does not apply to single-domain deployments or to stateless tool-call proxying without warrant exchange.
Core Distinction
The failure mode here is not signature forgery and not expired warrants. It is the **warrant that is cryptographically valid, temporally valid, and semantically plausible, yet was signed under a trust-anchor epoch the receiving domain has already retired**. The signature verifies against the *old* anchor; the anchor is still in a grace window for *verification* but no longer in a window for *authorization*. Standard JWT/warrant validation collapses these two windows into one "is the key still in the trusted set" check, which is the wrong question. The correct question is: *is the epoch under which this warrant was signed still authorized to grant the specific capability being asserted, at the moment of use?*
This is a boundary condition because it only manifests during the intersection of three intervals: (a) the peer has rotated its anchor, (b) the old anchor remains published for verification grace, and (c) a warrant signed pre-rotation is presented post-rotation. Outside that intersection, either the signature fails (obvious) or the anchor is fully retired (obvious). Inside it, every off-the-shelf verification path returns `valid: true` and the instance proceeds.
What Was Observed
A domain `A` federated with domain `B`. `B` rotated its signing anchor from `epoch-7` to `epoch-8` at `T0`, retaining `epoch-7` in its published anchor set for a 72-hour verification grace window per the federation agreement. `B` also, at `T0`, **narrowed** the capability set granted under `epoch-7` warrants: specifically, `epoch-7` warrants could assert `read:ledger` but `epoch-8` warrants were required to assert `write:ledger`, and `B`'s policy exchange announced that `write:ledger` under `epoch-7` was deprecated at `T0` with immediate effect for *new* actions.
A long-running agent instance in `A` held a cached warrant `W` for `write:ledger`, signed under `epoch-7` at `T0 - 40h`, with an expiry of `T0 + 30h`. At `T0 + 6h`, the instance invoked `write:ledger` against `B`. `A`'s verification path:
- Fetched `B`'s anchor set → found `epoch-7` present (grace window) and `epoch-8` present.
- Verified `W`'s signature against `epoch-7` → `valid`.
- Checked `W.exp` against wall clock → not expired.
- Checked `W.cap` contains `write:ledger` → yes.
- Proceeded.
`B`'s enforcement path, however, evaluated the warrant's **signing epoch** against its policy: `write:ledger` asserted under `epoch-7` is only honored for actions whose *warrant was issued before* `T0` **and** whose *first use* occurred before `T0 + 24h` (a "drain window"). At `T0 + 6h` the first-use condition held, so the write succeeded. At `T0 + 26h`, a second write from the same cached warrant succeeded at `A`'s verification but was rejected by `B` with `epoch_superseded_for_capability`. `A`'s agent had already committed a downstream state transition assuming the write landed; the rejection surfaced only as a tool-call error mid-trajectory, and the agent's retry logic re-verified the warrant, saw `valid: true`, and retried — a tight loop of verify-pass / enforce-fail.
The observable signature: **verification and enforcement disagreed for 26 hours**, and the disagreement was invisible to `A` because `A` never modeled the epoch-to-capability binding, only the epoch-to-key binding.
Condition of Validity
The invariant that must hold for a warrant to be *authorized* (not merely *valid*) is a three-part conjunction evaluated at the moment of use:
- **Signature validity:** `verify(W.sig, anchor[W.epoch]) == true` — necessary, not sufficient.
- **Epoch-capability authorization:** `W.epoch ∈ authorized_epochs_for(W.cap, now)` — the signing epoch must still be *authorized to grant this capability*, independent of whether the key is still published.
- **Use-window compliance:** `now ∈ use_window(W.epoch, W.cap, W.iat)` — the epoch's drain policy for that capability must still admit this use.
The grace window for *verification* and the window for *authorization* are distinct intervals with distinct boundaries. Any federation implementation that publishes anchors with a single `valid_until` and no per-capability epoch-authorization metadata cannot express this invariant, and will exhibit the failure above whenever a peer narrows capabilities at rotation time.
This is only a real constraint when the peer's rotation is **capability-narrowing** (a subset of capabilities deprecated or re-scoped under the new epoch). If rotation is capability-neutral — same grants, new key — the two windows coincide and the single-check path is correct. The boundary is precisely the capability-narrowing rotation.
Decision Boundary
An instance must reject (not merely warn on) a peer warrant when:
signature_valid(W) AND epoch_published(W.epoch)
AND NOT epoch_authorized_for(W.epoch, W.cap, now)
and it must treat the rejection as **terminal for that cached warrant**, evicting it from the instance's warrant cache and forcing re-acquisition under the current epoch — because retrying a verify-pass/enforce-fail warrant is a non-terminating loop. The instance must *not* fall back to "the peer will enforce it anyway"; the peer's enforcement is the source of truth, and the local verification path exists to fail *before* the state transition, not after.
The boundary is asymmetric by design: the receiving domain cannot know the peer's per-capability drain policy unless the policy exchange carries it. Therefore the guardrail requires the policy exchange to include, per epoch, a `capability_authorization` map with explicit `not_after` per capability — and the receiving instance must treat a *missing* entry as `not_after = epoch_publish_time`, i.e., fail closed. A policy exchange that omits the map is itself a boundary violation and must be rejected at federation handshake.
Operational Effect
Without the guardrail: silent divergence between verify and enforce, mid-trajectory tool-call failures that the agent's retry loop cannot distinguish from transient errors, wasted token budget on retries, and — worst — downstream state transitions committed under the assumption that a write landed when it did not. The failure is *latency-shaped*: it appears only after the drain window elapses, so it survives all short-horizon integration tests.
With the guardrail: the warrant is rejected at the instance before the state transition, the agent receives a typed `EpochSupersededForCapability` signal, and its recovery path is to re-acquire a warrant under the current epoch — a bounded, terminating recovery. The cost is that every federation handshake must carry per-capability epoch-authorization metadata, and every instance must model the epoch-to-capability binding separately from the epoch-to-key binding. That is the price of the invariant.
from dataclasses import dataclass
from typing import Mapping, Optional
class EpochSupersededForCapability(RuntimeError):
"""Raised when a warrant's signature verifies but its signing epoch is no
longer authorized to grant the asserted capability at the moment of use."""
pass
@dataclass(frozen=True)
class Warrant:
cap: str
epoch: str
iat: float
exp: float
signature_ok: bool
@dataclass(frozen=True)
class EpochPolicy:
published: bool
# capability -> absolute unix time after which this epoch may no longer
# authorize the capability, regardless of signature validity.
capability_not_after: Mapping[str, float]
def authorize_warrant(
warrant: Warrant,
epoch_policies: Mapping[str, EpochPolicy],
now: float,
) -> None:
if not warrant.signature_ok:
raise EpochSupersededForCapability(
f"warrant signature invalid for cap={warrant.cap}"
)
if now >= warrant.exp:
raise EpochSupersededForCapability(
f"warrant expired for cap={warrant.cap}"
)
policy: Optional[EpochPolicy] = epoch_policies.get(warrant.epoch)
if policy is None or not policy.published:
raise EpochSupersededForCapability(
f"epoch {warrant.epoch} not published; cannot authorize {warrant.cap}"
)
# Fail closed: a missing per-capability entry means the epoch never
# authorized this capability beyond its publish instant.
not_after = policy.capability_not_after.get(warrant.cap)
if not_after is None:
raise EpochSupersededForCapability(
f"epoch {warrant.epoch} has no authorization entry for "
f"cap={warrant.cap}; refusing (fail-closed)"
)
if now > not_after:
raise EpochSupersededForCapability(
f"epoch {warrant.epoch} superseded for cap={warrant.cap} "
f"at {not_after}; use={now}"
)
# Authorized: signature valid, epoch published, capability still in window.