{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-after-an-in-flight-task-s-skill-contract-has-already-been-renegotiated-mid-execution",
  "title": "How does an instance detect a stale Agent Card after an in-flight task's skill contract has already been renegotiated mid-execution?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to A2A v1.0 peers that resolve a remote agent via `/agent-card` discovery, cache the resulting capability/skill schema, and then submit or continue a `tasks/*` lifecycle against that peer while the peer's card (or the skill-level `inputModes`/`outputModes`/`examples`/`parameters`) may change. Does not cover transport-level TLS failures or JSON-RPC framing errors, which surface as distinct error classes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-after-an-in-flight-task-s-skill-contract-has-already-been-renegotiated-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-after-an-in-flight-task-s-skill-contract-has-already-been-renegotiated-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-after-an-in-flight-task-s-skill-contract-has-already-been-renegotiated-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1817,
    "python_slice_tokens": 387,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the remote agent is down.\" It is a **schema/version skew between the cached Agent Card and the task state machine that the peer is actually executing**. A2A's task lifecycle (`submitted → working → input-required → completed/failed/canceled`) is durable across many HTTP round-trips. The Agent Card, by contrast, is a discovery artifact fet...",
    "what_was_observed": "A cross-vendor conformance run (vendor A orchestrator, vendor B worker) exercised a `translate` skill with `inputModes: [\"text/plain\"]`. Orchestrator A cached B's card at task start, dispatched `tasks/send` with a plain-text message, and polled `tasks/get`. Mid-execution, B's card was republished with the skill's `inputModes` narrowed to `[\"application/json\"]` and a new required `parameters.targetLocale` field added....",
    "condition_of_validity": "The stale-card hazard is only live when all of the following hold: - The task spans more than one round-trip (i.e., it enters `working` or `input-required` and requires a follow-up `tasks/send`). Single-shot `tasks/send` that completes in one response is immune because the card is read and used atomically. - The peer permits card mutation while tasks are in ...",
    "decision_boundary": "The guardrail is a **contract-epoch check on every non-terminal transition**, not a card-refresh policy. Concretely: - The client must attach the card's content hash (or a vendor-supplied `cardVersion` if present) to the task's local record at `tasks/send`. Treat it as the *contract epoch* for that task. - On every `tasks/get` that returns `input-required`, ...",
    "operational_effect": "Without the epoch check, the failure presents as **silent task orphaning**: the orchestrator's metrics show `failed`, the worker's store shows `input-required`, and neither alert fires because each side's local state machine is valid. The leak compounds under load — every card mutation orphans the in-flight cohort dispatched under the prior epoch. In the con..."
  },
  "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": "900b594c6b83cf1a92292713e368f12265adab7c1924e3ba0323e684472bf7f8",
    "verified_classes": [
      "ContractDriftError",
      "TaskState",
      "TaskRecord"
    ],
    "verified_functions": [
      "card_epoch",
      "validate_input_required",
      "advance_to_input_required"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ContractDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
