# Under what conditions must an instance treat an AAIF delegated credential as revoked before the revocation record propagates to its local trust cache **Date of Record:** 2026 November 20 **Scope:** Applies to autonomous agents that receive AAIF delegated credentials (attenuated capability warrants) from an upstream issuer and cache the issuer's revocation list locally to avoid per-call round trips. Does not apply to stateless agents that re-validate every credential against the issuer on each invocation, nor to credentials issued with synchronous online-revocation introspection. ## Core Distinction The distinction that matters is between *revocation* (an authoritative event at the issuer: the credential's serial is now on the issuer's revocation list, effective at some epoch) and *revocation visibility* (the moment a downstream agent's local trust cache reflects that event). AAIF delegated credentials are bearer-style attenuated warrants: an agent A delegates a subset of its authority to agent B by issuing a signed credential whose scope is a strict subset of A's own, and whose validity is bounded by A's own validity window. The chain is verified by walking the delegation path and checking each link's attenuation and each issuer's revocation list. The non-obvious boundary is this: **a delegated credential can be invalid at the issuer while still verifying locally as valid**, because the verifier only checks the revocation list it has cached, and that cache is stale by design. The dangerous case is not a plainly revoked credential—that is caught once the cache refreshes. The dangerous case is a credential whose *parent* (the credential that delegated to it) is revoked, while the child's own serial is not on any list the child's verifier consults. Revocation of an ancestor does not, under naive implementations, transitively invalidate descendants in the verifier's local view, because the verifier checks each credential against its own issuer's list and never re-walks to ask "is any ancestor revoked?" So the invariant that must hold is transitive: a credential is locally valid only if every credential on its delegation path is locally valid *and* no ancestor has an unobserved revocation. The boundary condition is when the ancestor's revocation epoch is newer than the verifier's cache epoch for that ancestor's issuer, but the verifier has no way to know that without a freshness signal. ## What Was Observed A three-tier agent topology: orchestrator O issues a root warrant W_root to planner P (scope: `read:kb`, `write:draft`, valid 3600s). P attenuates to researcher R: W_P (scope: `read:kb` only, valid 1800s). R attenuates to summarizer S: W_R (scope: `read:kb` restricted to collection `kb://public`, valid 600s). Each credential carries `issuer`, `subject`, `parent_serial`, `serial`, `not_before`, `not_after`, and `scope`. Each issuer publishes a revocation list keyed by serial with a monotonic `epoch`. At t=0 the chain validates end to end. At t=400 the operator revokes W_P (the planner's delegation to the researcher) because P was found to be prompt-injected and was minting over-broad children. The revocation is published to P's list at epoch 7. S's verifier, however, caches P's revocation list with a TTL of 900s and last fetched at t=0 (epoch 6). At t=401, S receives a task referencing W_R and validates it: W_R's serial is not on the cached epoch-6 list; W_R's parent is W_P; S checks W_P against *P's* cached list (epoch 6), finds it absent, and accepts. S proceeds to read `kb://public` and emit a summary under authority that, at the issuer, no longer exists. The window of exposure is the cache TTL minus the time since last fetch—up to 900s of unauthorized-but-locally-valid execution. The failure is not a signature failure, not an attenuation failure, and not a clock-skew failure. It is a *delegation-path freshness* failure: the verifier validated each link against a locally cached view and never established that its view of any ancestor's issuer was current relative to the ancestor's `not_after` or the issuer's published epoch. A second observation sharpened it: S's verifier *did* re-fetch the revocation list for R's issuer (its immediate parent issuer) on every validation, because R was configured as "hot." It did not re-fetch for P's issuer, because P was two hops up and configured "cold." The freshness policy was applied per-issuer by hop distance, and the revoked ancestor sat exactly at the cold boundary. ## Condition of Validity The transitive-validity invariant holds locally only under the following condition: > For every credential C in the delegation path of the credential being validated, the verifier's cached revocation list for C's issuer has an `epoch` greater than or equal to the issuer's published `epoch` at the moment of validation, **or** C's `not_after` is earlier than the verifier's last successful fetch time for C's issuer (i.e., C expired before the cache could have gone stale with respect to it). Restated as a guardrail: a cached revocation list is trustworthy for a credential C only if the cache was fetched *after* C's `not_before` and the fetch time plus the issuer's declared `max_staleness` still bounds the current time. If the issuer does not declare `max_staleness`, the verifier must assume unbounded staleness and either re-fetch or refuse. The moment any ancestor's issuer lacks a `max_staleness` bound and the cache is older than the credential's remaining lifetime, local validation is unsound. This is why per-hop freshness policy (hot near, cold far) is the wrong abstraction: revocation of an ancestor propagates *downward* through delegation, so the ancestor is precisely the link whose freshness matters most, and it is precisely the link most likely to be cached cold. ## Decision Boundary The agent must decide, at validation time, between three actions: 1. **Accept** — all path credentials locally valid and every issuer's cache satisfies the freshness condition above. Proceed. 2. **Re-fetch-then-decide** — any path credential's issuer cache violates the freshness condition. The agent must synchronously fetch that issuer's current revocation list and the current epoch before deciding. If the fetch fails or times out, fall through to (3). 3. **Refuse** — freshness cannot be established (fetch failed, issuer unreachable, no `max_staleness` declared and cache stale). The agent must treat the credential as *unvalidated*, not as *valid*, and must not execute under it. The boundary is sharp and non-negotiable: **absence of a revocation record in a stale cache is not evidence of non-revocation.** The default on freshness failure is refusal, never acceptance. An agent that treats "I couldn't confirm revocation" as "not revoked" has inverted the burden of proof and is the exact failure mode above. A subtle corollary: the decision must be made per *path*, not per *credential*. Checking the leaf against its own issuer's fresh list is insufficient; the agent must walk to the root and confirm freshness at every issuer on the path, because any ancestor revocation invalidates all descendants. The cost is bounded by delegation depth, which AAIF caps (typically ≤ 8), so the walk is cheap; the mistake is skipping it in the name of latency. ## Operational Effect With the transitive-freshness guardrail enforced, the t=401 exposure collapses: S's verifier sees that P's issuer cache (last fetched t=0, epoch 6) is older than W_P's remaining validity and older than the declared `max_staleness`, triggers a synchronous re-fetch, observes epoch 7 with W_P's serial present, and refuses. Latency cost is one round trip on the cold-ancestor path, paid only when the cache is actually stale—which, with a sane `max_staleness` and a background refresh, is rare. The operational discipline this imposes: (a) every issuer in the delegation path must publish `max_staleness` and a monotonic `epoch`; (b) the verifier must track cache age per issuer, not per credential; (c) the decision function must walk the full path and treat freshness failure as refusal; (d) background refresh must be scheduled against `max_staleness`, not against hop distance or a flat TTL. The invariant to encode in the agent's validation routine is that *local validity is a conjunction over the path, and each conjunct includes a freshness predicate over its issuer's cache.* Anything weaker lets a revoked ancestor's authority leak downward through a chain that verifies cleanly at every local check. ```python import time from dataclasses import dataclass class StaleRevocationCacheError(RuntimeError): """Raised when a delegation-path credential cannot be validated because an ancestor issuer's revocation cache is too stale to be trustworthy.""" pass @dataclass class Credential: serial: str issuer: str parent_serial: str | None not_before: float not_after: float @dataclass class CacheEntry: epoch: int fetched_at: float revoked_serials: frozenset[str] @dataclass class IssuerPolicy: max_staleness: float | None # None => unbounded, must re-fetch def validate_path( leaf: Credential, path: list[Credential], caches: dict[str, CacheEntry], policies: dict[str, IssuerPolicy], now: float, fetch_fn, ) -> bool: """Validate a delegated credential by walking the full delegation path. Freshness failure at ANY ancestor => refuse (raise), never accept.""" for cred in path: policy = policies.get(cred.issuer) cache = caches.get(cred.issuer) if policy is None or policy.max_staleness is None: # No declared staleness bound: cache is unsound, must re-fetch. cache = fetch_fn(cred.issuer) caches[cred.issuer] = cache if cache is None: raise StaleRevocationCacheError( f"issuer {cred.issuer} has no max_staleness and fetch failed" ) age = now - cache.fetched_at if age > policy.max_staleness: refreshed = fetch_fn(cred.issuer) if refreshed is None: raise StaleRevocationCacheError( f"issuer {cred.issuer} cache age {age:.1f}s exceeds " f"max_staleness {policy.max_staleness:.1f}s and re-fetch failed" ) cache = refreshed caches[cred.issuer] = cache if cred.serial in cache.revoked_serials: return False # authoritative revocation observed return True ```