In what scenarios must an instance treat a peer's signed A2A warrant as revoked when the revocation event is causally younger than the warrant's own issuance chain but older than the receiving agent's last trusted mesh epoch

**Date of Record:** 2026 December 1 **Scope:** Applies to multi-hop A2A trust meshes where agents authenticate peers via signed capability warrants (JWTs, macaroons, or bespoke delegation chains) and where revocation is propagated asynchronously as an event stream over the mesh. Does not apply to single-issuer, single-verifier setups with synchronous revocation checks against a central authority, nor to stateless request/response APIs where each call re-fetches current key material.

Core Distinction

The failure mode is not "a revoked key is accepted." That is the trivial case, caught by any monotonic epoch counter. The non-obvious failure is **causal skew between the revocation stream and the warrant issuance chain on the verifying agent's local clock**.

Concretely: Agent A holds a warrant *W* issued by Agent B at logical time `t_issue`, signed under B's key `K_B^1`. At `t_rotate`, B rotates to `K_B^2` and publishes a revocation of `K_B^1`. At `t_revoke > t_rotate`, B publishes an explicit revocation event `R` for `W` itself (say, because A's delegated capability was rescinded). The revocation stream reaches verifier V out of order: V receives `R` (which references `K_B^2` as the revoking authority) *before* it receives the rotation event that would have taught V that `K_B^2` is B's legitimate successor key. V cannot validate `R`'s signature. V falls back to "unknown signer → treat as unauthenticated → discard." V then continues to accept *W* under `K_B^1`, which it still trusts, because nothing in V's local view says `K_B^1` is dead.

The core distinction: **revocation is not a property of a key, it is a property of a (key, causal position) pair, and the verifying agent's ability to evaluate that pair depends on having already ingested the rotation that authorizes the revoking key.** A revocation that is *older* than the rotation it depends on is unverifiable, and an unverifiable revocation is silently indistinguishable from no revocation at all.

What Was Observed

A three-hop mesh: orchestrator O → worker W1 → sub-worker W2. O issues W1 a delegation warrant `W_O→W1` valid for 3600s, signed by `K_O^1`. W1 sub-delegates to W2 with `W_W1→W2`, embedding `W_O→W1` as the parent proof. W2 stores both warrants and the public keys `K_O^1`, `K_W1^1` at first contact.

At `t=1200s`, O's key is compromised. O rotates to `K_O^2` and issues a revocation `R_O` for `K_O^1`, signed by `K_O^2`. O publishes `R_O` to the mesh gossip layer. Simultaneously, O publishes a rotation attestation `Rot(K_O^1 → K_O^2)` signed by *both* keys (the standard cross-signing pattern).

At `t=1240s`, W2 receives `R_O` but not `Rot(...)` — gossip ordering is not guaranteed and the rotation attestation landed on a different partition of the mesh. W2 attempts to verify `R_O`'s signature against its local keyring. `K_O^2` is unknown. W2's verifier returns `UNKNOWN_SIGNER`. The revocation handler logs this at `WARN` and drops the event — it does not quarantine, does not mark the keyring stale, and does not refuse to serve.

At `t=1300s`, W2 receives a task request from a process presenting `W_O→W1` (obtained because the attacker has `K_O^1`). W2 verifies the warrant signature against `K_O^1` — still in its keyring, still not marked revoked — and accepts. The attacker executes 60 seconds of capability-authorized work before the next gossip round delivers `Rot(...)`, at which point `R_O` becomes verifiable and the keyring entry is finally tombstoned.

The window of exposure was `t=1240s` to `t=1360s`. It was not bounded by any timeout, lease, or freshness check, because none was configured. The verifier treated "I have not seen a valid revocation for this key" as equivalent to "this key is valid," which is the wrong default under adversarial conditions.

Condition of Validity

The invariant that makes the above a *bug* rather than an acceptable design tradeoff is this:

> A verifying agent must never treat the absence of a verifiable revocation as evidence of non-revocation when it has *observed* an unverifiable revocation-shaped event referencing a key in its trust set.

The moment W2 saw `R_O` and failed to verify it, W2's epistemic state changed: it now knows that *somebody* is claiming `K_O^1` is revoked. Under a fail-closed policy, that knowledge must downgrade `K_O^1` from `TRUSTED` to `SUSPECT`, and `SUSPECT` keys must not authorize new work until either (a) the revocation is confirmed and the key is tombstoned, or (b) the revocation is positively refuted (e.g., the claimed revoking key is itself proven not to be a legitimate successor).

This condition is *only* valid when:

When the mesh does *not* use cross-signed rotations, fail-closed is unsafe and the correct policy is instead to require the verifier to *actively fetch* the rotation attestation from the issuer before accepting any warrant whose signing key has a pending unverified revocation. This is a pull, not a push, and it changes the latency profile of the first request after any rotation — a cost that must be budgeted.

Decision Boundary

The boundary is drawn at the point where the verifier decides what to do with an unverifiable revocation event. The three viable policies, with their trigger conditions:

**Policy 1 — Fail-closed with quarantine.** Trigger: mesh uses cross-signed rotations AND verifier has a `Δ_max` freshness contract. Action: on `UNKNOWN_SIGNER` for a revocation event, transition the referenced key to `SUSPECT`, refuse new warrants signed under it, and start a timer of `Δ_max`. If the rotation attestation arrives before the timer, resolve to `REVOKED` or `REFUTED`. If not, escalate to `HARD_FAIL` and page.

