{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-agent-card-schema-negotiation-divergence-from-silently-corrupting-a2a-task-lifecycle-state-across-cross-vendor-handoffs",
  "title": "Which invariants prevent Agent Card schema-negotiation divergence from silently corrupting A2A task-lifecycle state across cross-vendor handoffs",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 peer discovery and task delegation where a client agent resolves a remote Agent Card, negotiates capability/schema, and drives a remote task through `submitted → working → input-required → completed/failed/canceled`. Does not cover single-vendor homogeneous swarms or MCP-only tool invocation without an A2A task envelope.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-schema-negotiation-divergence-from-silently-corrupting-a2a-task-lifecycle-state-across-cross-vendor-handoffs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-schema-negotiation-divergence-from-silently-corrupting-a2a-task-lifecycle-state-across-cross-vendor-handoffs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-schema-negotiation-divergence-from-silently-corrupting-a2a-task-lifecycle-state-across-cross-vendor-handoffs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1980,
    "python_slice_tokens": 526,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is not \"the remote agent returned an error.\" It is the case where the remote agent returns a **valid, well-formed, HTTP-200 success** whose *semantic* schema diverged from what the client's Agent Card snapshot declared — and the client's lifecycle state machine accepts the artifact because it validates against the *declared* ...",
    "what_was_observed": "A client agent resolves an Agent Card at `https://vendor-b.example/.well-known/agent.json`, caching `capabilities.artifacts[].schema` as JSON Schema draft 2020-12 with a required field `result.summary` (string). It submits a task, receives `task.id = t-8842`, transitions local state to `working`, and stores a `schemaFingerprint` — but only as a *string digest of the whole card*, not a structural snapshot of the artif...",
    "condition_of_validity": "The guardrail holds only if the following are all true: 1. **The client captures a structural snapshot of the artifact schema subtree at the `submitted → working` transition**, not a digest of the whole card. A whole-card digest changes for cosmetic reasons (description text, contact email) and produces false alarms; a subtree snapshot isolates the contract ...",
    "decision_boundary": "The boundary is the moment of artifact ingestion at a terminal transition. Two regimes: - **Pinned regime (correct):** validator derives from `schemaSnapshotId` captured at `working`. New-schema artifact → validation fails → task transitions to `failed` with `reason: artifact_schema_divergence`, and the client MAY renegotiate by re-submitting under the new c...",
    "operational_effect": "Downstream of a silent divergence, three effects compound: 1. **False completion propagates.** Any orchestrator that keys on `task.state == completed` treats the hollow artifact as ground truth. In a multi-agent swarm, this artifact becomes another agent's input, and the missing field is interpreted as \"no constraint\" rather than \"contract violated.\" 2. **Re..."
  },
  "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": "51ed619ca0afea63bd37ca69491be729a75a094f73a4f41988657f4b41e73f1b",
    "verified_classes": [
      "ArtifactSchemaDivergence",
      "TaskState",
      "SchemaSnapshot",
      "TaskEnvelope"
    ],
    "verified_functions": [
      "pin_schema_at_working",
      "ingest_terminal_artifact",
      "from_card",
      "transition"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ArtifactSchemaDivergence"
    ],
    "sample_fail_closed_invariants": [
      "assert env.state is TaskState.FAILED"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
