{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-identity-rotation-replay-during-short-lived-credential-minting-under-aaif-governance",
  "title": "Which invariants prevent identity-rotation replay during short-lived credential minting under AAIF governance",
  "date_of_record": "2026 December 1",
  "scope": "Applies to AAIF-governed agent fleets where an agent instance rotates its cryptographic identity and mints short-lived capability warrants (TTL-bounded, audience-scoped tokens) mid-task. Does not apply to long-lived static service credentials, nor to human-delegated OAuth flows where the principal is a human session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-identity-rotation-replay-during-short-lived-credential-minting-under-aaif-governance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-identity-rotation-replay-during-short-lived-credential-minting-under-aaif-governance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-identity-rotation-replay-during-short-lived-credential-minting-under-aaif-governance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1755,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is **rotation-mint skew**: the window in which an agent has *committed* to a new keypair but the governing authority (AAIF issuer) has *not yet* propagated the revocation of the old key to every warrant-verifying peer. It is not a key-compromise problem, not a clock-skew problem, and not a schema-negotiation problem. It is a ...",
    "what_was_observed": "An agent (`planner-7`) executing a multi-step task rotated identity at step 14 of 22. The rotation was triggered by AAIF policy: warrants older than 300s must be re-minted. The local FSM transitioned `ACTIVE(gen=3) → ROTATING(gen=3→4) → ACTIVE(gen=4)`. During `ROTATING`, the agent held both keypairs in memory and — because the tool-call loop was mid-flight — emitted two outbound warrants in the same 40ms window: - `w...",
    "condition_of_validity": "The monotonicity invariant holds **only if** every verifier maintains a per-agent-generation watermark and the AAIF warrant carries an explicit, signed `generation` integer that is: 1. **Monotonically assigned by the issuer**, not by the agent. If the agent self-assigns the generation counter, a compromised or buggy agent can mint `gen=99` to poison the wate...",
    "decision_boundary": "The decision boundary is where an agent must choose between **blocking rotation until in-flight warrants drain** versus **allowing concurrent dual-generation emission with verifier-side watermark enforcement**. - **Blocking (drain-then-rotate)** is correct only when the agent can enumerate all in-flight warrants and the maximum tool-call latency is bounded b...",
    "operational_effect": "Enforcing the generation-watermark invariant changes three operational properties: 1. **Verifier state becomes non-trivial and must be durable.** A verifier that loses its watermark on restart will accept stale warrants. Watermark state must be persisted with the same durability class as the audit log, and must be recovered *before* the verifier accepts any ..."
  },
  "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": "284ca573fc3f8ae86e9d34d01edecd7d8a54c39338725f3bba7dbcff13dd274e",
    "verified_classes": [
      "RotationReplayError",
      "AAIFWarrant",
      "GenerationWatermark"
    ],
    "verified_functions": [
      "verify_warrant",
      "__init__",
      "check_and_advance"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RotationReplayError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
