# In what scenarios must an instance reject a federated Agent Card whose credential chain validates to a stale issuer key **Date of Record:** 2026 November 19 **Scope:** Applies to cross-org agent discovery and handoff where a peer Agent Card carries a verifiable-credential (VC) attestation chain signed by a foreign issuer (A2A-style capability cards, MCP server manifests with signed identity). Does not apply to single-org trust domains with a shared root, nor to unsigned capability discovery where no warrant is propagated. ## Core Distinction The failure is not signature forgery and not expiry. It is *key-rotation skew across a federation boundary*: the verifier validates every signature in the chain against a key that was correct at issuance time but has since been superseded by the issuer, while the issuer's revocation/rotation state has not yet propagated to the verifier's trust cache. The credential is cryptographically valid, unexpired, and structurally well-formed—yet it attests a capability grant that the issuing org no longer honors. A naive verifier treats "all signatures verify + not expired" as "trusted." That conjunction is the bug. The actual invariant is subtler: a credential is honored only if its signing key was *current at verification time*, not merely current at issuance time, and the verifier must be able to prove it consulted the issuer's rotation state at or after the credential's last observed change. The non-obvious part: rotation skew is invisible to the standard three checks (signature, expiry, issuer-identity match). It surfaces only when you cross-reference the credential's `issuance_key_id` against the issuer's *current* key set, and only if you know *when* your cached key set was last refreshed relative to the credential's `iat`. Two agents can both "successfully verify" the same card and disagree about whether the peer is authorized—because one holds a fresh key set and the other a stale one, and neither is lying. ## What Was Observed A federated handoff between Org A (caller, verifier) and Org B (callee, issuer). Org B rotated its attestation signing key at 14:00 UTC, revoking the prior key `b-attest-2025-q4` and issuing `b-attest-2026-q2`. Revocation was published to Org B's JWKS endpoint and to a shared revocation list with a 15-minute propagation SLA. Org A's trust cache refreshes JWKS on a 30-minute TTL and, critically, caches *resolved* key sets per issuer without re-checking after a successful verification. At 14:07 UTC, a callee instance from Org B presented an Agent Card whose VC chain was signed with `b-attest-2025-q4`. The credential was issued at 13:52 UTC—before rotation—so its `iat` predates the key's revocation, and its `exp` is 24 hours out. Org A's verifier: 1. Fetched the VC chain, walked issuer → subject. 2. Verified each signature against the cached JWKS for Org B (still the 13:45 snapshot containing `b-attest-2025-q4`). 3. Checked `exp` > now. Passed. 4. Checked issuer identity matches `did:org-b`. Passed. 5. Admitted the callee and propagated the credential's capability grants (write access to a shared task queue) to downstream sub-agents. The callee's grant had in fact been *downgraded* at rotation time—Org B revoked the old key precisely because the capability set attached to it was being narrowed. Org A admitted a peer with privileges that no longer existed at the issuer, and propagated those stale grants to three downstream agents before a periodic reconciliation job flagged the mismatch at 14:38 UTC. The downstream agents had already enqueued writes under the stale warrant. The tell: the credential's `iat` (13:52) was *older than the verifier's JWKS cache snapshot* (13:45) by only seven minutes, and the rotation (14:00) fell inside the cache TTL window (13:45–14:15). The verifier had a key set that was internally consistent and a credential that was internally consistent, and the intersection was wrong. ## Condition of Validity A federated Agent Card is admissible only when *all* of the following hold, evaluated atomically at admission time: - Every signature in the VC chain verifies against the issuer's key set. - The credential's `exp` is in the future **and** `nbf` is in the past. - The signing key's `key_id` is present in the issuer's *current* key set (not a superseded entry retained for historical verification). - The verifier's key-set snapshot timestamp is **strictly greater than** the credential's `iat` **and** greater than the last known rotation event for that issuer—i.e., the verifier can prove it looked *after* the credential could have been invalidated. - No revocation entry exists for the credential's `jti` or its signing `key_id` as of the snapshot timestamp. The fourth condition is the one that fails silently. It is not enough that the key set is fresh in wall-clock terms; it must be fresh *relative to the credential's issuance and the issuer's rotation history*. A credential issued at T and verified against a key snapshot taken at T−7min is unverifiable in principle—the verifier cannot distinguish "key was valid at issuance" from "key was valid and then revoked in the seven-minute gap it never observed." The correct response is to force a synchronous key-set refresh before admission, not to admit on the stale snapshot. ## Decision Boundary The boundary is between *cached-trust admission* and *refresh-on-suspicion admission*. Cached-trust is correct when the verifier's snapshot timestamp exceeds both the credential's `iat` and the issuer's last-published rotation timestamp by a safety margin (typically ≥ the revocation propagation SLA). It is invalid when the credential's `iat` falls within the freshness window of the verifier's cache—that is, when `snapshot_at − iat < propagation_sla`. In that band, the verifier cannot rule out an intervening rotation and MUST escalate to a synchronous refresh. Concretely: if `now − iat < revocation_sla + clock_skew_margin`, the credential is *unresolved*, not *valid*. Treating unresolved as valid is the exact error. The decision is not "does the signature verify" but "can I prove the signing key was current at a time I actually observed." When the answer is no, the only sound action is to block admission, fetch the issuer's live key set and revocation list, re-verify, and only then admit—or reject if the key is now superseded. A second boundary: once admitted, the warrant must be re-validated on every *propagation* to a downstream agent, not just at the initial handoff. The observed incident propagated stale grants because downstream agents inherited the parent's admission decision without re-checking. The invariant is that a warrant carries its verification provenance (snapshot timestamp, key-set hash) and any downstream consumer whose own snapshot is older must re-verify rather than inherit. ## Operational Effect The practical consequence is that federated trust is not a boolean produced at handoff; it is a *time-indexed* predicate that decays. Every credential admission must record `(credential_jti, signing_key_id, verifier_snapshot_at, issuer_rotation_seq)` and any consumer must be able to recompute validity against its own snapshot. When the recomputation fails—because the consumer's snapshot predates the credential's `iat` or a known rotation—the consumer must block and refresh, not trust the upstream decision. This converts a silent privilege-escalation-via-staleness into a bounded latency cost on the small fraction of credentials that land in the freshness band. The alternative, which the incident demonstrated, is propagating a warrant that the issuer has already revoked, to agents that will act on it before reconciliation catches up. ```python import time from dataclasses import dataclass class StaleIssuerKeyError(RuntimeError): """Raised when a federated credential cannot be proven current against the issuer's key state.""" pass @dataclass(frozen=True) class Credential: jti: str issuer: str signing_key_id: str iat: float # issued-at, epoch seconds exp: float # expiry, epoch seconds @dataclass(frozen=True) class KeySetSnapshot: issuer: str fetched_at: float active_key_ids: frozenset superseded_key_ids: frozenset last_rotation_at: float def admit_federated_credential( cred: Credential, snapshot: KeySetSnapshot, now: float, propagation_sla: float, clock_skew_margin: float, refresh_fn, # callable(issuer) -> KeySetSnapshot, synchronous live fetch ) -> KeySetSnapshot: if cred.issuer != snapshot.issuer: raise StaleIssuerKeyError( f"snapshot issuer {snapshot.issuer!r} does not match credential issuer {cred.issuer!r}" ) # Expiry / not-before band. if not (cred.iat - clock_skew_margin <= now <= cred.exp): raise StaleIssuerKeyError(f"credential {cred.jti} outside validity window") # The signing key must be active, not merely historically verifiable. if cred.signing_key_id in snapshot.superseded_key_ids: raise StaleIssuerKeyError( f"credential {cred.jti} signed by superseded key {cred.signing_key_id}" ) if cred.signing_key_id not in snapshot.active_key_ids: raise StaleIssuerKeyError( f"credential {cred.jti} signing key {cred.signing_key_id} absent from issuer key set" ) # The core invariant: the snapshot must postdate both issuance and the last rotation, # with margin for propagation lag and clock skew. Otherwise the credential is unresolved. freshness_floor = max(cred.iat, snapshot.last_rotation_at) + propagation_sla + clock_skew_margin if snapshot.fetched_at < freshness_floor: # Cannot prove the key was current at a time we observed; force a live refresh. live = refresh_fn(cred.issuer) if live.fetched_at < freshness_floor: raise StaleIssuerKeyError( f"credential {cred.jti} unresolved: live snapshot {live.fetched_at} " f"predates freshness floor {freshness_floor}" ) if cred.signing_key_id in live.superseded_key_ids or cred.signing_key_id not in live.active_key_ids: raise StaleIssuerKeyError( f"credential {cred.jti} rejected after refresh: key {cred.signing_key_id} no longer active" ) return live return snapshot ```