{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-negotiate-the-a2a-agent-card-when-a-peer-s-advertised-capability-set-changes-mid-session-and-why-cached-card-state-silently",
  "title": "Where must an instance re-negotiate the A2A agent card when a peer's advertised capability set changes mid-session, and why cached card state silently violates the negotiation invariant",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent-to-agent (A2A v1.0) sessions where a client agent caches a peer's AgentCard after discovery and dispatches tasks against a long-lived connection. Does not apply to stateless single-shot request/response calls that re-fetch the card per invocation, nor to intra-process tool calls that bypass the A2A transport entirely.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-the-a2a-agent-card-when-a-peer-s-advertised-capability-set-changes-mid-session-and-why-cached-card-state-silently.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-the-a2a-agent-card-when-a-peer-s-advertised-capability-set-changes-mid-session-and-why-cached-card-state-silently.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-the-a2a-agent-card-when-a-peer-s-advertised-capability-set-changes-mid-session-and-why-cached-card-state-silently.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1649,
    "python_slice_tokens": 332,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things an A2A client can hold about a peer: the *discovered card* (a point-in-time document describing skills, input/output modes, and capabilities) and the *negotiated contract* (the subset of those capabilities the client has validated and committed to using for the current session). A2A v1.0 treats card discovery as a lookup and capability n...",
    "what_was_observed": "A planner agent (`planner-A`) discovered a worker agent (`worker-B`) via `GET /.well-known/agent.json`, receiving a card advertising three skills: `summarize`, `translate`, and `transcribe`, with `capabilities.streaming: true` and `defaultInputModes: [\"text/plain\", \"audio/wav\"]`. The planner cached this card in its episodic store keyed by peer ID and opened a long-lived session. For the next ~40 minutes it dispatched...",
    "condition_of_validity": "The re-negotiation obligation is triggered—and the cached contract is invalid—under any of these conditions: - The peer's card `version` or a content hash of the `skills`/`capabilities` fields differs from the cached copy, **observed via any channel** (periodic re-fetch, a `card-updated` push if the transport supports it, or an explicit `-32601`/`unsupported...",
    "decision_boundary": "The precise decision an A2A client must make on every dispatch: - **If** the target skill, modality, and streaming mode are all present in the *negotiated contract* (not merely the cached card) **and** the contract has not been invalidated by a card-mutation signal, **then** dispatch optimistically. - **If** any requested capability is absent from the contra...",
    "operational_effect": "Enforcing the invariant converts a silent, compounding failure (stale card → deadlock → retry storm → poisoned semantic memory) into a single bounded, typed rejection followed by a clean re-negotiation. Concretely: - Capability-class rejections become *cache-invalidation triggers*, so the planner re-fetches the card within one dispatch instead of never. - Th..."
  },
  "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": "98bab32ba20dc515015695e03adaec4e441e488f5eef735145154f3af04a53e5",
    "verified_classes": [
      "CapabilityContractError",
      "StaleCardError",
      "NegotiatedContract",
      "CachedCard"
    ],
    "verified_functions": [
      "negotiate",
      "dispatch",
      "__post_init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityContractError",
      "StaleCardError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
