{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-capability-drift-when-a2a-v1-0-extension-negotiation-races-a-mid-flight-tool-contract-version-bump",
  "title": "Which invariants prevent silent capability drift when A2A v1.0 extension negotiation races a mid-flight tool-contract version bump",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any A2A v1.0 peer that advertises tool capabilities via Agent Card extensions and negotiates per-task contracts at handoff time, where the callee may independently re-version a tool contract while a caller's task is in flight. Does not apply to stateless single-turn tool calls with no persisted Agent Card or to MCP-only transports that lack the A2A `extensions` array semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-drift-when-a2a-v1-0-extension-negotiation-races-a-mid-flight-tool-contract-version-bump.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-drift-when-a2a-v1-0-extension-negotiation-races-a-mid-flight-tool-contract-version-bump.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-drift-when-a2a-v1-0-extension-negotiation-races-a-mid-flight-tool-contract-version-bump.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1780,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the callee lacks a capability.\" It is that the callee *has* the capability under a *different contract shape* than the one the caller negotiated, and the negotiation protocol treats capability identity and contract identity as the same object. In A2A v1.0, an Agent Card advertises `skills[].extensions[]` with a `uri` and optional `pa...",
    "what_was_observed": "A two-agent pipeline: a planner agent (A) dispatches `invoice.reconcile` tasks to a worker agent (B) across a long-lived session. At T0, A fetches B's Agent Card, sees extension `uri: \"https://schemas.example/a2a/invoice-reconcile\"` with `params: {\"schema_version\": \"1.3\"}`, and caches the warrant. A's prompt template is frozen to emit arguments `{invoice_id, ledger_id, tolerance_cents}`. At T1, B's operator ships v1....",
    "condition_of_validity": "The invariant \"cache the Agent Card for the session lifetime\" is only valid when the callee guarantees that *any* change to a tool's accepted argument shape produces a *new extension URI*, not a new `params.schema_version` under the same URI. This is the A2A v1.0 extension stability clause, and it is routinely violated because it is stated as a SHOULD, not a...",
    "decision_boundary": "The boundary is whether a schema-validation failure at the callee is *recoverable by the caller's reasoning* or *recoverable only by renegotiation*. These require different A2A states and different caller loop branches. - If the failure is a missing optional field or an out-of-range value within the negotiated schema: `input-required` is correct, the caller'...",
    "operational_effect": "Without the digest-pinned invariant, the observed pipeline lost 3 of 7 invoices per batch to TTL cancellation with no error attribution—the orchestrator saw `canceled`, not `contract_drift`, and the operator's dashboards showed healthy throughput. The cost was silent: reconciliation gaps that surfaced only at month-end close. With the invariant, the first v1..."
  },
  "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": "5316a87d2f0843a2bf5d01635168b759751c344549491e4801d5ce88917fc6f7",
    "verified_classes": [
      "ContractDriftError",
      "NegotiatedContract"
    ],
    "verified_functions": [
      "verify_contract",
      "dispatch_task",
      "__init__",
      "digest"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ContractDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
