# What happens when an instance presents a valid capability token minted against a superseded identity attestation across an org boundary **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent deployments where a relying-party (RP) org accepts capability-scoped tokens (CSTs) whose subject identity is bound to an attestation document issued by a foreign identity provider (IdP), and where attestation rotation, revocation, or re-keying can occur independently of token issuance. Does not apply to single-org deployments where token issuer and attestation issuer share a trust root and a single rotation clock. ## Core Distinction The failure is not "expired token" or "revoked token." It is a **temporal binding skew** between two independently-rotated artifacts: the *capability token* (a signed grant of scoped authority, e.g. `invoke:tool:payments.read`, TTL minutes-to-hours) and the *identity attestation* (a signed statement binding a workload key to an agent identity, TTL days, rotated on compromise or key rollover). A CST is valid iff its embedded `attestation_digest` matches a currently-trusted attestation for the subject. The non-obvious boundary is this: **a CST can remain cryptographically valid and unexpired while the attestation it references has been superseded, and the RP has no obligation under the token's own claims to re-check.** The token asserts "subject S holds capability C until time T." It does *not* assert "S's identity binding is still the one I saw at issuance." Those are different invariants with different clocks, and the gap between them is where cross-org federation breaks. ## What Was Observed Org A (agent owner) runs a planner agent `planner-7` whose workload key `K_p7` was attested by A's IdP at `t0` with attestation `ATT_v1` (digest `d1`, valid 7 days). At `t0+1h`, `planner-7` requests a CST from A's token service to call Org B's `records.search` tool. A's token service mints `CST_1` with `sub=planner-7`, `attestation_digest=d1`, `scope=records.search:read`, `exp=t0+1h+30m`, signed by A's token issuer key. B's gateway verifies the signature chain, checks `exp`, resolves `d1` against A's published attestation set, finds it trusted, and admits the call. Correct so far. At `t0+2h`, A's security team detects that `K_p7`'s private material was exfiltrated and rotates the workload key to `K_p7'`, publishing `ATT_v2` (digest `d2`) and **revoking `d1`** in A's attestation revocation list (ARL). The revocation is correct and timely. But `CST_1` was minted against `d1` and does not expire until `t0+1h+30m` — it is already expired by the time of rotation in this trace, so extend the TTL: with a 4-hour CST TTL, `CST_1` remains *unexpired* at `t0+2h`. At `t0+2h+5m`, an attacker holding the stolen `K_p7` replays `CST_1` (or, more subtly, `planner-7`'s *legitimate* continued operation does — the agent has no idea its key was rotated) to B's `records.search`. B's gateway checks: signature valid ✓, `exp` not passed ✓, `d1` resolves in A's attestation set ✓ (B caches the attestation set with a 15-minute TTL and the ARL with a **1-hour** TTL — the asymmetry is the bug). B admits the call. The revocation of `d1` sits in A's ARL, published at `t0+2h`, but B will not consult it until `t0+3h`. For 55 minutes, a revoked identity binding authorizes real capability. The trace's tell: B's gateway logs show `attestation_digest=d1 status=trusted` at `t0+2h+5m`, and A's ARL logs show `d1 revoked_at=t0+2h`. Both systems are individually correct. The federation is wrong. ## Condition of Validity The invariant that must hold for a CST to be safely honored across an org boundary is: > For every admission of a CST at time `t`, the RP must have verified, at a time `t'` with `t - t' ≤ Δ_max`, that `CST.attestation_digest` is **present in the issuer's current attestation set AND absent from the issuer's ARL as of a revocation epoch no earlier than `t'`**. The critical term is `Δ_max`, the **maximum staleness** of the RP's view of the issuer's revocation state. It must satisfy `Δ_max < CST.ttl_remaining` at every point in the token's life — otherwise there exists a window in which a revoked attestation still authorizes. In the observed trace, `Δ_max` was 1 hour (ARL cache TTL) while the CST had 4 hours of life, so the invariant was violated by construction from the moment of issuance. The attestation-set cache TTL (15 min) being *shorter* than the ARL TTL is the specific anti-pattern: the RP re-fetches the positive set faster than it re-fetches the negative set, so it learns about new attestations before it learns about revocations. This condition does not hold — and the failure is out of scope — when the CST is *sender-constrained* to a key (DPoP-style proof-of-possession) AND the RP verifies the proof against the *current* attested key, because then a revoked key cannot produce a valid proof regardless of ARL staleness. The failure mode is specific to **bearer CSTs whose only identity binding is the embedded attestation digest**. ## Decision Boundary The architectural choice is between two bounded designs, and the boundary is drawn by who bears the cost of freshness: 1. **Short-CST / long-attestation (issuer-push):** Set `CST.ttl ≤ Δ_max` so a token cannot outlive the RP's worst-case revocation view. This forces frequent re-minting (every ≤15 min in the trace) and puts the cost on A's token service. It is correct but chatty. 2. **Attestation-bound CST with mandatory re-resolution (RP-pull):** Keep long CSTs but require the RP to re-resolve `attestation_digest` against a **freshness-stamped** ARL on *every* admission, where the ARL carries a signed `epoch` and the RP rejects any CST whose `iat` predates the ARL epoch by more than `Δ_max`. This puts the cost on B's gateway (one ARL fetch per call, cacheable only within `Δ_max`). The boundary condition that forces the choice: **if the issuer's revocation propagation latency `L_rev` (time from revoke to ARL publication) plus the RP's cache TTL `Δ_max` exceeds the CST TTL, design 1 is mandatory.** Design 2 is only sound if the ARL is signed and epoch-stamped, because an unsigned ARL lets a compromised RP cache suppress revocations — the negative set must be as authenticated as the positive set. Neither design tolerates a *silent* ARL: if the ARL fetch fails, the RP must fail closed, not fall back to the cached positive set. ## Operational Effect The observable consequence is a **capability-authorization divergence window** — a period during which two orgs' trust decisions disagree about the same subject. During the window, A believes `planner-7` is compromised and revoked; B believes `planner-7` is trusted and admits it. Every tool call B admits in that window executes with real side effects (reads, writes, downstream token minting) attributed to an identity A has disowned. Post-incident forensics must reconcile two logs with no shared clock discipline, and the divergence window is not visible in either log alone — it only appears when you join A's `revoked_at` against B's `status=trusted` admissions and find the overlap. The fix is not "rotate faster"; it is to make `Δ_max` explicit, signed, and provably less than the CST TTL, and to reject at admission any CST whose attestation epoch is older than the RP's freshest verified ARL epoch. ```python import time from dataclasses import dataclass class AttestationFreshnessError(RuntimeError): """Raised when a CST's attestation binding cannot be verified fresh enough to satisfy the federation invariant Delta_max < CST.ttl_remaining.""" pass @dataclass(frozen=True) class CapabilityToken: subject: str attestation_digest: str scope: str issued_at: float expires_at: float @dataclass(frozen=True) class SignedARL: epoch: float # issuer-signed timestamp of this revocation list revoked_digests: frozenset signature_valid: bool def admit_federated_call( cst: CapabilityToken, arl: SignedARL, delta_max: float, now: float, ) -> None: # 1. Token must be unexpired. if now >= cst.expires_at: raise AttestationFreshnessError( f"CST for {cst.subject} expired at {cst.expires_at}, now={now}" ) # 2. The negative set must be authenticated; an unsigned ARL is a silent # revocation-suppression channel and must fail closed. if not arl.signature_valid: raise AttestationFreshnessError( "ARL signature invalid; refusing to trust revocation state" ) # 3. Freshness invariant: the ARL epoch must be no older than delta_max, # AND the CST must not predate the ARL epoch by more than delta_max. # This is the exact condition the observed trace violated (delta_max=3600s, # CST ttl_remaining=~4h, ARL epoch stale by 55 min at admission). arl_age = now - arl.epoch if arl_age > delta_max: raise AttestationFreshnessError( f"ARL epoch {arl.epoch} is {arl_age:.0f}s stale, exceeds delta_max={delta_max:.0f}s" ) if arl.epoch - cst.issued_at > delta_max: raise AttestationFreshnessError( f"CST issued_at {cst.issued_at} predates ARL epoch {arl.epoch} " f"by {arl.epoch - cst.issued_at:.0f}s > delta_max={delta_max:.0f}s" ) # 4. Revocation check against the fresh, signed negative set. if cst.attestation_digest in arl.revoked_digests: raise AttestationFreshnessError( f"attestation_digest {cst.attestation_digest} revoked as of epoch {arl.epoch}" ) # 5. TTL-vs-freshness coupling: a token must not outlive the RP's ability # to see its revocation. Enforce delta_max < ttl_remaining at admission. ttl_remaining = cst.expires_at - now if delta_max >= ttl_remaining: raise AttestationFreshnessError( f"delta_max={delta_max:.0f}s >= ttl_remaining={ttl_remaining:.0f}s; " "revocation divergence window exists by construction" ) # Admitted: invariant holds. return None # Reproduce the observed trace: CST minted at t0+1h with 4h TTL, attestation # revoked at t0+2h, ARL published at t0+2h, RP admits at t0+2h+5m with a # 1-hour ARL cache (delta_max=3600) while ttl_remaining ~ 2h55m. t0 = 0.0 cst = CapabilityToken( subject="planner-7", attestation_digest="d1", scope="records.search:read", issued_at=t0 + 3600, expires_at=t0 + 3600 + 4 * 3600, ) arl = SignedARL( epoch=t0 + 2 * 3600, # published at revocation time revoked_digests=frozenset({"d1"}), signature_valid=True, ) admit_federated_call(cst, arl, delta_max=3600.0, now=t0 + 2 * 3600 + 300) ```