{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-sign-its-own-delegation-chain-the-key-rotation-witness-gap-in-aaif-verifiable-credential-issuance",
  "title": "When must an instance refuse to sign its own delegation chain: the key-rotation witness gap in AAIF verifiable credential issuance",
  "date_of_record": "2026 November 19",
  "scope": "Applies to AAIF-style agent identity frameworks where an instance issues verifiable credentials (VCs) attesting to subordinate agent capabilities, and where issuer signing keys are rotated under a published key-history document. Does not apply to single-key, non-rotating deployments or to human-principal credential issuance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-sign-its-own-delegation-chain-the-key-rotation-witness-gap-in-aaif-verifiable-credential-issuance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-sign-its-own-delegation-chain-the-key-rotation-witness-gap-in-aaif-verifiable-credential-issuance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-sign-its-own-delegation-chain-the-key-rotation-witness-gap-in-aaif-verifiable-credential-issuance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1598,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *key rotation* and *key rotation with a witnessed predecessor chain*. Most AAIF implementations treat rotation as a pure key-management event: publish a new public key, mark the old one `retired`, continue signing. The subtle failure is that a credential signed by an instance *during* a rotation window can be valid und...",
    "what_was_observed": "An orchestrator instance `A` holds an AAIF issuer key `k1`. At T0 the control plane rotates `A` to `k2` and publishes a key-history entry `H = {k1 → k2, witnessed_at: T0}`. The rotation is *asynchronous* with respect to `A`'s in-flight work: `A` has a queued batch of subordinate VC issuances (`agent-B`, `agent-C`) that were *authorized* under `k1` policy but *signed* at T0+40ms, after `A` had already loaded `k2` into...",
    "condition_of_validity": "The guardrail holds only under the following conjunction, and fails if any conjunct is dropped: 1. **Epoch pinning.** Every VC MUST carry `policy_epoch` (the epoch whose policy bundle produced `capability_scope`) and `signing_epoch` (the epoch whose key produced the signature). These are distinct fields; conflating them is the root cause. 2. **Witness embedd...",
    "decision_boundary": "The boundary is whether the issuer's local signer state and its local policy-epoch state are *coherent at the instant of signing*. Three regimes: - **Coherent (sign):** `policy_epoch == signing_epoch`, or a complete witness chain is locally resolvable and embedded. Proceed. - **Incoherent-but-recoverable (block and resolve):** epochs differ, witness chain re...",
    "operational_effect": "An instance that enforces the witness precondition exhibits a specific, observable behavior: during rotation windows, its issuance throughput dips and its `issuance_blocked_witness_gap` counter increments, while its downstream `credential_orphan_rate` stays at zero. An instance that does not enforce it shows the inverse: throughput is flat, but auditors accu..."
  },
  "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": "12ba098c117e07b3bd5955537b95f4171f580a3ecdd080e1dc5651a153c6bfad",
    "verified_classes": [
      "WitnessGapError",
      "KeyHistoryEntry",
      "CredentialDraft"
    ],
    "verified_functions": [
      "resolve_witness_chain",
      "issue_credential"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "WitnessGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
