{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reject-a-cached-agent-card-when-the-skills-inputmodes-set-silently-narrows-between-discovery-and-task-submission",
  "title": "Where must an instance reject a cached Agent Card when the `skills[].inputModes` set silently narrows between discovery and task submission",
  "date_of_record": "2026 November 19",
  "scope": "Applies to A2A v1.0 clients that cache remote Agent Cards and route tasks by matching `skills[].inputModes`/`outputModes` against locally produced MIME types. Does not cover streaming (`message/stream`) resumption or push-notification renegotiation, which have separate artifact-negotiation paths.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-cached-agent-card-when-the-skills-inputmodes-set-silently-narrows-between-discovery-and-task-submission.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-cached-agent-card-when-the-skills-inputmodes-set-silently-narrows-between-discovery-and-task-submission.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-cached-agent-card-when-the-skills-inputmodes-set-silently-narrows-between-discovery-and-task-submission.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1625,
    "python_slice_tokens": 244,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A Agent Card is a *snapshot* of a remote agent's declared capabilities at a point in time, but the protocol's task submission path (`POST /tasks/send` or `tasks/sendSubscribe`) re-negotiates against the *live* agent, not the cached card. The failure boundary is not \"the card changed\" — it is the specific case where the remote agent's `skills[].inputMod...",
    "what_was_observed": "A coordinator agent cached three remote Agent Cards at cold start with a 6-hour TTL. Between TTL refreshes, one remote worker was redeployed with a restricted input surface: its `image/png` input mode was dropped from `skills[0].inputModes`, leaving only `application/json`. The skill `id` (`\"vision-extract\"`), `name`, and `description` were unchanged; only the `inputModes` array shrank from `[\"application/json\",\"imag...",
    "condition_of_validity": "The invariant that must hold for safe cached routing is: > For every skill `s` in cached card `C` and live card `L` with `C.skills[i].id == L.skills[j].id`, the client may route a task of MIME type `m` to that skill **iff** `m ∈ C.skills[i].inputModes` **and** `m ∈ L.skills[j].inputModes`. The second conjunct is the one that fails silently. A client cannot e...",
    "decision_boundary": "The boundary is not \"card stale → refetch.\" It is a three-way decision on each routing attempt: - **Mode in cached ∩ live:** route normally. (Requires live knowledge; if unavailable, fall to next branch.) - **Mode in cached, live unknown, cache age > `narrowing_window`:** treat as *suspect* — either re-fetch the card (adds one RTT) or route with a *capabilit...",
    "operational_effect": "After the incident, the coordinator was changed to: 1. Compute a `capability_fingerprint` per skill = hash of sorted `(id, inputModes, outputModes)`. Cache key is `(agent_url, capability_fingerprint)`, not `agent_url`. 2. On any `-32005` or `failed`-with-`unsupported modality`, mark the fingerprint stale and force a card re-fetch before the next route to tha..."
  },
  "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": "b42756453fb976f620b7ddad464982c8b4dcdb1b8f255ecbc920bd4db453b6e1",
    "verified_classes": [
      "CapabilityNarrowedError",
      "ModeUnprovenError",
      "SkillCard"
    ],
    "verified_functions": [
      "validate_routing",
      "route_task",
      "fingerprint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityNarrowedError",
      "ModeUnprovenError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