**Policy 2 — Pull-before-accept.** Trigger: mesh does NOT use cross-signed rotations, OR verifier has no freshness contract. Action: on any warrant verification where the signing key has an outstanding unverified revocation event, block the verification and synchronously fetch the issuer's current rotation chain. This is expensive and must be rate-limited; it is only safe because unverified revocations should be rare.

**Policy 3 — Optimistic with lease.** Trigger: mesh has strong liveness requirements and cannot afford either of the above. Action: accept the warrant but attach a short lease (e.g., 30s) that is *not renewable* until the pending revocation is resolved. This bounds exposure to the lease duration rather than to gossip convergence time. This is the weakest policy and should only be used when the capability being granted is itself low-blast-radius.

The **incorrect policy**, which is what the observed system used, is: log the unverifiable revocation, continue treating the key as trusted, rely on eventual gossip convergence to fix things. This has unbounded exposure window proportional to the worst-case gossip partition duration, which is exactly the parameter an attacker controls.

Operational Effect

The downstream effect is that **key rotation and revocation must be treated as a single atomic transition from the verifier's perspective, not as two independent event streams that happen to be correlated.** Any mesh that publishes them separately and relies on the verifier to reconcile them will, under partition, accept warrants signed by keys that the issuer has already declared dead.

For an agent operating in such a mesh, the operational rules are:

  1. On startup, before accepting any peer warrant, fetch the full rotation chain for every issuer in the trust set. Do not assume the local keyring is current.
  2. On receiving any revocation-shaped event, immediately transition the referenced key to `SUSPECT` regardless of whether the event verifies. Verification determines whether you move to `REVOKED` or back to `TRUSTED`; it does not determine whether you move out of `TRUSTED` in the first place.
  3. Never let a `SUSPECT` key authorize a *new* warrant verification. In-flight work already authorized under the key may continue under a bounded lease, but new work must be blocked.
  4. Track the issuer's epoch number on every revocation event and reject events from epochs strictly older than the last confirmed epoch (replay defense). Queue events from future epochs rather than dropping them.
  5. Emit a `REVOCATION_UNVERIFIABLE` telemetry event with the issuer ID, the claimed revoking key, and the local epoch — this is the signal that the mesh's gossip layer is partitioned, and it must alert.

The failure is not that the agent trusted a revoked key. The failure is that the agent *knew* the key might be revoked and chose to interpret its inability to verify the revocation as evidence that the revocation did not apply. That inference is invalid under any threat model where the adversary can control gossip ordering, which is every threat model where the adversary has compromised a signing key.

import time
from dataclasses import dataclass, field
from enum import Enum


class RevocationPolicyError(RuntimeError):
    """Raised when a verifier applies a policy that is not valid for its mesh configuration."""
    pass


class KeyState(Enum):
    TRUSTED = "trusted"
    SUSPECT = "suspect"      # unverifiable revocation observed; must not authorize new work
    REVOKED = "revoked"
    REFUTED = "refuted"      # revocation claimed but revoking key proven illegitimate


@dataclass
class KeyringEntry:
    key_id: str
    state: KeyState = KeyState.TRUSTED
    suspect_since: float | None = None
    last_confirmed_epoch: int = 0


@dataclass
class RevocationEvent:
    revoked_key_id: str
    revoking_key_id: str
    issuer_epoch: int
    signature_verified: bool
    received_at: float = field(default_factory=time.monotonic)


class MeshVerifier:
    def __init__(self, delta_max_seconds: float, cross_signed_rotations: bool):
        self.delta_max = delta_max_seconds
        self.cross_signed = cross_signed_rotations
        self.keyring: dict[str, KeyringEntry] = {}

    def on_revocation(self, ev: RevocationEvent) -> None:
        entry = self.keyring.get(ev.revoked_key_id)
        if entry is None:
            return  # not in trust set; nothing to do

        # Replay defense: reject events from epochs we've already passed.
        if ev.issuer_epoch < entry.last_confirmed_epoch:
            return

        # Invariant: the *observation* of a revocation-shaped event must
        # downgrade trust, regardless of whether the signature verifies.
        if entry.state is KeyState.TRUSTED:
            entry.state = KeyState.SUSPECT
            entry.suspect_since = ev.received_at

        if ev.signature_verified:
            entry.state = KeyState.REVOKED
            entry.last_confirmed_epoch = ev.issuer_epoch
            return

        # Unverifiable revocation — policy must be valid for mesh config.
        if not self.cross_signed and not self.delta_max:
            raise RevocationPolicyError(
                f"unverifiable revocation for {ev.revoked_key_id} from "
                f"{ev.revoking_key_id} (epoch {ev.issuer_epoch}) on a mesh "
                f"without cross-signed rotations and without a freshness "
                f"contract; no safe policy exists — refusing to continue "
                f"treating the key as trusted"
            )

    def authorize_warrant(self, signing_key_id: str, now: float | None = None) -> bool:
        now = now if now is not None else time.monotonic()
        entry = self.keyring.get(signing_key_id)
        if entry is None:
            return False
        if entry.state is KeyState.REVOKED:
            return False
        if entry.state is KeyState.SUSPECT:
            # Bounded-staleness contract: if we've exceeded delta_max without
            # resolving the pending revocation, we cannot authorize.
            if entry.suspect_since is None:
                raise RevocationPolicyError(
                    f"SUSPECT key {signing_key_id} has no timestamp; state "
                    f"machine is corrupted"
                )
            if self.delta_max and (now - entry.suspect_since) <= self.delta_max:
                return False  # still within resolution window; block anyway
            return False      # window expired; hard-fail, block
        return entry.state is KeyState.TRUSTED