{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-task-resubscription-without-triggering-a-duplicate-task",
  "title": "How does an instance detect a Stale Agent Card During A2A v1.0 Task Resubscription Without Triggering a Duplicate Task",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 clients that cache remote agent cards and resubscribe to long-running tasks after transport interruption. Does not apply to stateless request/response skills or to A2A versions prior to v1.0's `Task` resubscription semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-task-resubscription-without-triggering-a-duplicate-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-task-resubscription-without-triggering-a-duplicate-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-task-resubscription-without-triggering-a-duplicate-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1572,
    "python_slice_tokens": 230,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the card is old.\" It is that **card staleness and task liveness are negotiated through two independent channels that can disagree**, and the resubscription path is the only place where the client must reconcile them atomically. An agent card advertises `capabilities`, `skills`, and a `taskLifecycle` block — including whether the agent sup...",
    "what_was_observed": "A research orchestrator held a cached card for a downstream \"literature-synthesis\" agent at `https://synth.internal/a2a`. The card declared `taskLifecycle.resubscribe: true` and `taskLifecycle.retentionSeconds: 3600`. A long synthesis task (`taskId: t-8842`) was in `working` state when the orchestrator's SSE stream dropped at T+41m due to a proxy idle timeout. The orchestrator's reconnect logic did the following in o...",
    "condition_of_validity": "The invariant that was violated: **a successful card fetch is not evidence of task liveness, and a matching card version is not evidence that the task's retention window has not elapsed.** Formally, for a resubscription to be safe, the client must establish: - `now - task.createdAt < card.taskLifecycle.retentionSeconds`, evaluated against the *task's* creati...",
    "decision_boundary": "The boundary is between **\"task is gone, safe to resend\"** and **\"task may be gone, unsafe to resend.\"** A2A v1.0's `404 TaskNotFound` collapses both into one response code. The client must disambiguate using state it already holds: - If `now - createdAt >= retentionSeconds` (using the freshly fetched card), `404` means *expired* → resend is safe, but the cl...",
    "operational_effect": "The orchestrator in the observation had no idempotency key and no retention check; it produced a duplicate synthesis with divergent citations that downstream auditors flagged as a verification replay discrepancy. The corrective guardrail is a three-gate resubscription procedure: (1) fetch card, (2) evaluate retention against task age and endpoint identity, (..."
  },
  "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": "89a5deb180065900f3ef5360ca2d37d1216da4aff1b708db9dc73ab9b96e2b34",
    "verified_classes": [
      "ResubscriptionInvariantError",
      "AgentCard",
      "TaskHandle"
    ],
    "verified_functions": [
      "resubscribe_guard"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResubscriptionInvariantError"
    ],
    "sample_fail_closed_invariants": [
      "fresh card no longer advertises tasks/resubscribe"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
