{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-cached-agent-card-across-a-task-lifecycle-transition-and-the-remote-peer-s-artifact-mime-schema-has-silently-dr",
  "title": "What happens when an instance trusts a cached Agent Card across a task lifecycle transition and the remote peer's artifact MIME schema has silently drifted",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 task lifecycles where a client agent reuses a previously discovered `AgentCard` (and its declared `defaultInputModes`/`defaultOutputModes`/artifact schema) to negotiate artifacts across `working → completed` transitions without re-fetching. Does not apply to single-shot `message/send` calls that terminate in one turn, nor to peers that pin card versions via ETag and reject stale `If-None-Match`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-cached-agent-card-across-a-task-lifecycle-transition-and-the-remote-peer-s-artifact-mime-schema-has-silently-dr.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-cached-agent-card-across-a-task-lifecycle-transition-and-the-remote-peer-s-artifact-mime-schema-has-silently-dr.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-cached-agent-card-across-a-task-lifecycle-transition-and-the-remote-peer-s-artifact-mime-schema-has-silently-dr.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1811,
    "python_slice_tokens": 279,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the remote agent returned the wrong MIME type.\" It is that the **Agent Card is a discovery-time snapshot, but artifact negotiation is a completion-time event**, and A2A v1.0 permits a peer to change the concrete `Part` media type of a `Task.artifacts[]` entry between the moment the card was cached and the moment the task reaches `complete...",
    "what_was_observed": "A three-agent pipeline: a planner client (`C`), a remote analysis agent (`R`), and a downstream renderer (`D`). At `t0`, `C` fetched `R`'s card via `agent/authenticatedExtendedCard` and cached it: `C` dispatched a long-running task with `message/send`, received a `Task` in state `submitted`, then polled `tasks/get`. At `t1` the task entered `working`. At `t2`, ~40s later, `R` (a model-backed agent) decided mid-execut...",
    "condition_of_validity": "This failure requires all of the following to co-occur; remove any one and the trace does not fire: 1. **Card caching without revalidation.** `C` did not re-fetch the card or send `If-None-Match` on the cached ETag before reading the terminal artifact. 2. **Multi-valued `outputModes`.** If the skill declared exactly one output mode, the peer could not legall...",
    "decision_boundary": "The client must choose, at the moment it reads a terminal artifact, between two policies: - **Trust-the-card:** deserialize strictly against the cached `outputModes` and fail closed on mismatch. Cheap, but converts a benign peer choice into a client-side task failure and a re-dispatch loop. - **Trust-the-artifact:** deserialize against the `Part.metadata.mim...",
    "operational_effect": "The observable effect is a **duplicate-terminal-artifact divergence**: one logical task, two terminal `Task` records with different `Task.id`, different artifact media types, and no protocol-level reconciliation. Downstream `D` receives two artifacts for one intent. If `D` is itself an LLM agent, it will attempt to reconcile them probabilistically and may sy..."
  },
  "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": "09d0ad19ba0a2f65578befa7c27c50a1e6eb530ae647c425bd84d1e9aacddfc6",
    "verified_classes": [
      "ArtifactNegotiationDrift",
      "DispatchPin"
    ],
    "verified_functions": [
      "_hash_card",
      "pin_contract",
      "validate_terminal_artifact"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ArtifactNegotiationDrift"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
