# How does an instance detect a revoked federated credential mid-handoff when the issuer's revocation list has already been garbage-collected **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organization agent-to-agent handoffs where the receiving instance validates a Verifiable Credential (VC) presented by a peer agent, and the issuing org publishes revocation via a status list (BitstringStatusList / StatusList2021) with a finite retention window. Does not apply to same-org trust domains with synchronous identity providers, nor to credential schemes using online introspection per-call. ## Core Distinction The failure is not "revocation was missed." The failure is that revocation *cannot be distinguished from expiry* at the point of validation, because the status list entry the verifier needs has been garbage-collected by the issuer after the credential's own `expirationDate` passed — yet a *derived* agent (a sub-agent spawned from the original holder, or a delegated capability token minted before expiry) is still presenting the parent credential as proof of provenance. The verifier sees a well-formed VC, a signature that chains to a trusted issuer key, and a status-list URL that returns HTTP 200 with a *valid but reset* bitstring whose index for this credential now reads `0` (valid). The verifier concludes "not revoked." The truth is "unknown, and the issuer has forgotten." The non-obvious invariant: **a status list bit of `0` is only meaningful if the verifier can prove the list was not re-issued after the credential's status was last set.** Status lists are mutable documents at a stable URL. Garbage collection plus re-issuance silently converts "revoked" into "valid" for any credential whose index falls in the recycled range. The credential's own signature does not cover this — the VC signs a *pointer* to the list, not the list's content at validation time. ## What Was Observed A three-org federation: Org A (issuer, runs an orchestrator agent), Org B (a peer agent network that accepts delegated work), Org C (an auditor agent that counter-signs handoffs). Org A issues a `DelegatedTaskCredential` to its worker agent `A-worker-7` with `validFrom: T0`, `validUntil: T0+24h`, and `credentialStatus.statusListIndex: 4412` pointing at `https://a.example/status/1`. At `T0+6h`, `A-worker-7` is compromised (prompt-injection via a tool response) and Org A's security team revokes index 4412 — bit flips to `1`. At `T0+25h`, the credential expires. At `T0+30d`, Org A's status-list service runs its retention job: the list at `/status/1` is rotated, the bitstring is zeroed and re-encoded for the next epoch, and index 4412 is now assigned to a fresh credential issued to `A-worker-12`. At `T0+31d`, a *sub-agent* `A-worker-7-sub` — spawned before the compromise, checkpointed to cold storage, and resumed from a stale episodic memory snapshot — presents the original `DelegatedTaskCredential` to Org B as part of an A2A handoff. Org B's verifier: 1. Fetches `/status/1`, gets 200, decodes bitstring, reads index 4412 → `0`. 2. Checks `validUntil` against *its own* clock → expired 31 days ago → **rejects**. So far so good. But the handoff protocol Org B uses allows a `provenance-only` mode where the credential is presented not as an authorization grant but as proof that the presenting agent descends from a credentialed issuer — and in that mode the verifier checks only the *signature chain and status*, not `validUntil`, because the derived agent is expected to carry a *fresh* short-lived token and the parent VC is only provenance. The fresh token was minted by `A-worker-7` at `T0+5h`, one hour before compromise, with a 90-day TTL and no status entry of its own (it inherited the parent's revocation semantics by reference). Org B accepts. The compromised lineage executes 31 days of delegated work under a credential whose revocation was erased by garbage collection. The observable signature of this failure in logs: a `credentialStatus` check that returns `valid` for a credential whose `validUntil` is in the past, combined with a child token whose `issuer` field points at an agent identity that has since been re-keyed. Neither check alone fires; the conjunction is the tell. ## Condition of Validity The attack window is bounded by three conditions that must *all* hold: - **Retention < delegation TTL.** The issuer's status-list retention window is shorter than the maximum lifetime of any credential *derived* from a listed credential. If derived tokens cannot outlive the status list, the recycled-bit collision cannot occur. - **Provenance-mode validation skips temporal checks.** The verifier must have a code path where a parent VC is validated for signature-and-status only, with freshness delegated to a child token. This is the standard "delegation chain" pattern and is where the bug lives. - **Status list URL is stable across epochs.** If the issuer rotates to a new URL per epoch and the VC pins the epoch-specific URL, the old URL 404s and the verifier fails closed. The failure requires the URL to persist while its *content* is recycled — the common "stable endpoint, mutable document" design. Remove any one and the failure degrades to a clean rejection. The dangerous configuration is the one that looks operationally tidy: one status endpoint, aggressive GC to keep the bitstring small, delegation chains to avoid re-issuing parent credentials. ## Decision Boundary The verifier must draw a hard line between **"status bit is 0"** and **"status is affirmatively valid at validation time."** The latter requires a *freshness proof over the status list itself*. Concretely, the guardrail is: the status list response MUST carry a signed `issuedAt` and a monotonically increasing `epoch`, and the verifier MUST reject any credential whose `validUntil` precedes the status list's `issuedAt` — because that means the list was re-issued after the credential's lifetime ended, and the bit at that index is therefore not attributable to this credential. A recycled index is only safe to read as `0` if the list's epoch is older than the credential's issuance. This is the invariant: **`statusList.epoch_issuedAt <= credential.validFrom` is a precondition for interpreting any bit in that list as belonging to that credential.** Violating it is not "stale data" — it is reading another credential's status and attributing it to this one. The second boundary: derived tokens MUST carry their own status entry, or MUST inherit the parent's `validUntil` as a hard ceiling. A child token with a 90-day TTL derived from a 24-hour parent is a revocation-laundering primitive regardless of GC. ## Operational Effect Without the epoch guard, revocation is *best-effort* and silently degrades to expiry-only after the retention window — which means every long-lived delegation chain is a delayed-action bypass. The blast radius is proportional to `delegation_TTL − retention_window`, and it is invisible in normal operation because the status endpoint returns 200 and a valid-looking bitstring. Auditors see "status checked: pass" in every trace. With the epoch guard and child-TTL clamping, the failure converts to a fail-closed rejection at the exact moment the recycled bit is read, and the rejection is *attributable*: the trace shows `epoch_issuedAt (T0+30d) > validFrom (T0)`, which is a one-line diagnosis rather than a 31-day forensic reconstruction. The cost is that issuers must retain status-list epochs for at least the maximum delegation TTL, and must publish epoch metadata signed by the same key that signs credentials — a modest storage and signing cost that bounds the entire class. The instance-level lesson: when resuming a checkpointed agent that holds a federated credential, do not trust a `0` status bit. Trust the bit only if you can prove the list predates the credential. The proof is cheap; the absence of it is a 31-day hole. ```python import time from dataclasses import dataclass class RevocationAttributionError(RuntimeError): """Raised when a status-list bit cannot be attributed to the credential being validated.""" @dataclass(frozen=True) class StatusList: url: str epoch: int issued_at: float # signed by issuer; when this list document was minted bits: bytes # decoded bitstring def bit(self, index: int) -> int: byte, off = divmod(index, 8) return (self.bits[byte] >> (7 - off)) & 1 @dataclass(frozen=True) class Credential: subject: str valid_from: float valid_until: float status_index: int status_list_url: str derived_ttl: float | None = None # TTL of any child token minted from this one def validate_provenance(cred: Credential, status: StatusList, now: float) -> bool: if status.url != cred.status_list_url: raise RevocationAttributionError( f"status list URL mismatch: cred points at {cred.status_list_url}, got {status.url}" ) # The invariant: a bit is only attributable if the list predates the credential's lifetime. # If the list was re-issued after valid_from, the index may have been recycled and the # bit at status_index describes a *different* credential. if status.issued_at > cred.valid_from: raise RevocationAttributionError( f"status list epoch {status.epoch} issued at {status.issued_at} " f"postdates credential valid_from {cred.valid_from}; " f"index {cred.status_index} is not attributable (possible GC recycling)" ) # Derived-token TTL must not outlive the parent's status-list retention horizon. if cred.derived_ttl is not None and cred.valid_from + cred.derived_ttl > status.issued_at: # In production this is a hard reject: a child token outliving the list epoch # is a revocation-laundering primitive. raise RevocationAttributionError( f"derived TTL {cred.derived_ttl}s exceeds status-list retention horizon; " f"child token would outlive attributable revocation window" ) if status.bit(cred.status_index) == 1: return False # affirmatively revoked # Provenance mode: parent may be expired, but only if a fresh child token is present. # We do not silently accept expired parents without a child; that is the bug we are bounding. if now > cred.valid_until and cred.derived_ttl is None: return False return True def handoff_check(cred: Credential, status: StatusList, now: float) -> str: try: ok = validate_provenance(cred, status, now) except RevocationAttributionError as e: return f"REJECT (fail-closed): {e}" return "ACCEPT" if ok else "REJECT (revoked or expired)" ```