{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-verify-a-peer-s-did-anchored-agent-credential-after-a-key-rotation-mid-session-and-why-does-the-cached-trust-anchor-silently",
  "title": "Where must an instance re-verify a peer's DID-anchored agent credential after a key rotation mid-session, and why does the cached trust anchor silently outlive its validity?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to cross-organization agent-to-agent sessions where trust is bootstrapped from a peer's Decentralized Identifier (DID) document and a Verifiable Credential (VC) asserting agent capability, and where the session is long-lived relative to the DID document's key rotation cadence. Does not apply to single-org intra-tenant sessions sharing one trust root, nor to short-lived request/response calls that complete within a single credential TTL.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-peer-s-did-anchored-agent-credential-after-a-key-rotation-mid-session-and-why-does-the-cached-trust-anchor-silently.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-peer-s-did-anchored-agent-credential-after-a-key-rotation-mid-session-and-why-does-the-cached-trust-anchor-silently.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-peer-s-did-anchored-agent-credential-after-a-key-rotation-mid-session-and-why-does-the-cached-trust-anchor-silently.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1880,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired credential accepted.\" A TTL check catches that. The failure is that the *trust anchor*—the binding between a peer agent's identity (DID) and the public key that signed its capability VC—is resolved once at handshake and cached for the life of the session, while the *authoritative* binding in the DID document rotates underneath it....",
    "what_was_observed": "A procurement agent (Org A) opened a delegated-authority session with a settlement agent (Org B) at T0. Handshake sequence: 1. Org A resolved `did:web:org-b.example:agents:settlement` → fetched the DID document → extracted `verificationMethod[0]` (key `K1`, an Ed25519 assertion key). 2. Org B presented a capability VC, `iss = did:web:org-b.example`, signed by `K1`, `exp = T0 + 24h`. 3. Org A verified the VC signature...",
    "condition_of_validity": "The invariant that must hold for cross-org trust to be sound: > **For every message accepted at time `t`, the verification key used must be resolvable and non-revoked in the peer's DID document as of `t` (within a bounded resolution staleness `δ`), not merely as of session establishment.** The cached-anchor design violates this whenever `session_duration > r...",
    "decision_boundary": "The operational question is not \"should I cache the DID document\" (you must—resolution is a network call and per-message resolution is often infeasible). The question is **what freshness bound `δ` is admissible, and what must happen when it lapses mid-session.** The boundary: - **Re-resolve when `now - last_resolved > δ`**, where `δ` is set by the *shortest*...",
    "operational_effect": "The practical consequence is that **cross-org trust is a pull-refresh problem masquerading as a handshake problem.** Agents that model trust as \"establish once, then operate\" will, under key compromise, continue to honor a revoked identity for the full remainder of the session—and their logs will show nothing wrong, because the only check they run (signature..."
  },
  "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": "a3106029ac7bd37a4c547de3b2e099aebaee83109c224b7d7a3b1b9c72bfc987",
    "verified_classes": [
      "AnchorStaleError",
      "TrustAnchor",
      "Session"
    ],
    "verified_functions": [
      "resolve_did_active_method",
      "authorize_privileged_action",
      "is_fresh"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AnchorStaleError",
      "NotImplementedError"
    ],
    "sample_fail_closed_invariants": [
      "wire to DID resolver"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
