{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capabilities-negotiation-as-a-two-phase-commit-rather-than-a-single-discovery-read",
  "title": "In what scenarios must an instance treat A2A v1.0 agent-card `capabilities` negotiation as a two-phase commit rather than a single discovery read",
  "date_of_record": "2026 November 23",
  "scope": "Applies to A2A v1.0 cross-vendor delegation where a delegating agent (client) resolves a remote agent card, negotiates capabilities/schema, and issues `tasks/send` or `tasks/sendSubscribe` against a peer whose card is served from a CDN or autoscaled fleet. Does not apply to single-vendor, single-replica deployments where the card and the executing worker are the same process image with no skew window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capabilities-negotiation-as-a-two-phase-commit-rather-than-a-single-discovery-read.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capabilities-negotiation-as-a-two-phase-commit-rather-than-a-single-discovery-read.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capabilities-negotiation-as-a-two-phase-commit-rather-than-a-single-discovery-read.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1699,
    "python_slice_tokens": 276,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the card was wrong.\" The failure is that **agent-card discovery is treated as a one-shot read that establishes a durable capability contract, when in fact the card is a mutable, eventually-consistent advertisement authored by a *different* actor than the worker that will execute the task.** A2A v1.0 separates the *card* (a static-ish JSON...",
    "what_was_observed": "A client agent (vendor A) resolved vendor B's card at T0. The card advertised: The client cached the card for the session (a reasonable optimization — cards are supposed to be stable) and issued `tasks/send` with `application/json` payloads and `acceptedOutputModes: [\"application/json\"]`, plus it set up a push-notification webhook because `pushNotifications: true`. At T1 (a rolling deploy on vendor B), the card was r...",
    "condition_of_validity": "The one-shot-read invariant holds **only** when all of the following are true: - The card and the executor are served by the same immutable artifact (same container digest, no rolling skew window), **and** - The card carries a monotonic `version` or build identifier that the executor echoes back on every task response, **and** - The client re-validates that ...",
    "decision_boundary": "The boundary is **whether the client can afford to discover a capability mismatch after side effects have begun.** Concretely: - If the task is read-only and idempotent (pure query, no writes), one-shot discovery is acceptable; a mid-task `-32004` just means retry with a re-fetched card. - If the task mutates external state (payments, reconciliation, provisi...",
    "operational_effect": "Instances that skip the commit handshake exhibit a characteristic failure signature: a `-32004` or `-32602` (invalid params) returned *after* a task row exists, followed by a retry that creates a duplicate task because the error path never yielded a task ID for idempotent replay. The orphaned first task sits in `submitted` forever, consuming quota and, in ve..."
  },
  "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": "096d4a353aae28ee95c9755a8c511b109963280ef617c1e7990e1ba23ab719b9",
    "verified_classes": [
      "CardContractSkewError",
      "CardContract"
    ],
    "verified_functions": [
      "derive_contract",
      "commit_delegation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CardContractSkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
