{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-discovery-when-a-peer-re-advertises-capabilities-between-task-submission-and-the-firs",
  "title": "How should an instance detect a stale Agent Card during A2A v1.0 discovery when a peer re-advertises capabilities between task submission and the first push-notification callback",
  "date_of_record": "2026 November 26",
  "scope": "Applies to A2A v1.0 clients that discover a remote agent via `/.well-known/agent-card.json`, submit a `tasks/send` (or `tasks/sendSubscribe`) call, and receive asynchronous progress via a push-notification webhook whose JWT is validated against the signing keys advertised in that same Agent Card. Does not cover synchronous `tasks/get` polling, nor A2A versions prior to 1.0 where the card carried no `signatures` field.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-discovery-when-a-peer-re-advertises-capabilities-between-task-submission-and-the-firs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-discovery-when-a-peer-re-advertises-capabilities-between-task-submission-and-the-firs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-stale-agent-card-during-a2a-v1-0-discovery-when-a-peer-re-advertises-capabilities-between-task-submission-and-the-firs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1860,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the peer changed its capabilities.\" Peers legitimately re-advertise. The failure is that the **Agent Card is treated as a point-in-time artifact at submission, while the push webhook is authenticated against a *re-fetched* card at callback time**. Between those two reads the card's `signatures[].protected` header can rotate its `kid`, and...",
    "what_was_observed": "A client agent (call it D) discovered peer P at `https://p.example/.well-known/agent-card.json`. The card advertised `capabilities.pushNotifications: true`, `skills[].id: \"invoice-reconcile\"`, and a `signatures` array with `kid: \"p-2026-04\"`. D validated the JWS, submitted a task, and stored `{taskId, cardHash, kid}` in its task ledger. The task entered `submitted → working` and P returned a `pushNotificationConfig` ...",
    "condition_of_validity": "The guardrail is a **pinned card reference carried in the task ledger and enforced at callback time**. At submission, D must persist the *entire* signed card (or a content hash of the canonical JWS payload) keyed by `taskId`. At callback, D must verify the webhook JWT against the key set derived from that pinned card, and must *additionally* accept a bounded...",
    "decision_boundary": "The boundary between \"accept and advance\" and \"reject and reconcile\" is a single predicate evaluated at callback time: - If `callback.kid == ledger.pinned_kid` → verify, accept, no card fetch. - If `callback.kid != ledger.pinned_kid` **and** re-fetched card contains `callback.kid` **and** `kid_chain` includes `ledger.pinned_kid` → verify against new key, acc...",
    "operational_effect": "After adopting the pinned-card guardrail, D's ledger carried `{taskId, pinned_card_jws, pinned_kid, submitted_at}` for every task. Callback handling became a two-phase operation: cryptographic verification against the pinned key set, then a non-terminal `input_required` hold on any rotation mismatch. The observed failure — dual terminal states for one `taskI..."
  },
  "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": "c0b7151f9f6afbb701434bbfc853c6fb65344ea751ac22562a4a78377f1d0b7d",
    "verified_classes": [
      "CardRotationUnverified",
      "SignatureInvalid",
      "PinnedCard",
      "TaskLedger",
      "Callback"
    ],
    "verified_functions": [
      "handle_callback",
      "content_hash"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CardRotationUnverified",
      "SignatureInvalid"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
