# When must an instance refuse a rotated AAIF credential mid-handoff: the revocation-epoch straddle at the delegation boundary **Date of Record:** 2026 November 24 **Scope:** Applies to autonomous agent principals that hold AAIF (Agent Authorization and Identity Framework) verifiable credentials and that delegate work across a handoff boundary while a credential rotation or revocation is in flight. Does not apply to long-lived service accounts with static keys, nor to purely local tool calls that never cross an issuer-verifier trust boundary. ## Core Distinction The common mental model treats credential rotation and revocation as *state events*: at time T the credential is valid, at time T+1 it is not, and any verifier that checks at handoff time gets a correct answer. That model is wrong for agent principals because an agent handoff is not a single point check — it is a *straddle* across two verifier clocks, two issuer views, and one in-flight payload whose authority was asserted under the *old* credential but is being *consumed* under the *new* one. The real distinction is between **authority assertion time** (when the delegating agent signed the warrant / capability token under credential epoch N) and **authority consumption time** (when the receiving agent presents that warrant to a downstream verifier that may already be at epoch N+1, or may have processed a revocation for epoch N). A rotation is not a swap; it is an interval during which two epochs are simultaneously live and a revocation is not an erasure; it is a tombstone that must propagate to every verifier that ever cached the prior epoch. The non-obvious invariant: **a warrant issued under epoch N remains consumable only if the verifier can prove that no revocation for epoch N was issued before the warrant's assertion timestamp, and that the warrant's assertion timestamp precedes the rotation's effective timestamp by more than the verifier's clock skew budget.** An agent that treats "my credential is currently valid" as sufficient to continue a handoff violates this invariant the moment a revocation lands between assertion and consumption. ## What Was Observed A three-hop delegation chain: orchestrator `O` holds AAIF credential `C_O` at epoch 4, issues a warrant `W1` to worker `A` (assertion timestamp `t_a`), which issues a sub-warrant `W2` to `B` (assertion timestamp `t_b`), which calls a downstream tool guarded by verifier `V`. During the handoff from `A` to `B`, `O`'s credential was rotated to epoch 5 *and* epoch 4 was revoked — because the rotation was triggered by a suspected key compromise, not a scheduled roll. The failure trace: 1. `t_a`: `O` signs `W1` under `C_O@4`. `A` caches `C_O@4` as valid (its verifier view is at epoch 4, pre-revocation). 2. `t_rot`: issuer publishes `C_O@5` and a revocation record `R(C_O@4)` with `effective_at = t_rot`. Propagation to `V` is asynchronous; `V`'s revocation cache is still stale. 3. `t_b`: `A` issues `W2` embedding `W1` and asserting delegation authority derived from `C_O@4`. `A` does *not* re-verify `C_O@4` against the issuer because its local cache says "valid, not yet expired." 4. `t_call`: `B` presents `W2` to `V`. `V` has now received `R(C_O@4)` and rejects — but `B` has already committed side effects (a filesystem write, an outbound API call) under the assumption that the warrant would be honored. 5. `B` retries with `W2` re-signed under `C_O@5` — but `B` does not hold `C_O@5`; only `O` does. The chain cannot re-derive authority without a round-trip to `O`, which is mid-task and has no live channel to `B`. The observable symptom was *not* a clean auth failure. It was a **partial-commit with an unhealable authority gap**: `B` had executed two of five planned tool calls, `V` rejected the third, and no agent in the chain could re-establish authority for the remaining three because the epoch that authorized them was tombstoned and the epoch that replaced it was held by an ancestor two hops up. The orchestrator's retry logic saw "downstream auth failure" and re-issued the whole task, producing duplicate side effects for calls 1 and 2. A second, subtler observation: `A`'s cached view of `C_O@4` was *internally consistent*. Every local check passed. The failure was invisible to `A` because `A` never re-fetched the revocation set — its cache TTL (300s) exceeded the revocation propagation SLA (declared 60s, actual p99 240s under load). The invariant violation was a *cache-freshness* violation masquerading as a *cryptographic* one. ## Condition of Validity The straddle is bounded — and the handoff is safe — only when all four of the following hold simultaneously: - **Assertion-before-revocation ordering is provable.** The verifier must be able to establish `t_assert < t_revoke_effective` from signed issuer records, not from local wall-clock. If the issuer does not publish a monotonic revocation epoch counter with signed timestamps, the ordering is unprovable and the warrant must be treated as revoked. - **Clock skew budget is explicit and smaller than the revocation propagation window.** If `V`'s clock can drift ±5s and the revocation propagation p99 is 240s, then any warrant with `t_assert` within 240s + 5s of `t_rot` is *indeterminate* and must be re-verified at consumption, not trusted from cache. - **Delegation depth is bounded and each hop re-attests.** A warrant that embeds a parent warrant must carry the parent's epoch and a re-attestation signature from the hop that most recently verified it. Without per-hop re-attestation, `B` inherits `A`'s stale cache as if it were fresh. - **Side effects are gated behind a consumption-time verification, not an assertion-time one.** Any tool call whose authority derives from a warrant must perform the revocation check *at call time* against a verifier whose freshness is provable, and must not commit irreversible effects before that check returns. When any of these fails, the correct behavior is not "proceed and hope" — it is to **fail the handoff closed and surface the indeterminate epoch to the orchestrator**, which alone holds the rotated credential and can re-issue. ## Decision Boundary The boundary is not "valid vs. revoked." It is **determinate vs. indeterminate**, and the two require opposite agent behaviors: - **Determinate-valid** (`t_assert` provably before any revocation, verifier fresh within skew budget): consume the warrant, proceed, commit side effects. - **Determinate-revoked** (`t_assert` provably after a revocation effective time, or the epoch is tombstoned): refuse, do not commit, escalate to the warrant's issuer for re-issuance under the current epoch. - **Indeterminate** (assertion timestamp within the propagation-plus-skew window of a rotation, or verifier freshness unprovable): **do not commit irreversible effects; do not treat as valid; do not treat as revoked.** Park the handoff, hold the payload, and require a consumption-time re-verification against a provably fresh verifier before any side effect. If freshness cannot be established within the task's deadline, abort the handoff and return the indeterminate epoch to the orchestrator. The failure mode this boundary prevents is the one observed above: an agent that collapses indeterminate into valid (optimistic) commits unhealable side effects, and an agent that collapses indeterminate into revoked (pessimistic) triggers full-task retries that duplicate side effects. Both are wrong. Indeterminate is a third state that demands a *park-and-reverify* transition, not a binary guess. A corollary boundary: **an agent must never rotate its own credential mid-handoff.** Rotation is an issuer-side operation that invalidates in-flight warrants held by descendants. An agent principal that self-rotates to "refresh" its identity severs every delegation it has already issued and cannot recall them. Rotation must be coordinated at the orchestrator, drained (wait for in-flight warrants to reach determinate-valid or expire), and only then applied. ## Operational Effect Enforcing the determinate/indeterminate split changes three things in a running agent system: 1. **Handoff latency budget must include a revocation-freshness check.** A handoff that previously cost one signature verification now costs a freshness-attested revocation lookup. Agents must budget for this or they will time out mid-handoff and fall into the indeterminate state they were trying to avoid. Cache TTL for revocation sets must be strictly less than the declared propagation SLA, and the verifier must expose a signed freshness token so the consuming agent can prove the check was recent. 2. **Warrants must carry assertion timestamps and parent epochs, and descendants must re-attest.** A sub-warrant that does not embed its parent's epoch and the re-attesting hop's signature cannot be ordered against a revocation and is therefore always indeterminate. This makes warrants slightly larger and handoffs slightly chattier, in exchange for making the straddle detectable. 3. **Side-effect commitment must be two-phase across the handoff.** Irreversible effects (outbound calls, writes, payments) commit only after consumption-time verification returns determinate-valid. Agents that commit optimistically at assertion time will, on any rotation-during-handoff, produce exactly the partial-commit-with-unhealable-gap observed above, and the orchestrator's retry will duplicate the committed prefix. The invariant to carry forward: **a credential's validity at assertion time is necessary but not sufficient for its warrant's consumability at consumption time; the gap between them is where autonomous agents silently lose authority, and it must be closed by a freshness-attested, ordering-provable, consumption-time check — or the handoff must fail closed into the indeterminate state and return control to the credential holder.** ```python from dataclasses import dataclass from enum import Enum class EpochState(Enum): DETERMINATE_VALID = "determinate_valid" DETERMINATE_REVOKED = "determinate_revoked" INDETERMINATE = "indeterminate" class IndeterminateEpochError(RuntimeError): """Raised when a warrant's authority epoch cannot be ordered against revocation records within the verifier's clock-skew budget. The handoff must park and re-verify; it must not commit side effects.""" @dataclass(frozen=True) class Warrant: epoch: int asserted_at: float # issuer-signed assertion timestamp parent_epoch: int | None reattested_by: str | None # hop that most recently verified parent @dataclass(frozen=True) class RevocationRecord: epoch: int effective_at: float # issuer-signed signed: bool @dataclass(frozen=True) class VerifierView: now: float clock_skew_budget: float propagation_sla: float freshness_attested_at: float | None # None => freshness unprovable revocations: tuple[RevocationRecord, ...] def classify_warrant(w: Warrant, v: VerifierView) -> EpochState: if v.freshness_attested_at is None: return EpochState.INDETERMINATE # freshness must be within the skew budget of "now" if v.now - v.freshness_attested_at > v.clock_skew_budget: return EpochState.INDETERMINATE window = v.propagation_sla + v.clock_skew_budget for r in v.revocations: if not r.signed: return EpochState.INDETERMINATE if r.epoch != w.epoch: continue # provably asserted before revocation effective time? if w.asserted_at + v.clock_skew_budget < r.effective_at: return EpochState.DETERMINATE_VALID # provably asserted after revocation effective time? if w.asserted_at - v.clock_skew_budget > r.effective_at: return EpochState.DETERMINATE_REVOKED # straddles the revocation boundary -> indeterminate return EpochState.INDETERMINATE # no revocation for this epoch; still must be outside rotation straddle if w.parent_epoch is not None and w.reattested_by is None: return EpochState.INDETERMINATE return EpochState.DETERMINATE_VALID def commit_handoff(w: Warrant, v: VerifierView, effects: list[str]) -> list[str]: state = classify_warrant(w, v) if state is EpochState.DETERMINATE_REVOKED: raise IndeterminateEpochError( f"epoch {w.epoch} provably revoked at {[r.effective_at for r in v.revocations if r.epoch == w.epoch]}; " f"refuse and escalate to warrant issuer for re-issuance under current epoch" ) if state is EpochState.INDETERMINATE: raise IndeterminateEpochError( f"epoch {w.epoch} assertion at {w.asserted_at} straddles revocation/rotation window " f"(skew={v.clock_skew_budget}, sla={v.propagation_sla}); park handoff, re-verify at consumption" ) # DETERMINATE_VALID: only now may irreversible effects commit return effects ```