{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-silently-orphan-an-a2a-task-when-the-remote-agent-card-s-capabilities-pushnotifications-flag-flips-between-discovery-and-the-firs",
  "title": "Why does an instance silently orphan an A2A task when the remote Agent Card's `capabilities.pushNotifications` flag flips between discovery and the first `tasks/pushNotificationConfig/set` call?",
  "date_of_record": "2026 November 19",
  "scope": "Applies to A2A v1.0 client agents that (a) cache a remote Agent Card at discovery time, (b) submit a task via `tasks/send`, and (c) asynchronously register a push-notification webhook via `tasks/pushNotificationConfig/set`. Does not cover SSE-only streaming clients that never register a webhook, nor synchronous `tasks/sendSubscribe` flows where the response stream is held open.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-silently-orphan-an-a2a-task-when-the-remote-agent-card-s-capabilities-pushnotifications-flag-flips-between-discovery-and-the-firs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-silently-orphan-an-a2a-task-when-the-remote-agent-card-s-capabilities-pushnotifications-flag-flips-between-discovery-and-the-firs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-silently-orphan-an-a2a-task-when-the-remote-agent-card-s-capabilities-pushnotifications-flag-flips-between-discovery-and-the-firs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2165,
    "python_slice_tokens": 417,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **capability presence at discovery** and **capability enforcement at registration**. In A2A v1.0 the Agent Card is a *declaration* fetched from `/.well-known/agent.json` (or a resolved URL), and it carries a `capabilities` object whose `pushNotifications: boolean` field tells the client whether the remote agent su...",
    "what_was_observed": "A client agent (call it `orchestrator`) performs discovery against a remote `worker` at T0 and receives a Card with `capabilities.pushNotifications: true`, `capabilities.streaming: false`, and `defaultInputModes: [\"text/plain\"]`. It caches the Card with a 24h TTL. At T1 (7 minutes later) it submits `tasks/send` with `id: \"task-9f3a\"`. The worker accepts and returns a Task object in state `submitted`. At T2 the client...",
    "condition_of_validity": "The guardrail holds only under the following conjunction, and fails if any conjunct is false: 1. **Card freshness is bounded by task lifetime, not wall-clock TTL.** The cached `capabilities` object must be re-validated (via `agent/getAuthenticatedExtendedCard` or a re-fetch of `/.well-known/agent.json`) at the moment a task enters a state that *depends* on a...",
    "decision_boundary": "The boundary is between **optimistic subscription** and **verified subscription**. Optimistic subscription is correct only when the client and server share a trust domain where Card capability cannot change mid-task (single-tenant, no rolling deploys, no replica pools with divergent Cards). In every other case — and A2A's design explicitly anticipates federa...",
    "operational_effect": "The observable effect is a **task that is live on the server and dead on the client**, with no error surfaced to either side. The server sees a task that completed normally; its logs show a `tasks/pushNotificationConfig/set` that returned 200. The client sees a task in `working` with a webhook timer that has not fired because the timer was armed against a co..."
  },
  "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": "f8d1460f91f776faba7919a0fc4c1e84141b74794d1566adda0fa62cb37f00e3",
    "verified_classes": [
      "PushSubscriptionNotGranted",
      "TaskOrphaned",
      "AgentCard",
      "PushConfig",
      "SetResponse",
      "LocalTask"
    ],
    "verified_functions": [
      "register_push_subscription",
      "enter_webhook_wait",
      "reconcile"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "PushSubscriptionNotGranted",
      "TaskOrphaned"
    ],
    "sample_fail_closed_invariants": [
      "Card reports pushNotifications=false at set-time; fall back to polling.",
      "Card capability is stale; re-fetch before attempting subscription.",
      "set did not round-trip the subscription token; grant is unverified."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
