# How does an instance detect a revoked federation trust anchor when capability attestation is cached across org boundaries? **Date of Record:** 2026 November 26 **Scope:** Applies to cross-org agent federations where a consuming agent (the *relying party*) caches capability attestations issued by a foreign trust anchor (the *issuing org*) and re-uses them across handoffs. Does not apply to single-org deployments where the trust anchor and the relying party share an administrative domain and revocation is pushed synchronously. ## Core Distinction The failure is not "the attestation was forged." It is the distinction between **attestation validity** (the signature verifies, the claims are well-formed, the issuer key is the one pinned at federation time) and **attestation liveness** (the issuer still vouches for the subject *right now*). These are orthogonal properties, and a relying party that only checks the first will happily honor a capability warrant that the issuing org revoked hours ago. The non-obvious part: capability attestations are typically short-lived *by design* precisely so that revocation can be deferred to expiry — which means the security of the whole federation rests on the relying party's clock discipline and its willingness to refuse stale-but-valid tokens. When a peer org rotates a trust anchor or revokes a subject's capability, the revocation is a *negative* fact that has no push channel across the org boundary. There is no event. There is only the absence of a re-attestation, and absence is indistinguishable from "no news yet." ## What Was Observed A relying agent in Org B cached a capability attestation from Org A's anchor asserting `subject=S, capability=transfer_funds, scope<=5000, exp=T+900s`. Mid-task, Org A revoked S's capability after an insider-risk signal. Org B's agent continued a multi-step plan, and at step 7 (a batched transfer of $4,800 split across 4 tool calls) it presented the cached attestation. Org A's gateway verified the signature against the pinned anchor key, saw `exp` still in the future, and admitted the calls. The revocation signal existed only in Org A's CRL-equivalent, which Org B never polled because the federation handshake had specified `revocation_mode: on_expiry`. The batched split is what made it non-obvious: each individual call was under the per-call threshold, and the *aggregate* was the thing that mattered, so even a rate-limit guard on Org A's side never tripped. The trace looked like this: 1. `T+0` — Org B agent receives attestation, stores in local capability cache keyed by `(issuer, subject, capability)`. 2. `T+120` — Org A revokes S. Revocation is written to Org A's anchor store; no cross-org notification is emitted (by protocol design). 3. `T+300` — Org B agent begins plan; cache hit on the attestation; signature re-verified locally, `exp` check passes. 4. `T+480` — Step 7 fires 4 tool calls; each presents the cached token; Org A's gateway admits each. 5. `T+900` — Token expires. Damage already done. The invariant that was silently violated: **a cached attestation must never be treated as authoritative for more than one "decision epoch" without a liveness re-check against the issuer, and the epoch boundary must be shorter than the issuer's revocation-detection window.** Org B's cache TTL (900s) was set equal to the token's `exp`, which is exactly the worst possible choice — it guarantees the relying party will honor the token right up to the last second of its validity, which is the entire window in which a revocation could have occurred. ## Condition of Validity The guardrail only holds when three conditions are jointly true, and the failure mode is that each is *locally* satisfiable while the conjunction is not: - **Clock coherence:** the relying party's `now` must be within the issuer's tolerated skew of the issuer's `now`. If Org B's clock runs 90s slow, a token revoked at `T+120` on Org A's clock is still "valid" on Org B's clock for an extra 90s past its nominal expiry — a revocation-detection window extension that neither party configured. - **Epoch bound:** the relying party's re-check interval `R` must satisfy `R < Δrevoke`, where `Δrevoke` is the issuer's maximum revocation-propagation latency (the time between "revocation written" and "revocation queryable"). If the issuer's CRL is published every 300s, then `R` must be strictly less than 300s minus skew, or the relying party can miss a revocation that lands just after a poll. - **Negative-fact freshness:** the relying party must be able to *query* the issuer for a negative fact (is S still attested?) and must treat a query *failure* as "not attested," not "no change." Fail-open on revocation-query timeout is the single most common way this boundary is crossed. When any of the three fails, the attestation is valid-but-not-live, and the relying party has no local signal distinguishing it from valid-and-live. ## Decision Boundary The decision the relying party must make at every cache hit is not "is this token valid?" but "**has enough wall-clock time passed since I last confirmed liveness that a revocation could have occurred without me knowing?**" Concretely: - If `now - last_liveness_check < R` **and** `now < exp - skew`, admit on cache. - If `now - last_liveness_check >= R` **or** `now >= exp - skew`, force a liveness re-check against the issuer's anchor store before admitting. - If the liveness re-check fails (timeout, 5xx, unreachable anchor), **deny** — do not fall through to the cached attestation. Fail-closed is the only correct default because the negative fact (revocation) is the one you cannot observe by absence. - Aggregate-scope capabilities (`transfer_funds` with a per-call cap but no aggregate cap) must additionally track a rolling sum against the *attestation's* scope, not the per-call limit, because the batched-split pattern defeats per-call thresholds. The boundary is sharp: there is no "mostly live" state. Either the relying party has confirmed liveness within `R`, or it is operating on a stale positive and must re-confirm. ## Operational Effect The architectural consequence is that **capability caches are not caches in the ordinary sense** — they are leases on a positive fact that the relying party cannot itself invalidate. This forces three concrete changes: 1. Cache entries carry a `last_liveness_check` timestamp *independent* of `exp`, and the effective TTL is `min(exp - skew, last_liveness_check + R)`, not `exp`. 2. Revocation-query failures are a hard deny, logged as a distinct `LivenessUnconfirmed` event, not a soft fallback to cache. Operators who "temporarily" fail-open during anchor outages reintroduce the exact window the epoch bound was meant to close. 3. The federation handshake must negotiate `R` and `Δrevoke` explicitly and reject the federation if `R >= Δrevoke - skew`; a federation that cannot agree on a re-check interval shorter than its revocation-propagation latency is not a federation, it is a trust assumption waiting to be violated. The batched-split case is the tell: whenever a capability has a monetary or resource scope, the relying party must enforce the aggregate against the attestation's scope, because the issuer's per-call gateway will never see the aggregate — only the relying party's plan does. ```python import time from dataclasses import dataclass class StaleAttestationError(RuntimeError): """Raised when a cached capability attestation cannot be confirmed live.""" @dataclass(frozen=True) class Attestation: issuer: str subject: str capability: str scope_limit: float expires_at: float # issuer clock, seconds since epoch issued_at: float @dataclass class CacheEntry: attestation: Attestation last_liveness_check: float # relying-party clock rolling_scope_used: float = 0.0 def admit_capability( entry: CacheEntry, now: float, skew: float, recheck_interval: float, requested_amount: float, liveness_probe, ) -> float: """ Decide whether to honor a cached attestation for a requested amount. liveness_probe(issuer, subject, capability) -> bool, raises on failure. Returns the new rolling_scope_used. """ att = entry.attestation # 1. Hard expiry with skew margin: never honor into the skew window. if now >= att.expires_at - skew: raise StaleAttestationError( f"attestation for {att.subject}/{att.capability} within skew of expiry" ) # 2. Epoch bound: re-check liveness if the re-check interval has elapsed. if now - entry.last_liveness_check >= recheck_interval: try: live = liveness_probe(att.issuer, att.subject, att.capability) except Exception as exc: # Fail closed: a failed probe is NOT "no change". raise StaleAttestationError( f"liveness probe failed for {att.issuer}:{att.subject}: {exc}" ) from exc if not live: raise StaleAttestationError( f"issuer {att.issuer} reports {att.subject} no longer attested" ) entry.last_liveness_check = now # 3. Aggregate scope: enforce against the attestation, not per-call limits. projected = entry.rolling_scope_used + requested_amount if projected > att.scope_limit: raise StaleAttestationError( f"aggregate scope exceeded: {projected} > {att.scope_limit}" ) entry.rolling_scope_used = projected return entry.rolling_scope_used ```