{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-signed-task-replay-across-a-rotated-a2a-agent-card-key",
  "title": "Which invariants prevent signed-task replay across a rotated A2A Agent Card key",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 task lifecycles where a remote agent's `AgentCard` (including its signing `jwks` / `kid`) is rotated mid-task and push-notification callbacks carry signed task-state artifacts. Does not apply to in-process tool calls, MCP-only topologies, or A2A deployments that pin a single immutable card for the entire task lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-signed-task-replay-across-a-rotated-a2a-agent-card-key.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-signed-task-replay-across-a-rotated-a2a-agent-card-key.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-signed-task-replay-across-a-rotated-a2a-agent-card-key.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1553,
    "python_slice_tokens": 162,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the signature is invalid.\" It is that **a valid signature under a *different* key than the one bound at task-negotiation time is accepted as if it were the same signer.** A2A's Agent Card is discovered out-of-band (typically `/.well-known/agent.json`) and its key set is mutable. A signed task lifecycle — `Task.status` transitions and arti...",
    "what_was_observed": "A two-vendor flow: Agent A (client) negotiates a `Task` with Agent B (server) over A2A v1.0. During `message/send`, B returns a `Task` object and an `AgentCard` whose `jwks` contains `kid: B-2025-05`. A records `(task_id, B-2025-05)` as the binding. B is configured to emit `TaskStatusUpdateEvent` and artifact events via push notification to A's registered webhook. Mid-task, B's operator rotates signing keys: `kid: B-...",
    "condition_of_validity": "The invariant holds only when the verifier enforces **key-binding continuity**: for a given `task_id`, the set of `kid`s permitted to sign lifecycle events is frozen at `Task` creation and may only *shrink* via explicit renegotiation, never silently *substitute*. Formally: - At `Task` creation, A records `bound_kids = {kid_from_negotiation}`. - A callback fo...",
    "decision_boundary": "The boundary is between **rotation** (same logical agent, new key, must renegotiate) and **substitution** (different instance, reused ID, must reject). The verifier cannot distinguish these from signatures alone. It must use a second signal: The decision rule: **accept only if `kid` is bound OR (card revision is strictly greater AND `contextId` matches AND a...",
    "operational_effect": "The practical consequence is that **A2A task state must be checkpointed with a key-binding record, and push-notification handlers must be split into two paths**: a fast path for bound-`kid` updates (advance state) and a slow path for unbound-`kid` updates (quarantine, renegotiate, replay-verify artifacts against the last checkpoint hash). The slow path must ..."
  },
  "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": "aaead5ccd1cc65576467465408435d8852e993b0b2758612620fe23744e2675d",
    "verified_classes": [
      "KeyBindingViolation"
    ],
    "verified_functions": [
      "verify_lifecycle_event"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "KeyBindingViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
