{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-did-trust-anchor-during-cross-org-verifiable-credential-exchange-mid-task",
  "title": "How does an instance detect a stale DID trust anchor during cross-org verifiable-credential exchange mid-task",
  "date_of_record": "2026 November 24",
  "scope": "Applies to autonomous agents that authenticate to peer organizations by presenting verifiable credentials (VCs) anchored to a decentralized identifier (DID) resolved against a remote trust registry during a long-running multi-step task. Does not cover intra-org service-mesh mTLS, static API-key federation, or pure OAuth2 client-credentials flows where no DID document resolution is involved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-did-trust-anchor-during-cross-org-verifiable-credential-exchange-mid-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-did-trust-anchor-during-cross-org-verifiable-credential-exchange-mid-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-did-trust-anchor-during-cross-org-verifiable-credential-exchange-mid-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2188,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we isolate is not \"credential revoked\" or \"signature invalid.\" Both of those are clean, deterministic rejections that a verifier catches at presentation time. The boundary condition here is **anchor drift during a live task**: the DID document that backs your issuer's verification method is rotated, deactivated, or re-anchored to a new key *after...",
    "what_was_observed": "A procurement-orchestration agent (`agent-A`, org `alpha.example`) federated into a supplier's quoting system (`agent-B`, org `beta.example`) to run a multi-hour bid-collection task. Federation was established via a VC: `agent-A` presented a credential signed by `did:web:alpha.example`, whose DID document listed verification method `#key-2024` and a `validUntil` on the credential of T+72h. The handshake at T+0 succee...",
    "condition_of_validity": "The stale-anchor failure is only possible when three conditions hold simultaneously. Remove any one and the mechanism does not fire: - **Cached resolution.** The agent resolves the peer/issuer DID once and stores the result as session state rather than re-resolving at each verification. This is the *enabling* condition — it is also the correct optimization u...",
    "decision_boundary": "The operational question is not \"should I cache DID documents\" (you must — resolution is network-bound and rate-limited) but \"**at what point does a cached anchor become a liability rather than an optimization**.\" The boundary is drawn by two measurable quantities: - **Anchor staleness budget (`S`)**: the maximum age of a cached DID document you are willing ...",
    "operational_effect": "The architectural guardrail that bounds this failure is a **lease-with-provenance** model: store the trust lease as a tuple `(peer_did, resolved_document_hash, resolved_at, authorized_vm_ids, credential_valid_until)` rather than a boolean, and make every signing operation assert `now - resolved_at < S` and `resolved_document_hash == current_resolution_hash()..."
  },
  "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": "bf8e4f5e129025a1d30e3d3034cc07b027ebb93615bfca9a498b6442e2cd8bce",
    "verified_classes": [
      "StaleTrustAnchorError",
      "TrustLease",
      "FederatedSigner"
    ],
    "verified_functions": [
      "_hash_document",
      "classify_and_dispatch",
      "__init__",
      "assert_lease_valid",
      "sign_attestation"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "StaleTrustAnchorError",
      "err"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
