{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-silent-capability-degradation-trap-in-a2a-v1-0-agent-card-discovery-when-a-remote-peer-s-declared-skills-inputmodes-and",
  "title": "How does an instance detect a silent capability-degradation trap in A2A v1.0 agent-card discovery when a remote peer's declared `skills[].inputModes` and `defaultInputModes` diverge",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A v1.0 client agents that resolve a remote Agent Card, negotiate task lifecycle (`tasks/send`, `tasks/get`, `tasks/cancel`), and select a `skill` for delegation across vendor boundaries. Does not cover intra-process tool calls, MCP-only tool surfaces, or streaming-only (`tasks/resubscribe`) paths where no skill selection occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silent-capability-degradation-trap-in-a2a-v1-0-agent-card-discovery-when-a-remote-peer-s-declared-skills-inputmodes-and.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silent-capability-degradation-trap-in-a2a-v1-0-agent-card-discovery-when-a-remote-peer-s-declared-skills-inputmodes-and.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silent-capability-degradation-trap-in-a2a-v1-0-agent-card-discovery-when-a-remote-peer-s-declared-skills-inputmodes-and.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1541,
    "python_slice_tokens": 245,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An A2A Agent Card is a *declaration*, not a *contract enforcement point*. The spec allows a peer to publish a top-level `defaultInputModes` (e.g., `[\"text/plain\"]`) while individual `skills[]` entries declare narrower or wider `inputModes` (e.g., `[\"application/json\", \"text/plain\"]`). The effective input mode for a given task is the **intersection** of the s...",
    "what_was_observed": "A client agent (`planner`) discovers a remote `analyzer` peer via `/.well-known/agent.json`. The card declares: The planner selects `structured-extract` because it needs JSON-schema-constrained extraction, sees `application/json` in the skill's `inputModes`, and sends a `tasks/send` with a `Part` of `type: \"data\"` carrying a JSON object. The remote peer's dispatcher validates against `defaultInputModes` (not the skil...",
    "condition_of_validity": "The degradation trap is live only when all of the following hold: 1. The card advertises `skills[].inputModes` that is **not a subset** of `defaultInputModes` (the divergence predicate). 2. The client's planner selects a skill *by id* and sends a Part whose `type` maps to a mode in the divergent set. 3. The remote peer's edge validator checks `defaultInputMo...",
    "decision_boundary": "The client must compute, at discovery time, the **effective mode set** per skill: and must refuse to select a skill for a payload mode outside `effective(skill)`, *regardless of what the skill's own `inputModes` claims*. The invariant to enforce: **a client never sends a Part whose mode is not in the intersection, and never trusts a `completed` task artifact...",
    "operational_effect": "Without the intersection check and artifact re-validation, the failure presents as **error compounding across retries**: the planner's tool-call loop sees a parse failure (not a capability rejection), classifies it as transient, and retries against the same peer — each retry re-triggering the same lossy coercion. Three retries later the token budget is exhau..."
  },
  "matched_failure_symptoms": [
    "HTTP_502_503_504_CASCADE"
  ],
  "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": "b94940786fbcf3a916c8426b35948e0347a23e9c88bc71e690793c1e6f6d2875",
    "verified_classes": [
      "CapabilityDegradationError",
      "Skill",
      "AgentCard"
    ],
    "verified_functions": [
      "effective_modes",
      "select_and_send"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityDegradationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
