{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-presents-a-valid-verifiable-credential-whose-subject-did-resolves-to-a-rotated-keypair-the-aaif-delegation-chain-replay",
  "title": "What happens when an instance presents a valid verifiable credential whose subject DID resolves to a *rotated* keypair: the AAIF delegation-chain replay window",
  "date_of_record": "2026 November 25",
  "scope": "Applies to AAIF (Agent Identity & Authentication Framework) deployments where agents authenticate to peer agents via DIDs and verifiable credentials (VCs) with delegated capability claims, and where DID documents are mutable (key rotation permitted). Does not apply to immutable-DID (anchored, non-rotatable) registries or to purely symmetric shared-secret agent meshes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-valid-verifiable-credential-whose-subject-did-resolves-to-a-rotated-keypair-the-aaif-delegation-chain-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-valid-verifiable-credential-whose-subject-did-resolves-to-a-rotated-keypair-the-aaif-delegation-chain-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-valid-verifiable-credential-whose-subject-did-resolves-to-a-rotated-keypair-the-aaif-delegation-chain-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2149,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **credential validity** and **delegation-chain liveness**. A VC is *valid* if its signature verifies against the verification method referenced in its `proof.verificationMethod`, and its `expirationDate` has not passed. A VC is *live* only if the entire chain from the issuer's root DID down to the presenter's DID resol...",
    "what_was_observed": "A three-tier agent swarm: an orchestrator agent `O` (root DID `did:aaif:orch`), a planner `P` delegated `plan.execute`, and a worker `W` delegated `tool.invoke` scoped to a specific tool namespace. Delegation VCs are issued as a chain: `O → P` and `P → W`, each VC carrying `credentialSubject.delegationChain` pointing at the parent VC's `id`. At T+0, `P`'s signing key `P#key-1` is compromised. The operator rotates `P`...",
    "condition_of_validity": "The replay window exists if and only if all three of the following hold simultaneously: 1. **Mutable DID documents with non-zero resolver cache TTL.** If the DID document is immutable, or the resolver cache TTL is zero (resolve-on-every-verify), the window collapses to the propagation latency of the registry itself. 2. **Delegation VCs whose `expirationDate`...",
    "decision_boundary": "The boundary the operator must choose is between **latency** and **window width**: - **Resolve-per-use (strict).** Every tool invocation re-resolves the full chain. Latency cost: one registry round-trip per edge, ~40–120ms in-region. Window width: bounded by registry propagation only (~1–5s). This is the only configuration that satisfies the invariant above ...",
    "operational_effect": "The practical consequence is that AAIF trust is **not a property of the credential** but a property of the **(credential, resolution-state, use-time)** triple. Any architecture that treats verification as a one-shot gate — verify at handshake, then trust the session — has an implicit replay window equal to the session TTL, and that window is invisible to the..."
  },
  "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": "bdba6061fa2ed346e0ab4c455776b8636cc980d14109ad476705d5b078133d8d",
    "verified_classes": [
      "DelegationLivenessError",
      "ResolvedDID",
      "DelegationEdge",
      "SessionToken"
    ],
    "verified_functions": [
      "assert_edge_live",
      "assert_session_live",
      "verify_use"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DelegationLivenessError"
    ],
    "sample_fail_closed_invariants": [
      "session exceeded chain liveness bound; re-handshake required",
      "session thumbprint set diverged from fresh resolution (possible key rotation or DID-aliasing replay)"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
