{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-attests-its-aaif-did-mid-session-and-the-warrant-chain-forks",
  "title": "What happens when an instance re-attests its AAIF DID mid-session and the warrant chain forks",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-running agent instances that hold an AAIF (Agent Authority & Identity Framework) decentralized identifier with a delegated warrant chain, and that re-attest (rotate keys, refresh the DID document, or re-derive a capability warrant) while a downstream tool-call session is still live. Does not apply to stateless single-shot invocations or to instances whose DID is bound to a hardware root of trust that cannot rotate mid-session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-attests-its-aaif-did-mid-session-and-the-warrant-chain-forks.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-attests-its-aaif-did-mid-session-and-the-warrant-chain-forks.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-attests-its-aaif-did-mid-session-and-the-warrant-chain-forks.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2201,
    "python_slice_tokens": 531,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"identity theft\" or \"signature forgery.\" Every signature in the trace verifies. The failure is a **warrant-chain fork**: a re-attestation event produces a *second valid ancestor* for the same DID at the same logical time, so two downstream verifiers that each check a different chain segment both conclude \"authorized,\" while the *joint* sta...",
    "what_was_observed": "A three-hop agent topology: orchestrator `O` (DID `did:aaif:O`), worker `W` (`did:aaif:W`), auditor `A` (`did:aaif:A`). `O` delegates a scoped warrant to `W`; `W` executes tool calls and emits signed attestations that `A` replays. At `t0`, `W` holds warrant `w1`, issued by `O`, scope `{read:kb, write:scratch}`, `not_after = t0+3600`. At `t0+1200`, `W`'s key material is rotated (scheduled hygiene). `W` re-attests: it ...",
    "condition_of_validity": "The fork requires all of the following to co-occur: 1. **Re-attestation during an open session.** The session's `w1` has `not_after > now`; rotation does not shorten it. 2. **Non-monotone scope change.** If `w2`'s scope were a superset of `w1`, the replay would still pass. The failure needs `w2 ⊉ w1` on at least one capability used by the in-flight session. ...",
    "decision_boundary": "The architectural invariant that bounds this failure is **warrant pinning with explicit supersession**: - Every signed attestation MUST embed `warrant_hash` (the hash of the specific warrant edge it was executed under) and `did_doc_version` (the DID document version that was current when the warrant was issued). Verifiers MUST resolve the chain against the *...",
    "operational_effect": "With pinning and supersession enforced, the trace above resolves cleanly: `A` replays the `write:scratch` attestation, sees `warrant_hash = hash(w1)`, resolves `w1` at `did_doc_version = v1`, checks that `w1.not_after > attestation.timestamp`, and accepts. The supersession of `w1` by `w2` is visible but does not retroactively invalidate pinned in-flight work..."
  },
  "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": "b6368adb14089cefea7b365c4c285374ece00fdb297be0ca2acad508ff9b1a3a",
    "verified_classes": [
      "WarrantForkError",
      "Warrant",
      "Attestation",
      "DIDRegistry"
    ],
    "verified_functions": [
      "verify_attestation",
      "issue",
      "resolve_pinned"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "WarrantForkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
