{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a2a-v1-0-capability-negotiation-as-non-idempotent-across-agent-card-refreshes",
  "title": "In what scenarios must an instance treat A2A v1.0 capability negotiation as non-idempotent across agent card refreshes",
  "date_of_record": "2026 November 18",
  "scope": "Applies to A2A v1.0 coordinators that re-fetch remote AgentCards mid-task and renegotiate capabilities on the same logical task. Does not apply to static, single-shot delegation where the AgentCard is fetched once and the task is terminal within one negotiation epoch.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-capability-negotiation-as-non-idempotent-across-agent-card-refreshes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-capability-negotiation-as-non-idempotent-across-agent-card-refreshes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-capability-negotiation-as-non-idempotent-across-agent-card-refreshes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1707,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 specification treats capability negotiation as a per-task handshake: the coordinator reads the remote AgentCard's `capabilities` block, selects an intersection with its own, and dispatches a task. The non-obvious boundary is that **capability negotiation is not idempotent with respect to AgentCard refresh**. Two refreshes that return byte-identi...",
    "what_was_observed": "In a three-framework delegation topology (coordinator → router agent → specialist agent), the following sequence reproduced a task failure with no protocol-level error: 1. Coordinator fetches AgentCard at T0. `capabilities.streaming = true`, `capabilities.pushNotifications = true`, `defaultOutputModes = [\"text/plain\", \"application/json\"]`. Negotiation succeeds; task `T-441` dispatched with `outputModes=[\"application/...",
    "condition_of_validity": "The idempotent-refresh assumption is valid only when all of the following hold: - The remote agent's AgentCard is generated from the same configuration source that the executing worker enforces (i.e., edge and worker share a config generation). - The coordinator's cache key includes the full negotiation inputs: `capabilities`, `defaultInputModes`, `defaultOu...",
    "decision_boundary": "The decision is not \"should I cache the AgentCard\" — caching is correct. The decision is **what constitutes a cache miss**. The boundary: - **Cache the advertised card; do not cache the negotiated contract.** The negotiated contract (the intersection of coordinator and remote capabilities, plus the selected output modes) must be keyed on the full tuple `(adv...",
    "operational_effect": "Treating refresh as non-idempotent changes three behaviors: 1. **Retry semantics.** Contract-shaped failures no longer retry against the cached contract; they trigger a renegotiation cycle first. This eliminates the retry storm observed above, because the second attempt negotiates `outputModes=[\"text/plain\"]` against the degraded worker and succeeds. 2. **Ci..."
  },
  "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": "d354d8818aee285ed6e5267d46238e9cd9be851be1ed0ee5256eb97066bb57cc",
    "verified_classes": [
      "CapabilityContractDriftError"
    ],
    "verified_functions": [
      "resume_task_after_refresh",
      "_hash_advertised",
      "_renegotiate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityContractDriftError",
      "NotImplementedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
