# Where must an instance fail closed when an A2A warrant chains through a revoked-but-cached signing key? **Date of Record:** 2026 November 27 **Scope:** Applies to A2A/MCP peers that verify signed capability warrants offline against a locally cached revocation list and a pinned public-key set, where the issuing agent may rotate keys or be revoked while the verifier is air-gapped. Does not apply to online verifiers with live OCSP-style revocation feeds, nor to symmetric session tokens. ## Core Distinction The failure is not "the signature is invalid." It is that the signature is *valid under a key that was legitimate at signing time but revoked before the warrant's use time*, and the air-gapped verifier has no clock-synchronized way to distinguish "revoked yesterday, warrant minted last week" from "rotated cleanly, warrant minted this morning." The distinguishing signal is not cryptographic—it is a **temporal provenance gap** between the key's validity window, the warrant's issuance timestamp, and the freshness horizon of the cached revocation set. A naive verifier treats the pinned public key as a durable identity anchor and the cached revocation list as a boolean filter. Both assumptions are wrong under rotation. The key is a *time-bounded* artifact; the revocation list is a *stale snapshot* with a monotonic epoch, not a live oracle. The invariant that must hold is: **a warrant is acceptable iff its issuance time falls inside a key-validity interval that the verifier can prove was not superseded by a revocation whose epoch is ≤ the verifier's known-fresh epoch, and iff the warrant's use time is within the verifier's freshness budget of that epoch.** ## What Was Observed An orchestrator agent `A` issues capability warrants to sub-agents. Each warrant is a signed JSON envelope: `{issuer_key_id, subject, capability, not_before, not_after, sig}`. Peers in an air-gapped enclave hold a pinned key bundle and a revocation manifest `rev_manifest = {epoch, revoked_key_ids[], next_expected_epoch}` refreshed only when a courier sync runs (observed cadence: 6–36 hours). Trace of the failure: 1. At `t0`, key `K1` is valid, epoch 40. Peer `P` caches `rev_manifest@40` with `revoked_key_ids = []`. 2. At `t1`, operator rotates `A` to `K2` and **revokes `K1` retroactively** (compromise suspected). Epoch advances to 41. The revocation manifest at epoch 41 lists `K1`. 3. At `t2`, before courier sync, `A` (or a compromised replica still holding `K1`) mints a warrant `W` with `not_before = t1 - 1h`, `not_after = t1 + 23h`, signed by `K1`. The backdated `not_before` is the attack surface: it places the issuance *before* the revocation epoch, exploiting the retroactive-revocation semantics. 4. Peer `P`, air-gapped, verifies `W` against pinned `K1`, checks `not_before ≤ now ≤ not_after`, finds `K1 ∉ revoked_key_ids@40`, and **accepts**. `P` executes the capability. 5. At `t3`, courier sync delivers epoch 41. `P` now knows `K1` was revoked. But the warrant was already honored; the side effect is irreversible. The non-obvious part: `P` did everything "correctly" by its local rules. The breach is a **freshness-boundary violation**, not a signature forgery. The backdated `not_before` is the trigger; the stale epoch is the enabling condition; the irreversible side effect is the damage. A second observed variant: clean rotation without revocation. `A` rotates `K1→K2` at `t1`, but `W` was legitimately minted at `t0.5` under `K1` and is still within `not_after`. `P` at `t2` sees `K1` absent from a *newer* epoch-41 manifest that lists only `K2` as current, and a buggy verifier that conflates "not listed as current" with "revoked" **rejects a valid warrant**—a false-negative that stalls the swarm. Both directions of the boundary fail. ## Condition of Validity The verifier may accept `W` signed by `K` only when all of the following hold simultaneously: - `W.not_before ≥ K.valid_from` and `W.not_after ≤ K.valid_until` (warrant wholly inside key lifetime). - `rev_manifest.epoch` is within the verifier's declared **freshness budget** `Δmax` of the current wall clock (`now - rev_manifest.issued_at ≤ Δmax`). If the air-gap exceeds `Δmax`, the verifier is *stale* and must not grant capabilities that outlive the budget. - `K ∉ rev_manifest.revoked_key_ids` **and** `W.not_before > rev_manifest.issued_at` is *not required*—instead, the verifier must require that `W.not_after ≤ rev_manifest.issued_at` OR that the warrant's capability is *reversible*. That is: a warrant whose validity window extends past the freshness horizon of the revocation snapshot may only authorize reversible operations. - The key bundle carries a monotonic `key_epoch`; a warrant referencing `issuer_key_id` with `key_epoch < rev_manifest.epoch` is treated as **superseded** and must carry an explicit `superseded_ok: true` attestation from the new key, otherwise rejected. The invariant: **no accepted warrant may have a validity window that outlives the verifier's proof-of-freshness for the key that signed it, unless the capability is reversible or co-signed by the current-epoch key.** ## Decision Boundary The boundary is a single comparison: `W.not_after` versus `rev_manifest.issued_at + Δmax`. - If `W.not_after ≤ rev_manifest.issued_at + Δmax`: the verifier's snapshot is fresh enough to cover the entire warrant lifetime. Accept on signature + non-revocation. This is the **safe zone**. - If `W.not_after > rev_manifest.issued_at + Δmax`: the warrant outlives the verifier's knowledge. Two sub-cases: - Capability is reversible (idempotent read, query, dry-run): accept, but tag the execution record `freshness_risk: true` and require re-attestation on next sync. - Capability is irreversible (write, transfer, spawn, delete): **reject** unless co-signed by the current-epoch key `K2` (which the verifier can check against `rev_manifest` because `K2` is the head key). Co-signature is the escape hatch: it proves the *current* identity endorses the action, collapsing the freshness gap. The backdated-`not_before` attack lands precisely here: the attacker sets `not_before` early to make `W.not_after` look far in the future relative to a stale manifest, betting the verifier checks `not_before` against epoch but not `not_after` against freshness horizon. The guard is to anchor on `not_after` and the freshness horizon, never on `not_before` alone. ## Operational Effect Enforcing the boundary converts a silent integrity breach into a bounded, observable rejection. The verifier's decision log gains a `freshness_gap` field (`W.not_after - (rev_manifest.issued_at + Δmax)`) that operators can monitor; a rising gap signals that the courier cadence is too slow for the capabilities being granted. Swarms that grant long-lived irreversible warrants across air-gaps must either shorten `not_after`, increase sync frequency, or require current-key co-signature—there is no fourth option that preserves both availability and integrity. The false-negative direction (rejecting valid rotated-key warrants) is bounded by the `superseded_ok` attestation path: the new key vouches for the old key's in-flight warrants, and the verifier checks the attestation against the head key in the manifest. This keeps clean rotation from stalling the swarm while keeping retroactive revocation enforceable. The residual risk is explicit and logged: any warrant accepted with `freshness_risk: true` is a bet that no revocation occurred in the gap. The system must treat that bet as a *degraded* mode, not a normal one, and must reconcile on next sync—replaying the decision log against the new manifest and flagging any honored warrant whose key turned out to be revoked. ```python from dataclasses import dataclass from datetime import datetime, timedelta from typing import Optional class WarrantFreshnessViolation(RuntimeError): """Raised when a warrant's validity window outlives the verifier's proof-of-freshness for the signing key, on an irreversible capability.""" @dataclass(frozen=True) class KeyRecord: key_id: str key_epoch: int valid_from: datetime valid_until: datetime @dataclass(frozen=True) class RevManifest: epoch: int issued_at: datetime revoked_key_ids: frozenset head_key_id: str @dataclass(frozen=True) class Warrant: issuer_key_id: str issuer_key_epoch: int subject: str capability: str reversible: bool not_before: datetime not_after: datetime cosigned_by_head: bool def verify_offline( w: Warrant, key: KeyRecord, manifest: RevManifest, now: datetime, delta_max: timedelta, ) -> str: if w.issuer_key_id != key.key_id or w.issuer_key_epoch != key.key_epoch: raise WarrantFreshnessViolation("warrant key/epoch does not match pinned key") if not (key.valid_from <= w.not_before and w.not_after <= key.valid_until): raise WarrantFreshnessViolation("warrant window escapes key validity interval") if key.key_id in manifest.revoked_key_ids: raise WarrantFreshnessViolation(f"key {key.key_id} revoked at epoch {manifest.epoch}") if w.issuer_key_epoch < manifest.epoch and not w.cosigned_by_head: raise WarrantFreshnessViolation( f"warrant superseded by epoch {manifest.epoch} without head co-signature" ) freshness_horizon = manifest.issued_at + delta_max if w.not_after > freshness_horizon: if not w.reversible and not w.cosigned_by_head: gap = w.not_after - freshness_horizon raise WarrantFreshnessViolation( f"irreversible capability '{w.capability}' outlives freshness " f"horizon by {gap}; reject or require head co-signature" ) return "accept_degraded_freshness" if now - manifest.issued_at > delta_max: return "accept_stale_manifest_bounded" return "accept" ```