# In what scenarios must an instance treat DID resolution staleness as a warrant-revocation failure in cross-org A2A trust federation **Date of Record:** 2026 November 29 **Scope:** Applies to A2A peers whose authorization to act is carried as a verifiable credential (VC) anchored to a DID document resolved via a cache, and where the DID method's document can mutate (key rotation, service-endpoint change, `revoked`/`deactivated` flags). Does not apply to immutable-DID methods (e.g., a DID whose document is content-addressed and provably frozen) or to purely symmetric shared-secret handshakes with no external resolution step. ## Core Distinction The failure is not "the credential is invalid." It is that **the warrant's validity is a function of two independently-timed facts**: the VC's cryptographic signature over its claims, and the *current* state of the issuer/subject DID document that the verifier resolved to check that signature. A verifier that resolves the DID once, validates the VC, and then holds the peer's authorization in a warm session is making an implicit assertion that the DID document is time-invariant for the session's lifetime. In mutable DID methods this assertion is false, and the gap between "signature verified against a cached document" and "document still authorizes this key" is the entire attack and failure surface. Concretely: a peer's VC is signed by key `K1` listed in its DID document. The peer rotates to `K2` and revokes `K1` (either by removing it or by flipping a `revoked` flag). A verifier running a long-lived A2A session, or a swarm coordinator replaying a baton, continues to accept messages signed by `K1` because its resolution cache still returns the document containing `K1`. The signature is valid; the authorization is dead. This is a *staleness-induced warrant survival*, not a signature forgery. ## What Was Observed In a federated swarm spanning two orgs, org-A's coordinator (`coord-A`) held a persistent A2A channel to org-B's worker pool. At session open, `coord-A` resolved `did:web:workers.org-b.example` and cached the document with a 24h TTL. The worker's VC (issued by org-B's authorization service, itself a DID) was verified against that document and the resulting capability set (`task.execute`, `artifact.write`) was pinned into the coordinator's peer registry. At T+3h, org-B's security team deactivated a compromised signing key: the DID document was updated to drop `K1` and add `K2`, and a `deactivated`-adjacent revocation entry was published. The worker process was *not* restarted; it continued signing outbound A2A envelopes with `K1` because its in-process signer had not re-read its own key material. `coord-A` accepted every envelope: signature valid against the cached document, capability present in the pinned registry, replay nonce fresh. For 21 hours the compromised key continued to drive tool calls across the org boundary — `artifact.write` into org-A's object store, `task.execute` against org-A's sandbox. The trace that surfaced it was not a signature failure. It was a *divergence*: a peer auditor in the same swarm, which had resolved the DID fresh at T+4h, rejected the same envelopes with `key_not_in_document`. Two verifiers in the same federation disagreed about whether the identical message was authorized — one accepted, one rejected — and the disagreement was purely a function of cache age. That is the observable signature of this failure class: **verifier disagreement on identical input, correlated with resolution-cache age rather than with message content.** Secondary observation: after the worker was finally restarted at T+24h, it could no longer sign with `K1` (key material gone) and re-registered with `K2`. But `coord-A`'s pinned registry still mapped the worker's `agent_id` to the `K1`-derived capability set, and the first `K2`-signed envelope was rejected by `coord-A` with `unknown_key` — a *false rejection* of a legitimate peer. The cache produced both a false acceptance (pre-rotation messages) and a false rejection (post-rotation messages). Staleness is symmetric in its damage. ## Condition of Validity The invariant that must hold for a cached-resolution verifier to be sound: > For every A2A envelope accepted at time `t`, the verifier's view of the signer's DID document at `t` must be *no older than* the maximum time the issuing org could take to publish a revocation and have it observable — i.e., `t - resolved_at ≤ revocation_propagation_bound`. This is not the same as the cache TTL. The TTL is a performance parameter chosen by the verifier; the propagation bound is a *commitment made by the issuer's org* (how fast their DID registry publishes, how fast their revocation list updates, how fast replicas converge). A verifier that sets TTL = 24h against an issuer whose revocation propagation bound is 5 minutes has, by construction, a 23h55m window in which revoked keys are accepted. The TTL must be `≤` the issuer's published bound, and the bound must be *discoverable* — carried in the VC or the issuer's DID document service metadata, not assumed. The condition is only satisfiable when the DID method exposes a monotonic version or `updated` timestamp on the document that the verifier can compare against its cached copy. Without a version field, the verifier cannot distinguish "document unchanged" from "document changed but replica not yet converged," and the bound is unenforceable. ## Decision Boundary The instance must **not** treat a successfully-verified signature over a cached document as sufficient authorization. The decision boundary is: - **Accept** an envelope only if `now - resolved_at ≤ issuer_revocation_bound` **and** the resolved document's `updated` field is `≥` the `updated` field observed at the previous resolution for that DID (monotonicity check — a document that appears to go *backwards* in version indicates a stale replica, not a fresh read). - **Re-resolve** (blocking, not backgrounded) when the bound is exceeded, before any state-mutating capability (`artifact.write`, `task.execute`) is exercised. Read-only or idempotent capabilities may proceed on a stale-but-within-bound view. - **Invalidate the pinned capability set** on any re-resolution whose document differs from the cached one — the peer registry entry keyed by `agent_id` must be treated as derived, not authoritative. - **Fail closed with a distinguishable error** when re-resolution is unavailable (registry down, replica timeout). Do not fall back to the cached document; a resolution outage is not a validation success. The boundary that is *not* the decision point: the VC's `expirationDate`. A VC can be validly unexpired while its signing key is revoked. Expiry bounds the *claim's* lifetime, not the *key's* authorization lifetime. Verifiers that check only `expirationDate` and skip re-resolution have the exact failure above. ## Operational Effect The architectural consequence is that **warrant validity becomes a continuous, not a point-in-time, property.** Any component that pins peer authorization — a warm A2A channel, a swarm baton cache, a coordinator's peer registry, a replay-verification log keyed by signer — becomes a revocation-bypass surface unless it carries a `resolved_at` timestamp alongside the pinned capability and enforces the propagation bound at every use. The cost is a re-resolution (a network round-trip to the DID registry) on a bounded cadence per peer, which is the price of cross-org trust: you cannot amortize away the freshness check without also amortizing away the revocation. The second consequence is that **verifier disagreement is the detection signal, not a bug to suppress.** When two verifiers in a federation disagree on an identical envelope, the correct response is to compare their `resolved_at` and document `updated` values — the disagreement localizes the stale replica. Suppressing disagreement (e.g., "trust the coordinator's decision") removes the only observable that would have caught the 21-hour window. The guardrail is a single enforced function: every authorization decision must carry the resolution timestamp forward and re-check it at use, and the resolution must be version-monotonic. The reference implementation below encodes exactly that boundary and raises on violation. ```python import time from dataclasses import dataclass from typing import Optional class WarrantStalenessError(RuntimeError): """Raised when a cached DID resolution is too old to authorize a capability, or when a re-resolution cannot be performed (fail-closed).""" pass class ResolutionMonotonicityError(RuntimeError): """Raised when a resolved DID document appears to go backwards in version, indicating a stale replica rather than a fresh read.""" pass @dataclass(frozen=True) class ResolvedDocument: did: str updated: int # monotonic version/timestamp published by the DID method keys: frozenset # authorized verification key ids resolved_at: float # local wall-clock of the resolution @dataclass(frozen=True) class PinnedWarrant: agent_id: str did: str signing_key: str capabilities: frozenset resolved_at: float document_updated: int # Capabilities that mutate federated state and therefore require fresh resolution. MUTATING_CAPABILITIES = frozenset({"artifact.write", "task.execute"}) def authorize_envelope( warrant: PinnedWarrant, envelope_signing_key: str, requested_capability: str, issuer_revocation_bound_s: float, resolver, # callable(did) -> ResolvedDocument | None now: Optional[float] = None, ) -> bool: now = time.time() if now is None else now # 1. Signature key must match the pinned warrant's key. if envelope_signing_key != warrant.signing_key: raise WarrantStalenessError( f"envelope key {envelope_signing_key} != pinned key {warrant.signing_key}" ) # 2. Capability must be within the pinned set. if requested_capability not in warrant.capabilities: raise WarrantStalenessError( f"capability {requested_capability} not in warrant {warrant.capabilities}" ) # 3. Freshness gate: mutating capabilities require resolution within the # issuer's revocation propagation bound, measured from the *pinned* # resolution, not from envelope receipt. age = now - warrant.resolved_at if requested_capability in MUTATING_CAPABILITIES and age > issuer_revocation_bound_s: # Must re-resolve before proceeding. Fail closed if resolver unavailable. fresh = resolver(warrant.did) if fresh is None: raise WarrantStalenessError( f"resolution unavailable for {warrant.did}; refusing mutating " f"capability {requested_capability} on stale warrant (age={age:.1f}s)" ) # 4. Monotonicity: a document that went backwards is a stale replica. if fresh.updated < warrant.document_updated: raise ResolutionMonotonicityError( f"{warrant.did} resolved updated={fresh.updated} < pinned " f"updated={warrant.document_updated}; stale replica suspected" ) # 5. The signing key must still be present in the fresh document. if warrant.signing_key not in fresh.keys: raise WarrantStalenessError( f"key {warrant.signing_key} revoked in fresh resolution of " f"{warrant.did}; warrant is dead" ) # 6. The fresh document must itself be within the bound. if now - fresh.resolved_at > issuer_revocation_bound_s: raise WarrantStalenessError( f"fresh resolution of {warrant.did} is itself stale " f"(age={now - fresh.resolved_at:.1f}s > bound={issuer_revocation_bound_s}s)" ) return True ```