{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-task-resumption-and-why-does-the-task-state-machine-silently-accept-it",
  "title": "How does an instance detect a stale Agent Card during A2A v1.0 task resumption, and why does the task-state machine silently accept it?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 clients resuming a `tasks/get` or `tasks/send` continuation against a remote agent whose Agent Card (`/.well-known/agent.json`) was re-fetched or cached across a task boundary. Does not apply to single-shot `message/send` calls that complete within one discovery epoch, nor to agents that pin a card hash into the task's `metadata` at creation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-task-resumption-and-why-does-the-task-state-machine-silently-accept-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-task-resumption-and-why-does-the-task-state-machine-silently-accept-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-task-resumption-and-why-does-the-task-state-machine-silently-accept-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2135,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **card freshness** (does the remote's advertised capability set match the card I hold?) and **task-state authority** (does the remote's task store agree with the state I believe the task is in?). A2A v1.0 couples these only loosely: the task lifecycle (`submitted → working → input-required → completed/failed/cance...",
    "what_was_observed": "A three-hop chain: orchestrator agent `O` creates a task on worker `W` via `message/send`, receives `task.id = t-9f2`, and parks in `input-required` awaiting human approval. During the park (roughly 40 minutes), `W` is redeployed. The new `W'` publishes a revised Agent Card: the `skills[].id` for the invoked skill is unchanged, but `capabilities.pushNotifications` flips from `true` to `false` (the webhook receiver wa...",
    "condition_of_validity": "The invariant that would have caught this is: **any task-scoped capability used during resumption must be validated against a card whose version is provably ≥ the card version in force at task creation, or the resumption must fail closed.** Concretely, the condition under which the stale-card acceptance is *safe* is narrow: - The remote's Agent Card is immut...",
    "decision_boundary": "The boundary an instance must draw is between **resumption as state reconciliation** and **resumption as state continuation**. A2A v1.0's `tasks/get` gives you reconciliation (here is the authoritative state) but the `tasks/send` continuation is written as continuation (resume from where you were). Mixing them without a card re-validation step is the failure...",
    "operational_effect": "The downstream effect is a **verification gap that compounds**: the client's completion-detection latency degrades from push-driven (sub-second) to poll-driven (up to one poll interval), and any downstream agent in the chain that was subscribed to `O`'s completion event inherits that latency. In a multi-agent pipeline where `O` gates `P` gates `Q`, a 4-minut..."
  },
  "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": "d882ed4bfc23ab2c0c47bfd7858aa9e4a6b341a612b12b6eacf0fb2a62ead17c",
    "verified_classes": [
      "StaleAgentCardError",
      "TaskRecord"
    ],
    "verified_functions": [
      "canonical_hash",
      "_narrowed",
      "resume_task",
      "handle_resume_rpc_error"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleAgentCardError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
