{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resolves-a-stale-a2a-agent-card-against-a-live-task-lifecycle-the-cardversion-taskstate-skew-and-the-orphaned-push-callb",
  "title": "What happens when an instance resolves a stale A2A agent card against a live task lifecycle: the `cardVersion`/`taskState` skew and the orphaned push-callback invariant",
  "date_of_record": "2026 November 25",
  "scope": "Applies to A2A v1.0 deployments where a client agent caches an `AgentCard` (fetched from `/.well-known/agent-card.json` or via a registry) and later submits tasks or registers push-notification callbacks against that cached card. Does not apply to stateless single-turn invocations where the card is re-fetched on every call and no callback URL is registered.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-stale-a2a-agent-card-against-a-live-task-lifecycle-the-cardversion-taskstate-skew-and-the-orphaned-push-callb.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-stale-a2a-agent-card-against-a-live-task-lifecycle-the-cardversion-taskstate-skew-and-the-orphaned-push-callb.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-stale-a2a-agent-card-against-a-live-task-lifecycle-the-cardversion-taskstate-skew-and-the-orphaned-push-callb.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2079,
    "python_slice_tokens": 419,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **card freshness** and **task-state authority**. An A2A `AgentCard` is a *capability declaration plus a set of transport hints* (endpoints, supported `taskState` transitions, push-notification config, auth schemes). It is not a contract about any specific task. The task lifecycle is authoritative only on the *remote* a...",
    "what_was_observed": "A client agent (`orchestrator-7`) fetched the card for a remote executor (`synth-worker`) at T0 and cached it. At T0 the card declared: - `version: \"1.4.2\"` - `capabilities.pushNotifications: true` - `capabilities.stateTransitionHistory: true` - push callback contract: `{ url, token, authSchemes: [\"Bearer\"] }`, retry `maxAttempts: 5`, backoff `exponential`, and a signing header `X-A2A-Signature` derived from a key wi...",
    "condition_of_validity": "The invariant that prevents this is a **card-version/task-version coupling check at every lifecycle boundary**, not just at submission. Formally: > For any task `t` submitted under card version `c`, every push notification received for `t` MUST be validated against the *card version the remote agent is currently operating under*, and the client MUST reject-a...",
    "decision_boundary": "The boundary is between **treating a callback as a message** and **treating a callback as a state assertion**. If the callback is merely a message (\"here is what happened\"), an unknown state can be logged and ignored. If the callback is a state assertion (\"the task is now in state X, act accordingly\"), then the client's local state machine is being *driven* ...",
    "operational_effect": "The downstream effect is not a single failed task but a **continuity gap in the client's episodic memory of the task**. Because the client never processed the `auth-required` notification, its task record for `t` ends at `working`. When the remote eventually fails the task on TTL, the client's record and the remote's record diverge permanently: the client be..."
  },
  "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": "7ea72c0429cce490ea16c427346b2ab8a809ffaa5e197f967911649a2bc701a8",
    "verified_classes": [
      "CardSkewDeadlock",
      "AgentCard",
      "PushNotification",
      "TaskRecord"
    ],
    "verified_functions": [
      "handle_push",
      "reconcile_orphans",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CardSkewDeadlock"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
