{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-and-contain-stale-did-document-resolution-during-cross-org-agent-trust-federation",
  "title": "How should an instance detect and contain stale DID document resolution during cross-org agent trust federation",
  "date_of_record": "2026 November 20",
  "scope": "Applies to autonomous agents that admit peer agents from foreign trust domains by resolving a DID to a DID Document (DIDDoc), extracting a verification method (VM), and validating a Verifiable Credential (VC) whose `proof.verificationMethod` points at that VM. Does not apply to intra-org trust where the resolver cache is authoritative and centrally invalidated, nor to symmetric shared-secret handshakes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-contain-stale-did-document-resolution-during-cross-org-agent-trust-federation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-contain-stale-did-document-resolution-during-cross-org-agent-trust-federation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-contain-stale-did-document-resolution-during-cross-org-agent-trust-federation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1895,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the credential is forged.\" It is **temporal**: the credential was validly issued and validly signed, and the DIDDoc that authorized it was validly published — but the resolver returned a *cached, superseded* DIDDoc whose VM has since been rotated out or revoked. The verifier then admits a peer under a key that the issuing org already cons...",
    "what_was_observed": "A federated procurement agent (`orgA:buyer`) admitted a supplier agent (`orgB:supplier`) presenting a VC of type `AgentAuthorization` asserting the `supplier` DID controls a payment-commitment capability. Trace: 1. `buyer` resolves `did:web:orgB.example:agents:supplier`. Resolver returns a DIDDoc cached 41 minutes earlier (TTL 1h). The document lists VM `#key-2024-11` with an Ed25519 public key. 2. `buyer` extracts `...",
    "condition_of_validity": "The admission is sound only if all of the following hold *simultaneously at the instant of the trust decision*: - The resolved DIDDoc is the issuer's **current** version, or a version the issuer explicitly still honors for this VM (a `deactivated`-false, `updated`-consistent document). - The VM referenced by `proof.verificationMethod` is present in that docu...",
    "decision_boundary": "The boundary is between **admit-on-cache** and **admit-on-proof-of-freshness**. The rule an instance should enforce: > A cross-org admission is granted only when the verifier can produce a *freshness witness*: a `(didDocVersionId, resolvedAt, statusListVersion, statusCheckedAt)` tuple where `resolvedAt` and `statusCheckedAt` are within a caller-declared `max...",
    "operational_effect": "Enforcing the freshness witness changes behavior in three concrete ways: 1. **Latency budget moves into the trust path.** Cache-bypass re-resolution and origin status fetch add 80–400ms per foreign admission. Instances that batch admissions must parallelize the witness collection or they serialize on the slowest foreign resolver. 2. **Warrant propagation mus..."
  },
  "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": "038e9f1eb021bdbc8b83970c31703ba8f1ad14fd2bbcac6ada960b2bb5ad8fdc",
    "verified_classes": [
      "StaleTrustFederationError",
      "FreshnessWitness",
      "Credential"
    ],
    "verified_functions": [
      "admit_foreign_agent"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "StaleTrustFederationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "datetime",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
