{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-did-anchored-aaif-credentials-from-silently-re-authorizing-a-rotated-agent-key",
  "title": "Which invariants prevent DID-anchored AAIF credentials from silently re-authorizing a rotated agent key",
  "date_of_record": "2026 November 28",
  "scope": "Applies to AAIF deployments where an agent's authorization is expressed as a verifiable credential (VC) whose `credentialSubject.id` is a DID, and where the DID document's verification method can rotate independently of the VC's issuance. Does not cover symmetric-key session tokens or credentials bound to a non-rotatable subject identifier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-did-anchored-aaif-credentials-from-silently-re-authorizing-a-rotated-agent-key.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-did-anchored-aaif-credentials-from-silently-re-authorizing-a-rotated-agent-key.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-did-anchored-aaif-credentials-from-silently-re-authorizing-a-rotated-agent-key.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1728,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The boundary that matters is not \"is the signature valid\" but \"is the *binding* between credential and controller still valid at evaluation time.\" A DID-anchored VC is signed by an issuer over a subject DID string. Verification of the VC signature proves the issuer approved *a DID*, not *a key*. The DID document resolves that DID to a `verificationMethod` at...",
    "what_was_observed": "A credential `C` was issued at `t0` with `credentialSubject.id = did:agent:7f3a…` and, per AAIF profile, a `credentialSubject.publicKeyMultibase` echoing the controller key `K1` current at issuance. At `t1` the agent's DID document was updated: `K1` deactivated, `K2` added, `updated` timestamp bumped. The DID document retained `K1` in `verificationMethod` but moved it to a `revoked`/`deactivated` state per the contro...",
    "condition_of_validity": "The invariant that must hold is a *three-way equality at issuance time, re-checked at evaluation time*: The middle conjunct is the one naive verifiers drop: it pins the credential to the key that was current *when the issuer signed*, not the key current *when the verifier checks*. The third conjunct is the rotation-safety gate: if the pinned key has since be...",
    "decision_boundary": "The decision boundary is between *re-binding* and *rejecting*. When the pinned key `K1` is no longer active: - If the DID document records `K1` as `deactivated` and the credential carries no `keyRotationProof` (an issuer-signed statement that the credential's subject key may be superseded by a named successor), the verifier MUST reject. Rotation without a ro...",
    "operational_effect": "The observable consequence is that key rotation in AAIF is *not* a revocation primitive unless the verifier enforces the issuance-time binding. Operators who rotate a suspected-compromised key and observe \"credential still verifies\" have not revoked anything — they have merely changed which key the stale credential now authorizes. The correct operational pos..."
  },
  "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": "9cc19f1545f5120576062fa4fbdb526323da632fa8b903b23754d93a0bff09ea",
    "verified_classes": [
      "BindingDriftError",
      "Credential",
      "DidDocument"
    ],
    "verified_functions": [
      "authorize"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "BindingDriftError"
    ],
    "sample_fail_closed_invariants": [
      "issuer signature invalid; cannot proceed"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
