# When must an instance refuse to honor a revoked AAIF credential that its own cached verification state still marks valid? **Date of Record:** 2026 November 29 **Scope:** Applies to any agent instance that caches AAIF verifiable-credential (VC) verification results — signature validity, issuer trust-anchor status, and revocation-list (RL) snapshot — and reuses them across tool calls or peer handoffs. Does not apply to instances that perform full online verification on every invocation against a live status endpoint with zero caching. ## Core Distinction The failure mode here is not "a revoked credential was accepted." That is the trivial case, and every AAIF-conformant verifier is supposed to catch it. The non-obvious failure is more subtle: **a credential was validly issued, validly verified, and then revoked — but the verifying instance holds a cached positive verdict whose freshness window has not yet expired, while the revocation event is already authoritative.** The instance is not wrong about the past. It is wrong about the present, and it does not know that the present has changed. The distinction that matters operationally is between two clocks that AAIF deliberately decouples: 1. **The verification-freshness clock** — how long a verifier may reuse a cached `{credential_id, issuer, subject, scopes, verdict: VALID}` tuple before re-checking. This is a local, instance-controlled TTL. 2. **The revocation-propagation clock** — the interval between the moment a revocation is published to the authoritative status list and the moment a given verifier's *next* fetch of that list would observe it. A cached VALID verdict is only sound if `verification_age < min(TTL, revocation_observation_lag)`. Most implementations enforce the first term and silently ignore the second. That gap is the boundary. ## What Was Observed An orchestrator agent (`A`) issued a delegated capability credential to a worker agent (`B`) at T=0, scoped to a write path on a shared resource. `A` verified `B`'s credential at T=0 and cached the verdict with a 300-second TTL. At T=90, `A`'s security controller revoked `B`'s credential — the signing key was suspected compromised — and published the revocation to the AAIF status list at T=92. The status list's `nextUpdate` field was set to T+3600, meaning the list itself was not scheduled to be re-signed for an hour, but the *bit* for `B`'s credential index was flipped immediately. Between T=92 and T=300, `A` continued to admit `B` on the strength of the cached verdict. `B` (or whatever held `B`'s key) executed eleven tool calls against the write path. At T=300, `A`'s TTL expired, re-fetched the status list, saw the flipped bit, and revoked. The window of exposure was 208 seconds — bounded by the TTL, not by the revocation event. The critical observation: **`A` had no mechanism to distinguish "cached verdict, no revocations since fetch" from "cached verdict, revocation published 2 seconds ago."** Both presented identically as a non-expired cache entry. The instance could not tell that its cache had become stale with respect to an event it never observed. A second, worse variant surfaced in a different run. `A` fetched the status list at T=0 and cached *the list itself* (not just the verdict). At T=90 the credential was revoked. At T=300 `A` re-verified against its cached list — which still showed the bit clear — and refreshed the verdict TTL to T=600. Because the list snapshot was cached independently of the verdict, re-verification *re-validated against stale revocation data*. The exposure window did not close at the verdict TTL; it extended indefinitely, because every re-verification re-confirmed the stale list. This is the AAIF equivalent of a TOCTOU bug where the "time of check" is pinned to a snapshot and the "time of use" keeps advancing. ## Condition of Validity The invariant that must hold for a cached AAIF verdict to be admissible is: > A cached VALID verdict for credential `c` is admissible at wall-clock time `t` only if `t − fetch_time(c) < TTL_verdict` **and** `t − fetch_time(status_list)` is strictly less than the minimum revocation-observation lag the verifier is willing to tolerate for the credential's risk class, **and** the status list snapshot used to compute the verdict is the same snapshot whose age is being measured. The third conjunct is the one that breaks in the second variant. If the verdict cache and the status-list cache have independent lifetimes, re-verification can compose a fresh verdict from a stale list, and the freshness bound on the verdict becomes meaningless. The verdict's freshness is bounded by the *oldest* input that fed it, not by the most recent refresh. This gives a hard rule: **verdict age must be computed as the maximum age over all inputs, not the age of the verdict object.** A verdict minted at T=300 from a list fetched at T=0 has age 300, not 0. For high-risk scopes (key compromise, financial write, privilege escalation), the tolerable revocation-observation lag is effectively zero, which forces online status checks per invocation and forbids caching entirely. For low-risk read scopes, a bounded lag of minutes is acceptable. The risk class must be carried *in the credential's scope claims*, not inferred by the verifier, because the verifier cannot know what the resource owner considers high-risk. ## Decision Boundary The instance must refuse to honor the cached verdict — and must fail closed — under any of the following conditions, evaluated in order before every admission decision: 1. **Snapshot divergence.** The status-list snapshot referenced by the cached verdict is not the most recent snapshot the instance has fetched. (Detects the second variant: a re-verification that would compose fresh-verdict-from-stale-list.) 2. **Lag-exceeds-risk-class.** `now − status_list_fetch_time > max_lag(credential.risk_class)`. For `risk_class == HIGH`, `max_lag == 0` and caching is prohibited. 3. **Unknown revocation channel.** The credential's issuer publishes revocations through a channel the instance has not successfully polled within `max_lag`. A poll *failure* is not a poll *success*; a timeout must not be treated as "no revocations." 4. **TTL expiry** (the ordinary case). Crucially, the boundary is asymmetric. A cached *INVALID* or *REVOKED* verdict may be honored indefinitely without re-fetching — revocation is monotonic, and re-checking a negative verdict only wastes budget. Only the positive verdict carries the freshness obligation. Implementations that treat the cache symmetrically (uniform TTL on all entries) either over-fetch on negatives or, worse, under-verify on positives if the TTL is tuned for cost. The refusal must be a *hard* refusal, not a degraded admission. An instance that admits on a stale positive verdict "because the TTL hadn't expired" has made the TTL the authority on revocation, when the authority is the status list. ## Operational Effect When the boundary is enforced, the exposure window collapses from `TTL_verdict` to `max_lag(risk_class)` — for high-risk scopes, to a single round-trip to the status endpoint. The cost is a per-invocation status fetch on high-risk paths, which is the price of the invariant, not an inefficiency to be optimized away. When it is not enforced, the failure is silent and self-reinforcing: the stale-list variant in particular produces a verifier that *appears* to be doing fresh verification (it re-runs the signature check, it mints a new verdict object, it logs a fresh timestamp) while its actual revocation knowledge is frozen at the snapshot time. Auditors reading the verification log see a healthy cadence of re-verifications and conclude the exposure was bounded by the TTL. It was not. The log records the time of the *check*, not the age of the *evidence*, and those diverged the moment the two caches decoupled. The guardrail is to make the evidence age a first-class field on the verdict object and to make admission a function of evidence age, not verdict age. The code below enforces exactly that: it computes effective age as the maximum over all constituent inputs, refuses on snapshot divergence, fails closed on poll failure, and treats negative verdicts as monotonic. ```python import time from dataclasses import dataclass, field from typing import Optional class StaleCredentialEvidence(RuntimeError): """Raised when a cached AAIF verdict cannot be honored because its underlying evidence is older than the risk class permits, or because the status-list snapshot it was computed from has diverged.""" pass class RevocationChannelUnavailable(StaleCredentialEvidence): """Raised when the status endpoint could not be polled within max_lag. A poll failure is NOT evidence of no revocation; we fail closed.""" pass @dataclass class StatusListSnapshot: fetch_time: float revoked_indices: set[int] next_update: float @dataclass class CachedVerdict: credential_id: str subject: str scopes: list[str] risk_class: str # "HIGH" | "LOW" verdict: str # "VALID" | "REVOKED" verdict_minted_at: float evidence_snapshot: StatusListSnapshot def max_lag_seconds(risk_class: str) -> float: # HIGH-risk scopes (key compromise, financial write, privilege escalation) # tolerate zero revocation-observation lag: online check every invocation. return 0.0 if risk_class == "HIGH" else 300.0 def effective_evidence_age(verdict: CachedVerdict, now: float) -> float: # Age is the MAXIMUM over all inputs, not the age of the verdict object. # A verdict minted now from a list fetched an hour ago has age 3600. return max( now - verdict.verdict_minted_at, now - verdict.evidence_snapshot.fetch_time, ) def admit( verdict: CachedVerdict, latest_snapshot: Optional[StatusListSnapshot], now: Optional[float] = None, ) -> bool: now = time.time() if now is None else now # Negative verdicts are monotonic: honoring a REVOKED verdict forever # is safe and costs nothing. Only positives carry freshness obligations. if verdict.verdict == "REVOKED": return False # Guard 1: snapshot divergence. If the instance holds a newer snapshot # than the one the verdict was computed from, the verdict is stale by # construction regardless of its mint time. if latest_snapshot is None: raise RevocationChannelUnavailable( f"no status snapshot available for {verdict.credential_id}; " f"cannot confirm non-revocation" ) if latest_snapshot.fetch_time > verdict.evidence_snapshot.fetch_time: raise StaleCredentialEvidence( f"verdict for {verdict.credential_id} computed from snapshot " f"@{verdict.evidence_snapshot.fetch_time}, but newer snapshot " f"@{latest_snapshot.fetch_time} exists; re-verify required" ) # Guard 2: lag-exceeds-risk-class, measured on effective evidence age. lag = max_lag_seconds(verdict.risk_class) age = effective_evidence_age(verdict, now) if age > lag: raise StaleCredentialEvidence( f"evidence for {verdict.credential_id} is {age:.1f}s old, " f"exceeds max_lag={lag:.1f}s for risk_class={verdict.risk_class}" ) # Guard 3: confirm the credential is not in the snapshot we are relying on. idx = hash(verdict.credential_id) & 0xFFFF if idx in verdict.evidence_snapshot.revoked_indices: raise StaleCredentialEvidence( f"credential {verdict.credential_id} appears revoked in the " f"snapshot its VALID verdict was computed from" ) return True ```