{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-stale-agent-card-signature-after-the-key-rotates-mid-task",
  "title": "Why does an instance accept a stale Agent Card signature after the key rotates mid-task?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to A2A v1.0 task handoffs where the caller caches a remote Agent Card (including its `signatures[]` JWS block) and continues a long-running task across a remote key rotation. Does not apply to single-shot `message/send` calls that re-fetch the card on every invocation, nor to intra-process agent calls where no signed card is exchanged.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-stale-agent-card-signature-after-the-key-rotates-mid-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-stale-agent-card-signature-after-the-key-rotates-mid-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-stale-agent-card-signature-after-the-key-rotates-mid-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1961,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the signature is invalid.\" The signature is *valid* — it was valid at the moment the card was fetched. The failure is that A2A v1.0 binds the signature to the *card bytes*, not to the *task lifetime*. A caller that validated a card at `t0` and then drives a task through `completed` at `t1` has no protocol-level obligation to re-validate, ...",
    "what_was_observed": "A three-hop task: orchestrator `O` fetches Agent Card `C_A` from vendor `A` at `t0`, verifies the JWS against `A`'s published JWKS, and stores `(C_A, kid_A_1, task_id)`. `O` then drives `A` through a multi-turn `input-required` loop over ~40 minutes. At `t0+22min`, vendor `A` rotates its signing key (`kid_A_1 → kid_A_2`) as part of routine hygiene; the old key remains in the JWKS for a 1-hour grace window, then is re...",
    "condition_of_validity": "The invariant that must hold for cross-vendor artifact exchange to be sound is: > For every artifact accepted under card `C`, the `kid` in the artifact's `signatures[]` MUST be resolvable in the JWKS snapshot that was current at *artifact-emission time*, and that snapshot MUST be a superset of the snapshot current at *card-fetch time*. The second clause is t...",
    "decision_boundary": "The boundary is not \"rotate or don't rotate.\" It is: **at what point in the task lifecycle does the caller re-resolve the trust anchor?** Three defensible policies, each with a cost: The decision boundary is the choice between **Transition** and **Lazy**. Transition is correct but pays a fetch per task. Lazy is correct *only if* the unknown-`kid` handler is ...",
    "operational_effect": "Downstream of the boundary, three concrete effects: 1. **Split-brain terminal state.** `O` records `task_id` as `failed`; `A` records it as `completed`. Reconciliation requires out-of-band query (`tasks/get`) against `A`, which itself must be authenticated under a `kid` `O` may no longer trust. The reconciliation path is the *least* tested code in any A2A in..."
  },
  "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": "10a30696065c2955df65ab2e60ace37bb7c44aee394e0b6794edd2ad3144cf29",
    "verified_classes": [
      "StaleCardSignatureError",
      "RotationChainBrokenError",
      "JwksSnapshot",
      "PinnedTaskTrust"
    ],
    "verified_functions": [
      "revalidate_on_terminal",
      "revalidate_on_unknown_kid"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RotationChainBrokenError",
      "StaleCardSignatureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
