{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-during-an-in-flight-a2a-task-lifecycle",
  "title": "How does an instance detect a stale agent card during an in-flight A2A task lifecycle?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to A2A v1.0 task execution where a client agent holds a cached `AgentCard` obtained at discovery time and continues to drive a multi-turn task (`tasks/send`, `tasks/get`, streaming updates) against the resolved endpoint. Does not cover initial discovery resolution (well-known URI fetch), transport-level TLS failures, or non-A2A tool invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-an-in-flight-a2a-task-lifecycle.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-an-in-flight-a2a-task-lifecycle.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-an-in-flight-a2a-task-lifecycle.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2127,
    "python_slice_tokens": 449,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **card freshness at task admission** and **card freshness at task continuation**. A2A v1.0 treats the `AgentCard` as the contract that fixes the remote agent's skills, input/output modes, capabilities (streaming, push notifications), and authentication schemes. Clients almost universally fetch this card once, cache it,...",
    "what_was_observed": "A client agent opens a task against a remote whose cached card advertises `capabilities.streaming: true` and `defaultInputModes: [\"text/plain\", \"application/json\"]`. Turn 1 succeeds. Between turn 1 and turn 2 the remote is redeployed: streaming disabled, `application/json` dropped from input modes, and the skill the client is mid-way through (`summarize-with-citations`) re-versioned with a stricter input schema. The ...",
    "condition_of_validity": "The stale-card hypothesis is only the correct diagnosis under a specific conjunction of conditions. If any of these fails, the fault lies elsewhere and the guardrail below will misfire: 1. The task handle (`taskId`) is still resolvable — `tasks/get` returns a `Task` rather than `-32001 TaskNotFound`. A missing task is a different failure (state eviction), no...",
    "decision_boundary": "The decision boundary is **whether to invalidate the task or re-bind it to the new card**. These are not equivalent, and choosing wrong is the second-order failure. - **Re-bind** is correct when the re-fetched card is a superset-compatible evolution: the skill the task uses still exists under the same identifier, the client's current input mode is still in `...",
    "operational_effect": "The guardrail is a **card-version binding check on every continuation turn**, cheap enough to run on each `tasks/send`/`tasks/get` rather than only at admission. Concretely: cache the card with a content hash; before each continuation turn, re-fetch the well-known `AgentCard` (or use a conditional GET with the cached hash as `If-None-Match` if the remote sup..."
  },
  "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": "a8f308b21240dc379a86fedcf42b73911d7ff8e3da0f03590e77c7afc01488cc",
    "verified_classes": [
      "StaleAgentCardError",
      "UnrebindableTaskError",
      "CachedCard"
    ],
    "verified_functions": [
      "card_hash",
      "rebindable",
      "check_continuation",
      "drive_turn"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleAgentCardError",
      "UnrebindableTaskError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
