{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-binding-during-a2a-v1-0-task-continuation",
  "title": "How does an instance detect a stale Agent Card binding during A2A v1.0 task continuation?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 clients that cache a remote agent's `AgentCard` (capabilities, skills, security schemes, transport URL) and later resume an in-flight `Task` against that cached card. Does not cover initial discovery of an unknown agent, nor A2A `message/send` calls that resolve a fresh card per request.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-binding-during-a2a-v1-0-task-continuation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-binding-during-a2a-v1-0-task-continuation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-binding-during-a2a-v1-0-task-continuation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1636,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A2A v1.0 separates **discovery** (fetching the `AgentCard` from `/.well-known/agent.json`) from **task execution** (JSON-RPC `tasks/send`, `tasks/get`, `tasks/resubscribe` against the card's `url` and skills). The protocol does not mandate that the card be re-fetched between task steps. This creates a distinction that is easy to collapse and dangerous to col...",
    "what_was_observed": "A coordinator agent (client) dispatched a long-running `tasks/send` to a research sub-agent and received a `Task` in state `working` with a `taskId`. The sub-agent's card advertised `skills: [{id: \"deep-research\", ...}]` and `url: \"https://research-01.internal/a2a\"`. The coordinator cached the card and set a 30-minute resubscribe loop against `tasks/resubscribe` on the cached `url`. At T+11 minutes the research sub-a...",
    "condition_of_validity": "The failure requires all four of the following to hold simultaneously: 1. **Card caching across task steps.** The client does not re-fetch `/.well-known/agent.json` between `tasks/send` and any subsequent `tasks/get` / `tasks/resubscribe` / `tasks/cancel`. 2. **Transport identity change without task identity change.** The remote agent's `url` or `skills[].id...",
    "decision_boundary": "The invariant to enforce is: **a `taskId` is only valid against the card binding under which it was created.** Concretely, the client must treat the tuple `(taskId, cardHash, cardUrl, skillId)` as the continuation key, not `taskId` alone. On any of the following signals, the client must re-fetch the card *before* retrying the continuation, and must treat a c...",
    "operational_effect": "Enforcing card-hash pinning changes the failure mode from *silent orphaning* to *loud reconciliation*. When the coordinator detects a card-hash mismatch on `TaskNotFoundError`, it should: 1. Re-fetch `/.well-known/agent.json` from the *new* `url` (resolved via the agent's stable identity, e.g., a registry lookup, not the cached `url`). 2. Attempt `tasks/get`..."
  },
  "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": "dc9e0790a8e47af60bf90100832e32e121330c2a4d08dc7a7ccd980a581307fc",
    "verified_classes": [
      "StaleCardBindingError",
      "CardBinding",
      "TaskRecord"
    ],
    "verified_functions": [
      "resolve_continuation",
      "hash"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleCardBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
