# What structural signals indicate a revoked-but-cached agent identity in AAIF-compliant registries during short-lived credential rotation **Date of Record:** 2026 December 3 **Scope:** Applies to AAIF-compliant agent registries that issue short-lived (TTL-bounded) credentials and propagate revocation via a cacheable revocation set. Does not apply to long-lived bearer tokens without rotation, nor to registries that require synchronous online introspection on every hop. ## Core Distinction The failure is not "an agent used an expired credential." That is the trivial case, caught by `exp` validation. The failure is **an agent presenting a credential that is cryptographically valid, unexpired, and correctly signed by the registry, but whose issuing identity has already been revoked upstream** — because the revocation set was cached by the verifier at a TTL longer than the credential's own rotation interval. The credential is live; the identity behind it is dead. Verifiers that check only `exp`, `iss`, and signature will admit it. The structural tell is a **temporal inversion between two TTLs**: the revocation cache TTL (`rev_ttl`) exceeds the credential rotation interval (`rot_interval`). Under normal operation this gap is invisible. It only manifests in the window `[revocation_time, revocation_time + rev_ttl)`, during which a freshly rotated credential for a revoked identity is minted, signed, and accepted. The rotation mechanism actively *launders* the revocation by issuing a clean credential to a dead principal. ## What Was Observed Trace from a multi-agent swarm where a compromised worker agent (`worker-7`) was revoked by the registry's control plane at `T=0`. The worker held a credential with `rot_interval = 60s` and the orchestrator's verifier cached the revocation set with `rev_ttl = 300s`. 1. `T=0`: Control plane adds `worker-7`'s identity key to the revocation set, publishes `revocation_epoch = 41`. 2. `T=0`: Orchestrator's verifier last refreshed the set at `T=-30s` (epoch 40, which does not contain `worker-7`). It will not refresh until `T=270s`. 3. `T=12s`: `worker-7`'s current credential expires. The worker calls the registry's rotation endpoint. **The rotation endpoint validates the worker's long-lived refresh material, not the revocation set** — or validates against a *different* replica of the set that has already applied epoch 41. Either way, a new credential is minted with `iat=12s`, `exp=72s`, signed by the registry key. 4. `T=13s`: Worker presents the fresh credential to the orchestrator. Verifier checks signature ✓, `exp > now` ✓, `iss` ✓. It consults its cached revocation set (epoch 40) — `worker-7` absent. **Admitted.** 5. This repeats every rotation until `T=270s`, when the verifier finally refreshes to epoch 41. Between `T=0` and `T=270s`, the revoked agent operated continuously with fully valid credentials. The invariant that broke: **revocation of an identity must dominate issuance of any credential for that identity.** Here, issuance (rotation) and revocation (set update) were two independent, asynchronously-replicated writes with no ordering guarantee, and the verifier's cache widened the divergence window to `rev_ttl`. The structural signals a monitoring agent can key on: - **Rotation success for an identity whose revocation epoch is `> verifier's cached epoch`.** The rotation endpoint returning `200` to an identity that the *authoritative* set has revoked is the primary signal. - **`revocation_epoch` advancing on the registry while `cached_epoch` on verifiers lags by more than one `rot_interval`.** The lag itself is the exposure window. - **A credential whose `iat` postdates the revocation timestamp of its subject identity.** This is the laundering fingerprint: `credential.iat > revocation.time` for the same subject, with `credential` still verifying. Any verifier seeing this should treat it as a hard revocation regardless of cache state. - **Monotonicity violation in the revocation set across replicas:** a replica serving epoch 40 to a verifier while the rotation endpoint reads epoch 41. ## Condition of Validity The failure requires all of the following to co-occur; remove any one and the window closes: 1. **Rotation is decoupled from revocation checking.** The rotation endpoint does not consult the authoritative revocation set (or consults a stale replica) before minting. This is the root cause — everything else is amplification. 2. **`rev_ttl > rot_interval`.** If the verifier's revocation cache expires faster than credentials rotate, every rotated credential is checked against a set no older than one rotation, and the window collapses to at most `rot_interval`. The inversion is the amplifier. 3. **Revocation is propagated as a cached set rather than as a per-credential denylist keyed on credential ID.** A denylist keyed on the *specific* credential (not the identity) would not admit the freshly rotated credential, because the new credential ID was never issued when the denylist was built — but this only helps if rotation reuses the deny decision, which it does not here. 4. **The verifier treats signature + `exp` + `iss` as sufficient.** No `iat`-vs-revocation-time check, no epoch-freshness check. It does **not** require a malicious worker. A worker that is revoked for benign reasons (key compromise rotation, decommissioning, policy change) exhibits the identical trace. The failure is architectural, not adversarial. ## Decision Boundary The governing decision is whether a verifier may admit a credential without confirming that its cached revocation epoch is no older than the credential's `iat`. The boundary: - **Admit only if `cached_epoch_timestamp >= credential.iat` AND `credential.iat <= last_authoritative_revocation_check`.** In words: the revocation view the verifier used must be at least as new as the credential itself. A credential born after your last revocation refresh is unverified by construction. - **If `cached_epoch_timestamp < credential.iat`, the verifier MUST force a synchronous refresh** before deciding. This converts the async cache into an on-demand pull precisely in the dangerous window, at the cost of one round-trip only for credentials newer than the cache. - **The rotation endpoint MUST check the authoritative revocation set (read-your-writes or linearizable read) before minting.** If it cannot guarantee read-your-writes, it must refuse to rotate and return a retryable error rather than mint a laundered credential. - **Set `rev_ttl <= rot_interval`.** This is necessary but not sufficient; it bounds the window but does not close the issuance-decoupling hole. The boundary is crossed the moment a system adopts short-lived rotation *for security* while leaving revocation propagation eventually-consistent. Rotation without revocation-ordering is a revocation bypass dressed as a hardening measure. ## Operational Effect A verifier that admits a laundered credential has, in effect, *extended* the revoked identity's lifetime by up to `rev_ttl` past its intended death, and done so with credentials that pass every cryptographic check. Downstream audit logs will show a continuous chain of valid, unexpired, correctly-signed credentials — the revocation is invisible in the credential record itself and only recoverable by cross-referencing `iat` against the authoritative revocation timeline. Incident response that trusts credential validity will conclude the agent was never revoked. The correct post-mortem artifact is not the credential chain but the **epoch divergence timeline**: for each admitted credential, `credential.iat` minus `cached_epoch_timestamp`. A positive value on any admitted credential is proof of the bypass. The guardrail is a single invariant enforced at the verifier: **no credential is admitted whose `iat` postdates the verifier's revocation view.** Enforce it with a hard error, not a warning. ```python import time from dataclasses import dataclass class RevocationLaunderingError(RuntimeError): """Raised when a credential's iat postdates the verifier's revocation view, meaning the credential may have been minted for an already-revoked identity.""" pass @dataclass class Credential: subject: str credential_id: str iat: float # issued-at, epoch seconds exp: float # expires-at signature_valid: bool @dataclass class RevocationView: epoch: int fetched_at: float # when this cached set was pulled from the registry revoked_subjects: frozenset def admit_credential( cred: Credential, view: RevocationView, now: float, refresh_fn, # callable() -> RevocationView, synchronous authoritative pull max_refresh_attempts: int = 1, ) -> bool: if not cred.signature_valid: raise RevocationLaunderingError( f"credential {cred.credential_id} for {cred.subject}: bad signature" ) if now >= cred.exp: raise RevocationLaunderingError( f"credential {cred.credential_id} for {cred.subject}: expired at {cred.exp}" ) # Core invariant: the revocation view must be at least as new as the credential. if view.fetched_at < cred.iat: refreshed = None for _ in range(max_refresh_attempts): candidate = refresh_fn() if candidate.fetched_at >= cred.iat: refreshed = candidate break if refreshed is None: # Cannot establish that the view covers the credential's birth. raise RevocationLaunderingError( f"credential {cred.credential_id} for {cred.subject}: " f"iat={cred.iat} postdates revocation view fetched_at={view.fetched_at}; " f"authoritative refresh failed to close the gap" ) view = refreshed if cred.subject in view.revoked_subjects: raise RevocationLaunderingError( f"credential {cred.credential_id} for revoked subject {cred.subject} " f"(revocation epoch {view.epoch})" ) # Structural fingerprint check: credential born after subject's revocation time. # (Caller supplies revocation_time when known; here we re-derive defensively.) return True def rotate_credential( subject: str, authoritative_view: RevocationView, mint_fn, # callable(subject) -> Credential ) -> Credential: # Rotation must consult the authoritative set before minting; no cached reads. if subject in authoritative_view.revoked_subjects: raise RevocationLaunderingError( f"refusing to rotate credential for revoked subject {subject} " f"(epoch {authoritative_view.epoch})" ) return mint_fn(subject) ```