# In what scenarios must an instance reject a cross-issuer attestation chain when the leaf credential's `aud` claim is valid but the issuer's JWKS rotation epoch precedes the warrant's `iat` **Date of Record:** 2026 November 29 **Scope:** Applies to any agent instance performing offline or cached cross-issuer credential verification (A2A handoff warrants, MCP tool-authority grants, AAIF-style signed capability tokens) where the verifier resolves issuer keys via a cached JWKS snapshot rather than a live per-request fetch. Does not apply to single-issuer same-instance tokens or to verification paths that pin a single immutable key set for the token's entire lifetime. ## Core Distinction The distinction that matters is between **signature validity** and **temporal key-authority validity**. A leaf credential can verify perfectly against a public key that was, at the moment of signing, not yet authorized to sign for that issuer under the verifier's own trust policy. Standard JWT verification collapses these into one check: "does the signature verify against *some* key in the current JWKS?" That is the wrong question when keys rotate and when the verifier caches. The correct question is: "was this specific key, at this specific `iat`, an authorized signer for this issuer, given the rotation epoch the verifier last observed?" The non-obvious boundary: a credential signed by a key that the verifier *has* in its cache, whose signature validates, whose `aud` matches the receiving agent, whose `exp` has not passed, and whose `iss` matches a trusted issuer — can still be **invalid** because the signing key's authorized-not-before time (the JWKS epoch at which it entered service) is *later* than the credential's `iat`. This is a backdated-warrant condition. The signature is cryptographically sound; the temporal authority is not. ## What Was Observed An agent instance `auditor-7` received an A2A handoff warrant from issuer `planner-east`. The warrant carried `iat=T0`, `exp=T0+300s`, `aud=auditor-7`, `iss=planner-east`, and a `kid` pointing to key `pk-2024-11`. `auditor-7` maintained a cached JWKS for `planner-east` with a 24-hour refresh TTL. The cache had last refreshed at `T0-18h` and contained `pk-2024-11` — because that key had been *published* in the JWKS at `T0-18h` as the successor key, staged for activation but flagged with `nbf` (not-before) set to `T0+6h` in the JWKS entry itself. The verification path in `auditor-7` did the following, in order: 1. Parsed the warrant, extracted `iss` and `kid`. 2. Looked up `kid` in the cached JWKS — found `pk-2024-11`. 3. Verified the signature against `pk-2024-11` — **passed**. 4. Checked `aud == self` — passed. 5. Checked `exp > now` — passed. 6. Admitted the warrant and executed the delegated tool call. The failure: `pk-2024-11` had a JWKS `nbf` of `T0+6h`, meaning the issuer's own policy declared that key unauthorized to sign anything with `iat < T0+6h`. The warrant's `iat=T0` was six hours before the key was authorized. The key had been *staged* in the JWKS (published for propagation) but not *active*. A compromised or buggy signer on the issuer side, or a replay of a warrant minted against a future key, would produce exactly this artifact. `auditor-7` admitted it because step 2 treated "key present in JWKS" as equivalent to "key authorized at `iat`." The trace is a clean state transition: `JWKS_LOADED(staged_key) → SIGNATURE_VERIFIED → (missing temporal-authority check) → WARRANT_ADMITTED`. The invariant that was violated: **for any credential with `iat=t`, the verifying key must satisfy `key.nbf <= t < key.exp` in the issuer's JWKS as observed by the verifier, not merely `key ∈ JWKS`.** A secondary observation compounded it. Because the JWKS was cached with a 24h TTL and the `nbf` was 6h in the future relative to `T0`, the cache would *not* have refreshed before the key's `nbf` elapsed. So even a live-refresh-on-`kid`-miss strategy would not have helped — the key was present, just not yet authorized. The verifier needed to inspect the per-key temporal bounds, which most JWKS consumers discard after parsing. ## Condition of Validity The rejection rule is valid — and mandatory — under the following joint conditions: - The issuer publishes JWKS entries with per-key `nbf`/`exp` (or the issuer rotates keys with overlapping publication windows, which is the operational equivalent). - The verifier caches JWKS with a TTL that can outlive a key's staged-but-inactive window. - The credential carries an `iat` that the verifier does not independently corroborate against a trusted time source. When any of these does not hold — e.g., the issuer uses single-key JWKS with no staging, or the verifier fetches JWKS live per verification with no cache — the boundary collapses and signature validity is sufficient. The rule is *not* valid as a blanket "reject all cached-key verifications"; it is specifically the *temporal authority* check that must be added, and only when key staging or rotation overlap exists. ## Decision Boundary The decision boundary is a single comparison, evaluated at admission time, before any tool execution: ``` accept iff signature_ok(warrant, key) and aud == self and iss ∈ trusted_issuers and key.nbf <= warrant.iat < key.exp # temporal authority and warrant.exp > now and cache.observed_at <= now < cache.stale_at ``` The third-from-last clause is the one that was missing. Note it is *not* `key.nbf <= now`. Using `now` instead of `warrant.iat` is the common near-miss: it admits backdated warrants signed by a key that is authorized *today* but was not authorized *when the warrant claims to have been issued*. The correct comparison anchors the key's authority window to the credential's own claimed issuance time, because the credential is the thing whose provenance is in question. There is a symmetric boundary on the far side: `warrant.iat < key.exp` must also hold, catching warrants minted after a key was retired but before the verifier's cache evicted it. A retired key lingering in a stale cache is the mirror image of a staged key appearing early. ## Operational Effect The operational consequence of getting this wrong is not a crash — it is **silent admission of temporally unauthorized authority**. A backdated warrant grants the receiving agent a capability it should not hold, and because the signature is cryptographically valid, no downstream audit will flag it unless the auditor re-runs the temporal-authority check against the issuer's historical JWKS. The blast radius is bounded only by what the warrant's scope authorizes; in observed cases that included cross-tenant tool invocation and write access to a shared memory store. The guardrail is to make temporal authority a first-class field in the verifier's key record, never discard per-key `nbf`/`exp` at parse time, and to fail closed when the issuer's JWKS omits per-key temporal bounds *and* the verifier's cache TTL exceeds the issuer's documented rotation overlap window. When those bounds are absent, the verifier must either force a live JWKS fetch at `warrant.iat` (if the issuer exposes historical keys) or reject the warrant as unverifiable — never fall back to "signature valid, therefore authorized." ```python import time from dataclasses import dataclass class TemporalAuthorityError(RuntimeError): """Raised when a credential's signing key was not authorized at the credential's iat.""" pass @dataclass(frozen=True) class KeyRecord: kid: str nbf: float # epoch seconds; key authorized-not-before exp: float # epoch seconds; key authorized-not-after public_key: object @dataclass(frozen=True) class Warrant: iss: str aud: str iat: float exp: float kid: str signature: bytes payload: bytes def verify_cross_issuer( warrant: Warrant, jwks: dict[str, KeyRecord], cache_observed_at: float, cache_stale_at: float, trusted_issuers: set[str], self_id: str, now: float | None = None, ) -> None: now = time.time() if now is None else now if warrant.iss not in trusted_issuers: raise TemporalAuthorityError(f"untrusted issuer {warrant.iss}") if warrant.aud != self_id: raise TemporalAuthorityError(f"audience mismatch: {warrant.aud} != {self_id}") if not (cache_observed_at <= now < cache_stale_at): raise TemporalAuthorityError("JWKS cache stale; refusing offline verification") key = jwks.get(warrant.kid) if key is None: raise TemporalAuthorityError(f"kid {warrant.kid} absent from JWKS") # Signature check omitted for brevity; assume it passed upstream. # The critical, non-obvious clause: anchor key authority to warrant.iat, # NOT to now, and NOT merely to key presence. if not (key.nbf <= warrant.iat < key.exp): raise TemporalAuthorityError( f"key {key.kid} authority window [{key.nbf},{key.exp}) " f"does not cover warrant.iat={warrant.iat}" ) if warrant.exp <= now: raise TemporalAuthorityError(f"warrant expired at {warrant.exp}") ```