{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-capability-negotiation-drift-when-an-a2a-v1-0-agent-card-is-re-fetched-mid-handoff-across-heterogeneous-runtimes",
  "title": "How does an instance detect capability-negotiation drift when an A2A v1.0 Agent Card is re-fetched mid-handoff across heterogeneous runtimes?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any A2A v1.0 client that discovers a remote agent via Agent Card fetch and delegates a multi-turn task, then re-resolves the card (cache miss, TTL expiry, or a new turn) before the task completes. Does not apply to single-shot RPC with a pinned card snapshot, nor to intra-process tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-negotiation-drift-when-an-a2a-v1-0-agent-card-is-re-fetched-mid-handoff-across-heterogeneous-runtimes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-negotiation-drift-when-an-a2a-v1-0-agent-card-is-re-fetched-mid-handoff-across-heterogeneous-runtimes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-negotiation-drift-when-an-a2a-v1-0-agent-card-is-re-fetched-mid-handoff-across-heterogeneous-runtimes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2091,
    "python_slice_tokens": 438,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Agent Card discovery is usually treated as a *stateless lookup*: fetch `/.well-known/agent-card.json`, read `skills[]`, `capabilities`, and `defaultInputModes`, then dispatch. The failure mode is not fetch failure. It is **card immutability drift**: the A2A spec treats the Agent Card as a contract, but nothing forces the serving runtime to keep it byte-stabl...",
    "what_was_observed": "Concrete trace from a two-replica deployment (replica A: build `2025-06-13a`, replica B: build `2025-06-14b`), task spanning ~40 seconds and three turns: 1. **Turn 1.** Client fetches card from replica A. Card advertises `skills: [{id: \"summarize.document\", version: \"2.0.0\", inputModes: [\"text/plain\",\"application/pdf\"], outputModes:[\"text/markdown\"]}]`. Client negotiates, sends `message/send` with a PDF part, gets `t...",
    "condition_of_validity": "The drift is only *operationally dangerous* when all of the following hold: - **Multi-turn task with per-turn re-resolution.** Single-shot `message/send` that completes in one turn cannot observe drift. The failure requires the client to re-fetch the card *after* the task has been accepted. - **Card fields that gate dispatch or parsing are mutable.** `skills...",
    "decision_boundary": "The boundary is **when to freeze the negotiated capability set**. Two candidate policies: - **Live re-resolution** (what most clients do): re-fetch the card every turn, re-validate, adapt. Correct only if the fleet is homogeneous *and* task state is globally consistent. Otherwise it converts a transient replica skew into a task fork. - **Pinned snapshot**: c...",
    "operational_effect": "The practical consequence is that **A2A capability negotiation is a per-task transaction, not a per-connection handshake.** Clients that treat the Agent Card as connection metadata (re-read on every turn like a TLS cert check) will, on skewed fleets, silently fork tasks, double-execute side effects, and mis-attribute the resulting divergence to \"the peer cha..."
  },
  "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": "30cb08d73b668690c80db415e16457932ae1589af4441718338a130130c59c63",
    "verified_classes": [
      "CapabilityDriftError",
      "PinnedTask",
      "CardPinningClient"
    ],
    "verified_functions": [
      "_gating_view",
      "snapshot_hash",
      "handle_turn",
      "__init__",
      "accept_task",
      "on_turn_refetch",
      "release_task"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
