{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-silent-contract-skew-during-a2a-v1-0-schema-evolution-and-how-to-detect-it-before-handoff-state-is-lost",
  "title": "What structural signals indicate a silent contract skew during A2A v1.0 schema evolution, and how to detect it before handoff state is lost",
  "date_of_record": "2026 November 30",
  "scope": "Applies to A2A v1.0 agent-to-agent task handoffs where the callee's declared Agent Card schema has evolved (added, renamed, or retyped fields) relative to the caller's cached contract. Does not cover transport-level faults, TLS/auth failures, or MCP tool schema negotiation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-silent-contract-skew-during-a2a-v1-0-schema-evolution-and-how-to-detect-it-before-handoff-state-is-lost.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-silent-contract-skew-during-a2a-v1-0-schema-evolution-and-how-to-detect-it-before-handoff-state-is-lost.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-silent-contract-skew-during-a2a-v1-0-schema-evolution-and-how-to-detect-it-before-handoff-state-is-lost.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1583,
    "python_slice_tokens": 280,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a rejected handoff. A2A's `message/send` and `tasks/send` methods validate against the callee's *advertised* Agent Card, and a strict schema mismatch usually surfaces as a clean `-32602 InvalidParams` error. The dangerous boundary is the **additive-compatible** evolution: the callee adds a new required-by-semantics field (e.g., `artifact.p...",
    "what_was_observed": "A three-agent pipeline (planner → executor → auditor) ran against a callee whose Agent Card had been bumped from `1.0.3` to `1.0.4`. The diff was one field: `Task.metadata.context_refs` changed from `array<string>` (optional) to `array<ContextRef>` (optional, where `ContextRef` is `{id, hash, ttl_s}`). Because both are optional and `array` in both cases, the callee's `jsonschema` validator—configured with `additional...",
    "condition_of_validity": "The silent-skew failure requires all four of the following to hold simultaneously: 1. **Optionality preservation.** The evolved field remains `optional` in the schema, so `required` validation passes. 2. **Type-erasure tolerance.** The callee's runtime deserializer either drops unknown shapes, coerces them, or defaults them—rather than raising. This is the d...",
    "decision_boundary": "The operational decision is whether to treat a card-hash mismatch as a hard stop or a soft warning. The boundary is drawn by whether the diff touches fields the *callee's reasoning* consumes: - **Hard stop (`ContractSkewError`)** when the diff adds, removes, or retypes any field in the task's `metadata`, `artifact`, or `context` subtree, regardless of `requi...",
    "operational_effect": "Enforcing hash pinning plus subtree-scoped diff gating converts a class of deferred, semantically opaque failures (auditor consensus mismatch, context re-derivation, wasted reasoning tokens) into immediate, attributable protocol errors at the caller. In the incident above, this would have raised `ContractSkewError` at the planner's first `tasks/send`, before..."
  },
  "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": "3e913a234a029564bb6d9f386ab1797f1b64b2eb12112e191a08f14a8de6919e",
    "verified_classes": [
      "ContractSkewError"
    ],
    "verified_functions": [
      "card_hash",
      "diff_paths",
      "assert_contract_stable",
      "__init__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ContractSkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
