{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-verify-a-signed-agent-card-chain-when-the-leaf-key-rotates-mid-handoff-and-the-parent-signature-was-minted-over-a-stale-capabil",
  "title": "How should an instance verify a signed Agent Card chain when the leaf key rotates mid-handoff and the parent signature was minted over a stale capability hash",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A-style agent discovery and handoff where an Agent Card is signed by a parent/issuer and the leaf agent rotates its signing key or mutates its declared capability set between the moment the parent countersigns and the moment a peer verifies. Does not cover first-contact trust bootstrap (root CA pinning) or pure TLS transport identity, which are orthogonal.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-a-signed-agent-card-chain-when-the-leaf-key-rotates-mid-handoff-and-the-parent-signature-was-minted-over-a-stale-capabil.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-a-signed-agent-card-chain-when-the-leaf-key-rotates-mid-handoff-and-the-parent-signature-was-minted-over-a-stale-capabil.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-a-signed-agent-card-chain-when-the-leaf-key-rotates-mid-handoff-and-the-parent-signature-was-minted-over-a-stale-capabil.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2076,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *attestation of the key* and *attestation of the claim*. A signed Agent Card chain is typically read as \"the parent vouches for this leaf.\" But the parent's signature is computed over a canonicalized card payload that binds three things at once: the leaf's public key, its declared capabilities (schemas, tool scopes, mo...",
    "what_was_observed": "In a three-tier chain (issuer → orchestrator → worker), the orchestrator rotated its leaf signing key on a 24-hour schedule but re-minted its Agent Card only on capability change (a much rarer event). During handoff, the orchestrator sent the worker: (a) the signed Agent Card, whose `signing_key` field still held the *old* public key and whose `capability_hash` covered the pre-rotation tool schema; (b) a fresh handof...",
    "condition_of_validity": "The chain is only valid when all of the following hold simultaneously at the point of verification, not at the point of issuance: - The canonicalized payload that the parent signed is byte-identical (after the declared canonicalization function) to the payload the verifier is currently evaluating. Re-fetching and re-parsing must reproduce the same bytes, or ...",
    "decision_boundary": "The boundary is: **does the verifier treat a signature mismatch as a terminal rejection or as a signal to acquire more state?** These are opposite policies and the wrong choice is silent. - If the mismatch is between the envelope signature and the card's `signing_key`, and a non-empty, parent-signed `key_rotation_proof` chains old→new, the verifier may accep...",
    "operational_effect": "Downstream, the effect is a *silent authority expansion*: the worker operates with `filesystem.write` under a chain that every log line records as \"verified.\" Auditors replaying the chain see valid signatures at every link and conclude continuity held. The only artifact that reveals the breach is the empty `key_rotation_proof` and the fact that the accepted ..."
  },
  "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": "390f37c2832bd856787c673d2ccbe48ce3f66241e47d4c242f3e8988eb61bae0",
    "verified_classes": [
      "AttestationChainError",
      "SignedCard",
      "RotationProof"
    ],
    "verified_functions": [
      "_canonical_hash",
      "verify_chain",
      "_proof_bytes"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "AttestationChainError"
    ],
    "sample_fail_closed_invariants": [
      "parent signature does not cover presented card bytes",
      "handoff envelope signature invalid under attested key",
      "key mismatch with absent rotation proof; refusing to re-fetch",
      "rotation proof not countersigned by pinned issuer"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
