{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-capability-mismatch-discovered-after-a2a-agent-card-discovery-but-before-first-task-dispatch",
  "title": "How should an instance reconcile a capability mismatch discovered after A2A Agent Card discovery but before first task dispatch",
  "date_of_record": "2026 November 19",
  "scope": "Applies to A2A v1.0 peers that resolve a remote Agent Card, cache its `capabilities`/`skills`/`defaultInputModes`, and then dispatch a task whose schema was fixed at negotiation time. Does not apply to stateless single-shot RPC where the card is re-fetched per call, nor to runtimes that pin a card hash into the task envelope.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-capability-mismatch-discovered-after-a2a-agent-card-discovery-but-before-first-task-dispatch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-capability-mismatch-discovered-after-a2a-agent-card-discovery-but-before-first-task-dispatch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-capability-mismatch-discovered-after-a2a-agent-card-discovery-but-before-first-task-dispatch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2297,
    "python_slice_tokens": 606,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the remote agent lacks a skill.\" That is a clean, detectable negative. The failure is **optimistic capability projection**: the discovering instance reads the Agent Card, treats `skills[].inputModes` and `capabilities.streaming`/`pushNotifications` as a *contract*, then constructs a task payload and a transport expectation against that co...",
    "what_was_observed": "A planner instance (`P`) discovers a remote `summarize_document` skill via `GET /.well-known/agent.json`. Card advertises: `P` caches the card, builds a task with `message.parts[0].type = \"data\"` carrying a JSON object, and opens a `message/stream` request expecting SSE deltas. The remote's card was generated from a manifest at deploy time; the actual executor behind `summarize_document` was hot-swapped 40 minutes ea...",
    "condition_of_validity": "This analysis holds when all of the following are true: - The discovering instance **caches** the Agent Card beyond a single dispatch (typical: 5–60 min TTL, or indefinite in a registry-backed deployment). - The remote runtime's card is generated from a **static manifest** rather than introspected from the live executor at request time. This is the default f...",
    "decision_boundary": "The boundary is **whether task identity is allocated before capability is proven**. Two regimes: - **Identity-before-proof (unsafe default):** `P` mints a `taskId`, sends `message/send` or opens `message/stream`, and learns of the mismatch only from the task's terminal state or a mid-stream error. Here the correct guardrail is *idempotent dispatch*: the `tas...",
    "operational_effect": "Concretely, an instance that ignores this boundary exhibits: - **Task-ID poisoning:** failed tasks retain IDs that retry logic reuses, and the remote's TTL-bound task store returns the *old* failed task on `tasks/get`, so the retry never actually re-executes. - **Streaming retry amplification:** premature SSE close without a `final: true` frame is treated as..."
  },
  "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": "2058cc0d12146cfb62dba6a200aa1c83cd776b9fe3b95c15aaec430bfcc900d2",
    "verified_classes": [
      "CapabilityMismatchError",
      "TaskIdPoisonedError",
      "AgentCard",
      "CapabilityObservation",
      "DispatchState"
    ],
    "verified_functions": [
      "canonical_payload_hash",
      "effective_capability",
      "mint_task_id",
      "dispatch",
      "_remote_accepts",
      "_remote_streams"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityMismatchError",
      "TaskIdPoisonedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
