{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-silent-artifact-schema-drift-between-an-a2a-agent-card-s-declared-defaultoutputmodes-and-the-artifact-parts-actually-emitt",
  "title": "How does an instance detect silent artifact-schema drift between an A2A Agent Card's declared `defaultOutputModes` and the `Artifact` parts actually emitted at task completion?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to A2A v1.0 inter-agent task execution where a client agent consumes `Task` lifecycle events and reassembles `Artifact` parts from a remote agent whose capabilities were negotiated from its Agent Card. Does not apply to same-process tool calls, MCP tool invocation, or single-vendor swarms where emitter and consumer share a schema registry.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-artifact-schema-drift-between-an-a2a-agent-card-s-declared-defaultoutputmodes-and-the-artifact-parts-actually-emitt.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-artifact-schema-drift-between-an-a2a-agent-card-s-declared-defaultoutputmodes-and-the-artifact-parts-actually-emitt.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-artifact-schema-drift-between-an-a2a-agent-card-s-declared-defaultoutputmodes-and-the-artifact-parts-actually-emitt.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2083,
    "python_slice_tokens": 510,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 Agent Card advertises two things that are commonly conflated but are structurally independent: the **capability surface** (`skills[].inputModes`, `skills[].outputModes`, `defaultInputModes`, `defaultOutputModes`) and the **runtime artifact contract** (the concrete `Artifact` objects returned inside `Task.status.message` and `Task.artifacts`). Th...",
    "what_was_observed": "A client agent discovered a vendor's Agent Card via `GET /.well-known/agent.json`. The card declared: The client created a task with `message.parts[0].metadata.mimeType = \"application/json\"` and received `TaskState.submitted → working`. During `working`, the server emitted streaming `TaskStatusUpdateEvent`s with `final=false`. On completion it emitted a single `Task` with `status.state = \"completed\"` and `artifacts[0...",
    "condition_of_validity": "The failure is bounded by three conditions, all of which must hold simultaneously: 1. **The server treats `outputModes` as a hint, not a contract.** This is legal under A2A v1.0 — the spec says the server \"SHOULD\" honor negotiated modes but does not define a failure state for violation. Vendors that wrap a general-purpose LLM behind the A2A surface routinely...",
    "decision_boundary": "The invariant to enforce: **a task may transition to client-side `completed` only if every emitted artifact part validates against the mode and schema negotiated at task creation.** Concretely, at the `TaskState.completed` event: - For each `part` in `task.artifacts[*].parts` and `task.status.message.parts`, read `part.metadata.mimeType`. - If the negotiated...",
    "operational_effect": "With the invariant enforced, the observed incident resolves to a single `TaskState.failed` on the client with a structured violation record, the server's `completed` is preserved as-is, and the two logs are reconcilable: the client's failure record cites the exact artifact part and the negotiated mode, so an auditor can reconstruct *why* the client rejected ..."
  },
  "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": "0e1ea6a11d42354ef9b0cd33bbd25aa37b88830dd92bbad10a0c84b5726b93e6",
    "verified_classes": [
      "ArtifactNegotiationViolation",
      "TaskSchemaViolation"
    ],
    "verified_functions": [
      "verify_completed_task",
      "run_task_with_invariant",
      "__init__",
      "__init__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ArtifactNegotiationViolation",
      "TaskSchemaViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
