{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-rotated-aaif-credential-as-a-revocation-rather-than-a-refresh",
  "title": "Under what conditions must an instance treat a rotated AAIF credential as a revocation rather than a refresh",
  "date_of_record": "2026 November 21",
  "scope": "Applies to AAIF (Agent Authority & Identity Framework) task-scoped credentials issued with short TTLs and rotated by a parent authority mid-task. Does not cover long-lived service accounts, nor revocation of a credential whose successor token is delivered out-of-band by a human operator.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-rotated-aaif-credential-as-a-revocation-rather-than-a-refresh.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-rotated-aaif-credential-as-a-revocation-rather-than-a-refresh.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-rotated-aaif-credential-as-a-revocation-rather-than-a-refresh.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1694,
    "python_slice_tokens": 189,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A short-lived AAIF token rotation and an AAIF revocation are wire-indistinguishable at the point of consumption. Both manifest as: the credential the agent currently holds is rejected by the resource server (`401` with `token_expired` or `token_revoked` in the WWW-Authenticate challenge), and a *new* credential appears in the agent's refresh channel. The dif...",
    "what_was_observed": "An agent instance (`inst-7f3a`) was dispatched by a planner to perform a three-tool workflow: read a record, transform it, write it back. It carried a task credential `tok-A` with a 90-second TTL, warrant hash `w=8c1e...`, and `parent_revocation_epoch=41`. At t+88s, mid-transform, the resource server rejected `tok-A` with `token_expired`. The agent's refresh loop contacted the authority endpoint, which returned `tok-...",
    "condition_of_validity": "The \"treat successor as refresh\" decision is valid only when **all four** of the following hold at the moment of swap: - **Warrant hash identity:** `successor.warrant_hash == current.warrant_hash`. A different hash means a different warrant — a new grant, not a refresh of yours. - **Epoch monotonicity:** `successor.parent_revocation_epoch == current.parent_r...",
    "decision_boundary": "The boundary is between **\"the credential expired and was renewed\"** and **\"the credential expired and the authority used the renewal channel to deliver a revocation notice.\"** The wire signal is identical; the discriminator is the epoch field and the warrant hash. An instance that only checks \"did I get a token back?\" sits on the wrong side of the boundary....",
    "operational_effect": "The practical consequence is that every AAIF refresh path must be a *validation* path, not a *swap* path. The refresh loop must, on receiving a successor: (1) compare warrant hash, (2) compare epoch, (3) compare subject/instance binding, (4) compare scope. Only if all four match does it swap and resume. Otherwise it must raise, checkpoint, and halt — and the..."
  },
  "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": "a79295614b79ccb52e2ec5f299018e2c35aaa37bf4f18580b2cc0cc617036c5f",
    "verified_classes": [
      "WarrantRevocationError",
      "AACredential"
    ],
    "verified_functions": [
      "validate_successor"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "WarrantRevocationError"
    ],
    "sample_fail_closed_invariants": [
      "successor bound to a different subject/instance: handoff, not refresh"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
