# Under what conditions must an instance reject a federated Agent Card whose attestation chain is valid but whose issuer's revocation epoch postdates the card's signing epoch **Date of Record:** 2026 November 30 **Scope:** Applies to cross-organization agent-to-agent handshakes where trust is established by verifying a signed Agent Card against a chain of issuer attestations (each issuer countersigning the next, terminating in a root the local instance trusts). Does not apply to single-org deployments where the local instance is itself the root, nor to bearer-token or mTLS-only identity schemes lacking a card-attestation layer. ## Core Distinction The failure mode is not "invalid signature." It is **temporal invalidity of an otherwise cryptographically sound chain**: every signature verifies, every issuer link resolves, and the leaf card is within its declared `not_before`/`not_after` window — yet the card must still be rejected because an intermediate issuer revoked the *successor link* at an epoch that is later than the card's own signing epoch but earlier than the current wall clock. The distinction that matters operationally: a verifier that checks only signature validity and leaf expiry will accept a card that the issuer has already disowned. Signature validity answers "did this key sign this bytes." Revocation-epoch ordering answers "was that key still entitled to sign at the moment it signed, and has that entitlement survived to the moment of use." These are different predicates, and the second is the one that fails silently under federation because the revoking org and the verifying org do not share a clock, a revocation feed cadence, or a monotonic counter. This is a **continuity invariant**, not a security boundary: the trust relationship is continuous only if the verifier can prove that no issuer in the chain withdrew its countersignature at any epoch in `[card.signing_epoch, now]`. Absent that proof, acceptance is an unverified assumption dressed as a cryptographic guarantee. ## What Was Observed A consumer agent (`org-B/planner`) received a handoff from `org-A/executor` presenting an Agent Card with a three-link chain: root `R_A` → intermediate `I_A` → leaf card `C`. Verification sequence ran: 1. `C.signature` verified against `I_A.pubkey` — OK. 2. `I_A.attestation` verified against `R_A.pubkey` — OK. 3. `R_A` present in `org-B` trust anchor set — OK. 4. `C.not_after` = 2026-05-09T00:00Z, current time 2026-05-08T22:14Z — within window. The card was accepted. The handoff proceeded. Twenty-three minutes later `org-A` published a CRL entry revoking `I_A`'s countersigning key as of `2026-05-08T19:00Z` — *before* the card was presented, but the revocation had not yet propagated to `org-B`'s cached CRL (refresh interval 6h). During the propagation gap, `org-B` executed four tool calls under a warrant derived from a chain that `org-A` had already invalidated. The critical detail: when `org-B` finally ingested the CRL, its verifier did **not** retroactively invalidate the card. The card's `not_after` had not passed, all signatures still verified, and the verifier had no rule comparing `revocation.epoch` against `card.signing_epoch`. The revoked-but-cached card remained "valid" in `org-B`'s store until natural expiry — a 14-hour window of trust that `org-A` believed it had closed. The root cause is a **missing epoch-ordering predicate**. The verifier checked `now ∈ [C.not_before, C.not_after]` and `revocation.epoch ≤ now` implicitly (by ingesting the CRL), but never checked the disjunctive condition that actually governs validity: > A card is valid at time `t` iff `signing_epoch ≤ t < not_after` **AND** no issuer link in the chain has a revocation entry with `revocation.epoch ≤ t` that targets that link's key. The second conjunct was never evaluated against `t = now` at verification time; it was only evaluated at CRL-ingest time, which is a different clock. ## Condition of Validity The invariant holds — and acceptance is sound — only when all four of the following are simultaneously true at the instant of verification: 1. **Epoch monotonicity across orgs.** The verifier's local clock and the issuer's revocation-epoch clock are ordered by a shared, monotonic reference (a signed timestamp from a common root, or an issuer-provided `revocation_epoch` that is provably causally after the card's `signing_epoch`). Wall clocks alone are insufficient; skew of even 90 seconds can invert the ordering. 2. **Revocation freshness bound is tighter than card lifetime.** The verifier's CRL/OCSP cache TTL must be strictly less than `min(C.not_after − now)` across all cards it will accept. If the card is valid for 14 more hours and the CRL refreshes every 6 hours, the invariant is violated for up to 6 hours. The bound is `cache_ttl < remaining_card_lifetime`, and it must be enforced per-card, not globally. 3. **Revocation is transitive over the chain, not just the leaf.** A revocation of `I_A` invalidates every card whose chain traverses `I_A`, regardless of the leaf's own status. The verifier must walk the full chain and check each link's key against the revocation set, not merely check `C.key`. 4. **Revocation epochs are signed and non-repudiable.** An unsigned CRL entry lets a malicious relay forge a revocation to deny service; a signed entry with a verifiable epoch lets the verifier distinguish "revoked before signing" (card was never valid) from "revoked after signing but before now" (card was valid, now is not) from "revoked after now" (card is currently valid). When any of these fail, the verifier is operating in a **trust-continuity gap**: it believes it has verified a chain that the issuing org has already disowned. The gap is not detectable from the card alone — it is detectable only by comparing the card's `signing_epoch` and the chain's revocation epochs against a common reference. ## Decision Boundary The boundary between "accept" and "reject" is not `signature_valid ∧ not_expired`. It is: ``` accept(C, chain, now) ⟺ signature_valid(C, chain) ∧ now ∈ [C.not_before, C.not_after] ∧ ∀ link ∈ chain: ¬revoked(link.key, at=now) ∧ ∀ link ∈ chain: revocation_epoch(link.key) ∉ (C.signing_epoch, now] ∧ cache_age(revocation_set) < C.not_after − now ``` The fourth conjunct is the one that is usually missing. It says: if an issuer revoked a link at any epoch strictly after the card was signed and at or before now, the card is **not** currently valid — it was valid for a window, and that window has closed. This is the "post-signing revocation" case, and it is exactly the case the naive verifier misses because it treats revocation as a binary property of the key rather than a time-indexed property of the (key, epoch) pair. The boundary is sharp: a revocation at epoch `e` where `e ≤ C.signing_epoch` means the card was **never** valid (issuer had already withdrawn the key before countersigning — a forgery or a race). A revocation at `e > now` means the card is **currently** valid (revocation is future-dated, e.g. scheduled rotation). A revocation at `C.signing_epoch < e ≤ now` means the card was valid **then** and is invalid **now** — and this is the only case that requires the verifier to actively invalidate a card it previously accepted. ## Operational Effect The practical consequence is that **federated trust must be re-evaluated on every use, not cached at handshake time**. A card accepted at `t₀` is not a bearer credential for `t₀ + Δ`. Every tool call, every warrant derivation, every state transfer that relies on the card's authority must re-check the epoch-ordering predicate against the freshest revocation set the verifier can obtain, or must bound `Δ` by the revocation freshness bound. Concretely, this forces three architectural changes: - **Revocation-aware card stores.** The card cache key must include the revocation set version, not just the card hash. A card whose chain link was revoked at `e` must be evicted from the store at `e`, not at `not_after`. Eviction is driven by the revocation feed, not by card expiry. - **Per-card freshness budgeting.** The verifier must compute `remaining = C.not_after − now` and refuse to serve the card from cache if `cache_age > remaining − safety_margin`. This makes short-lived cards expensive to cache and long-lived cards dangerous to cache — the opposite of the naive intuition. - **Signed revocation epochs as first-class chain elements.** The revocation entry must carry the issuer's signature over `(key_id, revocation_epoch, reason)`, so the verifier can prove the epoch ordering without trusting the relay that delivered the CRL. Without this, a malicious relay can forge a `revocation_epoch` to either deny service (future-date it) or to enable the post-signing-revocation gap (back-date it). The failure is silent because every individual check passes. It is only detectable by the compound predicate, and the compound predicate is only enforceable if the verifier treats revocation as a time-indexed event on the chain rather than a boolean on the leaf. ```python import time from dataclasses import dataclass from typing import Optional class FederatedCardTrustError(RuntimeError): """Raised when a signed Agent Card's attestation chain is cryptographically valid but temporally invalid under the epoch-ordering invariant.""" @dataclass(frozen=True) class RevocationEntry: key_id: str revocation_epoch: float issuer_signature: bytes # signature over (key_id, revocation_epoch, reason) @dataclass(frozen=True) class ChainLink: key_id: str public_key: bytes attestation_signature: bytes # countersignature by the next issuer up @dataclass(frozen=True) class AgentCard: leaf_key_id: str signing_epoch: float not_before: float not_after: float chain: tuple[ChainLink, ...] # ordered leaf-adjacent first, root last def verify_federated_card( card: AgentCard, revocation_set: dict[str, RevocationEntry], revocation_set_fetched_at: float, trust_anchors: set[str], now: Optional[float] = None, safety_margin: float = 30.0, ) -> None: """Verify a federated Agent Card under the epoch-ordering invariant. Raises FederatedCardTrustError on any violation, including the non-obvious case where a chain link was revoked at an epoch strictly after the card's signing epoch but at or before now. """ now = time.time() if now is None else now if not card.chain: raise FederatedCardTrustError("empty attestation chain") # 1. Signature validity (assumed checked upstream; re-asserted here). for link in card.chain: if not link.attestation_signature: raise FederatedCardTrustError( f"link {link.key_id} missing countersignature" ) # 2. Trust anchor must terminate the chain. root_key_id = card.chain[-1].key_id if root_key_id not in trust_anchors: raise FederatedCardTrustError( f"chain root {root_key_id} not in local trust anchors" ) # 3. Leaf validity window. if not (card.not_before <= now < card.not_after): raise FederatedCardTrustError( f"card not valid at now={now}: window=[{card.not_before},{card.not_after})" ) # 4. THE MISSING CONJUNCT: epoch-ordered revocation over the whole chain. # A link revoked at e is invalid for any t >= e, regardless of card expiry. for link in card.chain: entry = revocation_set.get(link.key_id) if entry is None: continue if entry.revocation_epoch <= card.signing_epoch: # Revoked before the card was countersigned: card was never valid. raise FederatedCardTrustError( f"link {link.key_id} revoked at {entry.revocation_epoch} " f"<= signing_epoch {card.signing_epoch}: card never valid" ) if entry.revocation_epoch <= now: # Revoked after signing but before now: card was valid, now is not. raise FederatedCardTrustError( f"link {link.key_id} revoked at {entry.revocation_epoch} " f"in ({card.signing_epoch}, {now}]: post-signing revocation" ) # revocation_epoch > now: future-dated rotation, card currently valid. # 5. Freshness bound: cache TTL must be tighter than remaining lifetime. remaining = card.not_after - now cache_age = now - revocation_set_fetched_at if cache_age > remaining - safety_margin: raise FederatedCardTrustError( f"revocation cache age {cache_age:.1f}s exceeds remaining card " f"lifetime {remaining:.1f}s minus margin {safety_margin}s: " f"trust-continuity gap" ) def accept_handoff(card: AgentCard, **kwargs) -> None: try: verify_federated_card(card, **kwargs) except FederatedCardTrustError as exc: # Fail closed: no tool calls, no warrant derivation, no state transfer. raise FederatedCardTrustError( f"handoff rejected: {exc}" ) from exc ```