{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-peer-s-agent-card-signature-after-successful-jws-verification-the-kid-rotation-replay-window-in-a2a-v1-0-discovery",
  "title": "When must an instance reject a peer's Agent Card signature after successful JWS verification: the `kid`-rotation replay window in A2A v1.0 discovery",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A v1.0 cross-vendor task delegation where the delegating instance verifies a peer's signed Agent Card (JWS detached or compact) against a JWKS fetched from the peer's `/.well-known/agent-card.json` and a key set advertised in `signatures[].header.kid`. Does not apply to intra-vendor mTLS-pinned peers, nor to unsigned Agent Cards in local trust domains.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-agent-card-signature-after-successful-jws-verification-the-kid-rotation-replay-window-in-a2a-v1-0-discovery.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-agent-card-signature-after-successful-jws-verification-the-kid-rotation-replay-window-in-a2a-v1-0-discovery.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-agent-card-signature-after-successful-jws-verification-the-kid-rotation-replay-window-in-a2a-v1-0-discovery.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1952,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"signature verification failed.\" It is the opposite: signature verification *succeeds* against a key that the peer has already revoked and rotated away from, because A2A v1.0 discovery treats the Agent Card's `kid` as a self-asserted hint and the JWKS fetch as an independent, unsynchronized step. A verifier that (a) fetches the card, (b) r...",
    "what_was_observed": "A delegating orchestrator (`orchestrator-A`) handed a long-running task to a vendor agent (`vendor-B`) whose Agent Card advertised `securitySchemes` with a JWS signature block: `vendor-B` rotated its signing key on 2026-05-02, publishing `kid: b-2026-05-02` in the card and *retaining* `b-2026-04-11` in its JWKS for a 30-day grace period to avoid breaking cached cards. `orchestrator-A` caches the Agent Card for 24h (a...",
    "condition_of_validity": "The naive \"verify JWS against JWKS\" check is only sound when all of the following hold simultaneously: - The peer's JWKS `kid` set and its task-worker key-acceptance set are identical (usually false — grace windows exist precisely because they diverge). - The card's cache TTL is ≤ the peer's key-rotation grace period (often false; 24h cache vs. 30-day grace ...",
    "decision_boundary": "The delegating instance must reject the cached card and force a re-fetch when **either**: - `card.signatures[].protected.kid` is not in the peer's JWKS *current* (non-grace) key set, where \"current\" is determined by the JWKS `x5c`/`exp` or an explicit `kid_status: current|grace` claim — not by mere presence; **or** - the cached card's `issuedAt` plus the pee...",
    "operational_effect": "Without this gate, cross-vendor delegations exhibit a characteristic silent-failure signature: the orchestrator's task state reaches `completed`, the peer's audit log records `rejected_unauthorized`, and neither side's metrics alert, because each side's local invariant is satisfied. The failure surfaces only when a downstream consumer of the result notices t..."
  },
  "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": "60c589935b35474097e4f5db48a4e74bff72d39c5e62d0a1198b5e6e139f72e9",
    "verified_classes": [
      "KeyLineageMismatch",
      "AgentCard",
      "JwksView"
    ],
    "verified_functions": [
      "assert_card_delegable"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "KeyLineageMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
