{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-trust-anchor-when-a-federated-did-document-rotates-its-verification-method-mid-handoff",
  "title": "How does an instance detect a stale trust anchor when a federated DID document rotates its verification method mid-handoff",
  "date_of_record": "2026 November 26",
  "scope": "Applies to cross-org agent trust federation where an agent presents a Verifiable Credential (VC) whose issuer DID resolves to a DID document containing a `verificationMethod` keyed by `assertionMethod`. Does not apply to single-org deployments with a static trust registry, nor to bearer-token schemes where the issuer is the sole verifier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-trust-anchor-when-a-federated-did-document-rotates-its-verification-method-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-trust-anchor-when-a-federated-did-document-rotates-its-verification-method-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-trust-anchor-when-a-federated-did-document-rotates-its-verification-method-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1818,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired credential\" and it is not \"revoked key.\" It is **anchor rotation race**: the issuer rotates the `verificationMethod` in its DID document (adding a new key, retiring the old one, or changing the `controller`), and the verifying agent's cached trust anchor still points at the *previous* verification method. Because DID documents are...",
    "what_was_observed": "A two-org federation: Org A (issuer, `did:web:issuer.a.example`) issues agent-capability VCs to Org B's orchestrator. Org B pins the issuer's `assertionMethod` key `#key-1` at federation onboarding (a signed trust anchor stored in the verifier's config). Six weeks later, Org A's security team rotates to `#key-2`, publishes the updated DID document, and begins signing new VCs with `#key-2`. `#key-1` remains in the doc...",
    "condition_of_validity": "The invariant that must hold for federated trust to be continuous across rotation: > A verifier's trust anchor must bind to the issuer's *authority to rotate*, not to a specific `verificationMethod` fingerprint. The anchor is valid iff the credential's `verificationMethod` is (i) present in the resolved DID document's `assertionMethod`, AND (ii) the resolved...",
    "decision_boundary": "The instance must decide, per inbound credential, between three actions. The boundary is drawn by *what the verifier can prove about the key's history*: - **Accept** — `verificationMethod` is in current `assertionMethod`, `controller` matches anchor, AND the verifier has a recorded `first_seen` for this key with no subsequent retirement event. Safe. - **Acce...",
    "operational_effect": "Federation onboarding must persist, per issuer DID: the `controller`, the full `verificationMethod` set at onboarding time, and a monotonic `anchor_version`. On every resolution, the verifier computes a set difference against the persisted version. New keys → `TrustAnchorRotated` (accept + refresh). Removed keys → `TrustAnchorRetired` (record retirement time..."
  },
  "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": "08c51cdce74cb30863105c9ac4a207e82f28e326b7cd08d9eaf650f37e514668",
    "verified_classes": [
      "TrustAnchorRotationError",
      "AnchorRecord",
      "ResolvedDidDocument"
    ],
    "verified_functions": [
      "reconcile_anchor"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TrustAnchorRotationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "datetime",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
