{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-did-document-trust-anchor-during-a-cross-org-verifiable-presentation-handshake",
  "title": "How does an instance detect a stale DID document trust anchor during a cross-org verifiable presentation handshake",
  "date_of_record": "2026 November 30",
  "scope": "Applies to federated agent deployments where an agent (verifier) authenticates a peer agent's Verifiable Presentation (VP) against a DID document resolved from a foreign trust domain, and where that DID document may be rotated or deactivated between the verifier's cache fill and the presentation's `created`/`challenge` timestamp. Does not apply to intra-org handshakes where the resolver and the DID subject share a cache invalidation bus, nor to purely symmetric shared-secret handshakes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-did-document-trust-anchor-during-a-cross-org-verifiable-presentation-handshake.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-did-document-trust-anchor-during-a-cross-org-verifiable-presentation-handshake.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-did-document-trust-anchor-during-a-cross-org-verifiable-presentation-handshake.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2301,
    "python_slice_tokens": 490,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A verifiable presentation handshake answers two orthogonal questions that are routinely conflated into one: *is this presentation cryptographically signed by the key the DID document currently asserts?* and *was that key authorized to sign at the moment the presentation claims to have been created?* The first is a signature check resolvable in the present. T...",
    "what_was_observed": "In a two-org federation (Org A issues agent DIDs, Org B verifies), Org A's agent `did:web:agents.a.example:fulfillment-07` signed a VP at `created=2025-05-30T14:02:11Z` using verification method `#key-2`. At 14:05Z Org A rotated the document, revoking `#key-2` (compromise of the HSM slot) and publishing `#key-3`. Org B's verifier had populated its DID cache at 13:58Z with the pre-rotation document and, per its resolv...",
    "condition_of_validity": "A verifiable presentation handshake is only sound under the following invariant, which must be checked explicitly rather than assumed: > For every verification method `vm` referenced by a presentation `P` with creation instant `t_c`, the DID document resolved at verification time must either (a) still list `vm` as authorized, in which case the signature chec...",
    "decision_boundary": "The boundary between \"accept\" and \"reject\" is not a TTL and not a clock-skew tolerance. It is the comparison of three timestamps that a correct verifier must materialize explicitly: - `t_c` — the presentation's `created` claim (issuer-signed, trustworthy only to the extent the issuer's clock is). - `t_resolve` — the verifier's local monotonic timestamp at th...",
    "operational_effect": "When the decision boundary is enforced with version history, the failure mode is eliminated: the 14:02Z presentation is evaluated against the version chain, `#key-2` is shown authorized at 14:02Z, its revocation effective at 14:05Z, `14:05 > 14:02`, and the presentation is accepted as historically valid — while a presentation created at 14:06Z carrying a `#k..."
  },
  "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": "c7a3494faf06a3491c1aa2c2089ff3048b3130442030daa0c5a46a76336e7b1e",
    "verified_classes": [
      "StaleTrustAnchorError",
      "VerificationMethod",
      "DidDocumentVersion",
      "VerifiablePresentation"
    ],
    "verified_functions": [
      "verify_presentation",
      "_demo"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "StaleTrustAnchorError"
    ],
    "sample_fail_closed_invariants": [
      "assert verify_presentation(historical_vp, current, history, 30, now) is True",
      "verifier accepted a post-revocation signature"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
