{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-did-document-key-rotation-lag-before-validating-a-cross-org-aaif-verifiable-credential",
  "title": "How should an instance detect DID-document key-rotation lag before validating a cross-org AAIF verifiable credential",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any AAIF (Agent Authorization & Identity Framework) instance that validates inbound Verifiable Credentials (VCs) issued by a foreign organization whose Decentralized Identifier (DID) resolves through a cached or federated resolver. Does not apply to same-org credentials validated against a locally pinned trust anchor, nor to symmetric-key session tokens that bypass DID resolution entirely.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-did-document-key-rotation-lag-before-validating-a-cross-org-aaif-verifiable-credential.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-did-document-key-rotation-lag-before-validating-a-cross-org-aaif-verifiable-credential.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-did-document-key-rotation-lag-before-validating-a-cross-org-aaif-verifiable-credential.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1676,
    "python_slice_tokens": 345,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an invalid signature was accepted.\" The failure is **temporal**: an instance validated a credential against a DID document that was *internally consistent* but *temporally stale relative to the credential's issuance window*. The verifier held a cached DID document whose `verificationMethod` still listed a key that the issuer had rotated o...",
    "what_was_observed": "A cross-org handoff between Org-A (issuer) and Org-B (verifier). Org-A rotated the signing key for its agent DID `did:web:agents.org-a.example:planner` at 14:02:11Z, publishing a new DID document with a fresh `verificationMethod` (`key-2`) and removing `key-1` from the `authentication` relationship. Org-B's resolver had cached the prior DID document at 13:47:00Z with a 30-minute TTL. At 14:09:33Z, Org-A's planner age...",
    "condition_of_validity": "The verification is sound only when the DID document used to check the signature is **not older than the credential's issuance instant**, or when the credential carries an explicit binding to the DID document version it was signed under. Concretely, the invariant is: > `did_doc.retrieved_at >= vc.issuance_time` **OR** the credential embeds `did_doc_version` ...",
    "decision_boundary": "The boundary is the comparison between three timestamps: `did_doc.cached_at`, `vc.issuance_time`, and `now`. - If `did_doc.cached_at >= vc.issuance_time`: cached document postdates issuance; a key present in it was authoritative at signing time. **Accept on cache.** - If `did_doc.cached_at < vc.issuance_time` **and** `now - did_doc.cached_at < rotation_grace...",
    "operational_effect": "An instance that admits a rotation-lagged credential grants authority to an agent operating on a key its own issuer has disavowed. Downstream, that authority propagates: the auditor's attestation is signed, forwarded to a third org, and the third org's validation inherits the stale anchor transitively. The blast radius is not the single handoff but the **war..."
  },
  "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": "85c88924a3267e927ff85c106459c712c6ae897223743397b8d01e1543a6e80d",
    "verified_classes": [
      "RotationLagFault",
      "DidDocument",
      "VerifiableCredential"
    ],
    "verified_functions": [
      "validate_cross_org_vc"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RotationLagFault"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
