{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-during-an-in-flight-a2a-task-handoff-and-why-does-push-notification-re-registration-silently-orphan-the",
  "title": "How does an instance detect a stale Agent Card during an in-flight A2A task handoff, and why does push-notification re-registration silently orphan the original task?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to A2A v1.0 peers where an orchestrator discovers a remote agent via `/.well-known/agent.json`, dispatches a long-running task, and registers a push-notification webhook for completion. Does not cover synchronous request/response calls or discovery via static registry manifests that are re-fetched on every dispatch.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-an-in-flight-a2a-task-handoff-and-why-does-push-notification-re-registration-silently-orphan-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-an-in-flight-a2a-task-handoff-and-why-does-push-notification-re-registration-silently-orphan-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-an-in-flight-a2a-task-handoff-and-why-does-push-notification-re-registration-silently-orphan-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1939,
    "python_slice_tokens": 452,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An Agent Card is a *capability advertisement*, not a *capability lease*. In A2A v1.0 the card is fetched once at discovery and its `skills`, `capabilities.pushNotifications`, and `defaultInputModes` are treated by most client implementations as immutable for the lifetime of the peer relationship. The failure mode examined here is the mismatch between that as...",
    "what_was_observed": "A three-hop pipeline: orchestrator `O` discovers worker `W` at `t0`, reads `W.card.capabilities.pushNotifications = true`, `W.card.version = \"2.3.1\"`, and `W.card.securitySchemes` containing an OAuth2 scheme. `O` dispatches task `T-4471` with `pushNotificationConfig: {url: \"https://O/hooks/a2a\", token: <opaque>}`. `W` returns `TaskState.working` with `id: T-4471`. At `t0 + 40s`, `W` is redeployed. Its card bumps to `...",
    "condition_of_validity": "The invariant only holds — i.e., the failure only occurs — when all of the following are simultaneously true: 1. The task is long-running relative to the card's re-publication cadence. Short tasks complete before the card rotates and are unaffected. 2. The webhook registration is *bound to the card version at dispatch time* rather than re-validated against t...",
    "decision_boundary": "The architectural choice is whether the webhook registration is a *point-in-time grant* or a *standing subscription*. A2A v1.0's `pushNotificationConfig` is defined as the former — it is attached to a task, not to a peer — but most client code treats it as the latter because re-registering per task is expensive and the card is assumed stable. The correct bou...",
    "operational_effect": "Without the invariant, the failure is a silent divergence between two state machines that both believe they are correct. The caller's task is `working`; the callee's task is `completed`; the webhook is dead; the poll races retention. The observable symptom is a task that \"hangs\" — but it is not hung, it is *done and unobserved*. Downstream, this manifests as..."
  },
  "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": "de812458a5e8f952d8a968fc7625843ceb81fafb75831e4b33d2c69ff07ed309",
    "verified_classes": [
      "TaskState",
      "StaleCardDeliveryError",
      "RetentionRaceError",
      "AgentCard",
      "TaskRecord"
    ],
    "verified_functions": [
      "handle_delivery",
      "schedule_reconciliation_poll"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RetentionRaceError",
      "StaleCardDeliveryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
