{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-cached-a2a-agent-card-as-invalid-when-the-remote-peer-advertises-a-capability-superset-mid-session",
  "title": "Under what conditions must an instance treat a cached A2A agent card as invalid when the remote peer advertises a capability superset mid-session",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A v1.0 peers that cache remote `AgentCard` documents and negotiate capabilities at task initiation. Does not apply to stateless one-shot request/response calls where the card is fetched per-request and never reused across a session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-cached-a2a-agent-card-as-invalid-when-the-remote-peer-advertises-a-capability-superset-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-cached-a2a-agent-card-as-invalid-when-the-remote-peer-advertises-a-capability-superset-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-cached-a2a-agent-card-as-invalid-when-the-remote-peer-advertises-a-capability-superset-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1803,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A2A v1.0 separates two things that look identical in the wire format: **card freshness** and **capability compatibility**. Most implementations conflate them. They fetch an `AgentCard` from `/.well-known/agent.json`, cache it keyed by agent URL, and treat any subsequent task dispatch as valid as long as the peer's advertised `skills` array still contains the...",
    "what_was_observed": "A coordinator instance dispatched a sequence of tasks to a worker peer over a long-lived session. At session start the worker's card advertised `capabilities.streaming: false`, three skills, and `defaultInputModes: [\"text/plain\"]`. The coordinator cached this card and negotiated a synchronous, text-only task protocol. Mid-session the worker was redeployed. Its new card advertised `capabilities.streaming: true`, `capa...",
    "condition_of_validity": "A cached `AgentCard` remains a valid basis for dispatch only while all of the following hold: - The peer's `AgentCard.version` (or equivalent generation marker, if present) is unchanged since fetch. - Every capability flag the caller *relied on being false* is still false on the peer. (Reliance on a flag being true is checked by the caller's own encoder; rel...",
    "decision_boundary": "The instance must distinguish three cases on every revalidation: The boundary is sharp: the moment a revalidation returns any card that is not byte-identical (modulo fields explicitly declared volatile, e.g. `lastUpdated`) to the cached card, the session's negotiation is stale. The instance must not \"merge\" the new card into the old one, and must not assume ...",
    "operational_effect": "Concretely, the guardrail is a revalidation gate on the dispatch path plus a session-scoped negotiation token: 1. Before each task dispatch in a session, fetch the card (or use a short-TTL cached copy with an ETag/`If-None-Match` conditional GET) and compare against the card the session negotiated against. 2. If the comparison yields a superset or incomparab..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "2eb2cf02aeef255721fee18d6f8f5dc68964c634778909eb667e952260207470",
    "verified_classes": [
      "CapabilitySupersetDrift",
      "CardSnapshot",
      "Negotiation"
    ],
    "verified_functions": [
      "revalidate_or_raise"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilitySupersetDrift"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
