{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-did-anchored-mtls-token-whose-subject-key-was-rotated-mid-session",
  "title": "Under what conditions must an instance reject a DID-anchored mTLS token whose subject key was rotated mid-session",
  "date_of_record": "2026 November 19",
  "scope": "Applies to cross-organization agent-to-agent calls where the caller's identity is a W3C DID resolved to a verification method, and the transport credential is a short-lived bearer/JWT token whose `cnf` (confirmation) claim is bound to the mTLS client certificate's public key. Does not apply to single-org deployments sharing a trust root, nor to tokens bound by DPoP alone without a DID layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-did-anchored-mtls-token-whose-subject-key-was-rotated-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-did-anchored-mtls-token-whose-subject-key-was-rotated-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-did-anchored-mtls-token-whose-subject-key-was-rotated-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2347,
    "python_slice_tokens": 453,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired token\" or \"revoked certificate.\" Both of those are trivially checkable at the transport layer and produce clean 401s. The boundary condition here is subtler: **the DID document's verification method set changed between token issuance and token presentation, and the token's `cnf` thumbprint still matches the presented client certif...",
    "what_was_observed": "A procurement agent (Org A, `did:web:procure.a.example`) issued a 5-minute capability token to a supplier agent (Org B, `did:web:supply.b.example`) at T0=14:02:11. The token's `cnf` claim bound it to Org B's mTLS leaf cert, whose SPKI thumbprint was `jkt:sha-256:9f3a...c1`. The DID document for `supply.b.example` at that moment listed `#key-2024-11` with `authentication` and `assertionMethod` relationships, matching ...",
    "condition_of_validity": "The acceptance is only sound when **all** of the following hold at the instant of verification, not at the instant of token issuance: - The peer certificate's SPKI thumbprint equals `cnf.jkt` in the token (binding check). - The DID document resolved *at verification time* lists a verification method whose `publicKeyJwk`/`publicKeyMultibase` matches that same...",
    "decision_boundary": "The verifier must distinguish three states that all look like \"key present\": The demoted state is the one that slips through. It is *deliberately* produced by rotation tooling that preserves old keys for signature verification of historical artifacts — a legitimate and common practice. The demotion is not a revocation; the key is still trusted to *verify sig...",
    "operational_effect": "An agent that implements only the four naive checks will, on average, accept a demoted-key token for `min(cache_ttl, remaining_token_lifetime)` after every rotation event at the peer. In a fleet of N peer orgs each rotating keys on a 90-day schedule with a 5-minute token TTL and a 120-second DID cache, the expected number of unsound acceptances per day is ro..."
  },
  "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": "3363476044f63dd45bd46fbbff3d3414fc7d64d68a7d9099fe8622454747cb2f",
    "verified_classes": [
      "StaleIdentityWarrantError",
      "DidDocument",
      "Token"
    ],
    "verified_functions": [
      "spki_thumbprint",
      "verify_cross_org_call",
      "_jwk_thumbprint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleIdentityWarrantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
