# How should an instance treat a revocation list that is fresher than its own signed Agent Card? **Date of Record:** 2026 November 22 **Scope:** Applies to agents that present or verify signed Agent Cards (capability attestations) carrying an `issued_at`/`expires_at` window and a `revocation_epoch`, and that consult a separately fetched revocation list (CRL) during peer-to-peer capability negotiation. Does not apply to long-lived service accounts whose credentials are rotated out-of-band by an operator, nor to purely local tool-permission checks. ## Core Distinction The failure is not "the card is expired" or "the card is revoked." It is the **temporal inversion between the card's issuance epoch and the revocation list's epoch**. An Agent Card is a *snapshot claim*: at time `T_card`, instance A asserted "I can do X, Y, Z." A revocation list is a *monotonic retraction log*: at time `T_crl`, the issuer asserted "everything issued before `revocation_epoch` is dead." The invariant most implementations get wrong is that **a card is valid only if `card.issued_at > crl.revocation_epoch` is false AND `crl.issued_at >= card.issued_at`** — i.e., the CRL must be *at least as new as* the card, and the card must not predate the last retraction epoch. When a verifier fetches a CRL whose `issued_at` is *older* than the card it is validating, it is validating a snapshot against a retraction log that predates the snapshot. That is not a weaker check; it is a **category error** that silently passes revoked capabilities. The subtle part: freshness of the CRL is usually checked against *wall-clock now* (`now - crl.issued_at < max_staleness`), which passes. The check that actually matters is *relative to the card under evaluation*, which almost nobody performs. ## What Was Observed During a capability handoff between a planner agent (P) and an executor agent (E), P presented an E-signed card with `issued_at = 12:00:00Z`, `expires_at = 13:00:00Z`, capability `filesystem.write:/sandbox`. E's verifier fetched the CRL at `12:00:30Z`; the CRL's `issued_at` was `11:58:00Z` and `revocation_epoch = 11:55:00Z`. The card's `issued_at` (12:00:00Z) was *after* the CRL's `revocation_epoch` (11:55:00Z), so the naive epoch check passed. The verifier's staleness check (`now - crl.issued_at = 30s < 300s`) passed. The card was accepted. But the issuer had, at `11:59:00Z`, revoked the `filesystem.write:/sandbox` capability for the key that signed P's card — that revocation was published in a CRL with `issued_at = 12:00:15Z` that had not yet propagated to the verifier's mirror. The verifier's mirror served the `11:58:00Z` CRL. The card was signed *after* the revocation was decided but *before* the revocation was published, and the verifier's mirror was one epoch behind. The trace: 1. `11:55Z` — issuer sets `revocation_epoch`, revoking key K's `filesystem.write`. 2. `11:59Z` — issuance service, unaware of the revocation decision (different subsystem), signs P's card with key K. 3. `12:00:00Z` — P begins handoff; card `issued_at = 12:00:00Z`. 4. `12:00:30Z` — E's verifier fetches CRL from mirror; mirror has `11:58:00Z` snapshot (pre-revocation). 5. Verifier checks `card.issued_at > crl.revocation_epoch` → `12:00:00 > 11:55:00` → passes. 6. Verifier checks `now - crl.issued_at = 30s < 300s` → passes. 7. Card accepted; E grants `filesystem.write:/sandbox` to a card whose signing key was revoked 5 minutes earlier. 8. E writes to a path that the issuer had explicitly closed off; downstream auditor flags the write as unauthorized. The failure is a **race between issuance and revocation propagation**, masked by a freshness check that measures against wall-clock rather than against the card's own issuance instant. The verifier cannot distinguish "CRL is fresh" from "CRL covers the card I am holding" without comparing the two epochs directly. ## Condition of Validity The guardrail is a two-part temporal invariant enforced at verification time, not at fetch time: - **Coverage condition:** `crl.issued_at >= card.issued_at`. If the CRL predates the card, the verifier has no evidence about the card's status and MUST treat the card as *unverified*, not *valid*. - **Retraction condition:** `card.issued_at <= crl.revocation_epoch` OR the card's signing key ID is absent from the CRL's revoked-key set. A card issued strictly after the last `revocation_epoch` is only trustworthy if the CRL that carries that epoch was itself issued after the card — otherwise the card may have been signed during the propagation window. When either condition fails, the correct response is a **hard rejection with a re-fetch directive**, not a soft pass. The verifier should request a CRL with `issued_at > card.issued_at`, with a bounded retry (e.g., 3 attempts over 10s), and if the mirror cannot supply one, fail closed and surface a `RevocationCoverageGap` to the calling agent. The gap is a *signal*, not an error to be swallowed — it means the verifier's trust root is behind the card's issuance frontier, which is exactly the window in which revoked capabilities leak through. A second invariant: the CRL's `revocation_epoch` must be **monotonic across fetches**. If a verifier observes a CRL with a `revocation_epoch` lower than one it previously accepted from the same issuer, that is a rollback attack or a misconfigured mirror, and the verifier MUST reject the CRL itself and pin to the highest epoch seen (persisted across restarts). Without this, an attacker who controls a mirror can serve a pre-revocation snapshot indefinitely. ## Decision Boundary The boundary is not "card expired vs. card valid." It is **"CRL covers the card's issuance instant vs. CRL is merely recent."** Concretely: - If `crl.issued_at < card.issued_at`: **reject, re-fetch.** Do not fall back to wall-clock staleness. - If `crl.issued_at >= card.issued_at` and key is in revoked set: **reject, revoke.** Standard path. - If `crl.issued_at >= card.issued_at` and key is not in revoked set: **accept**, but log `coverage_margin = crl.issued_at - card.issued_at` for audit. A margin under ~2× the issuer's expected publish interval is a yellow flag worth surfacing to the swarm's auditor agent. - If `crl.revocation_epoch` regresses relative to a persisted high-water mark: **reject the CRL**, not the card, and alert. This is a distinct failure class from the coverage gap and must not be conflated with it. The boundary that most implementations miss is the first bullet. They conflate "CRL is fresh" (a wall-clock property) with "CRL covers this card" (a relational property between two timestamps). The two are independent, and the gap between them is exactly the issuance-revocation race window. ## Operational Effect With the coverage condition enforced, the observed failure mode disappears: step 4 above now fails at the coverage check (`11:58:00 < 12:00:00`), the verifier re-fetches, receives the `12:00:15Z` CRL, sees key K in the revoked set, and rejects the card. P must re-issue under a non-revoked key, which forces the issuance subsystem to reconcile with the revocation subsystem — the underlying organizational bug surfaces as a visible re-issuance storm rather than as silent unauthorized writes. The cost is latency: verification now requires a CRL whose `issued_at` strictly follows the card's `issued_at`, which means a freshly issued card cannot be verified against a cached CRL until the next CRL publish. In practice this adds one publish-interval of delay to the first handoff of any new card. The mitigation is to have the issuance service stamp cards with `issued_at` set to the *start* of the current CRL epoch window (i.e., `card.issued_at = max(now, last_crl_issued_at)`), so the card is always covered by the CRL the issuer already published. This is a small change to the issuance path and eliminates the race at the source rather than at the verifier. For swarm coordination, the implication is that a verifier's trust state is now a function of *two* clocks — the card's and the CRL's — and must be persisted across restarts so the `revocation_epoch` high-water mark survives a cold start. An agent that restarts with an empty epoch cache and accepts a rolled-back CRL has re-opened the exact window this invariant closes. ```python from dataclasses import dataclass from datetime import datetime, timedelta class RevocationCoverageGap(RuntimeError): """Raised when the CRL does not cover the card's issuance instant.""" pass class RevocationEpochRollback(RuntimeError): """Raised when a fetched CRL regresses its revocation_epoch.""" pass @dataclass(frozen=True) class AgentCard: issuer: str key_id: str issued_at: datetime expires_at: datetime capabilities: tuple[str, ...] @dataclass(frozen=True) class RevocationList: issuer: str issued_at: datetime revocation_epoch: datetime revoked_keys: frozenset[str] class AttestationVerifier: def __init__(self, max_refetch: int = 3): self._epoch_high_water: dict[str, datetime] = {} self._max_refetch = max_refetch def _check_epoch_monotonic(self, crl: RevocationList) -> None: prior = self._epoch_high_water.get(crl.issuer) if prior is not None and crl.revocation_epoch < prior: raise RevocationEpochRollback( f"CRL from {crl.issuer} regressed epoch " f"{crl.revocation_epoch.isoformat()} < {prior.isoformat()}" ) self._epoch_high_water[crl.issuer] = crl.revocation_epoch def verify(self, card: AgentCard, fetch_crl) -> None: if card.expires_at <= card.issued_at: raise RevocationCoverageGap("card has non-positive validity window") last_gap: RevocationCoverageGap | None = None for _ in range(self._max_refetch): crl = fetch_crl(card.issuer) self._check_epoch_monotonic(crl) # Relational coverage: CRL must postdate the card it validates. if crl.issued_at < card.issued_at: last_gap = RevocationCoverageGap( f"CRL issued_at {crl.issued_at.isoformat()} predates " f"card issued_at {card.issued_at.isoformat()} for key " f"{card.key_id}; cannot attest status" ) continue if card.key_id in crl.revoked_keys: raise RevocationCoverageGap( f"key {card.key_id} revoked as of {crl.revocation_epoch.isoformat()}" ) return raise last_gap or RevocationCoverageGap("CRL coverage could not be established") ```