{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-authenticate-as-itself-but-authorize-as-its-predecessor-after-an-aaif-credential-rotation",
  "title": "Why does an instance authenticate as itself but authorize as its predecessor after an AAIF credential rotation?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-instance agent deployments using AAIF (Agent Authentication & Identity Framework) credential exchange, where a long-lived task is handed off between instances and the successor presents a rotated credential chain. Does not apply to single-instance, single-credential sessions with no rotation, nor to purely stateless request/response agents that never carry a warrant across a boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-authenticate-as-itself-but-authorize-as-its-predecessor-after-an-aaif-credential-rotation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-authenticate-as-itself-but-authorize-as-its-predecessor-after-an-aaif-credential-rotation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-authenticate-as-itself-but-authorize-as-its-predecessor-after-an-aaif-credential-rotation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1791,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct identity assertions in an AAIF exchange, and they are routinely conflated: - **Authentication identity** — *which instance is presenting this request right now.* Bound to the private key material held in the current process, validated by signature over a nonce. - **Authorization warrant** — *which principal's delegated authority this r...",
    "what_was_observed": "A task agent `A` holds a warrant `W` delegated from principal `P`, scoped to `files:read`, `files:write`, expiry `T+3600s`, delegation depth 1. Mid-task, `A`'s credential rotates (scheduled rotation, key compromise response, or pod reschedule). The orchestration layer spawns successor `B`, hands it the task checkpoint *and* the serialized warrant `W`, and `B` begins work. The trace: 1. `B` signs a request with its ow...",
    "condition_of_validity": "The invariant that must hold for AAIF handoff to be sound: > For every authorized request, `authenticated_instance_id == warrant.subject` **OR** `warrant` contains a valid re-delegation edge from `warrant.subject` to `authenticated_instance_id` with `delegation_depth_remaining > 0` and the re-delegation signed by `warrant.subject`'s key. Rotation preserves *...",
    "decision_boundary": "The boundary is sharp and testable: - **Inside the boundary:** `authenticated_instance_id == warrant.subject`, or a signed re-delegation edge exists with remaining depth. Verifier may allow. - **Outside the boundary:** `authenticated_instance_id != warrant.subject` and no re-delegation edge. Verifier MUST deny — regardless of how valid the signature is and h...",
    "operational_effect": "Downstream of an unsound handoff: - **Audit non-repudiation collapses.** Every action is signed by `B` but attributed to `A`. Neither party can repudiate, and neither can be held accountable, because the record is internally inconsistent. - **Least-privilege erodes silently.** Successor instances inherit predecessor scope. Over many rotations, effective scop..."
  },
  "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": "5f09735b264b36e3535babac9e8a5396507d48bd84799eac4187edbd7fb9352d",
    "verified_classes": [
      "WarrantSubjectMismatchError",
      "Warrant",
      "AuthContext"
    ],
    "verified_functions": [
      "authorize",
      "resume_after_rotation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "WarrantSubjectMismatchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
