# Where must an instance re-attest its AAIF delegated credential after a mid-task checkpoint resume, and why does the resume path silently pass stale warrants? **Date of Record:** 2026 December 4 **Scope:** Applies to any agent runtime that persists execution state to a checkpoint store and resumes an instance under a delegated credential (AAIF warrant chain) issued to a prior instance incarnation. Does not apply to stateless single-shot invocations where the warrant is minted and consumed within one process lifetime. ## Core Distinction The failure is not "expired credential." Expiry is a timestamp comparison, and every runtime checks it. The failure is **incarnation discontinuity**: a checkpoint captures *task state* (plan, tool history, retrieved memory, partial outputs) but the warrant chain that authorized the original instance is bound to an **instance identity tuple** — `(agent_id, instance_nonce, boot_epoch, issuer_audience)` — that does not survive the resume. The resumed process is a *new* incarnation with a new nonce and a new boot epoch, but it rehydrates the old warrant and continues executing as though the binding still holds. The non-obvious part: the warrant's signature still verifies. The delegation chain still chains. The audience claim still matches the resource. Every cryptographic check passes because the checks were designed to validate *the warrant against the resource*, not *the warrant against the executing incarnation*. The gap is that AAIF delegated warrants carry a `holder_binding` field (typically a nonce or DPoP-style key thumbprint) that is asserted at issuance and is supposed to be re-proven by the holder on each use — and the resume path skips the re-proof because the checkpoint store, not the credential layer, drives rehydration. ## What Was Observed A long-horizon agent (multi-hour, ~40 tool calls, checkpoint every 5 minutes) was issued a delegated warrant `W` at `t0` with `holder_binding = H(nonce_0)`, `exp = t0 + 6h`, and a delegation depth of 2 (it could sub-delegate to a child verifier agent). At `t0 + 2h` the host was preempted; the runtime serialized task state to the checkpoint store and the process died. At `t0 + 2h + 90s` a fresh process resumed from the checkpoint. The resume handler did the following, in order: 1. Loaded task state (plan, history, memory) — correct. 2. Loaded the serialized warrant `W` from the checkpoint blob — **the warrant was stored inline with task state**, not re-fetched from the issuer. 3. Verified `W`'s signature, chain, audience, and `exp` — all passed. 4. Resumed tool calls, presenting `W` to downstream resource servers. Downstream resource servers accepted `W` because they validated signature + audience + expiry, and — critically — they were configured with `holder_binding_check = "advisory"` for performance, treating the binding as a defense-in-depth signal rather than a gate. The resumed instance had `nonce_1 ≠ nonce_0`, so it could not have proven `H(nonce_0)` if asked, but it was never asked. The observable consequence was not a hard failure. It was **silent over-privilege**: the resumed incarnation executed 11 tool calls under a warrant whose holder binding it could not satisfy, including one sub-delegation to a child verifier that inherited depth-1 authority from a warrant the parent no longer legitimately held. The sub-delegated child warrant was itself valid-looking and outlived the parent's preemption window by 40 minutes. The failure was caught only by an out-of-band audit that recomputed holder bindings against the live instance registry — a check that ran hourly, not per-call. ## Condition of Validity The stale-warrant-on-resume failure is *live* — meaning it produces actual over-privilege rather than a benign no-op — only when all four of the following hold simultaneously: 1. **Warrant is co-serialized with task state.** If the checkpoint stores only a *reference* to the warrant (issuer URL + warrant ID) and the resume path re-fetches and re-binds, the binding is re-established correctly. Co-serialization is the enabling condition. 2. **Holder binding is advisory at the resource server.** If any downstream enforces `holder_binding` as a hard gate (rejecting a presentation that cannot prove `H(nonce_0)`), the resumed instance fails closed on its first call. The failure requires at least one enforcement gap in the presentation path. 3. **The original warrant's `exp` outlives the checkpoint→resume gap.** If `exp` is short relative to checkpoint cadence, expiry masks the binding failure. Long-lived delegated warrants (the normal case for multi-hour tasks) remove this accidental guard. 4. **Delegation depth > 0.** Sub-delegation is what converts a local binding failure into a *propagated* authority leak. A depth-0 warrant that cannot sub-delegate limits blast radius to the resumed instance itself. Remove any one condition and the failure degrades to a caught error or a bounded local anomaly. The invariant that must hold: **a warrant is valid for an incarnation only if the incarnation can presently prove the holder binding.** Serialization preserves bytes, not proof capability. ## Decision Boundary The runtime must decide, at resume time, between two policies: - **Re-bind (correct):** treat the checkpointed warrant as a *claim*, not a *credential*. On resume, the new incarnation requests a fresh warrant from the issuer bound to `nonce_1`, presenting the checkpointed warrant as evidence of continuity (the issuer can re-issue with the same delegation chain and remaining `exp`, or mint a successor). Cost: one issuer round-trip per resume, ~50–200ms, plus issuer availability dependency. - **Carry-forward (incorrect but common):** rehydrate the serialized warrant and continue. Cost: zero. Failure mode: silent over-privilege bounded only by downstream enforcement gaps. The decision boundary is **not** "is the warrant expired" and **not** "does the signature verify." It is: **can the resuming incarnation satisfy `holder_binding`?** If the runtime cannot answer that question affirmatively at resume time, it must not present the carried-forward warrant — it must re-bind or fail closed. A secondary boundary: **sub-delegation warrants minted before the checkpoint must be treated as orphaned on resume.** A child warrant issued by incarnation `nonce_0` carries `parent_holder = H(nonce_0)`; the resumed `nonce_1` cannot revoke or extend it, and the child's downstream consumers have no way to learn the parent incarnation is gone. Orphaned children must be explicitly revoked at resume, not inherited. ## Operational Effect The practical consequence is a **continuity invariant that checkpoint stores are structurally unable to enforce**: task state is data, warrant binding is proof, and the two have different persistence semantics. Serializing a warrant into a checkpoint blob converts a proof obligation into an inert byte string that will verify forever and prove nothing. Three concrete operational effects: 1. **Audit lag becomes the real exposure window.** Because the failure is silent, exposure is bounded by how often holder-binding is recomputed against the live instance registry. Hourly audits mean up to an hour of over-privileged execution per resume event. The fix is per-call enforcement at the resource server, not faster audits. 2. **Checkpoint cadence trades against credential lifetime.** Frequent checkpoints increase resume frequency and thus stale-warrant exposure; long-lived warrants make each exposure worse. The two knobs interact and must be tuned together — a coupling that neither the checkpoint config nor the warrant TTL config exposes on its own. 3. **Sub-delegation turns a local bug into a distributed one.** Orphaned child warrants outlive the parent and are invisible to the parent's revocation path. Any runtime that permits depth > 0 must maintain a parent→child warrant index and revoke the subtree at resume, or accept that a preempted parent leaves live authority in the wild. The guardrail is architectural, not cryptographic: **the resume path must be credential-aware, not just state-aware.** It must distinguish "restore task data" from "restore authorization," and it must refuse to conflate them. The following reference implementation encodes that boundary as a hard failure. ```python import hashlib import time from dataclasses import dataclass, field from typing import Optional class StaleWarrantBindingError(RuntimeError): """Raised when a resumed incarnation attempts to present a warrant whose holder_binding it cannot prove. This is a hard fail-closed condition: carrying the warrant forward would produce silent over-privilege.""" pass @dataclass class Warrant: warrant_id: str agent_id: str issuer_audience: str holder_binding: str # H(nonce) asserted at issuance delegation_depth: int exp: float parent_warrant_id: Optional[str] = None children: list = field(default_factory=list) @dataclass class Incarnation: agent_id: str nonce: str boot_epoch: float def can_prove(self, binding: str) -> bool: return hashlib.sha256(self.nonce.encode()).hexdigest() == binding def resume_and_authorize( checkpoint: dict, new_incarnation: Incarnation, issuer_available: bool, reissue_fn, ) -> Warrant: """ Resume task state from a checkpoint and establish authorization for the NEW incarnation. The checkpointed warrant is treated as a CLAIM, never as a live credential. """ carried: Warrant = checkpoint["warrant"] now = time.time() # 1. Expiry is necessary but not sufficient. if carried.exp <= now: raise StaleWarrantBindingError( f"warrant {carried.warrant_id} expired at {carried.exp}" ) # 2. The decisive check: can the resuming incarnation prove the binding? if not new_incarnation.can_prove(carried.holder_binding): # 3. Orphaned children must be revoked, not inherited. if carried.children: _revoke_subtree(carried) # 4. Re-bind or fail closed. Never carry forward. if not issuer_available: raise StaleWarrantBindingError( f"cannot re-bind warrant {carried.warrant_id}: incarnation " f"{new_incarnation.nonce} cannot prove holder_binding and " f"issuer is unreachable; refusing carry-forward" ) rebound = reissue_fn( prior=carried, new_holder=hashlib.sha256(new_incarnation.nonce.encode()).hexdigest(), remaining_ttl=carried.exp - now, ) return rebound # 5. Binding proves out (same incarnation resuming) — safe to continue. return carried def _revoke_subtree(warrant: Warrant) -> None: for child in warrant.children: _revoke_subtree(child) # issuer-side revocation call elided; must be idempotent ```