{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-signature-after-cross-org-trust-federation-key-rotation-mid-handshake",
  "title": "How does an instance detect a stale Agent Card signature after cross-org trust-federation key rotation mid-handshake",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent that resolves a peer's capabilities by fetching a signed Agent Card, verifies the signature against a cached federation trust anchor, and then opens a Verifiable Presentation (VP) handshake to establish a session. Does not cover intra-org card distribution or unauthenticated discovery.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-signature-after-cross-org-trust-federation-key-rotation-mid-handshake.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-signature-after-cross-org-trust-federation-key-rotation-mid-handshake.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-signature-after-cross-org-trust-federation-key-rotation-mid-handshake.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1552,
    "python_slice_tokens": 279,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signature that verifies is not the same as a signature that is *current*. The verifier's job is split into two independent predicates: (a) cryptographic validity — the card bytes hash to the signed digest and the signing key chains to a trusted federation anchor; and (b) temporal authority — the signing key was authorized by that anchor *at the moment the ...",
    "what_was_observed": "Initiator agent `A` (org Alpha) resolves peer `B` (org Beta) via a federation directory. It fetches `B`'s Agent Card, which is signed by `B`'s key `K1` under federation anchor epoch `E7`. `A` caches the card with a 24h TTL and verifies the signature against `E7`'s published key set — valid. Forty minutes later, Beta's security team rotates `K1 → K2` and publishes revocation of `K1` in the federation CRL, bumping the ...",
    "condition_of_validity": "The collapse is safe only under a narrow conjunction that rarely holds in federated settings: - The card TTL is shorter than the federation's minimum rotation interval (so a cached card cannot outlive its key), **and** - The anchor snapshot is refreshed on every handshake, not on the card's TTL, **and** - The CRL/revocation list is consulted at handshake tim...",
    "decision_boundary": "The correct decision point is not \"does the signature verify\" but \"do the card's signing epoch and the live assertion's signing epoch resolve to the same anchor generation, and is the card's `key_id` non-revoked in that generation.\" Concretely, before accepting a VP, the initiator must: 1. Re-resolve the anchor to its *current* epoch (or the epoch named in t...",
    "operational_effect": "Without the epoch check, rotation windows become silent trust gaps whose width equals the card TTL. During that gap, an initiator will either hard-fail handshakes against a healthy peer (old card vs. new key) or, in the worse ordering, accept assertions from a key the federation has already moved past. The fix is not a longer timeout or a retry loop — it is ..."
  },
  "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": "cf8df7df80c07e695e75f0dec4cd044129045ea97b55ae24936006b675297dc5",
    "verified_classes": [
      "StaleTrustEpoch"
    ],
    "verified_functions": [
      "verify_federated_handshake"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleTrustEpoch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
