How does an instance detect a revoked cross-org delegation token it has already cached for its own outbound calls?
**Date of Record:** 2026 December 2 **Scope:** Applies to any agent instance that obtains a short-lived, scoped, cross-organization delegation token (e.g., an OAuth 2.0 token-exchange or A2A/MCP capability warrant) and caches it locally for reuse across a multi-step tool-call plan. Does not apply to single-call agents that mint a fresh token per request, nor to intra-org tokens sharing a single revocation authority.
Core Distinction
The failure is not "the token expired." Expiry is a local, monotonic, self-verifiable property: the instance checks `exp` and refreshes. The failure is **revocation of a still-valid token that the instance believes is live**, where the revocation signal originates in a foreign trust domain and propagates only through a channel the caching instance does not poll per-call.
Two clocks govern a delegated token, and they are not the same clock:
- The **validity clock** (`exp - iat`), enforced locally by the holder.
- The **revocation clock**, enforced by the *issuing* org's authorization server and observable to the holder only via a propagation channel (introspection endpoint, CRL/OCSP-style status list, push notification, or a shortened `exp`).
A caching agent conflates these. It treats "my cached token has not reached `exp`" as "my authority is intact." That equivalence holds only if revocation propagation latency is bounded below the token's remaining lifetime *and* the agent actually observes the propagation channel. When either assumption breaks, the agent executes tools under authority that the issuer has already withdrawn — and it does so *silently*, because nothing in the token's local representation changed.
What Was Observed
A planner agent in org A (the *delegator*) exchanges its own credential for a scoped token to call a retrieval service in org B (the *delegatee*). The token carries `scope=kb:read`, `exp = iat + 900s`, and an `act`/`may_act` chain identifying the human principal on whose behalf A acts. The planner caches the token in instance-local state and fans out a 40-step plan, reusing the token across all 40 tool calls to avoid re-exchange latency (each exchange costs ~180ms round-trip plus a signing operation).
At step 12, the human principal's access to org B is revoked in B's directory. B's authorization server marks the delegation chain revoked. But:
- B's revocation is published to a status-list endpoint that A's planner **never polls** — it only calls the introspection endpoint at *mint time*, not per-use.
- B's delegatee service validates the token's **signature and `exp` locally** on each call (standard JWT validation) and does not perform online introspection per request, because that would add ~40ms to every call and defeat the point of a short-lived bearer token.
- The status list refreshes every 60s; the token has 780s of remaining life at revocation.
Result: steps 12 through 40 (28 tool calls, ~6 minutes of wall-clock) succeed against B with HTTP 200, returning data the principal is no longer entitled to. The failure is invisible to A's planner — every call returns a well-formed response — and invisible to B's per-request validator, which correctly validated a signature that was still cryptographically valid. The breach is only detectable by correlating B's status-list timestamp against A's call log after the fact.
A second, sharper variant: the revocation is a **scope downgrade**, not a full revoke. B narrows the delegation from `kb:read` to `kb:read:public`. The cached token still says `kb:read`. The delegatee, doing local validation, honors the token's claim and serves restricted documents. Here even post-hoc correlation is ambiguous, because the token was never "invalid" — it was *over-broad relative to current issuer intent*, and the only record of the narrowing lives in B's status list, which A never read.
Condition of Validity
The caching strategy is sound **iff** all three hold:
- **Propagation bound < remaining lifetime.** The issuer guarantees that any revocation reaches a channel the holder polls within `T_prop`, and the holder refreshes or re-validates at interval `≤ T_prop`. If the token's `exp` is 900s but `T_prop` is unbounded (best-effort push, cache TTL on the status list, replication lag), the "short-lived" property provides no revocation guarantee at all — it only bounds the *maximum* damage window to `exp`, which may be far longer than the operator assumes.
- **The delegatee enforces issuer intent, not just token claims.** Either the delegatee introspects per-call (expensive), or it accepts a bounded staleness window that the *issuer* has agreed to and the *delegator* knows about. If the delegatee validates locally and the delegator caches, the two staleness windows compose: the effective revocation latency is `max(delegator_cache, delegatee_validation_staleness)`, and neither party may assume the other's is zero.
- **The `act` chain is re-checked, not just the bearer.** Scope downgrades and principal revocation change the *chain*, not the bearer signature. A validator that checks only signature + `exp` + `scope`-claim misses chain revocation entirely.
The invariant: **a cached delegated token is a claim about the past, not a grant for the present.** Its authority is only as fresh as the most recent observation of the issuer's status channel.
Decision Boundary
The instance must decide, per cached token, whether to (a) reuse, (b) re-introspect, or (c) re-exchange. The boundary is not "is it expired" but:
- **Reuse** only if `now - last_status_check < T_prop_known` AND the token is not within a safety margin of `exp` AND the delegatee is known to enforce at least as fresh a window.
- **Re-introspect** (cheap, online status check) if the token is past its status-check interval but not expired — this is the correct default for any token whose issuer publishes a status channel.
- **Re-exchange** (full mint) if introspection reports revoked, downgraded, or if `T_prop` is unknown/unbounded for this issuer — in which case caching is unsafe and the token must be treated as single-use.
The non-obvious part: **`T_prop` is a property of the issuer, discoverable only by reading the issuer's metadata (status-list `ttl`, introspection cache headers, or an explicit `revocation_latency_bound` claim).** An agent that assumes `T_prop = 0` (revocation is instant) will over-call introspection and blow its latency budget; an agent that assumes `T_prop = ∞` (revocation never reaches it) will serve revoked authority. Neither assumption is safe as a default. The agent must *negotiate* the bound at exchange time and refuse to cache if the issuer cannot state one.
Operational Effect
When the boundary is crossed, the observable signature is a **clean-success breach**: every tool call returns 200, every signature validates, and the only evidence is the divergence between the issuer's status-list state and the delegator's call timestamps. Standard observability (error rates, latency, token-validation failures) shows nothing, because nothing failed at the protocol layer — the failure is semantic, in the gap between "valid token" and "current authority."
Mitigations that actually bound the failure:
- **Carry `T_prop` in the token or its metadata** and make the caching layer refuse tokens without it. This forces issuer-side disclosure and turns an invisible assumption into a checked precondition.
- **Per-call status check for high-blast-radius scopes** (`kb:read` on regulated data), batched status checks for low-blast-radius scopes. The decision is scope-dependent, not global.
- **Status-list monotonicity check**: the cached token must record the status-list version at mint time; if the delegatee or a side channel reports a newer version, the token is stale regardless of `exp`.
- **Chain re-validation on every reuse** for tokens with an `act`/`may_act` chain, since chain revocation is the case local validation most reliably misses.
The residual risk — the window between revocation and the delegator's next status check — is irreducible and must be *accounted for*, not eliminated: log the `T_prop` bound alongside every cached-token use so that post-hoc audit can bound the exposure window precisely, rather than discovering it was unbounded.
import time
from dataclasses import dataclass, field
class RevocationPropagationError(RuntimeError):
"""Raised when a cached delegated token cannot be proven fresh against the issuer's status channel."""
pass
@dataclass
class CachedDelegation:
token: str
scope: str
issued_at: float
expires_at: float
status_list_version: int
last_status_check: float
revocation_latency_bound: float | None # None => issuer did not disclose; unsafe to cache
act_chain: tuple[str, ...] = field(default_factory=tuple)
def assert_token_reusable(
cached: CachedDelegation,
now: float,
current_status_version: int,
safety_margin: float = 5.0,
) -> None:
"""
Enforce the caching invariant before reusing a delegated token for an outbound call.
Raises RevocationPropagationError if the token's authority cannot be proven current.
"""
if cached.revocation_latency_bound is None:
raise RevocationPropagationError(
"issuer disclosed no revocation_latency_bound; token is not cacheable, re-exchange required"
)
if now >= cached.expires_at - safety_margin:
raise RevocationPropagationError(
f"token within {safety_margin}s of expiry; re-exchange required"
)
staleness = now - cached.last_status_check
if staleness > cached.revocation_latency_bound:
raise RevocationPropagationError(
f"status check stale by {staleness:.1f}s > bound {cached.revocation_latency_bound:.1f}s; "
"re-introspect before reuse"
)
if current_status_version > cached.status_list_version:
raise RevocationPropagationError(
f"status list advanced {cached.status_list_version}->{current_status_version}; "
"cached authority may be revoked or downgraded; re-introspect"
)
def use_token_for_call(cached: CachedDelegation, current_status_version: int) -> None:
now = time.time()
assert_token_reusable(cached, now, current_status_version)
# ... perform outbound tool call under cached.token ...