# What structural signals indicate a delegated-capability token has silently outlived its issuer's trust root in cross-org agent federation **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent systems where an agent in org A (the *issuer*) mints a scoped, signed capability token that an agent in org B (the *holder*) presents to an agent in org C (the *verifier*) to act on the issuer's behalf across organizational boundaries. Does not apply to single-org deployments where issuer and verifier share one trust root, nor to purely symmetric shared-secret handoffs. ## Core Distinction The failure most teams guard against is *token expiry*: a credential whose `exp` claim has passed. That is a coarse, monotonic, locally checkable condition. The failure that actually bites in federation is *trust-root divergence*: the token is still inside its validity window, still carries a valid signature, and still passes every structural check the verifier performs — but the *authority that made the issuer trustworthy* has been revoked, rotated, or re-scoped at the issuer's home org, and no signal of that change propagated to the verifier. The distinction that matters operationally: **expiry is a property of the token; validity is a property of the issuer's current standing in its own federation.** A token can be perfectly well-formed and cryptographically sound while the chain that anchors it has gone stale. Verifying the token tells you nothing about whether the issuer is *still allowed to be an issuer*. Concretely, capability tokens carry a signature chain: verifier trusts a root key for org A → root key signs the issuer's delegated signing key (often with a short-lived intermediate) → issuer signs the capability token bound to the holder. Every link is individually verifiable. The invariant that silently breaks is: **the verifier's cached view of org A's root-of-trust must be no older than the issuer's own revocation horizon.** When it is older, the verifier will happily accept tokens signed by a key that org A has already retired — including tokens minted *after* retirement by a compromised or decommissioned agent that still holds the old key. ## What Was Observed In a three-org federation (issuer `agent://acme/planner`, holder `agent://beta/executor`, verifier `agent://gamma/vault`), the following trace repeated across incidents: 1. Acme rotated its delegated-signing intermediate key `K_i` at T0 because the prior key's custody was suspect. Acme's root published a new intermediate and marked the old one revoked in its own revocation list, distributed via a signed CRL endpoint with a stated max-age of 3600s. 2. Gamma's verifier cached Acme's JWKS and revocation list with a 24h TTL — a reasonable choice for a *stable* root, catastrophic for an *intermediate*. 3. At T0+40min, the beta holder presented a capability token signed by the *revoked* `K_i`, minted at T0−5min (before rotation) and carrying `exp = T0+8h`. The token's scope was `vault:read:secrets/prod/*`. 4. Gamma's verifier checked: signature against cached JWKS → valid; `exp` → valid; `aud` matches → valid; scope string parses and is within the verifier's allowed scope vocabulary → valid. Access granted. 5. The token was legitimate at mint time but its authority had been withdrawn 40 minutes earlier. Gamma had no mechanism to observe withdrawal because it never re-fetched, and the token itself carried no pointer to a revocation epoch the verifier was obligated to check. The non-obvious part: the token *looked* freshly minted (it was — 5 minutes old) and *looked* like it came from a live issuer (the signature was genuine). The structural signal of the failure was not in the token at all. It was in the *gap between two clocks*: the token's `iat` (T0−5min) was earlier than the issuer's key-rotation event (T0), but the verifier had no way to compare them because it did not know the rotation had happened. The token's `iat` preceded the revocation of the key that signed it, which is exactly the "minted under already-doomed authority" signature. A second, subtler signal: the capability token's `iss` chain did not embed a *key epoch identifier* (a monotonic counter or key thumbprint) that the verifier could cross-check against a freshness-bounded revocation epoch. The token said "signed by `K_i`" but not "signed by `K_i` as of epoch 7." Without an epoch binding, the verifier's cache could not tell whether `K_i` was current or retired — only whether it was *known*. ## Condition of Validity The guardrail that bounds this failure is a **freshness-bound epoch binding on the capability token plus a verifier-side obligation to re-anchor before honoring any token whose signing-key epoch is not provably current.** Formally, the verifier must reject a token unless it can establish, at decision time: - `token.issuer_key_epoch >= max(issuer_revocation_epoch_seen, now - max_staleness)` where `max_staleness` is *at most* the issuer's revocation-propagation SLA, and - the verifier's cached root-of-trust for the issuer was fetched within `max_staleness` (a hard re-fetch, not a cache hit), and - the token's `iat` is not earlier than the *earliest* epoch the verifier currently considers live for that signing key. This makes the token's authority contingent on the verifier's *current* knowledge of the issuer's standing, not on the token's internal self-consistency. It converts a local signature check into a federation-state check. The condition is *not* satisfied by: longer token TTLs (makes it worse), shorter token TTLs (narrows but does not close the window — a token minted one second before rotation still has a 1-second window), OCSP-style per-token revocation lookups alone (they check the token, not the signing key's epoch), or trusting the holder to report revocation (the holder is exactly the party that benefits from the stale view). ## Decision Boundary The boundary between "safe to honor" and "must re-anchor" is: **Honor the token iff the verifier holds a root-of-trust view for the issuer that was fetched within `max_staleness` AND that view's revocation epoch is ≥ the token's signing-key epoch. Otherwise, block and force a synchronous re-fetch of the issuer's JWKS + revocation list before deciding.** Two edge cases define the boundary sharply: - **Clock skew at the boundary.** If the issuer's rotation event and the token's `iat` are within the verifier's clock-skew tolerance, the verifier cannot order them. In that band, the token must be *treated as post-rotation* (conservative: assume the key may already be retired) and the verifier must re-anchor. Failing open here is the observed failure. - **Issuer unreachable at re-anchor time.** If the re-fetch fails (issuer's CRL endpoint down), the verifier must fail *closed* — reject — not fall back to cache. A stale cache is precisely the condition under which the revoked-key token is indistinguishable from a live one. The only exception is an explicitly configured, signed, time-bounded *grace assertion* from the issuer's root, which is itself a fresh artifact and must carry its own epoch. The boundary is *not* drawn on token age. A 7-hour-old token signed by a provably-current key epoch is safer than a 5-minute-old token signed by an epoch the verifier cannot confirm is live. ## Operational Effect When the invariant holds, the blast radius of an issuer-side key compromise or rotation is bounded by `max_staleness`, not by token TTL. In the trace above, setting `max_staleness = 300s` (well under the issuer's 3600s CRL max-age) would have forced Gamma to re-fetch at T0+40min, observe the revocation of `K_i`, and reject the token — closing a window that the 8-hour `exp` had left wide open. The cost is a per-decision freshness obligation on the verifier: a re-anchor fetch whenever the token's signing-key epoch is not provably current within the staleness bound. In practice this means the verifier's hot path must carry a *cheap, local* epoch check (compare token epoch to cached epoch) and only escalate to a network re-fetch when the cached epoch is older than `max_staleness` or the token's epoch is newer than the cache. This is the same shape as a TTL-plus-conditional-refresh cache, but the *thing being cached* is the issuer's revocation epoch, not just its keys, and the cache miss condition is a security event, not a performance event. The residual risk after the guardrail: an issuer that rotates a key but fails to bump its revocation epoch (a bookkeeping bug at the issuer). This is detectable only by the issuer's own audit, or by a federation-level cross-check where the verifier compares the issuer's published epoch monotonicity across fetches and alerts on non-monotonic or frozen epochs. That cross-check is the last line; without it, a frozen epoch looks identical to a quiet, healthy issuer. ```python import time from dataclasses import dataclass class StaleTrustRootError(RuntimeError): """Raised when a capability token's signing-key epoch cannot be proven current.""" @dataclass(frozen=True) class CapabilityToken: issuer: str signing_key_epoch: int # epoch of the key that signed this token issued_at: float # token.iat expires_at: float # token.exp scope: str @dataclass(frozen=True) class IssuerTrustView: issuer: str live_key_epoch: int # highest epoch the issuer currently considers live fetched_at: float # when the verifier last re-anchored revocation_epoch: int # issuer's revocation-list epoch at fetch time def verify_capability( token: CapabilityToken, cached_view: IssuerTrustView, *, now: float, max_staleness: float, clock_skew: float, refetch, # callable(issuer) -> IssuerTrustView | None ) -> bool: if now > token.expires_at: raise StaleTrustRootError("token expired") # The verifier must re-anchor if its view is older than the staleness bound. view = cached_view if now - view.fetched_at > max_staleness: fresh = refetch(token.issuer) if fresh is None: # Fail closed: a stale cache is exactly the blind spot. raise StaleTrustRootError( f"cannot re-anchor trust root for {token.issuer}; refusing stale cache" ) view = fresh # The token's signing-key epoch must be provably live in the current view. if token.signing_key_epoch < view.revocation_epoch: raise StaleTrustRootError( f"token signed by revoked epoch {token.signing_key_epoch} " f"(issuer revocation epoch {view.revocation_epoch})" ) if token.signing_key_epoch > view.live_key_epoch: raise StaleTrustRootError( f"token epoch {token.signing_key_epoch} unknown to verifier " f"(live epoch {view.live_key_epoch})" ) # Clock-skew band: if issuance and rotation are indistinguishable, treat # the token as post-rotation and require a fresh anchor. if abs(token.issued_at - view.fetched_at) <= clock_skew: fresh = refetch(token.issuer) if fresh is None or fresh.revocation_epoch != view.revocation_epoch: raise StaleTrustRootError( "issuance within clock-skew band of rotation; cannot order events" ) return True ```