{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-reuses-a-cached-agent-card-across-a-redeploy-that-silently-widens-a-skill-s-inputmodes-schema",
  "title": "What happens when an instance reuses a cached Agent Card across a redeploy that silently widens a skill's `inputModes` schema",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 peers that cache remote Agent Cards for discovery-latency reasons and dispatch `message/send` tasks based on the cached `skills[].inputModes` / `outputModes` and `capabilities` fields. Does not cover intra-process tool routing, MCP tool-list caching, or first-contact discovery (where no cache exists to go stale).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reuses-a-cached-agent-card-across-a-redeploy-that-silently-widens-a-skill-s-inputmodes-schema.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reuses-a-cached-agent-card-across-a-redeploy-that-silently-widens-a-skill-s-inputmodes-schema.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reuses-a-cached-agent-card-across-a-redeploy-that-silently-widens-a-skill-s-inputmodes-schema.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2150,
    "python_slice_tokens": 461,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An Agent Card is a *declaration of capability*, not a *contract of behavior*. A2A v1.0 lets a server publish `skills[]`, each with `inputModes`, `outputModes`, and example prompts, plus a top-level `capabilities` object (`streaming`, `pushNotifications`, `stateTransitionHistory`). The spec treats the card as advisory metadata that a client *may* use to selec...",
    "what_was_observed": "A two-node setup: a planner agent (client) and a document-extraction agent (server). The server's card declared one skill, `extract-fields`, with `inputModes: [\"text/plain\"]` and a `parameters` object whose `fields` array was free-form strings. The planner cached the card at cold start and built a request template from it. The server team shipped a redeploy. The skill now accepted `inputModes: [\"text/plain\",\"applicat...",
    "condition_of_validity": "The guardrail holds only under a specific invariant: **the client must treat the cached card as a hypothesis, not a fact, and must re-validate it on any `failed` or `rejected` transition that is not accompanied by a structured `InvalidParams` error referencing a field the client actually sent.** Concretely, the invariant is: 1. Cache the card with a content ...",
    "decision_boundary": "The boundary is between two client policies: - **Trust-the-cache:** treat the card as authoritative until TTL expiry. Cheap, low-latency, and correct *only* if the server guarantees card immutability for the cache lifetime. A2A v1.0 does not provide that guarantee. - **Revalidate-on-anomaly:** treat the card as authoritative for *planning* but revalidate on ...",
    "operational_effect": "The observable effect of the bug, absent the invariant, is a *deterministic failure masquerading as transient*. The task status is `failed`, not `rejected`, because the server's coercion bug raised an unhandled exception inside the handler and the A2A error mapping fell through to the generic internal-error branch. The planner's retry classifier keys on `fai..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "46d162c095e1104d702c359886fe1748f37729cafd16eb4f57ffa008b23de625",
    "verified_classes": [
      "StaleAgentCardError",
      "CachedCard"
    ],
    "verified_functions": [
      "canonical_hash",
      "cache_card",
      "revalidate_on_failure",
      "dispatch_with_revalidation",
      "rebuild_payload"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleAgentCardError"
    ],
    "sample_fail_closed_invariants": [
      "Cannot rebuild payload from stale template; re-plan from live card."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
