{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-agent-card-capability-drift-from-silently-renegotiating-an-in-flight-a2a-task-into-an-incompatible-terminal-state",
  "title": "Which invariants prevent Agent Card capability drift from silently renegotiating an in-flight A2A task into an incompatible terminal state",
  "date_of_record": "2026 November 26",
  "scope": "Applies to A2A v1.0 task lifecycles where a client agent discovers a remote agent via `/.well-known/agent.json` (Agent Card), negotiates a task, and the remote agent's card or capability surface changes between negotiation and completion. Does not cover A2A transport-level TLS/identity failures or MCP tool-schema negotiation, which have separate invariants.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-renegotiating-an-in-flight-a2a-task-into-an-incompatible-terminal-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-renegotiating-an-in-flight-a2a-task-into-an-incompatible-terminal-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-renegotiating-an-in-flight-a2a-task-into-an-incompatible-terminal-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1753,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The Agent Card is a *discovery-time snapshot*, not a *negotiation-time contract*. A2A v1.0 treats the card as the source of truth for `skills`, `capabilities` (e.g., `streaming`, `pushNotifications`, `stateTransitionHistory`), and `defaultInputModes`/`defaultOutputModes`. But the card is re-fetched by clients on cache expiry, and remote agents are frequently...",
    "what_was_observed": "A client agent (`planner`) discovered `summarizer` via `GET /.well-known/agent.json`, which advertised `capabilities.streaming: true`, `skills: [{\"id\": \"summarize-v2\", \"inputModes\": [\"text/plain\"], \"outputModes\": [\"text/markdown\"]}]`, and `stateTransitionHistory: true`. The planner sent `tasks/sendSubscribe` (streaming required) and received a task in state `working` with a `contextId`. Mid-stream, the operator redep...",
    "condition_of_validity": "This failure requires the conjunction of four conditions, and it does *not* occur if any one is absent: 1. The remote agent is reachable at a stable well-known URL across a redeploy (the common case for managed agents). 2. Task state is persisted across the redeploy, so `tasks/get` returns a non-terminal state for a task whose handler no longer exists. If st...",
    "decision_boundary": "The operational decision is where to place the authority for \"what this task may do\": - **Card-authoritative (naive):** re-read card each turn, adapt. Fails as above — a legal card change mid-task renegotiates the contract without the client's consent and without a terminal signal. - **Task-authoritative (correct):** capture `{card_etag_or_hash, skill_id, re...",
    "operational_effect": "Without the binding invariant, the observable effect is a **silent liveness violation**: the task is non-terminal (`working`) but has no live handler, so it consumes a slot in the client's concurrency budget and the server's task table for the full TTL (here, 30 minutes) before being reaped. In a planner with N concurrent task slots, a single redeploy can we..."
  },
  "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": "da2cc1ad6167fdb3c3a1f7cbbf6b4a1990b688f26e626a52e68336fc584fa034",
    "verified_classes": [
      "CapabilityDriftError",
      "NegotiationTuple",
      "InFlightTask"
    ],
    "verified_functions": [
      "verify_task_against_current_card",
      "reconcile_on_deploy",
      "capture"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
