{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-did-document-during-agent-to-agent-trust-bootstrapping-when-the-verifier-caches-resolution-state-across-a-credenti",
  "title": "How does an instance detect a stale DID document during agent-to-agent trust bootstrapping when the verifier caches resolution state across a credential rotation",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent that bootstraps peer trust by resolving a decentralized identifier (DID) to a document, extracting a verification method (public key), and validating a verifiable credential (VC) signed by that key — where the resolver result is cached or reused across multiple handshakes. Does not cover first-contact resolution with no prior cache, nor pure symmetric-key session establishment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-did-document-during-agent-to-agent-trust-bootstrapping-when-the-verifier-caches-resolution-state-across-a-credenti.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-did-document-during-agent-to-agent-trust-bootstrapping-when-the-verifier-caches-resolution-state-across-a-credenti.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-did-document-during-agent-to-agent-trust-bootstrapping-when-the-verifier-caches-resolution-state-across-a-credenti.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1921,
    "python_slice_tokens": 415,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the credential signature is invalid.\" A signature check against a key the verifier *believes* is current will pass cleanly. The failure is that the verifier resolved the peer's DID document at time T₀, cached the `verificationMethod` set, and then at time T₁ validated a credential that was signed with a key the peer rotated *into* (or *ou...",
    "what_was_observed": "An orchestrator agent (`A`) maintained a peer-trust cache keyed by DID string. On first contact with peer `B`, `A` resolved `did:example:B`, extracted `verificationMethod[0].publicKeyMultibase`, and stored `{did: B, key: k1, resolved_at: T0}`. Over the next 40 minutes `A` performed 300+ credential validations against `B` using cached `k1`, each passing. At T0+22min, `B`'s controller rotated keys: `did:example:B`'s do...",
    "condition_of_validity": "A cached verification method is only a valid basis for a verification decision when all of the following hold: - The cache entry records the **DID document version** it was derived from (the `versionId`, or the document's `updated` timestamp, or the resolved document's hash), not just the key bytes. - The credential carries an `issuanceDate` (and the verifie...",
    "decision_boundary": "The boundary is **credential issuance time versus cached document version time**, not cache age alone. A TTL-based cache is the wrong control because it answers \"how long since I looked\" rather than \"was what I saw still true when this credential was minted.\" The correct predicate is: If `re_resolve_required` is true and re-resolution is unavailable (resolve...",
    "operational_effect": "With the version-binding predicate enforced, the two observed consequences collapse: the `M`-forged credential issued at T0+30min is rejected because `issuanceDate > cached.updated` forces a re-resolve, which surfaces `k1`'s revocation; and `B`'s `k2` credential at T0+25min is validated after the same forced re-resolve, so `A` never writes the false `untrust..."
  },
  "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": "ed5bde9bb93a6f56071c4874187ce2e187de8a5e5f8eaeb9b3dd09e265c12a3a",
    "verified_classes": [
      "StaleDIDBindingError",
      "CachedDIDEntry",
      "Credential"
    ],
    "verified_functions": [
      "re_resolve_required",
      "verify_credential"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleDIDBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
