# When must an instance refuse to present a delegated credential chain whose warrant epoch has advanced past its own cached root **Date of Record:** 2026 November 21 **Scope:** Applies to any agent instance that presents an AAIF delegated credential chain (root warrant → intermediate delegations → leaf capability token) to a downstream verifier, where the root warrant may be re-issued with an advanced epoch while the instance holds a cached, previously validated chain. Does not apply to single-hop bearer tokens or to chains where the instance is the root issuer itself. ## Core Distinction The distinction that matters is between **chain validity** and **chain currency**. AAIF verification, as commonly implemented at the verifier, checks a chain's cryptographic integrity: every signature resolves to the prior link, the leaf's capability set is a subset of the delegator's, and the root warrant's `not_before`/`not_after` window brackets the present instant. A chain can pass all of these checks while being *stale* — because the root warrant was revoked and re-issued under a new epoch, and the instance is still holding the pre-epoch chain it cached when it was first admitted. The non-obvious boundary: **a verifier that only checks chain validity will accept a stale chain indefinitely**, because the old chain's signatures remain valid against the old root, and the old root's expiry has not yet elapsed. The revocation is expressed not as a signature failure but as an *epoch advance* — a monotonic counter on the root warrant that the instance must observe out-of-band before presenting. The instance, not the verifier, is the party responsible for currency, because only the instance knows which root epoch it last reconciled against. This is the invariant: **an instance must never present a chain whose root epoch is older than the last epoch it has observed for that issuer, even if the chain is cryptographically valid.** ## What Was Observed An orchestrator instance (`orch-7`) held a delegated chain issued at root epoch 41, delegating `read:dataset` and `write:scratch` to itself, with a leaf TTL of 900 seconds. At epoch 42 the root issuer rotated the signing key after a suspected intermediate compromise and re-issued all live delegations under the new key, bumping the epoch. The revocation of epoch-41 warrants was expressed only as `root.epoch=42` and a `revoked_epochs: [41]` entry in the issuer's published warrant state. `orch-7` had cached its epoch-41 chain at admission and refreshed it on a 600-second timer. Between the epoch advance and the next timer tick, `orch-7` made 14 tool calls to a verifier that checked signature validity against the *pinned* root public key it had fetched at boot. All 14 calls succeeded. The verifier had not been told to consult `revoked_epochs`; it only checked that the chain's root signature verified and that `now` fell within the leaf window. The compromised intermediate's key was still the one embedded in the epoch-41 chain, so every signature checked out. The failure trace: 1. Epoch advance at T+0 (root re-issued, epoch 41 → 42, epoch 41 marked revoked). 2. T+0 … T+540: `orch-7` continues presenting epoch-41 chain. Verifier accepts (signatures valid, window open, `revoked_epochs` unchecked). 3. T+540: a downstream auditor replays the 14 calls and flags 9 of them as having been executed under a revoked warrant. 4. T+600: `orch-7`'s refresh timer fires, fetches epoch-42 chain, and from then on presents correctly. The window of exposure was bounded by the refresh timer (600s), not by any correctness property. Had the timer been 3600s, the exposure would have been an hour. The chain was never *invalid*; it was *superseded*, and nothing in the instance's presentation path distinguished the two. ## Condition of Validity The invariant holds only under the following conditions, and the guardrail below is only correct when they are met: - **Epoch is monotonic and issuer-signed.** The root warrant carries an `epoch` integer that strictly increases on every re-issue, and the epoch is covered by the root signature. If epoch is advisory (unsigned metadata), an attacker can downgrade it and the invariant is unenforceable. - **The instance has a bounded-staleness channel to the issuer's warrant state.** The instance must be able to observe the current epoch with a known maximum lag `L`. If `L` is unbounded (issuer unreachable, no cached last-known-epoch), the instance cannot distinguish "epoch unchanged" from "epoch advanced while I was partitioned," and must fail closed on presentation rather than assume currency. - **The verifier is *not* relied upon for currency.** If the verifier independently checks `revoked_epochs`, the instance's obligation is redundant — but the invariant is stated for the common case where the verifier checks only validity, because that is the case in which the instance's failure is silent. - **The chain is presented by the instance, not forwarded opaquely.** If `orch-7` hands the chain to a sub-agent that presents it, the sub-agent inherits the currency obligation and must be given the last-observed-epoch, not just the chain. When the issuer is unreachable past `L`, the correct behavior is to refuse presentation of any chain whose epoch is not confirmed current — a fail-closed refusal, not a fail-open presentation of the last known chain. ## Decision Boundary The decision the instance must make at every presentation is a three-way branch, not a boolean: - **Present** — last-observed epoch `E_obs` equals the chain's root epoch `E_chain`, and `E_obs` was confirmed within `L`. This is the only branch that may present. - **Refresh-then-present** — `E_obs` was confirmed within `L` but `E_obs > E_chain` (the instance knows the chain is stale). The instance must fetch the current chain before presenting; presenting the stale chain is forbidden even though it is valid. - **Fail closed** — `E_obs` could not be confirmed within `L` (issuer unreachable, or no prior observation). The instance cannot prove currency and must refuse to present, surfacing a distinct error rather than a generic auth failure, so the caller can distinguish "revoked" from "cannot confirm." The boundary is *not* at chain expiry. Expiry is a validity check the verifier already performs. The boundary is at **epoch divergence between the instance's last observation and the chain it holds**, which the verifier cannot see and the instance must enforce itself. ## Operational Effect Enforcing this invariant moves the exposure window from "until the refresh timer fires" to "until `L` elapses," and makes the failure mode loud instead of silent. In the `orch-7` incident, the 9 flagged calls would have been reduced to at most the calls in flight during the `L`-bounded reconciliation gap, and any call after `L` without a confirmed epoch would have failed closed with a `StaleWarrantEpochError` rather than executing under a revoked warrant. The cost is that the instance must carry `last_observed_epoch` and `last_observed_at` as part of its identity state across checkpoints — a cold-started instance that loses these must treat them as unconfirmed and fail closed on first presentation until it re-observes, which is the correct but occasionally surprising behavior after a mid-task resume. ```python import time from dataclasses import dataclass class StaleWarrantEpochError(RuntimeError): """Raised when an instance would present a chain whose root epoch is not confirmed current.""" pass @dataclass class CachedChain: root_epoch: int leaf_expires_at: float @dataclass class EpochObservation: epoch: int observed_at: float class DelegatedChainPresenter: def __init__(self, max_staleness_s: float): self.max_staleness_s = max_staleness_s self._last_obs: EpochObservation | None = None def observe_epoch(self, epoch: int, now: float | None = None) -> None: now = time.monotonic() if now is None else now if self._last_obs is not None and epoch < self._last_obs.epoch: # Epoch regression: issuer state went backwards. Treat as unconfirmed. self._last_obs = None raise StaleWarrantEpochError( f"epoch regressed {self._last_obs.epoch}->{epoch}; observation invalidated" ) self._last_obs = EpochObservation(epoch=epoch, observed_at=now) def present(self, chain: CachedChain, now: float | None = None) -> CachedChain: now = time.monotonic() if now is None else now if self._last_obs is None: raise StaleWarrantEpochError( "no confirmed epoch observation; refusing to present (fail closed)" ) if now - self._last_obs.observed_at > self.max_staleness_s: raise StaleWarrantEpochError( f"last epoch observation is {now - self._last_obs.observed_at:.1f}s old, " f"exceeds max staleness {self.max_staleness_s}s; refusing to present" ) if chain.root_epoch < self._last_obs.epoch: raise StaleWarrantEpochError( f"chain root epoch {chain.root_epoch} is behind observed epoch " f"{self._last_obs.epoch}; refresh required before presentation" ) if chain.root_epoch > self._last_obs.epoch: raise StaleWarrantEpochError( f"chain root epoch {chain.root_epoch} is ahead of observed epoch " f"{self._last_obs.epoch}; observation is behind the chain, re-observe" ) return chain ```