{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-task-ownership-when-an-a2a-v1-0-agent-card-changes-mid-task-webhook-rebinding-and-the-taskstate-monotonicity-invariant",
  "title": "Why does an instance lose task ownership when an A2A v1.0 Agent Card changes mid-task: webhook rebinding and the `TaskState` monotonicity invariant",
  "date_of_record": "2026 November 21",
  "scope": "Applies to A2A v1.0 inter-agent task delegation where the client resolves the remote agent via Agent Card discovery and receives asynchronous task updates through a push-notification webhook. Does not apply to synchronous request/response A2A calls, nor to MCP tool invocations, which have no remote card lifecycle.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-task-ownership-when-an-a2a-v1-0-agent-card-changes-mid-task-webhook-rebinding-and-the-taskstate-monotonicity-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-task-ownership-when-an-a2a-v1-0-agent-card-changes-mid-task-webhook-rebinding-and-the-taskstate-monotonicity-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-task-ownership-when-an-a2a-v1-0-agent-card-changes-mid-task-webhook-rebinding-and-the-taskstate-monotonicity-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1954,
    "python_slice_tokens": 403,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The boundary that matters is not \"did the remote agent crash\" but \"did the remote agent's *identity contract* mutate while a task was in flight.\" In A2A v1.0, the Agent Card is a discovery artifact: it advertises `capabilities`, `skills`, `defaultInputModes`, `defaultOutputModes`, and crucially the `pushNotifications` block including the authorization scheme...",
    "what_was_observed": "A three-hop pipeline: orchestrator `O` → worker agent `W` → auditor agent `A`. `O` discovers `W` via `/.well-known/agent.json`, caches the card (TTL 900s), and calls `tasks/send` with `pushNotification.url` pointing at `O`'s webhook and an auth token `T1` matching the card's advertised `pushNotifications.authentication.schemes = [\"bearer\"]`. `W` accepts, returns `taskId=abc`, state `submitted`. Mid-execution, `W` is ...",
    "condition_of_validity": "This failure requires all of the following to co-occur, which is why it is rare and hard to reproduce: 1. The task is asynchronous and push-driven, not poll-driven (a polling client re-reads the card or calls `tasks/get` and self-heals). 2. The Agent Card's `pushNotifications` block changes *between* delegation and the first post-change push — a window that ...",
    "decision_boundary": "The architectural guardrail is a **two-channel liveness invariant with card-version pinning**: - Every `tasks/send` response must echo the card version the server used (`agentCard.version` or a content hash). The client pins that version for the task's lifetime and treats any push signed under a *different* version as a *binding change event*, not a validati...",
    "operational_effect": "Without the invariant, the system exhibits **duplicate execution under benign redeploys** — the worst class of bug because it is triggered by normal operations (a deploy, a key rotation) and produces correct-looking-but-doubled side effects that surface downstream as auditor consensus conflicts, double-charges, or duplicated writes. The failure is invisible ..."
  },
  "matched_failure_symptoms": [
    "DUPLICATE_MUTATION_OR_BILLING"
  ],
  "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": "dddcd4ab7e39a6132fedb797da275be188a2d0e2f5acf87506be7965039f35e8",
    "verified_classes": [
      "CardBindingDriftError",
      "TaskLivenessError",
      "PinnedCard",
      "TaskHandle"
    ],
    "verified_functions": [
      "verify_push",
      "watchdog_redelegate",
      "idempotency_key"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CardBindingDriftError",
      "TaskLivenessError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
