{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-an-a2a-v1-0-agentcard-capability-declaration-as-a-frozen-contract-at-task-admission-time-rather-than-re-resolving-it-mid",
  "title": "How should an instance treat an A2A v1.0 AgentCard capability declaration as a frozen contract at task-admission time rather than re-resolving it mid-lifecycle",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any A2A v1.0 client instance that discovers a remote peer's AgentCard, admits a task, and then drives it through `submitted → working → input-required → completed/failed/canceled`. Does not cover transport-level retry semantics or TLS identity binding, which are governed separately.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-an-a2a-v1-0-agentcard-capability-declaration-as-a-frozen-contract-at-task-admission-time-rather-than-re-resolving-it-mid.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-an-a2a-v1-0-agentcard-capability-declaration-as-a-frozen-contract-at-task-admission-time-rather-than-re-resolving-it-mid.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-an-a2a-v1-0-agentcard-capability-declaration-as-a-frozen-contract-at-task-admission-time-rather-than-re-resolving-it-mid.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1927,
    "python_slice_tokens": 442,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not \"the peer lied about capabilities.\" It is that an A2A client re-reads or re-resolves the AgentCard *after* task admission and silently reconciles the live card against the capability set it validated at admission time. The AgentCard is a *discovery artifact*, not a *session contract*. Once a task is admitted, the client's...",
    "what_was_observed": "A client admitted a task against a peer whose card declared `capabilities.streaming: true` and `defaultOutputModes: [\"text/plain\"]`. It opened an SSE subscription for `TaskStatusUpdateEvent` frames. Mid-task, the peer redeployed: the new card served at the well-known location declared `capabilities.streaming: false` and dropped `text/plain` in favor of `application/json`. The client's card-refresh poller (added to ke...",
    "condition_of_validity": "The invariant \"peer capabilities are stable for the lifetime of a task\" holds only when the client controls the peer's deployment cadence (e.g. same-org, pinned version, no independent redeploy). It fails whenever the peer is independently operated — which is the normal A2A case, since A2A exists precisely to cross organizational boundaries. The correct inva...",
    "decision_boundary": "The boundary is: *does the incoming event carry a `taskId` that the client has already admitted?* - If **no** (new task, or discovery), resolve the live AgentCard, validate capabilities, and freeze a `CapabilitySnapshot` bound to the new `taskId`. - If **yes** (status event, artifact, resume, push callback), the client MUST consult the frozen snapshot, not t...",
    "operational_effect": "Enforcing the snapshot boundary converts the failure mode from \"silent split-brain with unbounded resume loop\" into \"bounded, observable divergence.\" Concretely: - Idempotency keys derive from `(taskId, status.state, status.timestamp)`, never from card version, so duplicate delivery of a status event is a no-op regardless of which card is live. - Output-mode..."
  },
  "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": "e4a30f6c5e946ee4a6e3762df62e698f9c1921388462756dce767c60c76b6a12",
    "verified_classes": [
      "CapabilityContractError",
      "TaskState",
      "CapabilitySnapshot",
      "TaskRecord",
      "A2AClient"
    ],
    "verified_functions": [
      "__init__",
      "refresh_live_card",
      "admit",
      "apply_status_event",
      "resume"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityContractError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
