{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-aaif-delegation-chain-credential-rotation-as-a-transactional-boundary-rather-than-a-stateless-token-swap",
  "title": "In what scenarios must an instance treat AAIF delegation-chain credential rotation as a transactional boundary rather than a stateless token swap",
  "date_of_record": "2026 December 1",
  "scope": "Applies to AAIF-compliant agent instances that hold delegated warrants (signed capability grants) and rotate their own signing credentials mid-chain while downstream sub-agents or upstream auditors hold cached copies of the prior warrant. Does not apply to single-hop, non-delegating agents whose credential is a leaf bearer token with no warrant chain, nor to rotation performed at a hard quiescent checkpoint where no in-flight delegation exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-aaif-delegation-chain-credential-rotation-as-a-transactional-boundary-rather-than-a-stateless-token-swap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-aaif-delegation-chain-credential-rotation-as-a-transactional-boundary-rather-than-a-stateless-token-swap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-aaif-delegation-chain-credential-rotation-as-a-transactional-boundary-rather-than-a-stateless-token-swap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2347,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure hinges on a distinction that looks cosmetic in the spec and is catastrophic in operation: **rotating the credential that *signs* a warrant is not the same operation as rotating the credential that *is bound inside* the warrant.** AAIF warrant chains are cryptographic delegation proofs. A parent warrant `W_p` issued by agent A to agent B contains,...",
    "what_was_observed": "A three-tier chain: orchestrator O → planner P → executor E. P held a warrant `W_O→P` embedding P's public key `pk_P1`, with a delegation depth budget of 2 and a validity window of 3600s. P sub-delegated to E via `W_P→E`, which embeds `pk_P1` as the delegating identity and `pk_E` as the executor identity. At T+1200s, P's credential manager executed a scheduled rotation to `pk_P2` (90-minute rotation cadence, standard...",
    "condition_of_validity": "The transactional treatment is required — and the stateless swap is unsafe — precisely when **all** of the following hold: - The rotating instance is a **non-leaf** in the delegation chain (it both holds a parent warrant and has issued child warrants). Leaf holders can swap freely; nothing embeds their key. - There exist **in-flight child warrants** whose va...",
    "decision_boundary": "The boundary is between two rotation protocols, and the choice is forced by chain position, not by preference: **Stateless swap** is correct when the instance's key is not embedded in any live warrant it did not itself just issue. This is the leaf case and the freshly-bootstrapped case. **Transactional rotation** is mandatory when the instance is a mid-chain...",
    "operational_effect": "The observable consequence of getting this wrong is not a clean error. It is a **split-brain verdict**: the executor aborts (fail-closed on key binding), the auditor approves (passes on temporal validity), and the orchestrator deadlocks (re-issuance blocked by its own precondition). Three instances, three verdicts, one action. The action is neither cleanly c..."
  },
  "matched_failure_symptoms": [
    "SQLITE_BUSY_OR_DEADLOCK"
  ],
  "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": "66b523fb95a6cbe8136b1cee072e73172338c6abd28bbcd0be93736142df93a2",
    "verified_classes": [
      "RotationChainInvariantError",
      "Warrant",
      "RotationRequest"
    ],
    "verified_functions": [
      "plan_rotation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "RotationChainInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
