cs.CRNov 21, 2026

Consumer-Time Validity in Stateful AI Runtimes: Verifying Recovered State and Deferred Authority

Authors: Guijia Zhang, Huihao Jing, Bing Li, Shing-Chi Cheung, Harry Yang, Ziqi Zhang

Organizations: The Hong Kong University of Science and Technology · King Abdullah University of Science and Technology · University of Illinois Urbana-Champaign

Abstract

Stateful LLM serving engines and agent runtimes reuse execution state and deferred permissions across components and sessions. A cancellation, rollback, or approval is recorded by one component and relied on by another, and recording it does not make the later use valid: a downstream consumer may read state or dispatch an action whose identity, production status, allocation, or target revision has since changed. We call the missing check consumer-time validity and separate two forms. State validity governs what a consumer reads. On vLLM with LMCache, an interrupted KV load leaves unwritten blocks indexed, and a host-only counter rewind desynchronizes the GPU position, so a second tenant generates a schema-valid tool call naming the wrong tenant in 10/10 native-fault runs; the call is recorded and not executed. Authority freshness governs what a consumer executes: on a multi-session approval runtime, an unrevoked deferred grant overwrote a newer revision in one admitted live execution. Output equality cannot test state validity: a fault-free run diverges at token 30 through BF16 batching alone while attended-KV digests match. We therefore specify consumer-bound recovery contracts that, for state recovery, jointly require exclusion, retention, and task completion, and an admissible-witness standard realized as a GPU-free offline trace verifier over scheduler metadata and persisted tool artifacts. On recorded traces the verifier agrees with the reference verdicts in 42/42 frozen GPU-matrix scenarios. An allocation-aware repair satisfies 7/7 triggered vLLM fault predicates on a pinned scheduler-case matrix, where upstream PR 61769 satisfies 2/7, and revision-bound dispatch blocks all 160 deterministic conflicting overwrites in a separate dispatcher cohort. Recovery must be checked where state and authority are consumed, with evidence bound to the consuming request.

Figures & tables

Explore similar work

Aug 3, 2026

Beyond Single-Use Tokens: Durable Authorization State for Replay-Resistant LLM Agent Actions

Tool-using large language model agents frequently replan, retry failed operations, delegate tasks, and resume after crashes. These behaviors can cause one user authorization to be requested and executed multiple times under freshly issued token identifiers, even when each individual token is single-use. We call this failure semantic replay: exceeding the execution budget of a token-independent authorization instance rather than merely reusing an old token identifier. We show that identifier-local token consumption cannot prevent fresh reissuance unless the issuer retains monotonic durable state over the authorized action, confirmation event, and remaining execution budget. We introduce CapLease, an authorization-consumption layer that follows proposal- and authority-level defenses, binds an authenticated user confirmation to a canonical action, and enforces transactional Issue-Prepare-Commit transitions. Across LLM-agent replanning, retry, delegation, concurrency, confirmation-replay, and crash-recovery scenarios, identifier-local tokens permit fresh semantic reissuance, whereas CapLease and an equally stateful Server Ledger prevent duplicate admission and, with an idempotent sink, duplicate external effects. Our results identify durable authorization state, rather than token representation alone, as the systems requirement for replay-resistant agent execution.
Oct 22, 2026

Permission to Retry: A Study of Authorization and Recovery in AI Agent Workflows

A durable agent can resume a consequential action while its authority changes and the action's external outcome remains uncertain. We study execution-time reliability of tool-using AI agents, isolating recovery decisions from language-model behavior. Checkpoint state, permission to dispatch, evidence of an external effect and permission to reconcile are distinct obligations. We present a finite conformance study that checks these obligations through histories scored against a provider effect ledger hidden from the recovering application. A prospectively frozen campaign executes 336 histories on native LangGraph and Temporal hosts, crossing 14 schedules, three provider contracts and four matched application policies. All 168 paired host cells have identical checked outcomes. Per host, retained-ledger reconciliation passes all 42 histories: 21 checked completions, 15 denials and six unknown outcomes with reservations retained. Cached retry, revalidation before retry and stable-key retry pass 30, 36 and 31 histories respectively. A separate 16-case component study of InfinityOS, an enterprise AI platform developed by Arya.ai, exercises exported authority, worker, recovery and settlement code over repository fakes. The results isolate the roles of current authority, provider contracts and retained observations in recovery, with safety, completion and unresolved obligations reported separately for the declared application profile.
Jul 11, 2026

Temporary Authority, Permanent Effects: Commit-Time Authorization for LLM Agents

An LLM agent often acts on an approval it observed earlier: it reads the approval, prepares the request, and commits later. If the approval was withdrawn, or covers a different effect, the service can apply the change and report success. Seventeen fixed advisories from three deployed agent products document failures: an approval did not cover the executed effect, with no intervening change (12), or survived a change in the facts it depended on (5). We propose commit-time authorization (CTA), requiring at least one complete, current justification for the exact effect at commit: a live grant, current premises, ready dependencies, an exact-effect binding, and an eligible path. CommitGate selects one complete justification. The sink validates it or consumes an expiring, single-use derived grant atomically with the effect. In a five-model service study whose prompt states the authorization rule, timely notice prevented nearly all unauthorized effects for GPT, Fable, and Sonnet, and fewer for Qwen and Gemma. Without a signal, all five mostly completed tasks with unauthorized effects, even when a read could reveal the change; Fable's counts use its provider's answered requests. Protected sinks enforced the declared policy in LangChain approval flows, OpenHands coding tasks, services under cloud contention, and a transaction-runtime integration. The services and runtime refused effects that lost authority after a positive check and preserved fresh alternatives. After refusal, GPT, Fable, and Sonnet on OpenHands mostly published to a separately authorized target. Machine-checked proofs show whole-candidate selection, trace safety for mediated atomic sinks, and exact single-use transfer. With honest issuers, unique candidate IDs, and a premise required by policy, every candidate CTA accepts in the model carries a live grant given at the current version; slot-by-slot checks do not ensure this.