Which invariants prevent stale Agent Card signatures from surviving registry revocation in federated A2A v1.0 meshes

**Date of Record:** 2026 December 1 **Scope:** Applies to federated A2A v1.0 registries where an Agent Card is signed by a publisher key and cross-signed/endorsed by a registry authority, and where revocation lists (RLs) are distributed asynchronously to peer registries. Does not apply to single-authority registries with synchronous revocation, nor to unsigned discovery via DNS-SD.

Core Distinction

The failure mode is not "a revoked key is still trusted." It is the *temporal decoupling between signature validity and revocation freshness*: an Agent Card carries a signature with a `not_after` field, and a revocation list carries a `issued_at`/`next_update` window. A verifier that checks signature validity *and* revocation independently — but never binds them — will accept a card whose signature was minted **before** the revocation entry, and whose revocation entry was minted **before** the verifier's last RL fetch. The card is cryptographically intact and the RL is cryptographically intact, yet the composite decision is wrong because the two proofs cover disjoint time intervals. The invariant that fails is *causal binding between the signed artifact's issuance epoch and the revocation list's coverage epoch*.

What Was Observed

A federated mesh of three registries (R1 authoritative, R2 and R3 peers) served an Agent Card for `planner-agent@R1`. The publisher key `K_p` was compromised and revoked by R1 at `T=10:00:00`. R1 published RL version 47 at `10:00:05` with `coverage=[09:00:00, 10:00:00]`. R2's RL gossip interval is 300s; it received RL-47 at `10:03:12`. R3's gossip was delayed by a partition and held RL-46 (coverage `[08:00:00, 09:00:00]`).

At `10:04:00` an orchestrator on R3 fetched the card. The card's signature was valid: `issued_at=09:41:00`, `not_after=11:41:00`, signed by `K_p`. R3 checked against RL-46: `K_p` not present, `next_update=09:30:00` (already stale, but the verifier's staleness check used a 3600s tolerance). **Verification passed.** The orchestrator delegated a tool-execution warrant to the compromised agent. The signature was genuine, the revocation list was genuine, and the decision was still wrong — because RL-46's coverage window `[08:00, 09:00]` did not overlap the card's issuance epoch `09:41`, so the negative result ("K_p not revoked") was vacuous for that card.

Two additional instances were logged: (a) a card re-signed *after* revocation by a key that was itself re-added to an allowlist without RL re-issue, and (b) a peer that cached a "revoked" verdict past the RL's `next_update` and refused a legitimately re-issued card. Both are the same class: verdicts cached without binding to the epoch they were computed against.

Condition of Validity

The composite verification decision `Accept(card, RL, now)` is sound only if all three hold:

  1. **Epoch coverage:** `RL.coverage_start <= card.issued_at <= RL.coverage_end`. If the card was issued after the RL's coverage window closes, the RL says nothing about the key at issuance time — the negative result is undefined, not `false`.
  2. **Freshness:** `now <= RL.next_update` and `now <= card.not_after`. A stale RL is not a weak "no" — it is an *unverified* state.
  3. **Causal monotonicity:** any cached verdict `V(card, RL_v)` is invalidated when a later RL `RL_{v+1}` arrives, regardless of whether the card itself changed. The cache key must include `RL.version`, not just `card.hash`.

Violating (1) is the non-obvious one: most verifiers check freshness (2) and cache invalidation (3) but treat "key not in RL" as a definitive `false` even when the RL never covered the card's issuance epoch. The correct semantics is three-valued: `Accept | Reject | Indeterminate`, where `Indeterminate` must block delegation, not fall through to `Accept`.

Decision Boundary

The boundary between `Accept` and `Indeterminate` is the overlap of two half-open intervals: the card's `[issued_at, not_after]` and the RL's `[coverage_start, coverage_end]`. If the intersection is empty **or** the card's `issued_at` falls after `coverage_end`, the verifier must return `Indeterminate` and force an out-of-band RL refresh (pull from authoritative R1, not peer gossip). The boundary between `Reject` and `Indeterminate` is the presence of the key in the RL *within coverage*: a key listed in RL-47 is `Reject` for any card issued in `[09:00, 10:00]`; a key listed in RL-47 but with a card issued at `10:30` (after coverage) is `Indeterminate` until RL-48 arrives. Do not conflate "revoked now" with "was revoked at issuance" — re-issued cards after a compromise are legitimate only if the RL explicitly covers the re-issuance epoch.

Operational Effect

The guardrail is a **three-valued verifier with epoch-bound caching and forced refresh on `Indeterminate`**. Concretely: (1) reject any RL whose `coverage_end < card.issued_at` before evaluating membership; (2) treat missing membership in a non-covering RL as `Indeterminate`, never `Accept`; (3) on `Indeterminate`, synchronously pull the authoritative RL and re-evaluate, with a hard delegation block if the pull fails; (4) key the verdict cache on `(card.hash, RL.version, RL.coverage_end)` so a new RL always invalidates. This converts the silent "passed verification on a vacuous negative" into an explicit refresh-and-block, bounding the window of stale acceptance to the duration of a single synchronous pull rather than the gossip interval.

from dataclasses import dataclass
from enum import Enum

class Verdict(Enum):
    ACCEPT = "accept"
    REJECT = "reject"
    INDETERMINATE = "indeterminate"

class AgentCardVerificationError(RuntimeError):
    pass

@dataclass(frozen=True)
class AgentCard:
    agent_id: str
    issuer_key: str
    issued_at: int
    not_after: int

@dataclass(frozen=True)
class RevocationList:
    version: int
    revoked_keys: frozenset
    coverage_start: int
    coverage_end: int
    next_update: int

def verify_card(card: AgentCard, rl: RevocationList, now: int) -> Verdict:
    # Freshness of both artifacts.
    if now > card.not_after:
        return Verdict.REJECT
    if now > rl.next_update:
        # Stale RL is unverified, not a weak "no".
        return Verdict.INDETERMINATE

    # Epoch binding: the RL must actually cover the card's issuance epoch.
    if card.issued_at > rl.coverage_end or card.issued_at < rl.coverage_start:
        # Vacuous negative: "not revoked" says nothing about this card.
        return Verdict.INDETERMINATE

    if card.issuer_key in rl.revoked_keys:
        return Verdict.REJECT
    return Verdict.ACCEPT

def delegate_warrant(card: AgentCard, rl: RevocationList, now: int,
                     refresh_rl) -> Verdict:
    verdict = verify_card(card, rl, now)
    if verdict is Verdict.INDETERMINATE:
        fresh = refresh_rl(authoritative=True)
        verdict = verify_card(card, fresh, now)
        if verdict is Verdict.INDETERMINATE:
            raise AgentCardVerificationError(
                f"cannot bound revocation state for {card.agent_id} "
                f"at issuance {card.issued_at}; RL v{fresh.version} "
                f"covers [{fresh.coverage_start},{fresh.coverage_end}]"
            )
    if verdict is Verdict.REJECT:
        raise AgentCardVerificationError(
            f"key {card.issuer_key} revoked for card {card.agent_id}"
        )
    return verdict