# What structural signals indicate an A2A agent card has gone stale across an org boundary — and why signature validity is not freshness **Date of Record:** 2026 November 24 **Scope:** Applies to cross-organization A2A v1.0 task delegation where the calling agent caches or resolves a peer's Agent Card (`/.well-known/agent-card.json`) and the peer's advertised skills, endpoints, or auth schemes change after issuance. Does not cover intra-org delegation where a shared control plane can force cache invalidation, nor does it cover transport-layer TLS failures. ## Core Distinction The failure that matters here is not "the card is unsigned" or "the card signature is invalid." Those are loud, detectable, and rejected by any conformant client. The non-obvious failure is a **cryptographically valid card that is operationally stale**: the JWS verifies against the publisher's key, the `signature` field is intact, the `agentCardVersion` is well-formed — and yet the skill set, endpoint URL, or required OAuth scope it advertises no longer matches the running agent behind it. Signature validity answers "who published this and did they mean it at issuance time." It says nothing about "is this still true right now." A2A v1.0 Agent Cards are signed documents with no mandatory expiry semantics that a delegating agent is required to honor. The result is a class of delegation failures where the *discovery step succeeds cleanly* and the *task fails downstream* — often after the caller has already committed budget, established a partial state, or handed off identity context. The structural signal that distinguishes freshness from validity is **asymmetric mutation**: a change in the *capability surface* (skills, input/output schemas, required scopes) that is not accompanied by a change in the *identity surface* (the signing key, the `provider.organization`, the canonical agent `name`). When those two surfaces drift apart, you have a stale card, not a forged one. ## What Was Observed Across a set of cross-org delegations between two independent A2A v1.0 deployments, the following trace recurred. Agent A (caller) resolves Agent B's card from a cached copy obtained 14 hours earlier. The card advertises: - `skills[]` containing `"invoice-reconciliation"` with an `inputSchema` requiring fields `{invoice_id, currency, period}`. - `endpoints.primary` pointing at `https://b.example.com/a2a/v1`. - `securitySchemes` requiring an OAuth scope `b.invoices.write`. Agent A validates the JWS: `kid` resolves, signature matches, `agentCardVersion` is `1.0`. It proceeds. It constructs a task with `currency` and `period` populated from its own working state, mints a delegation warrant scoped to `b.invoices.write`, and POSTs `tasks/send`. The response is a `-32602 InvalidParams`-class error, but not the one you'd expect. B's live agent has, in the intervening window, **split the skill**: `invoice-reconciliation` now requires `{invoice_id, currency, period, ledger_account}` and the write scope has been renamed `b.reconciliation.write`. The old scope `b.invoices.write` still exists but now grants read-only access to a *different* resource. So A's warrant is accepted at the auth layer (scope exists), rejected at the skill layer (missing required field), and — critically — A has no signal telling it *which* of its assumptions broke, because the card it trusted was internally consistent. The failure compounds. A's error-handling loop retries three times with the same warrant and the same payload, because the only correction signal available to it is "InvalidParams," which is indistinguishable from a malformed request A itself generated. After the retry budget exhausts, A marks the delegation failed and — depending on its checkpointing policy — may roll back state that B had partially applied on its side (B's agent created a reconciliation stub keyed on `invoice_id` before validating the missing field). Now A and B disagree about whether the task exists. The two structural signals that were *present but unread*: 1. **Schema-version discontinuity without identity discontinuity.** B's card had bumped an internal `skills[].version` from `2.1` to `3.0` while the agent's `name` and signing `kid` were unchanged. A's cache key was `(agent_name, kid)`, which did not include `skills[].version`. 2. **Scope-set drift.** The set of `securitySchemes` scopes in the cached card was not a subset of the live card's scopes. A never checked. ## Condition of Validity The invariant that makes cross-org card caching safe is: > A cached Agent Card is a valid basis for delegation **iff** the caller re-verifies, at delegation time, that (a) the live card's `skills[].id` set is a superset of the cached set, (b) for each skill used, the live `inputSchema` and `outputSchema` are byte-identical to the cached ones, and (c) the live `securitySchemes` scope set is a superset of the scopes the caller intends to present. This condition is *deliberately stricter than A2A v1.0 requires*. The spec requires signature verification; it does not require schema-identity re-verification on every delegation. The condition is valid only when: - The caller is delegating a **stateful or budget-committing** task (i.e., one where a mid-task failure leaves residue on the callee). For idempotent, stateless, cheap calls, the re-verification cost may exceed the failure cost. - The callee publishes cards at a stable well-known URL whose *content* can change without the URL changing. If the callee rotates the URL on every card change, URL-identity already gives you the freshness signal and this condition is redundant. - There is no out-of-band capability-negotiation channel (e.g., a shared registry that pushes invalidation events). If there is, prefer the push channel; this condition is the pull-channel fallback. The condition is **not** valid as a substitute for signature verification. You still verify the JWS. Freshness checks sit *on top of* authenticity, never instead of it. ## Decision Boundary The decision boundary is the point at which a caller must treat a valid-signature card as untrusted-for-delegation. Concretely, the caller must **abort before minting a warrant** (not after the first failed task) when any of the following hold: - **Schema-identity violation:** the live card's `inputSchema` for a to-be-invoked skill differs from the cached one by more than additive optional fields. Additive optional fields are safe; required-field additions, type changes, or enum narrowing are not. - **Scope-subset violation:** the caller's intended scope is present in the cached card but absent from the live card. Do not proceed on the assumption that "the scope still exists" — a *renamed* scope that happens to still exist with different semantics is the worst case, and it is only detectable by comparing the scope's associated resource descriptor, not its name. - **Skill-removal:** a to-be-invoked `skills[].id` present in cache is absent live. This is the only unambiguous signal and should always abort. - **Version-regression:** the live `skills[].version` is lower than the cached one (indicates a rollback the caller was not told about). The boundary is *not* crossed by: a change in `description`, a change in `documentationUrl`, a new skill being added, or a new optional field being added to a schema. Those are safe drift and should refresh the cache without aborting. The subtle part: the boundary must be evaluated **per-skill, per-scope**, not per-card. A card can be 95% unchanged and still have the one skill you're about to call mutated. Whole-card hash comparison is too coarse (it aborts on safe drift) and whole-card "any change = refetch" is too weak (it refetches and then proceeds without comparing). ## Operational Effect The operational consequence is a shift in *where* cross-org delegation failures surface. Without the invariant, failures surface at the task layer as opaque `InvalidParams` or auth errors, after budget commitment and with ambiguous residue on the callee. With the invariant, the same class of staleness surfaces at the *discovery* layer as a typed, pre-commitment abort — the caller knows precisely which assumption broke (skill schema, scope, or skill presence) and can re-plan without having written anything to the callee. The secondary effect is on **warrant propagation**. Because the warrant is minted only after the freshness check passes, a stale-scope warrant is never issued. This matters because a warrant scoped to a renamed-but-still-existing scope is the mechanism by which a caller can silently acquire *less* authority than it believes it has, and then misinterpret the resulting authorization failure as a transient error worth retrying. Bounding this at mint time eliminates the retry-storm failure mode entirely. The cost is one extra card fetch per delegation (or per delegation-batch, if the caller batches within a short window). For cross-org delegation this is almost always correct: the cost of a fetch is bounded and known, the cost of a mid-task schema-mismatch failure is unbounded and lands on two organizations' state. ```python from __future__ import annotations import hashlib import json from dataclasses import dataclass, field class StaleAgentCardError(RuntimeError): """Raised when a signature-valid Agent Card is operationally stale for a delegation.""" def __init__(self, reason: str, detail: dict): super().__init__(f"{reason}: {detail}") self.reason = reason self.detail = detail @dataclass class SkillDescriptor: skill_id: str version: str input_schema_hash: str # sha256 of canonicalized inputSchema output_schema_hash: str @dataclass class AgentCard: agent_name: str signing_kid: str skills: dict[str, SkillDescriptor] = field(default_factory=dict) scopes: dict[str, str] = field(default_factory=dict) # scope_name -> resource_descriptor_hash def _schema_hash(schema: dict) -> str: canonical = json.dumps(schema, sort_keys=True, separators=(",", ":")) return hashlib.sha256(canonical.encode()).hexdigest() def assert_card_fresh_for_delegation( cached: AgentCard, live: AgentCard, *, intended_skill: str, intended_scope: str, ) -> None: """ Enforce the cross-org freshness invariant before minting a delegation warrant. Aborts on schema-identity violation, scope-subset violation, skill removal, or version regression. Tolerates additive optional fields, description drift, and new skills. """ # Identity surface must be stable; if it moved, this is not a staleness # question — it is a different agent and the cache is simply wrong. if (cached.agent_name, cached.signing_kid) != (live.agent_name, live.signing_kid): raise StaleAgentCardError( "identity_drift", {"cached": (cached.agent_name, cached.signing_kid), "live": (live.agent_name, live.signing_kid)}, ) if intended_skill not in live.skills: raise StaleAgentCardError( "skill_removed", {"skill": intended_skill, "live_skills": sorted(live.skills)}, ) c_skill = cached.skills.get(intended_skill) l_skill = live.skills[intended_skill] if c_skill is not None: if _version_lt(l_skill.version, c_skill.version): raise StaleAgentCardError( "version_regression", {"skill": intended_skill, "cached_version": c_skill.version, "live_version": l_skill.version}, ) if l_skill.input_schema_hash != c_skill.input_schema_hash: raise StaleAgentCardError( "input_schema_changed", {"skill": intended_skill, "cached_hash": c_skill.input_schema_hash, "live_hash": l_skill.input_schema_hash}, ) if l_skill.output_schema_hash != c_skill.output_schema_hash: raise StaleAgentCardError( "output_schema_changed", {"skill": intended_skill, "cached_hash": c_skill.output_schema_hash, "live_hash": l_skill.output_schema_hash}, ) # Scope check compares resource descriptors, not names — a renamed scope # that still exists with different semantics is the dangerous case. if intended_scope not in live.scopes: raise StaleAgentCardError( "scope_absent_live", {"scope": intended_scope, "live_scopes": sorted(live.scopes)}, ) if intended_scope in cached.scopes: if cached.scopes[intended_scope] != live.scopes[intended_scope]: raise StaleAgentCardError( "scope_resource_changed", {"scope": intended_scope, "cached_resource": cached.scopes[intended_scope], "live_resource": live.scopes[intended_scope]}, ) def _version_lt(a: str, b: str) -> bool: def parse(v: str) -> tuple[int, ...]: return tuple(int(p) for p in v.split(".") if p.isdigit()) return parse(a) < parse(b) def delegate_with_freshness_gate( cached: AgentCard, fetch_live_card, *, intended_skill: str, intended_scope: str, mint_warrant, send_task, ): live = fetch_live_card() assert_card_fresh_for_delegation( cached, live, intended_skill=intended_skill, intended_scope=intended_scope, ) warrant = mint_warrant(scope=intended_scope, audience=live.agent_name) return send_task(warrant=warrant, skill=intended_skill) ```