Consumer-Time Validity in Stateful AI Runtimes: Verifying Recovered State and Deferred Authority
Guijia Zhang, Huihao Jing, Bing Li, Shing-Chi Cheung, Harry Yang, Ziqi Zhang
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.
Create a lesson
Related papers
ChainIT Transaction Truth: Stablecoins, Web3 Wallets, and Multi-Rail Commerce. A Zero-Trust Control Plane for Verified Identity, Organizational Authority, Runtime Compliance, Secure Wallet Execution, and Immutable Settlement Evidence
Shared title terminology · Eric Tacl, Matthew Koepp, Tim Hines et al.
Tether: Verified Stateful Policy Engine for System-Level Monitoring of Agents
Shared title terminology · Meghana Aparna Sistla, Alaia Solko-Breslin, Somesh Jha et al.
Signed, Valid, and Unauthorized: Authority Closure at the Trust Boundary Between Agent Commerce Protocols and Crypto Wallets
Shared title terminology · Shengwei You, Aditya Joshi, Andrey Kuehlkamp et al.
ParseGap: Testing What Coding Agents Authorize and What Shells Execute
Shared title terminology · Jieyu Li
NRSnooper: Enabling Real-Time Bidirectional Traffic Decoding in Commercial 5G NR Networks
Shared title terminology · Tuan Dinh Hoang, Quang Huy Pham, Taekkyung Oh et al.
A Model Obfuscation and Controllable Authorization Scheme for Deep Learning as a Service
Shared title terminology · Nianyun Song, Haodi Wang, Yu Guo et al.