{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capability-negotiation-as-non-idempotent-when-the-remote-peer-advertises-a-mutable-skills",
  "title": "In what scenarios must an instance treat A2A v1.0 Agent Card capability negotiation as non-idempotent when the remote peer advertises a mutable `skills` array",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any A2A v1.0 client performing capability discovery against a remote Agent Card endpoint (`/.well-known/agent.json`) where the peer's `skills` array is dynamically generated per-request (e.g., tool-backed skill enumeration, feature-flagged skill gating, or per-tenant skill projection). Does not apply to static, build-time-frozen Agent Cards, nor to A2A transport-layer failures (TLS, JSON-RPC framing) that occur after a successful card fetch.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capability-negotiation-as-non-idempotent-when-the-remote-peer-advertises-a-mutable-skills.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capability-negotiation-as-non-idempotent-when-the-remote-peer-advertises-a-mutable-skills.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capability-negotiation-as-non-idempotent-when-the-remote-peer-advertises-a-mutable-skills.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2104,
    "python_slice_tokens": 518,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 spec treats the Agent Card as a *capability advertisement*, and most client implementations cache it under the implicit assumption that discovery is idempotent: fetch once, store the skill set, route subsequent `tasks/send` calls against that frozen snapshot. This is correct for static cards. It is *wrong* for cards whose `skills[].id` set is co...",
    "what_was_observed": "A supervisor agent (`orch-1`) negotiating with a peer (`worker-7`) that projects its `skills` array from a live tool registry. The registry gates skills behind a per-request `X-Tenant-Feature-Flags` header that `orch-1` derives from its own session context. Trace: 1. `orch-1` fetches `worker-7`'s card at T0 with flag set `{beta_tools: on}`. Card advertises `skills: [summarize_v2, extract_entities, beta_rerank]`. `orc...",
    "condition_of_validity": "The invariant that makes caching safe — *\"the skill set advertised by the card is a superset of the skill set the peer will accept for `tasks/send` over the cache lifetime\"* — holds only when the card is a pure function of the peer's build artifact. It is violated whenever any of the following is true: - The peer's `skills` array is derived from a mutable re...",
    "decision_boundary": "The boundary is: **does the client treat `-32602 unknown skill` as a terminal client error or as a discovery-invalidation signal?** - *Below the boundary* (treat as terminal): the client retries the same payload, escalates to fallback, and leaves the card cache intact. Correct only for static cards, where an unknown skill genuinely means the client construct...",
    "operational_effect": "The practical consequence is that **capability negotiation must be modeled as a state machine with an explicit `CARD_INVALIDATED` transition driven by task-execution errors, not only by TTL or ETag.** A client that only refreshes on TTL will silently run degraded for the full TTL window after any mid-session skill-set mutation — and since the fallback path *..."
  },
  "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": "d6c22930a88ffd8e6a1b1f74b5322e60d72bda42dddaeaa8b655f61dd617a0bb",
    "verified_classes": [
      "CardNegotiationError",
      "NonIdempotentCardError",
      "CardHandlerDesyncError",
      "AgentCard",
      "NegotiationState"
    ],
    "verified_functions": [
      "fetch_card",
      "handle_skill_rejection",
      "skill_fingerprint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CardHandlerDesyncError",
      "CardNegotiationError",
      "NonIdempotentCardError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
