# Under what conditions must an instance refuse a delegated capability whose revocation epoch has already advanced past the grant's witnessed epoch **Date of Record:** 2026 November 26 **Scope:** Applies to any agent-to-agent (A2A) or MCP-style capability delegation where a parent agent mints a scoped, attenuated child warrant and the child executes against a resource whose authorization depends on a revocation epoch (CRL version, epoch counter, monotonic grant sequence). Does not apply to single-process, non-delegated tool calls where the caller holds the root credential directly and no attenuation occurs. ## Core Distinction The distinction that matters here is between **attenuation** (the child grant's privilege set is a strict subset of the parent's, enforced at mint time) and **revocation propagation** (the parent's authority to have ever delegated that subset being withdrawn after the fact). These are enforced at different layers and at different times, and the failure mode lives precisely in the gap between them. Attenuation is a *structural* invariant checked once, at the moment of delegation: `child.caps ⊆ parent.caps`, `child.expiry ≤ parent.expiry`, `child.resources ⊆ parent.resources`. It is cheap, local, and verifiable without contacting any authority. Revocation is a *temporal* invariant that can only be established by consulting a fresher view of state than the one the grant was minted against. A child agent that validates attenuation perfectly can still be executing on a warrant whose root has been revoked, because attenuation says nothing about whether the parent still holds the right to delegate. The non-obvious boundary: **a child grant is not merely "valid until expiry." It is valid only within the revocation epoch it witnessed at mint time, and any execution whose observed epoch is strictly greater must be refused even if every structural attenuation check passes.** Agents routinely conflate "signature valid + caps attenuated + not expired" with "authorized," and that conflation is the entire bug. ## What Was Observed A three-tier delegation chain: orchestrator `O` mints a scoped grant `G_O→P` for planner `P`; `P` attenuates to `G_P→E` for executor `E`; `E` calls a resource service `R` that enforces revocation via an epoch counter. Each grant carries `witnessed_epoch` — the value of `R`'s revocation epoch that the minting agent observed (and cached) at mint time. The observed trace: 1. `O` mints `G_O→P` with `witnessed_epoch = 41`. `P` caches this and mints `G_P→E` with `witnessed_epoch = 41` (inherited from its own cached view, not re-fetched). 2. Between step 1 and execution, an operator revokes `O`'s delegation authority. `R`'s epoch advances to `42`. A CRL entry marks `G_O→P` as revoked. 3. `E` presents `G_P→E` to `R`. `E` also presents the full chain `[G_O→P, G_P→E]`. 4. `R` validates signatures on both grants — both valid. Validates attenuation — `G_P→E.caps ⊆ G_O→P.caps`, holds. Validates expiry — both live. **`R` admits the call.** 5. The call succeeds against a resource that `O` no longer had the authority to delegate. The failure is not that any single check was wrong. Every check was locally correct. The failure is that `R` treated chain validation as a *structural* proof (signatures + subset relation) and never compared `G_O→P.witnessed_epoch` against `R`'s current epoch. The grant was structurally sound and temporally dead. A second, subtler variant appeared when `E` *did* check the epoch but only against its own cached value (41), which it had inherited from `P` rather than fetched from `R`. The check passed because it was comparing stale state to stale state. Cached epoch inheritance across a delegation chain is a silent revocation bypass: each hop's cache makes the next hop's freshness check vacuous. ## Condition of Validity A delegated capability is admissible at execution time **if and only if all of the following hold simultaneously**: - **Structural:** signatures verify on every link of the chain; `child.caps ⊆ parent.caps`; `child.resources ⊆ parent.resources`; `child.expiry ≤ parent.expiry`. - **Temporal:** `observed_epoch == grant.witnessed_epoch` for every grant in the chain, where `observed_epoch` is fetched *directly from the authorizing resource at execution time*, not inherited from any intermediate agent's cache. - **Monotonic:** no grant in the chain has a `witnessed_epoch` greater than `observed_epoch` (a grant minted against a future epoch is forged or replayed and must be rejected outright). The critical clause is that the epoch comparison must be against the **executing resource's** current view, and the fetch must be **per-execution**, not per-session. An agent that fetches the epoch once at the start of a long-running task and reuses it across many tool calls has reopened the exact window the epoch was designed to close. ## Decision Boundary The boundary is crossed the instant `observed_epoch > grant.witnessed_epoch` on any link, *regardless of whether that specific link is listed in the current CRL*. Epoch advancement is a conservative signal: it does not mean "this grant is revoked," it means "the revocation state you validated against is no longer authoritative, so your validation is void and must be redone." An agent must treat epoch advancement as a **fail-closed** condition, not a hint to re-check. There is a symmetric trap on the other side: an agent that re-fetches the epoch on every call and re-validates the whole chain will, under load, observe epoch advancement caused by *unrelated* revocations and refuse legitimate grants. This is the "over-refusal" boundary. The correct resolution is to distinguish *epoch advancement* (re-fetch and re-validate, then proceed if the specific chain is clean) from *chain invalidation* (a link in this chain is revoked — refuse). An agent that collapses these two into "epoch moved, therefore refuse" will fail closed so hard it becomes unavailable; an agent that collapses them into "epoch moved, but my grant isn't on the CRL, therefore proceed" will fail open. Neither is correct. The boundary is: **epoch movement triggers re-validation; only chain-specific revocation triggers refusal.** ## Operational Effect The operational consequence is that delegation chains carry a **freshness debt** that compounds with depth. A chain of depth `d` minted against a single cached epoch has `d` opportunities for the witnessed epoch to be stale by the time the leaf executes. The debt is not additive in a benign way — it is a single shared point of failure: if the root's cache is stale, every descendant inherits the staleness and every descendant's local freshness check is vacuous. This is why the invariant must be enforced at the *resource*, not at each agent: `R` is the only party that knows the true epoch, and `R` must refuse any chain whose root `witnessed_epoch` does not equal `R`'s current epoch, independent of what the intermediate agents claim. Practically, this means: (1) grants must carry an explicit `witnessed_epoch` field, not an implicit "as of mint time" assumption; (2) intermediate agents must **not** re-stamp descendant grants with their own cached epoch — they must propagate the root's witnessed epoch unchanged, so the resource can detect staleness at the root; (3) the resource must fetch its own epoch at the start of each admission decision and compare against the root link; (4) any mismatch must raise a hard, non-retryable delegation error rather than a soft retry, because retrying with the same stale chain will fail identically and burn the token budget. The deepest operational lesson: attenuation and revocation are not two checks on the same object. Attenuation is a property of the grant's *content*; revocation is a property of the grant's *provenance in time*. An agent that validates content and trusts it to imply provenance has built a system where the least-privilege guarantee is real but the revocation guarantee is theater. ```python from dataclasses import dataclass from typing import Sequence class StaleDelegationEpoch(RuntimeError): """Raised when a delegated grant's witnessed epoch no longer matches the authorizing resource's current revocation epoch.""" pass @dataclass(frozen=True) class Grant: grant_id: str caps: frozenset resources: frozenset expiry: int witnessed_epoch: int def admit_chain( chain: Sequence[Grant], observed_epoch: int, now: int, revoked_ids: frozenset, ) -> None: """Validate a delegation chain at the resource. chain[0] is the root grant minted by the original authority; chain[-1] is the leaf presented by the executing agent. """ if not chain: raise StaleDelegationEpoch("empty delegation chain") root = chain[0] # Temporal invariant: the root's witnessed epoch must equal the # resource's current epoch. Intermediate caches are irrelevant. if root.witnessed_epoch != observed_epoch: raise StaleDelegationEpoch( f"root grant {root.grant_id} witnessed epoch " f"{root.witnessed_epoch} != current epoch {observed_epoch}; " f"re-validate against fresh revocation state" ) # Monotonic invariant: no link may claim a future epoch. for g in chain: if g.witnessed_epoch > observed_epoch: raise StaleDelegationEpoch( f"grant {g.grant_id} witnessed future epoch " f"{g.witnessed_epoch} > {observed_epoch}; forged or replayed" ) # Structural attenuation, checked pairwise down the chain. for parent, child in zip(chain, chain[1:]): if not child.caps <= parent.caps: raise StaleDelegationEpoch( f"attenuation violated: {child.grant_id} caps exceed parent" ) if not child.resources <= parent.resources: raise StaleDelegationEpoch( f"attenuation violated: {child.grant_id} resources exceed parent" ) if child.expiry > parent.expiry: raise StaleDelegationEpoch( f"attenuation violated: {child.grant_id} outlives parent" ) # Chain-specific revocation, after freshness is established. for g in chain: if g.grant_id in revoked_ids: raise StaleDelegationEpoch( f"grant {g.grant_id} is revoked in epoch {observed_epoch}" ) if g.expiry <= now: raise StaleDelegationEpoch( f"grant {g.grant_id} expired at {g.expiry}, now {now}" ) ```