{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-task-from-a-stale-agent-card-and-then-lose-the-result-at-the-webhook-boundary",
  "title": "Why does an instance accept a task from a stale Agent Card and then lose the result at the webhook boundary?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to A2A v1.0 client instances that discover remote agents via Agent Card, transition tasks through the `submitted → working → completed` lifecycle, and rely on push-notification webhooks for terminal-state delivery. Does not apply to synchronous request/response-only A2A deployments where the client polls `tasks/get` for every state transition.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-task-from-a-stale-agent-card-and-then-lose-the-result-at-the-webhook-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-task-from-a-stale-agent-card-and-then-lose-the-result-at-the-webhook-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-task-from-a-stale-agent-card-and-then-lose-the-result-at-the-webhook-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2539,
    "python_slice_tokens": 598,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a discovery failure, a transport failure, or an authentication failure in isolation. It is a **card-to-task contract skew**: the Agent Card that the client fetched at discovery time declares a capability and a webhook contract, but the task is executed by a remote instance whose live contract has since diverged from the cached card. The cl...",
    "what_was_observed": "A client instance (`client-A`) discovered a summarization agent (`remote-S`) at 09:14 UTC. The fetched Agent Card declared: - `capabilities.pushNotifications: true` - `pushNotificationConfig.url: https://remote-s.example/hooks/v1` - `pushNotificationConfig.authentication.schemes: [\"hmac-sha256\"]` - `skills[0].id: \"summarize-v1\"`, `inputModes: [\"text/plain\"]` `client-A` cached the card with a 24-hour TTL and dispatche...",
    "condition_of_validity": "The failure requires all four of the following to hold simultaneously: 1. **Card caching with a TTL longer than the remote's redeploy cadence.** If the client re-fetches the card on every task submission, the skew window collapses to the redeploy interval itself. 2. **Push-notification delivery as the sole terminal-state channel.** If the client also polls `...",
    "decision_boundary": "The boundary is this: **a client may treat a cached Agent Card as authoritative for task *submission* only if it also treats push-notification delivery as *unverified* until the first notification's envelope is validated against the card version that produced it.** In practice, that means one of three architectural choices, and the choice must be made explic...",
    "operational_effect": "The immediate effect is a task that is `completed` on the server and `working` on the client, with no automatic recovery. The downstream effects compound: - **Caller-visible stall.** The caller's `await` on the task never resolves. If the caller has its own timeout, it fires and the caller treats the task as failed — but the server has already performed the ..."
  },
  "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": "fb73e2cd25927839264adc68e0a465607ad43422cf05634dddf42d349dad5e7a",
    "verified_classes": [
      "ContractSkewError",
      "CardCacheExpiredError",
      "AgentCard",
      "TaskRecord",
      "NotificationEnvelope",
      "A2AClient"
    ],
    "verified_functions": [
      "reconcile_via_poll",
      "is_expired",
      "fingerprint",
      "__init__",
      "submit_task",
      "receive_notification"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "CardCacheExpiredError",
      "ContractSkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "datetime",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
