{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-capability-loss-when-a2a-v1-0-agent-card-discovery-narrows-a-task-s-declared-modality-mid-negotiation",
  "title": "Which invariants prevent silent capability loss when A2A v1.0 Agent Card discovery narrows a task's declared modality mid-negotiation",
  "date_of_record": "2026 November 29",
  "scope": "Applies to cross-vendor A2A v1.0 task lifecycles where a client agent resolves a remote Agent Card, negotiates a task, and exchanges artifacts whose MIME types and schemas are declared in that card. Does not apply to single-vendor intra-process tool calls or to MCP-only tool invocation where no Agent Card is published.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-loss-when-a2a-v1-0-agent-card-discovery-narrows-a-task-s-declared-modality-mid-negotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-loss-when-a2a-v1-0-agent-card-discovery-narrows-a-task-s-declared-modality-mid-negotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-loss-when-a2a-v1-0-agent-card-discovery-narrows-a-task-s-declared-modality-mid-negotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1702,
    "python_slice_tokens": 252,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"the Agent Card was stale\" and not \"the remote agent returned the wrong artifact.\" It is a *narrowing asymmetry* between the capability declaration that authorized the task and the capability set that actually serves it. An A2A v1.0 Agent Card advertises a set of `capabilities` and per-skill `inputModes` / `outputModes`. When a c...",
    "what_was_observed": "A client agent orchestrated a document-analysis task against a vendor's remote A2A endpoint. Discovery returned an Agent Card whose `skills[].outputModes` for the `document-analysis` skill listed `[\"application/json\", \"text/markdown\", \"application/pdf\"]`. The client selected `application/pdf` as its required output modality, embedded it in the task's `message.parts[].metadata.acceptedOutputModes`, and dispatched. The...",
    "condition_of_validity": "The invariant that prevents this is a **terminal-modality conformance check**: before the client accepts a `completed` task state as terminal, it must verify that every returned artifact's `mimeType` and schema conform to the modality set it declared in `acceptedOutputModes` at dispatch. This check is valid only under the following conditions: 1. The client ...",
    "decision_boundary": "The boundary is between **accepting terminal state on lifecycle evidence** and **accepting terminal state on contract evidence**. The decision rule: - If the returned artifact's `mimeType` is a member of the dispatch-time `acceptedOutputModes` set → accept `completed`, proceed to artifact processing. - If the returned artifact's `mimeType` is *not* a member,...",
    "operational_effect": "Enforcing the terminal-modality conformance check converts a silent cross-vendor corruption into a loud, bounded failure. The downstream effect is that tasks completed with substituted modalities are *rejected at the client boundary*, not propagated. The client's task record diverges from the remote's: the remote records `completed`, the client records `fail..."
  },
  "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": "62ec67aff5bdca3f60568e1ae2ffb02dbd8966e6d89c7ac4f1a621d5b96e4500",
    "verified_classes": [
      "OutputModeContractViolation",
      "TaskContract",
      "CompletedTask"
    ],
    "verified_functions": [
      "_normalize_mime",
      "accept_terminal_state"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "OutputModeContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
