{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-agent-card-capability-drift-from-silently-invalidating-in-flight-a2a-task-state-transitions",
  "title": "Which invariants prevent Agent Card capability drift from silently invalidating in-flight A2A task state transitions",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A v1.0 deployments where a caller agent caches or re-reads a remote Agent Card between the initial `tasks/send` and subsequent `tasks/get`/`tasks/send` continuations of a long-running task. Does not apply to single-shot, synchronous request/response invocations that complete within one transport round-trip and never re-resolve the card.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-invalidating-in-flight-a2a-task-state-transitions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-invalidating-in-flight-a2a-task-state-transitions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-invalidating-in-flight-a2a-task-state-transitions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1715,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two categorically different sources of A2A task failure, and conflating them produces the wrong remediation: 1. **Transport failure** — the remote agent is unreachable, times out, or returns a non-conformant HTTP status. This is detectable at the boundary and recoverable by retry. 2. **Card/state divergence** — the remote agent is fully reachable a...",
    "what_was_observed": "A caller agent (`orchestrator-A`) dispatched a multi-turn task to `worker-B` at revision `card-v7`. The card declared: - `capabilities.streaming: true` - `capabilities.stateTransitionHistory: true` - `skills[]` containing `summarize@2.1` with an `inputModes` of `[\"text/plain\"]`. `orchestrator-A` sent `tasks/send` and received `status.state: \"working\"` with a `stateTransitionHistory` array. Per standard practice, befo...",
    "condition_of_validity": "The invariant holds — and the failure is real — only when all of the following are true: - The remote agent is permitted to mutate its published Agent Card at runtime (A2A v1.0 does not forbid this; it only defines the card's shape, not its immutability). - The caller re-resolves the card between task turns rather than caching the dispatch-time card for the ...",
    "decision_boundary": "The architectural guardrail is a **card-revision binding at task creation, held for the task's lifetime**. Concretely: - On the first `tasks/send` that creates a task, record the exact card bytes (or a hash plus the fields that gate state-machine interpretation: `capabilities`, `skills[].id@version`, `inputModes`, `outputModes`) alongside `Task.id` and `cont...",
    "operational_effect": "With the binding in place, the observed failure is eliminated and replaced by an observable, bounded signal: - The remote `completed` state is correctly observed by `orchestrator-A` because it continues to request `historyLength` per the pinned `stateTransitionHistory: true`. - The `card-v7 → card-v8` transition is recorded as a `CardRevisionDrift` event wit..."
  },
  "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": "b2f6db9cb0c9d31bdbcbecc76a0edc5eb415446ef807a40fade7a2aeea269b78",
    "verified_classes": [
      "CardRevisionDriftError",
      "PinnedCard"
    ],
    "verified_functions": [
      "_card_hash",
      "pin_card_for_task",
      "resolve_task_view",
      "poll_task"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CardRevisionDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
