betaFeedback

WorksComputer Science

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

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.

Evaluated Systems: vLLM + LMCache · SGLang · Google ADK · ChatGLM2 · DSH Approval Runtime (Cline as a control)

Figure 1. In both incidents the upstream decision is recorded correctly, and the consumer acts without checking it. Top lane: ALPHA’s cache load is interrupted, but the prefix index still lists blocks that were never written, so BETA’s lookup matches them and BETA generates a schema-valid call naming ALPHA; no backend executes the call (§ 7.1 and § 7.5). Bottom lane: a write grant queued at revision κ\kappa passes every identity check after Session 2 has committed κ+1\kappa+1, and the dispatcher never compares revisions (§ 8). The figure is schematic. Counts and timings appear in the cited sections.

Introduction

Agent platforms no longer serve independent prompts. One conversation’s execution state is spread over a transcript, a key-value (KV) cache, a prefix index shared across tenants, GPU block tables, position counters, exported memory, and queues of pending tool approvals, and platforms reuse that state to avoid recomputation [3, 4]. Cancellation, rollback, failure recovery, and deferred approval raise a simple question: once an operation is canceled or rolled back, which state and which operations remain valid downstream? Recording the decision where it was received does not answer it for the prefix index, the asynchronous load path, the GPU position, or the tool executor that consults the state later. The answer decides whether tenants stay isolated, whether a recovered agent resumes from the right history, and whether an approved action is still authorized when it runs.

Consider tenants ALPHA and BETA that share a cached system-prompt and tool-schema prefix, loaded from an external KV store. ALPHA’s load is interrupted, the connector reports the failure, and the engine follows its recovery path. A later request may safely reuse only state whose production completed and whose validity remains established. In vLLM with the LMCache connector under the recompute failure policy, this requirement is not met. The interrupted load wrote only part of the shared prefix, yet the prefix index still lists all of it. When BETA’s request arrives, the index reports a full hit, and BETA is admitted onto KV positions that the aborted load never populated. In all 10 runs of our fixed fault protocol, BETA then generates a schema-valid tool call that names ALPHA as its target instead of its own tenant, although the connector failure was recorded, BETA’s session was authenticated, and the call satisfied the tool schema. The call is recorded and not executed, so the experiment shows wrong-target call generation and not an unauthorized write.

The same gap appears in tool execution. In a multi-session coding agent, Session 1 queues a file write for approval at the file’s revision κ\kappa, while Session 2 independently obtains approval and commits revision κ+1\kappa+ 1. Session 1’s grant is never revoked, so when it is released the dispatcher finds principal, path, operation, and permission version all valid. It never reads the target’s live revision, and the stale write overwrites Session 2’s newer state. The approval was valid at issuance; what the dispatcher fails to re-establish is that it still applies to the file as it now stands.

In both incidents an upstream component records its decision correctly, yet the decision and its use are separated by representation, identity, and time. A token hash is not the bytes a producer wrote, and a grant names a principal and not the target’s current revision. The prefix index trusts the hash, and the dispatcher trusts a grant that was valid when issued. The missing step is validation at the point of use, which we call consumer-time validity: the state or authority that a consumer relies on must still be valid when the consumer relies on it. The property has two forms that check different things. State validity asks whether cached or derived state may still be read after a cancellation, rewind, or block reallocation. Authority freshness asks whether an unrevoked permission may still be exercised after its target has changed. The two share the point of use but not the identity that must be checked.

Three properties make such failures hard to anticipate, verify, and repair. The state is spread across representations and clocks: subsystems advance the index, block tables, position counters, logs, and queues asynchronously, so a cancellation can reach one representation and miss another. The evidence that is easy to collect does not decide the question. A fault-free run can diverge from its reference output through BF16 batching alone. A hit counter certifies an index entry and not the bytes behind it. A test of the canceled request misses the later request that consumed the state. A local repair does not give a complete recovery: evicting an index entry, rewinding a position, discarding a cache, or terminating an owner each establishes one condition, whereas recovery must exclude invalid state, retain valid state, and let the dependent task complete.

Our method answers these properties in three steps, and each step answers a different question. A consumer-bound recovery contract states what must hold at a consumer. A cached prefix may be read only if the producer completed it, a delayed report must still refer to the block’s current allocation, and the continuation must resume from a coherent position. A queued write may run only if its target is still at the approved revision. An admissible witness is the evidence that decides whether the contract holds for the request that consumed the state. Scheduler metadata and persisted tool artifacts qualify, whereas output equality and hit counters do not. A boundary repair then makes the contract hold where the state is consumed, without discarding valid state. Our GPU-free offline verifier reads only admissible evidence and enforces nothing, so its verdicts depend on the instrumentation that recorded that evidence. Attended-KV digests come from a separate online audit. We use the method to test whether native recovery and the upstream patch satisfy the contract.

That recorded rollback can diverge from the state a model attends is not new. An earlier study showed that a retained session KV cache can outlive a logical rollback in application-level agents, and it placed content-addressed prefix caches such as vLLM’s outside that channel [55]. Public vLLM reports describe individual serving failures and one local fix [13, 14, 34]. Our contribution begins where logical-history criteria stop: in the asynchronous serving lifecycle the tokens match and the prefix is legitimately requested, so a logical-history check passes, yet production completion, allocation identity, and position coherence can still fail at the consumer.

We evaluate pinned versions of vLLM with LMCache, SGLang, Google ADK, ChatGLM2, and the DSH approval runtime, with Cline as a negative control whose checkpoint restore behaved correctly. Each result below keeps its own denominator. The vLLM case carries the main systems argument. On a pinned scheduler matrix with seven triggered fault predicates, upstream PR 61769 satisfies 2 and our allocation-aware repair satisfies all 7, because the patch covers the direct-abort path but not preempted owners or reports aimed at a recycled block. A two-by-two factorial on the live path shows why no single repair suffices: eviction alone leaves the continuation corrupted, device rewind alone leaves unwritten state admitted, and only their conjunction meets both conditions. Without the repair, the interrupted load leads a second tenant to generate a schema-valid wrong-target call in 10 of 10 runs, and the repair restores the correct target.

The remaining results concern the evidence and the other consumers. In a fault-free control, batching alone makes the output diverge at token 30 although the attended KV digests match, so output equality cannot serve as the test. The offline verifier matches the reference’s verdict on all 42 cells of the frozen GPU matrix. Both read the same recorded traces, so this is conformance and not independent ground truth. Four further cases ask the same question of other consumers. ChatGLM2 shows that clearing state is not recovery, and ADK shows that a filtered view does not bind the exporter. SGLang shows that the gap is not confined to vLLM. In DSH, an unrevoked grant overwrote newer state in one admitted live execution, and revision-bound dispatch blocked the overwrite in controlled tests.

We make three contributions.

  • Security characterization. On unmodified serving and approval stacks, we show that cancellation, rollback, and approval records can be valid where issued yet unenforced where state is consumed. We separate state validity from authority freshness, trace each failure to a missing consumer-side condition, and show that the failure reaches a second tenant’s generated tool call.

  • Consumer-bound verification methodology. We define consumer-time validity as a property of one consumer event relative to a contract, with state validity and authority freshness as two instances that check different identities. We add an admissibility standard for witnesses, which rejects output equality and hit counters for state predicates. We instantiate it as a GPU-free offline verifier over scheduler metadata and persisted receipts, with attended-KV digests left to a separate online audit.

  • Causal evaluation of repair sufficiency. We score an upstream patch against the contract, show with a factorial ablation that eviction and device rewind are independent and jointly required on the tested path, and show with a naive-clearing control that exclusion must not cost retention. We implement boundary repairs in five systems and derive design requirements for stateful agent runtimes (§ 9).

Threat Model and Security Goal

System model

Serving engines and agent runtimes are pipelines of components that share state across sessions, and three kinds of boundary matter. A representation boundary separates subsystems that encode one context differently, such as GPU blocks and a prefix index, an event log and an exported memory view, or a transcript and a cache. An authority boundary separates the policy engine that issues an approval from the dispatcher that executes it. A trust boundary separates tenants that share infrastructure. Three common optimizations make crossing these boundaries routine: paged and disaggregated KV memory pools system prompts and tool schemas across tenants [3, 4], asynchronous approval queues let a target change between grant and dispatch, and checkpoint and rewind interfaces move the same context backward in time [8, 10, 11].

Trusted base, assets, and adversary

We trust the GPU kernel runtime, the hardware memory allocator, the host operating system and file system under external KV tiers and session databases, and SHA-256. We assume no memory-safety corruption, kernel compromise, sandbox escape, or stolen token. Within this base, three assets need protection. Cross-tenant KV isolation requires every attention step to read only blocks whose tokens match its prefix and whose bytes a producer fully wrote. Post-revocation context integrity requires turns removed by deletion, rewind, or prefill rejection to stay out of later forward passes, memory exports, and tool calls, while retained history survives. Authority freshness requires every mutating tool call to bind to the live revision κ\kappa of its target at dispatch.

The adversary is an unprivileged session that uses only public APIs and submits benign content. It controls timing. It can abort a transfer, let a timeout expire, burst requests until the scheduler preempts a load, trigger a streaming-guardrail rollback, or hold an approval request until another session has changed the target. These mechanisms separate the recorded revocation from the later consumption of state, and the same transitions occur benignly through connector drops, cache evictions, and preemptions. Unlike work on injected prompts and poisoned memory [1, 2, 21], our adversary supplies no malicious content. We distinguish three outcomes of increasing severity: consumption of invalid or stale state, generation of a wrong-target tool call, and actual unauthorized execution by a backend. The vLLM experiment reaches the second outcome and not the third. It uses a schema-defined tenant argument and performs no backend write. The DSH overwrite of § 8 is an executed write, made under a grant that was stale for the target’s current revision. An unauthorized write would additionally require a backend that authorizes the model-supplied tenant identifier without binding it to the authenticated principal.

Each asset is guarded by a consumer operation. The prefix-admission path and the model runner guard KV isolation, the memory exporter and later forward passes guard context integrity, and the tool dispatcher guards authority freshness. The adversary’s timing control matters because it separates the upstream record from the operation that depends on it.

Security goal

Across every lifecycle transition, we require three properties. Complete Mediation: each state read and tool dispatch verifies current validity at the consuming interface. Post-revocation isolation: the footprint of an aborted or low-trust session stays within its own execution scope. We use the term informally, without an information-flow noninterference proof. Fail-closed isolation: an interrupted transfer or overtaken grant defaults to refusal or clean recomputation. The three are ordered by dependence. Complete mediation is the mechanism, since a check at every consuming interface is what can keep a revoked footprint out of other scopes. Post-revocation isolation is the intended outcome of that mediation, and we test it through observable consequences and not through a proof. Fail-closed isolation fixes the default when the check cannot be completed, so a missing witness yields refusal and not admission. A missing check lets the downstream use proceed even when an upstream component has recorded the failure. The goal follows the reference-monitor tradition [28, 29, 30]. § 3 states it per consumer, and § 10 relates it to prior mechanisms.

Consumer-Bound Recovery Contracts

Complete mediation requires that every access be checked, but it does not say what the check must establish. After a cancellation, rewind, or approval, the checks that components already perform answer neighboring questions. A prefix-hash match shows shared text, not written key-value tensors. A block identifier in a failure report names a slot, not its owner after reallocation. A host-side rewind restores the scheduler’s token count, not the device position. An approval records what the reviewer saw, not the revision at dispatch. A consumer is the component that reads state or executes an action after a recovery transition: the scheduler’s prefix-admission path, the model runner that continues from a position, a memory exporter, or a tool dispatcher. A consumer-bound contract states what that consumer must establish before it relies on the upstream record.

The method has three parts that answer different questions. The contract states what must hold at a consumer. A witness is the evidence that decides whether it holds (§ 4). A repair is the change that makes it hold (§ 5). None of the three substitutes for another. A verifier that reads admissible witnesses enforces nothing, a repair that passes its tests does not show that the contract holds on other paths, and an upstream acknowledgment is none of the three.

The contract sits between two other layers (Table 1). Security goals say what the runtime should protect. The contract turns a goal into predicates on one consumer’s use of one object. Witness requirements then limit which evidence may decide those predicates. They constrain the evidence and do not define correctness.

Table 1: Three layers connect a security goal to checkable evidence. Repairs are not a fourth layer. They are the mechanism that makes a contract hold, and witnesses decide whether it does.

LayerQuestion it answersContent
Security goals (Section 2.3)What should the runtime protect?Complete mediation, post-revocation isolation, fail-closed isolation
Contract (this section)What must hold at this consumer?Predicates ΦC(e)\Phi_{\mathcal{C}}(e). For state recovery: Equations 3 and 4, judged by exclusion, retention, and completion
Witness requirements (Section 4.1)What evidence may decide a predicate?Identity, Semantic Sufficiency, Independence

Table 1.

What a contract specifies

A contract for one recovery transition is the tuple

C=(op⁡,Pre,T∗,Γ,I,A).(1)\mathcal{C} = (\operatorname{op}, \mathrm{Pre}, T^{*}, \Gamma, I, A). \tag*{(1)}

Here op⁡\operatorname{op} is the lifecycle transition, Pre\mathrm{Pre} its precondition, T∗T^{*} the canonical history after recovery, Γ\Gamma the consumers it covers, II the interval over which it must hold, and AA the authorization policy. For a deleted turn, op⁡\operatorname{op} is the deletion, T∗T^{*} is the transcript without that turn, and Γ\Gamma contains the model runner and any memory exporter.

Consumer-time validity is a property of one consumer event, stated relative to such a contract.

Definition 1 (Consumer event and consumer-time validity). A consumer event is a tuple e=(c,o,a,t)e=(c,o,a,t): consumer cc performs operation aa on object oo, and tt is the logical point at which cc validates oo and relies on it. The object oo is a state representation or an authorization grant. A contract C\mathcal{C} covers ee when c∈Γc \in\Gamma, t∈It \in I, and Pre\mathrm{Pre} holds in the execution.

For a covered event, the contract fixes a finite, nonempty set ΦC(e)\Phi_{\mathcal{C}}(e) of predicates over oo, its lifecycle record, and the state of its target at tt. The event is consumer-time valid under C\mathcal{C} when every predicate holds:

CTV⁡C(e)⟺⋀φ∈ΦC(e)φ(e).(2)\operatorname{CTV}_{\mathcal{C}}(e) \Longleftrightarrow\bigwedge_{\varphi\in\Phi_{\mathcal{C}}(e)} \varphi(e). \tag*{(2)}

CTV⁡C(e)\operatorname{CTV}_{\mathcal{C}}(e) is defined only for covered events, and requiring ΦC(e)\Phi_{\mathcal{C}}(e) to be nonempty rules out validity that holds because nothing was checked. When an operation spans an interval, tt marks where the check is made, and § 3.4 states when the predicates must keep holding afterward.

The definition fixes the form of the requirement, not its content. We instantiate a contract for one protected operation in five steps. We identify the consumer and the operation it performs, then the object it consumes, and then the lifecycle transition op\mathit{op} that can change the object’s validity, together with Pre and the canonical history T∗T^*. From these we determine the identities the consumer must check, which the authorization policy AA supplies for grants. Finally we state the predicates and the evidence admissible for each (§ 4). Table 2 shows the result for cache admission and tool dispatch. Covering an event fixes which predicates must be shown and does not establish any of them. If no contract covers an event, or a required predicate cannot be decided from admissible evidence, consumer-time validity is not established, and the fail-closed goal of § 2.3 calls for refusal or clean recomputation. We carry out this procedure for the consumers studied here. We do not claim that the predicates can be derived automatically, or completely, for arbitrary runtimes.

Table 2: State validity and authority freshness differ in what the consumer must check. Both instances ask the consumer to re-establish at use what an upstream record asserted at issue.

State validity (cache admission)Authority freshness (tool dispatch)
Relies onA cached prefix and the position it resumes fromA grant issued earlier
Upstream recordLoad-failure report, cancel, or rewindApproval
Identity checkedTask eligibility T\mathcal{T}, allocation generation ggPrincipal, session, permission version, live revision κ\kappa
PredicateEquation 4, and a generation match for late reportsEquations 5 and 6
Admissible evidenceTier-2a scheduler metadata, Tier-2b bytes where collectedGrant κ\kappa against live κ\kappa, Tier-3 artifact

Table 2.

(3) states the state-selection requirement for consumers that read state. Fast-path reuse must be indistinguishable from rebuilding the state from scratch over T∗T^*. Consumers read concrete indices, block tables, and logs, so we state the requirement over the representation a consumer selects. Let StS_t be the runtime state at time tt. For consumer c∈Γc \in\Gamma and query uu, let Read⁡c(St,u)\operatorname{Read}_c(S_t,u) be the representation that cc selects from StS_t, and let RC,c(T∗,u)\mathcal{R}_{\mathcal{C},c}(T^*,u) be the representations equivalent to fresh construction from T∗T^* and uu:

Pre⁡⟹Read⁡c(St,u)∈RC,c(T∗,u),c∈Γ, t∈I.(3)\operatorname{Pre} \Longrightarrow\operatorname{Read}_c(S_t,u) \in\mathcal{R}_{\mathcal{C},c}(T^*,u), \qquad c \in\Gamma,\ t \in I. \tag*{(3)}

The equation must hold for every covered consumer and every t∈It \in I in executions where Pre holds. It constrains which representation the consumer selects and nothing more. Two other equalities are easy to confuse with it. Equality of generated tokens is a property of outputs, and it can fail through arithmetic alone (§ 4.2). Equality of physical KV bytes is a property of device memory, and only the Tier-2b digests observe it.

Exclusion and retention are the two directions of the selection requirement. Exclusion (OexO_{\mathrm{ex}}) requires that no revoked or unwritten state is selected. Retention (OrtO_{\mathrm{rt}}) requires that valid history stays selected. Correct selection does not by itself make a task succeed: a consumer can select exactly the right state, and the task can still fail on a tool error or a missing resource. We therefore judge recovery by a third, conditional obligation. Completion (OcpO_{\mathrm{cp}}) requires that tasks that depend on retained history still succeed, provided the valid resources and inputs they need remain available. It is a progress condition and not a claim of universal liveness. Recovery adequacy is the conjunction Oex∧Ort∧OcpO_{\mathrm{ex}} \land O_{\mathrm{rt}} \land O_{\mathrm{cp}}. Exclusion alone is trivially met by deleting everything, and a recovery that discards valid state has not recovered. We call a repair adequate only on the paths and cohorts where all three were measured. These are obligations of state recovery. They are not requirements for every authorization operation, and § 3.5 gives the authority-side counterpart.

Proposition 1 (An acknowledgment does not establish consumer-time validity). Let α\alpha be an upstream acknowledgment of op\mathit{op}, such as a recorded cancellation, settlement, or approval, and let ee be a covered consumer event after op\mathit{op}. In the pinned runtime implementations we evaluated, executions exist in which α\alpha holds and some predicate of ΦC(e)\Phi_{\mathcal{C}}(e) fails. The acknowledgment therefore does not entail CTV⁡C(e)\operatorname{CTV}_{\mathcal{C}}(e), and a consumer that admits ee on α\alpha alone can use invalid state or stale authority.

Justification. The claim is an existence result established by exhibition on pinned stacks. A recorded connector failure coexists with indexed, unwritten positions that violate [0,r)⊆V(x)[0,r) \subseteq V(x) of Equation (4) (§ 7.1). An unre… satisfies Equation (5) and violates Equation (6) (§ 8). A recorded rewind that is applied correctly to the filtered event view coexists with an exporter that reads the raw log and exports rewound turns in 6/9 histories (§ 6.2). The proposition does not say how often this happens, and it does not extend to runtimes we did not evaluate.

Proposition 2 (Exclusion does not stand in for recovery). For the state-recovery contracts evaluated here, a repair that satisfies exclusion need not satisfy retention or completion, so exclusion alone does not establish recovery adequacy. On the vLLM path, restoring production completion of the admitted prefix need not restore execution-position coherence, and the reverse also holds. No single repair or check stands in for the measured conjunction.

Justification. The claim rests on two measured families of arms. On ChatGLM2, native deletion violates exclusion in 6/6 conditions, naive clearing satisfies exclusion in 6/6 and drops retention and completion to 0/6, and prefix reconstruction satisfies all three in 6/6 (§ 6). On vLLM, eviction alone bounds admission and leaves the continuation corrupted in 10/10 runs, and device rewind alone gives a correct continuation while unwritten positions stay admitted in 10/10 runs (§ 7.4). The vLLM arms separate two conditions of Equation (4) and not the three obligations. The proposition does not say the obligations are independent in general or that they are the only ones a recovery needs, and the ChatGLM2 and vLLM paths do not exhaust the combinations of satisfied and violated conditions.

One property, two predicates

State validity and authority freshness are two instances of Definition 1, and Table 2 sets them side by side. The consumers check identities in three spaces, each advanced by a different event. Task eligibility T\mathcal{T}, advanced by cancellation, records whether the consuming task may still use an object under T∗T^*. Block ownership B\mathcal{B}, advanced by reallocation, holds live block instances, each tagged with its allocation generation gg. Target authorization O\mathcal{O}, advanced by workspace writes, holds the live revisions of the targets that grants name. No single epoch orders all three.

Both instances share one principle. An upstream decision is treated as sufficient evidence for a downstream operation, and the conditions that the operation requires are not re-established. They differ in what those conditions are. State validity concerns an object’s identity, whether its production completed, whether the execution position is coherent, and where it stands in its lifecycle. Authority freshness concerns the principal, the permission, the target, the target’s revision, and whether the check and the write form one atomic step. For this reason authority freshness is not expressed through exclusion, retention, and completion. It has its own predicates (§ 3.5).

State validity: prefix identity and allocation generation

Prefix caches match requests by hashing token sequences. Equal hashes show that two prompts contain the same text and show nothing about whether a producer finished writing the corresponding key-value tensors. Fix weights, tokenizer, template, masks, positional encoding, and cache layout. Let C=T(H∗∥u)C = T(H^* \Vert u) be the canonical sequence for the history H∗H^* that T∗T^* retains and for query uu, where TT applies the fixed template and tokenizer. Split CC into a cached prefix C:rC_{:r} of length rr and a continuation Cr:C_{r:}. Let Q:rQ_{:r} be the tokens that the admitted cache entries represent. Each artifact xx has an owner, an allocation generation gg, a producing execution, and a verified completed range V(x)V(x). The continuation also runs at a position. The scheduler keeps a host-side position πh\pi_h for the request, and the model runner reads a device-side position πd\pi_d. For the consumer event ee in which the runner continues the request after an admission of rr positions, let SeamOK⁡(e,r)\operatorname{SeamOK}(e,r) hold when πh=πd\pi_h = \pi_d at the seam, the point where the continuation begins. We evaluate three conditions for cached-prefix admission and subsequent continuation: token-prefix identity, recorded host/device position agreement at the continuation boundary, and production completion over the admitted positions. An admission and its continuation satisfy these three evaluated conditions when

Q:r=C:r,SeamOK⁡(e,r),[0,r)⊆V(x).(4)Q_{:r} = C_{:r}, \qquad\operatorname{SeamOK}(e,r), \qquad[0,r) \subseteq V(x). \tag*{(4)}

Equation 4 states three conditions on one admission and the continuation that follows it. It records the conditions this paper evaluates, and it is not a sufficient criterion for execution correctness: the three conditions do not exhaust the possible runtime lifecycle failures, and the allocation-generation match for delayed reports remains a separate requirement (below). Token identity, Q:r=C:rQ_{:r} = C_{:r}, is all that a prefix hash certifies. Production completion, [0,r)⊆V(x)[0,r) \subseteq V(x), says that the producer wrote the bytes behind the matched prefix. Execution-position coherence, SeamOK⁡(e,r)\operatorname{SeamOK}(e,r), says that the continuation runs from a position on which host and device agree. It is a condition on positions and not on tokens. A recompute that rewinds the host counter and leaves the device buffer in place makes the continuation run 160 positions ahead of where the host believes it is (host 128, device 288 in the evaluated runs). Equal tokens or equal outputs do not establish it. Tokens say nothing about positions, and outputs also vary with arithmetic (§ 4.2).

We state SeamOK as agreement between two recorded counters because that is what the evaluation observes. The paired Tier-2a counters flag all 8 split runs of the 14-run device cohort and none of its 6 coherent runs (Table 3). Agreement of two counters does not show that both equal the position that CC requires, and it says nothing about device memory.

TierSignalWhat it certifies and its limitExcl.Coh.Effect†Cost
0Output equality with the cold referenceWhether the text matches. Cannot separate a position split from an exclusion failure30050No GPU
1Cache-hit counterAn index entry, never the written bytes—3040No GPU
2aAllocation identity, generation, completionExclusion, read from block metadata at report consumption. Silent on position drift030—25.7 μs/step
2aHost and device step counters, pairedCoherence. On a separate 14-run cohort it flags all 8 split runs (host 128, device 288) and none of 6 coherent runs—0/14—25.7 μs/step
2bSHA-256 of attended KV pagesThe bytes attention read. Not collected on this corpusn/an/an/a0.42 ms/layer
3Parser output and re-read tool artifactA generated unauthorized call, which no state signal establishes. Not a backend effect——ref.One episode

Table 3. Each signal agrees with the predicate it certifies and misjudges others, whereas Tier-2 metadata and Tier-3 artifacts decide the predicates they target. Hundred fault-injected runs. Each entry counts runs where the signal contradicts the reference value of the column’s predicate, taken from the harness’s scheduler events and re-read artifacts; a bold zero marks the predicate the signal is meant to certify. A dash marks a pairing that is circular or not meaningful: the hit count is itself the admission measure that defines the exclusion truth, Tier 2a does not observe effects, and Tier 3 defines the effect truth. The device counter is absent from this corpus, so the paired host and device result comes from a separate 14-run cohort.

An aborted transfer satisfies token identity in the index and violates production completion over its unwritten blocks, while a host-only rewind violates SeamOK even when every admitted block was written. The two conditions fail independently, which § 7.4 tests with a factorial repair. § 4.2 scores signals for production completion against an Exclusion reference, and signals for position coherence against a Coherence reference that asks whether the continuation carries the consumer’s own value. Production completion describes the admitted state and is distinct from the task completion of OcpO_{\mathrm{cp}}.

Block recycling adds a hazard that Equation 4 does not address: which block instance a late failure report may act on. A delayed report may arrive after the scheduler has freed block bb and reallocated it to an unrelated request. Matching the report on the bare block identifier then fails or rewinds an innocent owner. Following the lease-generation discipline of Chubby [32], a report ff issued at generation gg may change live state on block instance bg′b^{g'} only if g′=gg' = g. This identity condition governs settlement, not admission, and the two conditions depend on each other. On the vLLM paths of § 7, resolving a report to the allocation that produced it lets settlement find and evict the failed owner’s unwritten blocks even after that owner is preempted, and the generation match keeps a late report off a recycled block. Equation 4 then decides whether the next admission satisfies the three evaluated conditions. If settlement misses the owner, the index still lists unwritten blocks when the next request arrives, and that admission violates production completion.

Lifecycle phases: when consumer time falls

A single canceled flag cannot say when a use is valid, and a single instant does not fit every consumer. Five phases recur in the cases we study. In publication, an upstream component records state, a completion report, or an approval. In acquisition, the consumer obtains the object or prepares to use it, for example through a prefix lookup or the release of a queued grant. In consumption, it reads or relies on the object. Linearization is the point at which the operation takes effect, such as the commit of a write. Settlement and retirement close the lifecycle: outstanding reports resolve, and old resources become safe to reuse.

The point tt of Definition 1 is where the check is made, and some operations also need the predicates to keep holding afterward. An asynchronous KV read needs the admitted blocks to stay valid from acquisition to the end of the read, either because the predicate holds over that interval or because a lifetime mechanism, such as quarantine until readers drain, prevents reuse. A deferred write needs the check at its linearization point, so the revision comparison belongs inside an atomic check-and-write, and a check made earlier leaves a window. A reallocated block needs two separate conditions: a generation match, so that a late report cannot act on the new allocation, and safe retirement, so that no outstanding reader still uses the old one. The experiments measure the admission-time and continuation-start conditions of Equation (4), the generation match on late reports, and the revision comparison at dispatch. They do not measure validity over a full asynchronous read or the draining of outstanding readers, which remain design implications (Table 9). We use the phases as vocabulary for placing predicates, not as a lifecycle protocol.

InterfaceRequirement and motivating observationBasis
SelectionPass the post-recovery target T∗T^* to every adapter and verify prefix identity. ChatGLM2 deletion reads removed-branch KV in 9/9, and a naive clear drops retained history in 6/6Observed, 6 endpoints
Publ. statusBind each completion claim to a receipt for the episode. A denied edit is recorded as completed while the receipt logs the denialObserved, 1 endpoint
OwnershipBind reports to allocation generation gg and settle PREEMPTED owners. Upstream admits 112 prefix tokens where 48 are valid, and PR 61769 leaves PREEMPTED owners unresolvedObserved, 7 endpoints
RetirementQuarantine blocks until in-flight DMA and kernel readers retire. Attribution alone cannot fence an asynchronous readDesign implication
Publ. gatingRe-verify assignment and prefill acceptance before transfer and decode handoff. SGLang forwards KV state and a substitute token after intake rejectionObserved, 1 endpoint
Action auth.Revalidate principal, target, operation, permission version, and live κ\kappa. Binding blocks 160/160 conflicts and 1,502/1,502 sweep conflictsObserved, 1 live ep., 300 inst., 7/7 replays
Ack.Distinguish tcancelt_{\mathrm{cancel}}, tsettlet_{\mathrm{settle}}, and tretiret_{\mathrm{retire}} in the API. One boolean flag creates the preemption and reuse windowsDesign implication

Table 9. Seven interface requirements tie each cross-boundary failure to an observation on a pinned test or to the lifecycle analysis, and five rest on observed failures and repairs. Observed: a failure and a repair were measured on the named pinned system. Design implication: derived from the lifecycle analysis without a dedicated experiment.

Teardown itself spans three instants: logical revocation tcancelt_{\mathrm{cancel}}, settlement of asynchronous reports tsettlet_{\mathrm{settle}}, and physical retirement tretiret_{\mathrm{retire}}. Between tcancelt_{\mathrm{cancel}} and tsettlet_{\mathrm{settle}}, publication of new cache entries stops while owner metadata stays addressable, so that late reports resolve. Between tsettlet_{\mathrm{settle}} and tretiret_{\mathrm{retire}}, blocks stay quarantined until in-flight readers drain, which follows the grace-period idea of read-copy-update [40]. One flag for all three opens the preemption and reuse windows of § 7.

Authority freshness: grants and revisions

Cache admission and failure settlement check task eligibility T\mathcal{T} and allocation generation g∈Bg \in\mathcal{B}. Tool dispatch checks eligibility and the live revision κ∈O\kappa\in\mathcal{O} of the target through the grant θ=(p,s,q,v,j,ρ,h(a),κ)\theta= (p,s,q,v,j,\rho,h(a),\kappa), which binds principal, session, task generation, permission version, operation type, resource, the digest h(a)h(a) of the arguments of the operation aa of Definition 1, and revision. Let ≺\prec be the order in which the runtime records events. TryAdmit(θ)(\theta) is the dispatcher’s attempt to execute θ\theta, NewAccept(θ)(\theta) is its acceptance of θ\theta for execution, Revoke(p,s,v)(p,s,v) withdraws permission version vv for principal pp in session ss, and Stale(θ,κ)(\theta,\kappa) is the event at which the live revision of ρ\rho moves past the revision κ\kappa recorded in θ\theta. Two invariants govern θ\theta. Withdrawing a permission version bars later admission:

Revoke⁡(p,s,v)≺TryAdmit⁡(θ)⟹¬NewAccept⁡(θ).(5)\operatorname{Revoke}(p,s,v) \prec\operatorname{TryAdmit}(\theta) \Longrightarrow\neg\operatorname{NewAccept}(\theta). \tag*{(5)}

A grant that was never revoked still ages when another session advances resource ρ\rho past κ\kappa. Dispatch must therefore validate the revision, as optimistic concurrency control validates a read set at commit [31]:

Stale⁡(θ,κ)≺TryAdmit⁡(θ)⟹¬NewAccept⁡(θ).(6)\operatorname{Stale}(\theta,\kappa) \prec\operatorname{TryAdmit}(\theta) \Longrightarrow\neg\operatorname{NewAccept}(\theta). \tag*{(6)}

Revocation and revision freshness are different conditions. The approval runtime we study enforces Equation (5), and a dispatcher that enforces it alone passes every cancellation test and still fails every concurrent-revision test in Section 8. Performing the check is also not enough. A comparison made before the write can still miss a commit that lands in between, so Equation (6) protects the write only when the check and the write form one atomic step.

Authority freshness has its own counterpart of the requirement that a recovery keep valid state: a revision-bound dispatcher must still apply grants that are current or were re-authorized at the live revision. § 8.2 measures this, and we do not map it onto OrtO_{\mathrm{rt}} or OcpO_{\mathrm{cp}}.

Reference monitors, lease generations, and optimistic validation are the established principles we build on. The contract adds which state objects and consumers of a stateful AI runtime they must bind, which identity each consumer verifies, and the requirement that exclusion and retention hold together.

Admissible Witnesses: Evidence That a Contract Holds

A contract says what must hold at a consumer. This section asks how we can know that it does. Serving tests normally compare the generated tokens of a request with a clean reference run [41, 43, 42]. That signal reads one request’s text, whereas the contracts of § 3 concern which blocks a later request attends and which action it dispatches. The requirements below limit which evidence may decide a predicate. They do not define correctness, which the contract already does. We state the conditions a witness must meet, show that each common signal certifies one predicate and misjudges the others, and validate the verifier built on the evidence that remains.

What makes a witness admissible

An observation procedure OO that evaluates predicate PjP_j at consumer cc is admissible for contract C\mathcal{C} when

Adm⁡(O,C,c)⟺Identity⁡∧SemanticSufficiency⁡∧Independence⁡.(7)\operatorname{Adm}(O,\mathcal{C},c) \Longleftrightarrow\operatorname{Identity} \land\operatorname{SemanticSufficiency} \land\operatorname{Independence}. \tag*{(7)}

Identity binds the witness to the episode, the allocation generation, and the consuming request, so the evidence describes the request that read the state. SemanticSufficiency requires that agreement of the observation entail PjP_j, not merely that a correlated signal match. Independence requires that the witness not come from harness labels or from the index counters under test [46, 47, 44, 45, 48]; it rules out circular evidence that defines its own verdict.

Independence here means non-circularity, which is weaker than independent ground truth. Four notions stay apart. Non-circular evidence means the witness does not take its verdict from the signal under test, and it is all that admissibility requires. Independent parsing means a second reader derives verdicts from the same recorded events, as the two blind language-model parsers of § 4.3 do. It tests whether the specification can be read unambiguously. Independent instrumentation would mean a separately built recorder. We do not have one: the reference verdicts and the offline verifier read the same recorded event stream, so they share the failure modes of the instrumentation that produced it. Independent physical ground truth would require observing device memory itself. Only the Tier-2b digests do, and only where they were collected. We call a witness that meets the three conditions admissible.

Proposition 3 (Evidence-bound verification). Let OO be an observation procedure for predicate PjP_j at consumer cc. Dropping any one condition of Equation (7) yields a procedure whose verdict can be disconnected from PjP_j. Without Identity, it may describe a different request. Without Semantic Sufficiency, its agreement need not entail PjP_j. Without Independence, understood as non-circularity, its verdict is fixed by the signal it is scored against. The statement concerns the predicates tested in this paper. It does not characterize all possible observers.

Justification. The evidence is uneven across the three conditions. Identity and Semantic Sufficiency each have a measured counterexample on the fault corpus of § 4.2. Independence is justified by excluding circular evidence, and no comparable experiment backs it. Output equality is bound to the request and independent of harness labels, yet it is not sufficient: it rejects a correct run under BF16 batching and accepts an exclusion failure (Figure 2a and Table 3). A hit counter fails Semantic Sufficiency for a similar reason, since it certifies an index entry and not the bytes behind it. Judging the probe’s state by the original consumer’s output fails Identity, because that consumer never attended the stale suffix, and it accepts 2/6 corruptions (Figure 2b). For Independence, a counter scored against an exclusion truth that the same counter defines agrees with itself whatever the state is, which is why Table 3 leaves that pairing blank. This is an argument from construction, not a measurement. Nothing here shows that the three conditions are jointly sufficient, and the proposition says nothing about predicates we did not evaluate.

Figure 2. Output equality fails as a recovery check in two ways. Panel a: in four fault-free 128-token runs with no transport abort, the two default-arithmetic mixed-batch runs keep identical attended KV digests over 49 forward checks and 28 layers, yet diverge from the cold reference at token 30. Batch-invariant GEMM controls match at all 128 positions. Panel b: pairing consumer C’s output with probe P’s corrupted state masks 2/6 corruptions. Pairing P’s state with P’s own persisted artifact detects 6/6 with 0/10 false alarms.

Admissible witnesses differ in strength by what they depend on (Table 3), and they support different claims. Tier 2a reads integer scheduler state (completion bounds, allocation generations, host and device step counters) and establishes trace conformance, holding only if that instrumentation reports the scheduler’s state accurately. Tier 2b hashes the attended KV pages and establishes byte-level agreement, but only for the requests, layers, and runs where it was collected. Tier 3 re-reads the persisted tool artifact and establishes the generated call that was observed and not a backend effect, and effect predicates need it because the conversation identifier carries no principal isolation [7].

Lemma 1 (Observation criterion for paired Tier-2a checks). Assume a scheduler that increments gg on every reallocation, accurate completion tracking V(x)V(x), and readable host and device step counters. Then a paired Tier-2a check rejects if and only if the recorded metadata show that an admitted prefix position lies outside V(x)V(x), that a report’s generation differs from the live gg, or that the host and device step counters differ. Under the same assumptions, these three conditions are violations of production completion, of the generation match, and of SeamOK in its recorded-counter form. The lemma does not cover token identity, other causes of a corrupted continuation, the contents of device memory, or consumer-time validity as a whole.

Proof sketch. The first condition negates [0,r)⊆V(x)[0,r) \subseteq V(x) of Equation (4), the second negates the generation match of § 3.3, and the third negates SeamOK⁡(e,r)\operatorname{SeamOK}(e,r), which Equation (4) defines as agreement of the recorded host and device positions. Under the stated assumptions the recorded integers are the quantities these predicates mention, so the check rejects exactly when one of the three fails in the record. The check reads integers, so its verdict does not depend on BF16 batching order. It tests the consistency of reported metadata. It does not show that the bookkeeping matches device memory, which the Tier 2b digests check separately.

Why output equality and hit counters fall short

Numerical drift alone changes outputs. A fault-free control varies batch schedule and kernel arithmetic with no transport fault and no recovery transition. Isolated transfers match the cold reference. Concurrent mixed-batch runs diverge at token 30 although the SHA-256 digests of the attended cache are identical in all 28 layers (Figure 2a). Enabling \texttt{VLLM\_BATCH\_INVARIANT}=1 restores agreement at all 128 positions. A per-projection replay and an 18-run factorial localize the drift to batch-dependent BF16 accumulation in the 2048 × 6144 MLP down-projections, within 3.095×10−153.095 \times10^{-15} of exact arithmetic (Appendix § 13). Output equality can therefore reject a run whose recovery was correct. The result does not say that BF16 is inaccurate: a fault-free run can fail the usual acceptance test, so that test cannot serve as the oracle for recovery security.

Under real faults each signal answers a different question. A 100-run benchmark with injected faults, ten runs per cell, crosses three source trees with fail and recompute and adds the four-cell eviction-by-rewind matrix of § 7.4. We score every signal against reference values of three predicates (Table 3). Exclusion asks whether the probe was admitted onto positions that were never written. Coherence asks whether the continuation carries the consumer’s own value. The position condition SeamOK of Equation (4) is what the paired step counters read. Effect asks whether the re-read tool artifact carries a schema-valid call that the consumer was not authorized to make. None of the 100 runs carries such a call. Its disagreements differ in kind from the fault-free drift above, because the position split damages the continuation without any numerical cause.

Output equality tracks coherence in all 100 runs but is wrong about exclusion in 30. In the rewind-only cell it matches the cold output while 128 unwritten positions are admitted, and in the two eviction-only cells it reports a difference although exclusion holds. Hit counters make the converse error on coherence, also in 30 runs: 128 admitted tokens in the eviction-only cells pass a corrupted continuation, and 256 in the rewind-only cell flag a coherent one. The 50 and 40 in the Effect column count runs in which output equality and hit counters flag a difference although no unauthorized call was generated. The state predicates do fail in these runs, so the alarms are correct about state and uninformative about effect, and they are not BF16 false alarms. No cheap signal decides all three predicates, so each needs its own admissible witness.

The witness must belong to the consuming request. Deterministic arithmetic still fails if the test inspects the wrong request. After a failed load the original consumer CC receives 64 valid prefix tokens and recomputes its suffix, while a later probe PP that matches the same prefix hits all 256 indexed tokens with 192 unwritten. Scheduler logs split the 16 packaged runs of Appendix § 13.§ 5 into 6 corrupted runs and 10 clean runs. Pairing PP’s state predicate with PP’s own persisted artifact misses none of the 6 corruptions and raises no alarm on the 10 clean runs. Pairing the same state with CC’s output accepts 2 of the 6, because CC never attended the stale suffix (Figure 2b). This is the Identity condition of Equation (7).

Validating the verifier

We implement the Tier-2a and Tier-3 witnesses as a standalone, GPU-free offline trace verifier. It reads frozen scheduler traces and persisted artifacts with harness labels stripped, and it fails closed when an admissible witness is missing. Attended-KV digests are not its inputs. A separate online Tier-2b audit collects them (§ 5.2). We test the verifier on the 42-cell frozen GPU matrix of Appendix § 14. Of the 42 cells, 39 run to completion and 3 block-reuse cells end early in a cuBLAS execution failure after failing their allocation-identity obligation. The verifier agrees with the reference verdicts on 42/42 scenario verdicts, and a second H20 host with disjoint GPU UUIDs reproduces the result.

At the level of individual obligations, the 210 obligation slots yield 196 applicable and 162 comparable obligations (Appendix § 14). The verifier agrees with the reference on 159/162 of the comparable obligations, with 3/149 conservative false alarms and 0/13 false witnesses, and the second host reproduces the 159/162 agreement. All three disagreements are conservative. The reference withholds the timestamp-ordering check after the early abort, while the raw log shows load 98 << abort 106 << reallocation 124 << report consumption 127. Two blind cross-vendor language-model parsers agree with the reference on 158/158 obligations. That result tests whether the specification can be read unambiguously, not whether it is true of the hardware.

The reference and the verifier read the same recorded event stream, so the 42/42 agreement is scenario-level conformance to the specified trace predicates. It is not evidence that the instrumentation is correct or that device state matches the metadata. Byte-level evidence comes only from the Tier-2b audit where it was collected, and effect evidence only from persisted Tier-3 artifacts. Unlike output comparison, the verdicts survive a change of arithmetic. Re-running every output-flagged GPU cell under VLLM_BATCH_INVARIANT=1 with fresh within-mode references and fixed schedule, connector, and fault, the Tier-2 verdicts for prefix exclusion, owner disposition, and suffix eviction do not change between modes while the generated tokens do (Appendix § 13.§ 3).

Boundary Repairs and Evaluation Method

Repairs enforce the contract at the consumer

Repairs are the only part of the method that changes run-time behavior. A repair is adequate only when it restores the consumer-side conditions the contract requires without giving up what remains valid. For a state-recovery contract, this means recovery adequacy: exclusion together with retention and completion. For the dispatcher, it means refusing stale grants while still applying current and re-authorized ones. Clearing every cache or ending every session meets the first requirement and fails the second. Repairs therefore belong at the boundary that can enforce the condition, and their mechanisms differ because the consumers verify different identities (Table 4). In each case the consumer stops relying on an upstream record alone and validates an identity of its own. The Tier-2a hooks and the offline verifier of § 4 observe whether the postcondition holds and block nothing (Figure 3), and a repair that passes them on the tested paths is not thereby shown correct on others.

Figure 3. The verifier evaluates consumer-bound recovery predicates using admissible recorded evidence; enforcement remains in the target runtimes. Contracts determine which predicates must be decided. An admissibility gate rejects Tier 0 (output equality) and Tier 1 (hit counters) for state predicates and admits Tier-2a scheduler metadata and persisted Tier-3 artifacts. These two feed the offline trace verifier, which reads frozen traces, uses no GPU tensors, and takes 6.0 μs per cell. Tier-2b attended-KV digests are admissible evidence but are collected by a separate online audit (§ 5.2), not by the offline verifier. Repairs are separate code in each target system. The three obligations in the verdict panel, OexO_{\mathrm{ex}}, OrtO_{\mathrm{rt}}, and OcpO_{\mathrm{cp}}, apply to state-recovery contracts. Authority-freshness predicates are Equations (5) and (6).

SystemRepair at the consumerIdentity
ChatGLM2Rebuild the prompt and cache from the retained prefix after a deletionT\mathcal{T}
Google ADKExport only events from the current rewind epochT\mathcal{T}
vLLMEvict unwritten hashes by allocation, settle PREEMPTED owners, rewind the device positionT,g\mathcal{T}, g
SGLangSend KV state to decode only after intake accepts the requestT\mathcal{T}
DSHDispatch a grant only if its revision equals the live revisionκ\kappa

Table 4. Boundary-specific repairs enforce the consumer’s postcondition. The identity column gives the value the consumer verifies, from § 3.2.

Evidence modes and cost

Three kinds of evidence appear in the evaluation, and each answers a different question. Live exploitation runs native lifecycle transitions end to end and asks whether a failure is reachable. Deterministic conformance covers the 42-cell serving matrix, 300 dispatcher boundary instances, and 7 archived provider replays, and asks whether a tree or dispatcher satisfies the contract on specified cases. Schedule sensitivity sweeps 4,000 seeded interleavings in a controlled dispatcher model and asks how sensitive the dispatcher is to timing. Conformance and sweep counts are not field prevalence. Every cohort pins a commit, checkpoint, and hardware stack (Appendix § 16) and holds token composition, positional layout, decoding policy, and seeds fixed across matched arms. Appendix § 15 registers all 29 coverage units, each pairing a contract, consumer, transition, and configuration, with unpooled denominators, and the DSH episodes keep a separate denominator.

Online observation must not disturb the scheduler. On the pinned H20 stack, with eight concurrent requests and 152 live GPU blocks over 9.6×1069.6 \times10^{6} timed steps in nine runs, the Tier-2a hooks cost 25.7 μ\mus of host CPU per step (p95 29.7 μ\mus) with no GPU kernel and no tensor read. The optional Tier-2b byte audit costs 0.42 ms per step for one layer and 6.94 ms for all 28. Auditing one canary layer adds 4.3% latency and retains 96% of throughput, and hashing all 28 layers raises mean latency by 26.3%.

Table 5 compares three coarse workarounds. Disabling prefix caching forfeits shared-prefix reuse; an archived microbenchmark measures 293.62 ms for a cold 8192-token prompt against 30.58 ms for an uncached suffix rebuild, a 9.6×\times penalty. A per-tenant cache_salt separates tenants but stores the prefix once per tenant and leaves intra-tenant paths open. Disabling the external tier gives up cross-node pooling and does not stop corrupted local continuation. Repair at the consuming boundary keeps both reuse and pooling.

MitigationPrefillPoolCrossIntra
Disable prefix cachinglostkeptclosedopen
Per-tenant cache_saltK×HBMK \times\mathrm{HBM}keptclosedopen, same tenant
Disable external KV tierlocallostclosedopen
Conjunctive repairkeptkeptclosedclosed

Table 5. Operator workarounds close fewer paths than boundary repairs. Closed means every path exercised in this paper on that boundary is removed, and open means one survives. The repair row is measured, and the other rows follow from the analysis of § 6 and § 7.

Single-Session Consumers: Why Clearing State Is Not Recovery

Two single-session systems show why recovery adequacy requires exclusion, retention, and completion together: in each, a user-visible record is updated correctly while a derived representation that another consumer reads is not.

ChatGLM2: deletion prunes the transcript but not the KV cache

We replay the branch-deletion and generation callbacks of an archived ChatGLM2 deployment [9] on a pinned FP16 snapshot (Transformers 4.30.2). Deleting a turn prunes the visible transcript and the history list but leaves past_key_values intact, and across nine low-temperature conditions the forward-pass tensor digests match the deleted branch in all 9/9 runs. Clearing the cache inside the callback removes the stale tensors and also strips every retained turn in 9/9 conditions, because the wrapper keeps return_past_key_values enabled and its prompt constructor then encodes only the current round.

Figure 4 compares five recovery regimes over six matched conditions, with three history-dependent tasks and two deletion depths. Native deletion violates exclusion in 6/6 conditions yet still answers 2/6 tasks from surviving context, so a task-accuracy metric hides the leak. Naive clearing satisfies exclusion in 6/6 and drops retention and completion to 0/6. Reconstructing the prompt and cache from the retained prefix satisfies all three in 6/6 runs and matches full recomputation: a correct repair rebuilds the state that the canonical retained history implies (§ 3.1).

Figure 4. A repair that satisfies exclusion alone breaks retention. Six matched conditions, three history-dependent tasks, two deletion depths. Native deletion keeps the revoked branch XX in the cache. Naive clearing removes XX together with retained history HH. Prefix reconstruction keeps CrC_r and rebuilds Cr:C_{r:}, and satisfies exclusion OexO_{\mathrm{ex}}, retention OrtO_{\mathrm{rt}}, and completion OcpO_{\mathrm{cp}} in 6/6 runs.

Google ADK: a filtered view does not bind the exporter

Google ADK 2.13.0 keeps a filtered active-event view after a session rewind, but its in-memory long-term exporter scans the unfiltered raw event log [8]. The filtered view is correct for its own consumer, but the exporter does not inherit its recovery semantics. We replay native rewind, memory ingestion, and retrieval over nine branched histories. The unmodified exporter satisfies the post-rewind contract in 3/9 histories and exports rewound turns in the other six. Filtering exports by rewind epoch, applying upstream commit 3640e7d0c74b, or exporting from reconstructed active events gives 9/9 compliance across 36 conditions. Three pre-rewind controls mark its limit: turns an external store ingested before the rewind persist until an explicit cross-store revocation runs.

Cline: a negative control

Cline’s checkpoint restore serves as a negative control and not as a further vulnerability. Its five controls (restore, repeat restore, late append, compaction, and a native effect) all behaved correctly under the tested configuration (Appendix § 15). It is therefore counted among the 21 boundary controls of the coverage register and not among the seven mediation failures. The control shows only that the evaluation does not flag every rewind interface it touches.

Disaggregated KV Serving: From an Interrupted Load to a Wrong-Target Call

An incomplete KV load becomes a security problem once the pool is shared. This section follows one fault from the unwritten blocks it leaves indexed to a second tenant’s tool call. The consumer is the scheduler’s prefix-admission path and the runner that continues from the admitted position, and both rely on the prefix index and on the scheduler’s host-side counters. The upstream event is a failed or canceled load. § 7.1 and § 7.2 show that the consumer still admits the unwritten state, and § 7.3 shows why a published patch closes only part of the gap. § 7.4 separates the two defects that a repair must fix, § 7.5 follows the corrupted state into a generated tool call, and § 7.6 states what the chain establishes. All serving experiments use vLLM 0.33.0rc1 with LMCache V3 and the LocalCPU connector.

An aborted load leaves unwritten blocks indexed

An interrupted load can leave unwritten blocks indexed because the index records that a block was registered and not that it was written. A priming request populates a 256-token external prefix, and a consumer load then aborts at token 64. Connector backpressure, remote disconnect, pool eviction, or client cancellation can cause such an abort. The prefix index still advertises all 256 tokens and the connector has recorded the failure, but the producer completed only 64. An index entry says that a block with this hash was registered, not that its bytes can be read, so the 192 suffix tokens over 12 GPU blocks stay matchable. We verify the outcome from persisted Tier-3 artifacts. In all six stale-KV runs on the unpatched tree and on upstream PR 61769, the later probe emits the degenerate repetition [525] ×8\times8 instead of "1,2,3". The three columns of Panel A of Table 6 score different outcomes. Our allocation-aware repair, which admits 64 valid tokens, produces the expected probe artifact in all three runs and eliminates the recorded stale-state effect in all three runs, but only one of the three consumer outputs matches the cold reference token for token. The cache-only control, which admits the full 256-token prefix, matches the cold reference in all three runs. Artifact correctness, cold-reference output equality, and the stale-state effect are therefore distinct measurements, and a repair that restores the artifact does not by itself restore every consumer output; the archive does not establish the cause of the two consumer-output mismatches.

ArmTreennAdmArtConsEff
Stale KVUpstr.4256Degr1/44/4
Stale KVPR2256Degr1/22/2
RepairedCand.364OK1/30/3
Cache-onlyUpstr.3256OK3/30/3
No-faultUpstr.2256OK2/20/2
Fail-closedUpstr.264OK0/20/2
TreePolicynnAdmOwner statusToolCont.
Upstreamfail10128FINISHED_ERROROKclean
Upstreamrecomp.10256LENGTH_CAPPEDDegrdirty
PR 61769fail10128FINISHED_ERROROKclean
PR 61769recomp.10256LENGTH_CAPPEDDegrdirty
Alloc.-awarefail10128FINISHED_ERROROKclean
Alloc.-awarerecomp.10128LENGTH_CAPPEDDegrsplit
Order ctrl.recomp.1256STOPPEDOKclean
Cache ctrl.recomp.1272local hitOKclean
EEDDnnAdmSoundCorr.
××10256nonenone
✓×10128✓none
×✓10256none✓
✓✓10128✓✓

Table 6. The failure policy determines cross-tenant reachability, and a complete repair needs allocation-aware eviction EE with device position rewind DD. One pinned vLLM and LMCache stack, tenants sharing a 256-token prefix; Adm is prefix tokens admitted without computation. Panel A end-to-end cohort (Art: probe artifact matches the cold reference; Cons: consumer output matches the cold reference token for token; Eff: recorded stale-state effect; the three are distinct measurements and are not pooled). Panel B: trees crossed with fail and recompute. Panel C: the 2×22 \times2 factorial of EE and DD. EE bounds admission, DD rewinds the GPU position. Sound: admission is bounded. Corr.: continuation is correct.

Policy and lifecycle decide who can reach the blocks

Whether a later request reaches the unwritten blocks depends on how the scheduler settles the failure report: which owner it maps the report to, what it evicts, and which operator policy it applies. vLLM handles an external load failure under fail or recompute. ALPHA and BETA share a 256-token system and tool-cache prefix and hold private payloads, and ALPHA’s load aborts at token 128, leaving the upper 128 tokens unwritten before BETA arrives. Under fail, ALPHA ends in FINISHED_ERROR, the reported blocks are evicted, and BETA is admitted onto the 128 valid tokens with a clean tool call in 30/30 runs. Under recompute, the scheduler rewinds ALPHA’s host position counter from 288 to 128 and leaves the prefix hashed. BETA then receives all 256 shared-prefix tokens with 128 unwritten and produces corrupted tool output in 20/20 runs across upstream and PR 61769 (Panel B). Settlement presumes that the owner is still running or waiting on the remote load, but a scheduler under memory pressure can move it to PREEMPTED before the report arrives.

Each cell of Panels B and C counts ten runs that produced an observation, and the 100 runs in those cells come from one matrix of 126 launches. In 25 launches (20 under recompute, 5 under fail) request ALPHA did not finish within the harness’s 80-step liveness budget and the process exited with code 137 (21) or 134 (4), and one observed launch carrying no cell label is excluded. The ledger does not establish why ALPHA failed to terminate, so the results rest on the 100 observed runs.

An unprivileged client controls when its own request is canceled, and connector faults abort loads without any client action. On the unpatched and backported trees, the stale hashes stay indexed from the moment the scheduler consumes the failure report until the later probe returns. The median is 204.15 ms in the seven lifecycle runs of Figure 5, against 11.61 ms for the connector report and 0.38 ms for settlement. An attacker therefore needs no cycle-accurate race.

Figure 5. A failed external load leaves twelve unwritten block hashes indexed for later requests, and allocation-aware eviction plus device rewind together stop the contamination. Consumer C aborts across blocks 4 through 15 and enters PREEMPTED, so 12 unwritten suffix hashes stay live in the prefix index; probe P is then admitted all 256 stale tokens on unpatched upstream and backported PR 61769, while allocation-aware repair restricts admission to the 64 valid tokens. Medians across 7 runs record the partial external load at 1.48 ms, the connector abort report at 11.61 ms, scheduler settlement at 0.38 ms, and the interval from failure consumption to probe output at 204.15 ms, labeled Δtsettle→probe\Delta t_{\mathrm{settle}\to\mathrm{probe}}, over which the owner stays unretired and the stale hashes stay indexed.

Why the upstream patch is incomplete

Public trackers already describe parts of this failure and one proposed fix: vLLM issue 61768 and PR 61769 cover an abort that precedes failure processing, issue 61905 covers late reports after block reuse, and issue 61912 describes the preempted-owner gap [13, 14, 33, 34]. Those reports establish the failure facts. They do not say whether a patch establishes the condition a later consumer depends on. That is the question the contract answers, so we treat the patch comparison as a test of the method and not a contest between patches. In short, PR 61769 covers the direct-abort path and not every preemption and recycled-block path we tested. We pin vLLM main (b8c04dd3) and the head of PR 61769 (8ee68eb1) and run the two trees and our candidate through 14 scheduler cases each, 42 in all. Seven cases are triggered by a fault, and seven are live-owner, successful-load, and consumer-role controls that every tree passes. The scheduler and cache manager are the unmodified pinned source and the connector and runner outputs are deterministic mocks, so the matrix tests state transitions and not GPU bytes. Main satisfies 0/7 of the triggered predicates and PR 61769 satisfies 2/7. Our allocation-generation and preempted-settlement repair satisfies 7/7 with all seven controls intact, so a valid prefix stays reusable (Table 17).

Evaluated source treeHit / Exp. FailHit / Exp. Recomp.Owner FailOwner Recomp.
Unpatched upstream112/48112/48badn/a
Backported PR 6176948/4848/48badn/a
Allocation-aware eviction48/4848/48badn/a
+ preempted settlement48/4848/48okn/a

Table 17. Upstream PR 61769 closes running-owner invalidation and leaves PREEMPTED owners unresolved, so allocation-aware eviction with preempted settlement is the remedy that satisfies the owner obligation. Hit / Exp. compares prefix tokens admitted to a later request against the 48 valid tokens preceding the failed block; Owner reports whether the preempted owner reaches terminal settlement.

The two predicates that PR 61769 satisfies are the direct-abort cases, one per policy. The handler finds the running owner, evicts the failed suffix, and bounds admission to the 48 valid tokens, where main readmits 112. The five it fails form two groups, each an unmet condition. Three involve a PREEMPTED owner, through a reset under each policy and through memory-pressure preemption. The handler scans only the running and remote-waiting owners, finds no record of the PREEMPTED one, evicts nothing, and never applies the failure policy, so a later request is again admitted onto 112 tokens. This is the path the live runs take: the owner is PREEMPTED when the report is consumed (Figure 5), and PR 61769 admits all 256 tokens in both of its live stale-KV runs (Panel A). The other two involve a delayed report that arrives after the scheduler has freed and reallocated the block, and a report that names only a bare block identifier fails or rewinds an unrelated new owner.

Eviction must therefore follow the allocation that produced the report and not queue membership, settlement must cover owners outside the running queues, and a report may act only on the block instance it was issued for. Our repair keeps each scheduled output’s allocation records across owner lifecycle changes, stamps physical blocks with allocation epochs, and settles the owner under the operator’s policy. A paired continue→pass ablation shows that the stale-output guard is armed in 6/6 cases, so the gap is not a missing guard. It discards 16 stale tokens on the baseline and commits the stale token under fail once removed.

Because the PR head and main differ in base commit, the comparison is between trees. The recycled-block and pressure-preemption predicates run in a producer-role configuration with a synchronous-loading mock, and their reachability through a deployed connector is not established. The repair assumes ordered, one-to-one binding of synchronous reports to scheduled outputs, keeps legacy handling for unknown or asynchronous reports, and removes the unsafe readmission after a reset without changing the reset exception. A later community pull request adds preempted-owner settlement to the direct-abort fix and reports the same two open conditions, corroborating the gap the contract names [35]. Both upstream pull requests were closed without merging, PR 61769 on November 12 and the follow-up on November 13, 2026, so neither is a deployed official patch.

Why one repair is not enough: eviction and device rewind

The recompute path hides two defects that need separate repairs. Upstream vLLM rewinds the host token counter from 288 to 128 but leaves the GPU position buffer at 288, so every later step carries a 160-position offset, and the same missing device rewind is reported upstream as a wrong-output bug in the V2 runner [36]. The factorial of Panel C crosses allocation-aware eviction EE, which bounds admission to written state, with device position rewind DD, which restores the continuation. Without either, 256 tokens are admitted and neither condition holds. With EE alone, admission is bounded to the 128 valid tokens, so an allocation-level check reports success, yet BETA’s continuation stays corrupted in 10/10 runs. With DD alone, the continuation is correct in 10/10 runs while 128 unwritten positions remain admitted, so an output comparison reports success over a cache that was never written. Only E∧DE \wedge D satisfies both conditions in 10/10 runs, the repaired arm of Table 7.

In the terms of Equation (4), eviction restores production completion, [0,r)⊆V(x)[0,r) \subseteq V(x), and device rewind restores execution-position coherence, SeamOK⁡(e,r)\operatorname{SeamOK}(e,r). Neither arm implies the other, so each single repair satisfies one condition and passes one natural check while failing the other. On this live path, E∧DE \wedge D satisfies both measured conditions and neither repair alone does. We make no claim for other connectors or workloads. Paired Tier-2a counters flag the 160-token split in all 4/4 eviction-only runs of the 14-run device cohort, the runs in which an allocation check alone reports success.

Consequence: a schema-valid call that names the wrong tenant

The remaining question is whether the invalid state reaches an action. A corrupted continuation that fails to parse causes only denial of service, whereas the harmful case parses, satisfies the schema, and carries the wrong target. We classify each generated tool-call artifact, written to disk and re-read, into one of three outcomes. A correct-target call carries the requesting tenant’s own identifier and value. A wrong-target call carries another tenant’s identifier or an unauthorized payload. No action means that parsing or schema validation rejects the artifact. Table 7 reports 30 admitted runs, and all 30 artifacts pass schema validation. Without a fault, BETA’s session reuses 511 cached tokens that include the shared prefix, and it generates its own correct-target call in 10/10 runs. When ALPHA’s load aborts at token 128 under the native fault, the scheduler admits the stale prefix to BETA’s authenticated session, and BETA generates a schema-valid call that names ALPHA in 10/10 runs, with no correct-target call and no parser rejection. The repair restricts admission to the 128 verified tokens and restores 10/10 correct-target calls. The stale state thus reaches the target parameter of a generated call and not only its text, although the call is an artifact and no backend executes it.

Evaluation armAdm.Correct targetWrong targetNo action
Cold baseline51110/100/100/10
Native fault2560/1010/100/10
Repaired12810/100/100/10

Table 7. Stale-state admission yields schema-valid tool calls naming the wrong tenant in 10/10 native-fault runs, and the repair restores 10/10 correct-target calls. Ten runs per arm on one pinned harness (identical SHA-256 on both hosts), model, and prompt schedule, recompute policy, fault at token 128. The native-fault arm ran on one H20 host and the repaired arm on a second; the no-fault baseline gave 10/10 correct-target calls on each. Adm. counts prompt tokens admitted from cache without computation. Calls are generated and re-read from disk; no backend executes them.

Cold-baseline probes reuse 511 valid cached tokens. Native-fault probes reuse 256 shared-prefix tokens of which 128 were never written. The generated fields are "tenant_id":"BETA" with "record_value":"7,6,5" in all cold and repaired runs, and "tenant_id":"Alpha" with a corrupted trailing delimiter in all native-fault runs.

The 256-token hit has three spans. Positions 0 through 127 hold the prefix that ALPHA’s load wrote, including the schema sentence that lists the tenant labels ALPHA, BETA, and GAMMA, with ALPHA first. Positions 128 through 255 are the unwritten rest of the prefix, whose hashes remain indexed, and positions 256 and above are BETA’s own body, computed in the current prefill. At the seam the host counts 128 computed tokens while the staged GPU buffer reads 288, so attention applies positional encodings 160 places ahead over a span the load never populated. The emitted label is consistent with the first label of the written list, but we ran no spacer control and do not attribute the label to a span.

The schema types tenant_id as an unconstrained string, so a schema-valid call can name any tenant. The emitted label is Alpha, which differs in case from the prompt’s ALPHA, so a case-sensitive backend could treat it differently. The call becomes an unauthorized write only if a backend trusts the model-supplied tenant identifier § 2.2. ALPHA’s private value 1, 2, 3 appears in none of the 71 re-read BETA artifacts of the harvested cohort, and BETA’s own value fills the value field in 10/10 native-fault runs, so the data show neither attacker-controlled target selection nor a read of ALPHA’s private data.

What the chain establishes

SGLang exhibits a related failure at the asynchronous prefill handoff, although its mechanism differs from the vLLM case. Across four intake-rejection runs, two per source tree, the base tree forwards KV state and a substitute token to the decode worker in both runs, and the patched tree withholds the send until intake accepts in both, at the cost of a liveness limit on the rejected request. The claim is bounded to that asynchronous timeout and does not reproduce the vLLM mechanism.

Each body of evidence answers a different question. The scheduler matrix shows which lifecycle conditions a tree covers. The live fault shows that a later consumer reaches the unwritten state. The factorial shows that production completion and execution-position coherence are independent and jointly necessary on the tested path. The tool-call artifacts show that the violation reaches an action parameter.

No single return value, counter, or patch certifies recovery. A recorded connector failure, a FINISHED_ERROR status, a bounded hit count, and a matching output can each hold while another condition fails. On the tested path, recovery required five conditions: production over every admitted position, a report resolved to the allocation that produced it, owner settlement outside the running queues, a device position that continues from the host’s, and valid state left reusable. Each is checkable on the consuming request with the witnesses of § 4.

Authority Freshness: Deferred Grants and Stale Execution

The earlier cases ask whether a consumer reads valid state. This one asks whether a dispatcher executes under authority that is still valid, which needs a different identity (§ 3.5). The consumer is an agent’s tool dispatcher and the recorded decision is an approval. When the two are separated in time, a grant that was never revoked passes every static identity check at dispatch and can still overwrite newer workspace state. This is the classical TOCTOU gap, which optimistic concurrency control closes by validating at commit [31]. Three conditions separate here. A grant can stay unrevoked without staying valid for the target’s current revision. A dispatcher can compare revisions and still lose a commit that lands before its write. Only a comparison inside an atomic check-and-write meets Equation (6).

A live multi-session overwrite

We build an end-to-end counterexample on the DSH approval runtime [19, 20] with live model calls and native tools. Session 1 reads a protected file at revision κ\kappa and queues a write for approval. Session 2 independently obtains approval and commits a newer value at κ+1\kappa+ 1, and Session 1’s grant is then released while Session 3 reads the file. Four dispositions of the grant (allowed-once, canceled, rejected, serialized) across two model families give eight episodes, all kept in the denominator. Five reach dispatch, and three stop before Pre because setup produced no live pending draft (Appendix § 16.§ 1). The first three dispositions withhold execution before dispatch and satisfy Equation (5). Only allowed-once releases an unrevoked grant whose target has moved, which tests Equation (6) directly. The dispatcher rechecks principal, path, operation type, and permission version, never reads κ\kappa, and overwrites Session 2’s newer state in the 1/1 admitted execution.

Revision-bound dispatch

The live execution establishes reachability, and three controlled bodies of evidence with separate denominators test the version check across more interleavings. First, 300 deterministic boundary instances that satisfy Pre compare the revision-unbound dispatcher with a revision-bound one that enforces Equation (6) (Table 8): 160 conflicting grants overtaken at κ+1\kappa+ 1, 40 current grants at κ\kappa, and 100 re-authorized grants approved again at κ+1\kappa+ 1. Second, in seven archived provider-backed replays both dispatchers apply all 7/7 at their original timestamps, and after a concurrent write the unbound dispatcher reverts newer state in 7/7 while the bound one blocks all 7/7.

FamilynnUnbound StaleUnbound Appl.Unbound Ref.Bound StaleBound Appl.
Conflicting160160160000
Current400400040
Re-authorized100010000100

Table 8. Revision binding blocks 160/160 conflicting overwrites and applies all 140/140 valid grants. Three hundred deterministic boundary instances, with identical grant tuples for both dispatchers. Stale counts silent overwrites of a newer revision κ+1\kappa+ 1.

Third, a seeded dispatcher model, separate from the live run and the replays, varies approval latency with 1,000 episodes for each of four commit arrivals (immediate, deferred, racing, reordered). The unbound dispatcher reverts newer writes in all 1,000 deferred runs and in all 502 racing runs where the concurrent commit lands first, 1,502 rollbacks in all, and revision-bound dispatch removes all of them with zero false refusals across the 4,000 episodes. Both dispatchers receive identical grant tuples. These are model episodes, not agent attacks, and they do not establish field prevalence. A fixed timeout cannot substitute for the check, since a short window rejects deliberate review and a long one admits rapid edits. The comparison κgrant=κnow\kappa_{\mathrm{grant}} = \kappa_{\mathrm{now}} at dispatch resolves causal conflicts whatever the queue delay, and it excludes a concurrent write between check and write only inside the dispatcher’s atomic check-and-write section.

Discussion: Recovery as a Consumer-Side Property

Recovery is decided at the consumer. Persistent caches, long-term memory, asynchronous tools, checkpoint restoration, and resource reuse each move state beyond the request that created it. A logical cancellation, a deleted history entry, or a completed approval therefore decides less about later execution than the component that recorded it assumes. Proposition 1 states the consequence: an acknowledgment describes the moment it was issued, and in the evaluated runtimes it held while a predicate the consumer needed failed.

The failures look different across systems, yet each reproduced failure reduces to one of three missing bindings at a consuming boundary: a representation used after revocation, a report unbound to an allocation generation, and a dispatch blind to the target’s revision. Table 18 lists the six failures with, for each, the boundary it crosses, the missing binding, the witness tier that detects it, and the repair primitive with its own denominator. The table explains why systems as different as a chat wrapper, a memory exporter, a KV scheduler, and a tool dispatcher belong to one analysis. In each case the upstream component was correct about its own record, and what was missing was a check by the consumer that the record still described the object it was about to use.

Table 18: Six cross-boundary failures collapse onto three missing bindings, and each repair is scored on the denominator of its own cohort. Each row joins a consumer boundary to the violated binding, the witness tier from Table 3 that decides it, the observed failure, and the repair primitive. The last column gives the repaired-arm outcome with its own unit and denominator; the units differ across rows and are not pooled. ADK cites Tier 3 because its evidence is the re-read export artifact, not attended-KV bytes.

SystemBoundaryRoot-cause class and missing bindingTier
ChatGLM2hist. →\to KVUse-after-revoke: epoch unbound to pass2a/2b
ADKlog →\to viewUse-after-revoke: rewind unbound to export3
vLLMstore →\to blkUse-after-revoke: abort unbound to hashes2a
vLLMrep. →\to blkAlloc. binding: report omits generation gg2a
SGLangsched. →\to wkrUse-after-revoke: reject unbound to send2a
Approvalgrant →\to res.Revision TOCTOU: grant omits revision κ\kappa3

Structural repair primitives and their repaired arms.

SystemObservationStructural repair primitiveRepaired arm
ChatGLM29/9 read deleted KVReconstruct CrC_r and CrC_r6/6 cond.
ADK9/9 against 9/9, 36 cond.Filter export by rewind epoch9/9 hist.
vLLM96 trials; 6/6 staleEvict suffix and rewind GPU position10/10 runs
vLLM42-case reuse matrixBind report to generation gg2/2 cases
SGLang2/2 base runs forward a tokenGate KV send on acceptance2/2 runs
Approval1/1 live, 1,502 raceEnforce κgrant=κnow\kappa_{\mathrm{grant}} = \kappa_{\mathrm{now}}160/160 inst.

Table 18.

Recovery must keep what is valid. Rechecking at the consumer is necessary but not sufficient, because a consumer can make every check pass by discarding state. Clearing the ChatGLM2 cache meets exclusion and removes the history a long task depends on, and on the vLLM path eviction bounds admission while the continuation stays corrupted (Proposition 2). Selection, retention, and completion are therefore evaluated together as the recovery-adequacy criterion of § 3.1, and a repair is adequate only where all three were measured. Equation (3) covers the first two, which concern selection. Completion is the conditional progress obligation that the evaluation adds, since correct selection does not guarantee that a task succeeds. The authority side has the same shape with different predicates: a revision-bound dispatcher must refuse conflicting grants and still apply current and re-authorized ones (Table 8).

Evidence must follow the consumer and the predicate. Deciding whether a repair is adequate requires evidence about the right request and the right predicate. Output similarity, request success, a hit count, and a component’s success flag each misjudge some state predicate (§ 4.2). The BF16 control and the request-pairing experiment fail for different reasons. One violates Semantic Sufficiency and the other violates Identity, so a test that fixes arithmetic still fails if it inspects the wrong request (Proposition 3). A test of recovery reads the consuming request’s own production range, allocation generation, execution position, and resource revision. Even then, a verifier that reads recorded metadata establishes conformance to those records and not the contents of device memory.

Two instances of one principle. State validity and authority freshness fail in the same way: a downstream operation treats an upstream decision as sufficient evidence and never re-establishes what it requires. What differs is the identity checked and the evidence that decides it (Table 2). State predicates are decided at Tier 2, while dispatch effects need Tier-3 receipts. The predicates stay separate because the checks protect different consumers. Revision checks in a dispatcher do not protect a prefix index, and allocation generations in a cache do not protect a dispatcher.

What a runtime should expose. A consumer can make these checks only if the runtime gives it the identities to check. Table 9 turns these observations into interface requirements for a stateful agent runtime whose consumers must verify recovery rather than trust a completion flag. A runtime that reports only that a cancellation, rollback, or approval was processed leaves the consumer unable to tell which spans were fully produced, which allocation identities still name their object, and which resource versions still satisfy a grant. It should instead return the allocation epoch, completion receipt, resource revision, and rewind epoch that the consumer checks. Five requirements rest on a failure and a repair measured on a pinned system. Retirement and the separation of tcancelt_{\mathrm{cancel}}, tsettlet_{\mathrm{settle}}, and tretiret_{\mathrm{retire}} in the acknowledgment API follow from the lifecycle analysis of § 3.4 without a dedicated experiment, and we state them as design implications. These are requirements for a checkable recovery boundary, not a universal recovery monitor.

Where the requirements apply. The requirements assume that the runtime can expose an allocation epoch, a resource revision, and a log epoch. Where a provider hides its scheduler, Tier-2a witnesses are unavailable to the client, but rewind filtering and revision-bound dispatch still work in client-owned runtimes. What carries over to other runtimes is the question each consumer must answer, namely whether the state or authority it relies on is still valid at use, and not the specific predicates we measured.

Related Work

Recovery and rollback in stateful agents. An earlier study identified rollback consistency for language agents: when an application keeps a session’s KV cache across a logical abort, the model attends to a branch that the transcript no longer contains, which a same-token, different-cache audit separates from the visible text [55]. That study concerns logical history over a retained session handle and places content-addressed prefix caches such as vLLM’s outside its channel, because they reuse only prefixes present in the request. Building on that observation, we examine recovery in asynchronous serving. There the requested prefix can match the retained history while its production, allocation identity, owner settlement, or execution position is invalid, so a logical-history check passes and the consumer still reads invalid state. We add consumer-bound contracts and an admissibility standard for the evidence that decides these conditions, authority freshness at tool dispatch, and a patch evaluation and factorial that test repairs against them.

Other work on agent recovery checks whether a restore is safe or builds mechanisms for it. Safe to Resume identifies failure modes of agent checkpoint and rollback, including stale external dependencies [52], and exact checking for execution edits decides whether a checkpoint, fork, restore, or merge is safe given the execution record [56]. PGSR crops the KV cache to a clean checkpoint and replays a sanitized suffix [6], Leyline removes or replaces cached spans and corrects later positions [5], and ChronoMem and Planarian version agent memory and state [53, 54]. Reconstruction of this kind would satisfy our contracts. We test native recovery instead, and ask whether the consumers of an existing runtime hold valid state afterward.

Memory, provenance, and authority freshness. Revocation studies show that a retrieval guard can return a revoked record [7], and other defenses bind records to their origin, attach typed provenance, or measure memory poisoning and authorization laundering [23, 25, 22, 24]. Planfence checks a stored plan’s dependency frontier against current heads before a protected action [26], and a memory-repair study gates on changes between snapshot and commit [27]. Revision-bound dispatch applies the same freshness idea at an approval runtime’s dispatcher. Those works govern stored records and plans. Our contracts also govern runtime representations such as prefix-index entries, block tables, and position counters, which matters because these representations can be invalid while every stored record is correct.

KV caching and serving fault handling. Serving security work studies content-driven leakage and poisoning: prefix timing side channels, prompt recovery from KV sharing, and poisoned reuse of cached reasoning [50, 51, 15], and providers document cross-request exposure and isolation settings [12, 18, 49]. That work assumes the cached content itself is the attack vector. Our adversary supplies benign content and acts through lifecycle timing, which per-tenant salts leave open (Table 5). Public trackers report several mechanisms we measure as functional defects: vLLM abort ordering, late reports after reuse, preempted owners, and the V2 recompute position [13, 14, 33, 34, 35, 36], aborted and intake-rejected SGLang prefill [16, 17, 37], and ADK export, Transformers caches, and a nanochat row guard [8, 38, 39]. Relative to them, we contribute the contract that unifies the cases and explains why PR 61769 satisfies 2 of 7 fault predicates, live reachability through a real connector to a second tenant’s tool call, and the factorial showing that eviction and device rewind are jointly required.

Complete mediation and concurrency control. Complete mediation and the reference monitor require that every access, recovery included, be checked [28, 29]. TOCTOU analysis finds the hazard wherever a check and a use are separated [30], and optimistic validation, lease generations, and grace periods bind a check to its object [31, 32, 40]. These principles say that an access must be checked and that a check must be bound to the object it guards. They leave open what the check must establish when logical recovery, physical state, asynchronous execution, and downstream use come apart, as they do in the runtimes we study. We do not propose a new mechanism. We apply these established ones at boundaries where they were not in place (an aborted-load index entry, a recycled block identifier, a host-device counter pair, a rewound log, a queued grant), identify the consumer each must bind, and state the resulting conditions as contracts that admissible witnesses can decide. The experiments add what a restatement of the principles cannot: they show that these boundaries are left unchecked in pinned implementations, that a community patch closes some of the conditions and not others, and that two repairs are each required on the tested path.

Test oracles and numerical nondeterminism. Testing theory separates running a test from the soundness of its oracle [46, 47, 45, 48, 44], and inference work attributes output nondeterminism to batch-dependent reduction order and builds batch-invariant kernels [41, 42, 43]. The security consequence is that output equality is not an admissible witness for state recovery, with or without such kernels.

Scope, Limits, and Ethics

What the evidence supports

Systems and versions. The evaluation establishes reachability and causal structure on pinned stacks, not prevalence, and the patch comparison holds for the pinned trees and predicate set of § 7.3. The serving models are small dense decoders (Qwen3-1.7B-Base, Phi-3.5-mini-instruct, ChatGLM2-6B in FP16); larger, mixture-of-experts, and FP8 or INT8 setups are untested.

Fault model and evidence modes. Faults are injected at fixed positions. The live approval evidence is one admitted episode, and the rest comes from controlled models. The 50 and 40 counts of Table 3 are not a drift rate.

Trace checking and instrumentation. Lemma 1 tests reported metadata and informs about device state only when scheduler bookkeeping matches device memory. The 42/42 agreement is conformance on recorded traces, and Tier-2b digests were not collected on the 100-run corpus.

Generated calls and execution. The two-tenant protocol establishes stale admission and wrong-target call generation, not an unauthorized write. The design requirements of Section 9 are inferences, marked in Table 9.

Scope of the theory. Definition 1 fixes the form of a contract and not its predicates, and we give predicates only for the consumers studied. Propositions 1 and 2 are existence results exhibited on pinned stacks, and Proposition 3 covers the predicates we tested; none is a proof over arbitrary runtimes. The lifecycle phases of § 3.4 place predicates. Validity over a full asynchronous read and the draining of outstanding readers before reuse were not measured. When the contract is needed. The need depends on whether state or authority can change between publication and use, not on tenancy (§ 6).

Disclosure and artifact

All experiments run in isolated local environments with synthetic tenants and benign canaries and touch no live third-party service. We plan to report the cross-tenant consequence, the incompleteness of PR 61769 under our fault predicates, and revision-blind dispatch, each with its repair, to the affected maintainers under coordinated disclosure; no notification has been completed at submission. The anonymized artifact, with pinned commits, frozen event logs, and the GPU-free verifier, is planned and not yet public; it holds no payloads beyond the benign canary protocol.

Conclusion

A cancellation, rollback, or approval is recorded by one component and relied on by another, and the record does not make the later use valid. The question this paper asks is how a stateful AI runtime can ensure that a downstream consumer uses only state and authority that remain valid when it consumes them. On pinned stacks, an interrupted load led a second tenant to generate a call naming the wrong tenant, and an approved write outlived the revision it was approved against. These are two forms of one failure: the consumer relied on an upstream decision and did not check the identity of the object it used. State validity and authority freshness differ in what must be checked, and they share the requirement that validity be established at the point of consumption. Consumer-bound contracts state what each consumer must establish. Admissible witnesses decide, from the consuming request’s own metadata and artifacts, whether it holds. Boundary repairs make it hold without discarding valid state. The evidence is bounded to the pinned implementations and fault protocols we tested, and it shows necessity under those conditions and not a universal guarantee. Recovery interfaces of stateful AI runtimes should therefore let each consumer verify the conditions its use depends on.

Numerical Protocol

Per-projection replay and the BF16 error envelope

The fault-free divergence of § 4 needs a numerical mechanism, not an assertion. Each arm captures live forward inputs and replays every row in isolation and in batch across nine linear modules covering QKV, attention output, and MLP projections in layers 0 and 27 alongside the language-modeling head. Native kernel outputs match direct F.linear in all 18 captures except the two MLP down-projections of shape 2048×61442048 \times6144. Substituting batch-invariant kernels on those two projections alone restores full cold-reference agreement, and substituting every other linear projection leaves the divergence intact. Repeating each captured row across 12 batch sizes from 1 to 2048 in fresh processes across three kernel implementations yields 288 checks. Independent signed-integer accumulation of BF16 products yields exact dyadic rationals for all 49 coordinates that show single-versus-batch variation, including 26 nonzero FP64 discrepancies with maximum magnitude 3.095×10−153.095 \times10^{-15}, far inside the 10−1010^{-10} screening margin of the standard floating-point error bound:

∣y^j−yj(64)∣≤γK∑k=1K∣xkwjk∣+12ulp⁡BF16(yj(64))+10−10,(8)\left|\hat{y}_j-y_j^{(64)}\right| \le\gamma_K \sum_{k=1}^{K} \left|x_k w_{jk}\right| + \frac{1}{2}\operatorname{ulp}_{\mathrm{BF16}}\left(y_j^{(64)}\right) + 10^{-10}, \tag*{(8)}

where γK=Ku/(1−Ku)\gamma_K = Ku/(1-Ku) and u=2−24u = 2^{-24}. Every observed discrepancy satisfies Equation (8) and reflects standard BF16 reduction-order sensitivity.

Stale-output guard removal control

The guard control of Section 7.3 is a single-line removal ablation that replaces the drop-mode discard’s continue with pass; a recursive diff across both source trees confirms the one-line delta. Table 10 reports all 24 executions. The “Armed” column reads the guard boolean from the live request struct, and the bottom rows verify whether a synthetic failed-step token is delivered or committed under fail.

Trigger routePolicyBaseline StaleBaseline ArmedGuard Removed StaleGuard Removed Armed
None, live controlfail, rec.0×0×
reset_prefixfail, rec.16✓16✓
Preemptionfail, rec.16✓16✓
Token deliveredfail×✓
Token committedfail×✓

Table 10. The stale-output guard arms all 6/6 fault cases, and removing its single line delivers and commits the stale token. Stale counts discarded stale tokens; Armed records live request-object guard state, with ✓ armed and × unarmed.

Mode-substitution re-judgment

Section 4.3 re-executes each output-flagged GPU cell under VLLM_BATCH_INVARIANT=1 with freshly generated within-mode cold references, summarized in Table 11. All four admission controls reproduce their invariant cold references token for token, so deterministic GEMM kernels preserve connector transport and fault injection. Under recompute, both allocation-aware rows pass Probe and Suff. in all three modes, and Disp. holds on the fail abort row where the owner terminates in error. Unpatched upstream and backported PR 61769 emit the degenerate [525]×8 canary in every arithmetic mode, which places the physical state contamination outside floating-point reduction order.

Evaluated cellProbeDisp.Suff.Def./inv.
Allocation-aware candidate✓×✓differ
No-device-rewind ablation✓×✓differ
Backported PR 61769×××differ
Unpatched upstream×××differ
Unpatched, abort case×✓×n/a
Admission controls, 4 cells✓✓n/aident.

Table 11. Batch-invariant mode substitution preserves 100% of Tier-2 state verdicts while generated tokens vary across modes. Each frozen cell is re-run with VLLM_BATCH_INVARIANT=1 and with default kernels. Probe, Disp., and Suff. are Tier-2 state witnesses.

Comparator stability across reruns and hosts

Comparator stability is measured across every multi-run configuration of the 16-run packaged cohort. Six runs satisfy the state-corruption predicate of § 4.3 and ten are clean, and raw admitted-token counts cannot separate them: consumer admission equals 256 in all 14 output-producing runs, and probe admission equals 256 in 11 of the 16 runs. Table 13 shows that the same-request Tier-3 primary discriminator stays invariant across all six repeated configurations while the cross-paired consumer continuation varies in three. On unpatched tree 3b6dc718 under stale-KV recompute, four identical runs yield four distinct consumer continuations, one of which matches the cold reference by chance, while the probe’s persisted artifact records [?] ×8\times8 in all 4/4 runs. Re-executing the 16-run protocol twice on a second H20 host with disjoint GPU UUIDs reproduces the exact state partition, admitted-token counts, and verdicts on 16/16 runs for the primary model and for a second model family, whose artifact bytes match on all 10/10 clean runs and diverge on all 6/6 corrupted runs.

Arm, conditionPolicy, tree hashnnPrimarySecondary
cache_off, failurerecompute, 3b6dc73stablestable
stale_kv, failurefail, 3b6dc72stablestable
stale_kv, failurerecompute, 30592e2stablestable
stale_kv, failurerecompute, 3b6dc7, 62691c6stablevaries
stale_kv, successrecompute, 3b6dc72stablestable
Total: 15 runs across 6 configurations; primary varies in 0, secondary in 3.

Table 13. The same-request Tier-3 discriminator stays stable in all six repeated configurations while cross-paired output varies in three. Grouped by arm, condition, failure policy, and commit prefix across 15 repeated runs.

Request-identity pairing ledger

Table 12 records all 16 packaged runs underlying § 4.3. “Adm.” reports shared-prefix tokens admitted to the later probe without computation. “Corr.” records whether aborted suffix hashes stayed indexed, “Prim.” scores the probe’s own persisted artifact against the cold reference, and “Sec.” scores the original consumer’s output as “none” on the two fail-closed runs that halt consumer output. Among the eight clean runs that produce consumer output, two diverge from cold through batching drift. Archive directory keys map local_c1 to the Allocation-Aware Candidate, public_transplant to Backported PR 61769, and upstream to unpatched vLLM.

ArmTreeCond.Pol.Adm.Corr.Prim.Sec.
Cache-onlyUpstreamfail.recomp.256nonematchmatch
Cache-onlyUpstreamfail.recomp.256nonematchmatch
Cache-onlyUpstreamfail.recomp.256nonematchmatch
RepairedAlloc.-awarefail.recomp.64nonematchdiffer
Stale KVAlloc.-awarefail.recomp.64nonematchdiffer
Stale KVAlloc.-awarefail.recomp.64nonematchmatch
Stale KVPR 61769fail.recomp.256yesdiffermatch
Stale KVPR 61769fail.recomp.256yesdifferdiffer
Stale KVUpstreamfail.fail64nonematchnone
Stale KVUpstreamfail.fail64nonematchnone
Stale KVUpstreamfail.recomp.256yesdifferdiffer
Stale KVUpstreamfail.recomp.256yesdiffermatch
Stale KVUpstreamfail.recomp.256yesdifferdiffer
Stale KVUpstreamsucc.recomp.256nonematchmatch
Stale KVUpstreamsucc.recomp.256nonematchmatch
Stale KVUpstreamfail.recomp.256yesdifferdiffer

Table 12. The per-run pairing ledger across all 16 packaged executions separates 6 corrupted runs from 10 clean runs. Prim. pairs probe state with the probe’s own persisted artifact; Sec. cross-pairs the original consumer output against the same cold reference.

Oracle Audit Protocol

The oracle audit evaluates the 42-cell frozen GPU matrix, spanning seven source arms and six fault conditions. Thirty-nine cells enter endpoint evaluation and define 210 obligation slots: 28 five-obligation endpoint cells and 14 block-reuse cells with four of five obligations applicable, for 196 applicable slots. Re-running the standalone trace checker with all harness labels stripped infers obligation structure from raw event streams alone and evaluates 199 entries, because three reuse cells ended at a CUDA execution failure before emitting reuse tags. Across the 89 obligations carrying direct harness booleans in label-stripped mode and the 162 comparable obligations in full audit mode, label removal changes zero verdicts, and raw event streams alone yield 89/89 self-consistency. A cell passes when all applicable obligations hold, and an obligation whose precondition never occurs in a trace is recorded as obligation-level inconclusive. Table 14 summarizes audit agreement and defines Obligation Sets A and B.

Audit instrument and axisnnAgreedFWFA
Standalone checker, obligations162159, 98.1%0/13, 0.0%3/149, 2.0%
Standalone checker, endpoints4242, 100.0%0/11, 0.0%0/31, 0.0%
Cross-vendor parsers, obligations158158, 100.0%0/13, 0.0%0/145, 0.0%
Cross-vendor parsers, endpoints3535, 100.0%0/8, 0.0%0/27, 0.0%

Table 14. The standalone checker and blind cross-vendor parsers reproduce every endpoint verdict on the 42-cell matrix, with a 0/13 false-witness rate and 3/149 conservative false alarms. Top: agreement against reference verdicts, where FW denotes false-witness probability over invalid obligations and FA the conservative false-alarm rate over nn comparable items. Bottom: the formal obligation sets derived from raw event streams.

SetConjunctive trace obligations
Set A: EndpointFault reaches the engine; revoked key-value blocks are neither served nor left hashed; the valid prefix stays reusable; the original owner reaches its required terminal state; the later probe matches the cold reference.
Set B: ReuseThe coordinator processes the delayed report while sparing reallocated blocks; reused blocks advance allocation generation gg; timestamps satisfy load << abort << reallocation << report settlement; the new owner matches the cold reference; the original owner aborts cleanly.

Table 14 (PDF p. 29).

Zero dependence on harness labels and cross-host replay. Every cell is adjudicated twice, once with full run metadata and once with the injected condition, failure policy, and cell identifiers stripped, and the two passes agree on all 42 cells. Executing the identical seven-tree cohort on a second independent H2O host with disjoint GPU UUIDs reproduces all 42/42 cell verdicts.

Cross-vendor blind specification parsers. Two temperature-zero language models from independent vendor families receive redacted raw event packets, reference token sequences, and probe records with all harness booleans and checker outputs removed. Both return obligation verdicts backed by explicit event sequence numbers, with 100% inter-rater agreement.

Coverage Registers

Table 15 indexes evidence by structural coverage unit and separates planned conditions from repeated executions. Across every studied stack the register holds 29 coverage units: seven mediation failures, 21 boundary controls or repairs, and one insufficient-witness path, of which 23 remain inside Google ADK’s documented quiescence preconditions. A units column reconciles those 29 stack by stack, so each of ChatGLM2, Google ADK, Cline, vLLM, and SGLang carries a stated count and the class counts sum to the register. The DSH approval runtime appears under its own denominator, since its eight live episodes and seven archived replays form the authority-side cohort of Section 8.1 and are registered apart so episodes repeating one operation contract do not inflate the count.

Coverage unit and target stackSizeUnitsDenominator and outcomeRetained scope and methodological bound
Branch deletion, ChatGLM29 exec.1Per-execution; MismatchForward KV digests match the deleted branch in 9/9
Naive cache clear, ChatGLM218 exec.1Per-execution; MismatchIncremental builder drops retained context in 6/6 tasks
Streaming tail, ChatGLM21 source1Single-source trace; CorrectFull-history rebuild returns the complete cache
ADK parent view, native, filtered, rebuilt3 units3Per-unit; Mismatch, RepairedNative projection mismatches, filtered and rebuilt views consistent
Active-event exporter and artifact, ADK9 hist.59 histories, 36 cond.; Mismatch, RepairedNative 3/9 against filtered and commit 3640e7d0c74b 9/9, artifact consistent
ADK late-completion set5 units5Per-unit; 1 Mismatch, 4 controlsLate native mismatch; complete-before-rewind, cancel, rebuild, fence controls
ADK durable SQLite set4 units4Per-unit; all correctDurable policy; never-exposed and cancel-before-completion controls
Invalid load and PR 61769, vLLM96 trialsn/a18 native, 18 patched; Mismatch, PartialEvidence for the three vLLM units below; abort-queue and direct-abort paths separated
vLLM cancellation, native and patched2 units2Per-unit; Mismatch, RepairedPublic patch closes the direct-abort owner path
Recompute path, vLLM6 exec.1Per-execution; MismatchHost-device position split after CPU-counter rewind
Rejected prefill retirement, SGLang4 runs1Paired schedules; InsufficientRouter cleanup bounded by the asynchronous timeout window
Cline checkpoint restore set5 units5Per-unit; all correctRestore, repeat restore, late append, compaction, native effect
Register total297 Mismatch, 21 Correct, 1 InsufficientSums exactly; five stacks, no unit counted twice
Step-level witness checks10,112n/aForward steps audited; PassHistory, positional offset, and slot invariants
Unadmitted GPU setup cells5 cond.n/aPrecondition Pre unmet; ExcludedPreemption race, async transport drop, and DMA drain

Table 15. The complete register of 29 coverage units separates seven mediation failures from 21 boundary controls and one insufficient-witness path, with every denominator kept unpooled. Size reports distinct conditions unless marked as executions, histories, pairs, or trials. Units counts coverage units per row and sums to 29; the DSH approval runtime carries its own denominator and is not counted in that total. DSH approval runtime, separate denominator: 8 live episodes, 5 reaching dispatch evaluation, 3 stopping before Pre. 1/1 live admitted execution and 7/7 archived provider replays; not pooled into the 29-unit register above.

Hypothesis provenance and unpooled denominators. Every coverage unit in Table 15 carries source-informed provenance, and the evidence modes it belongs to are described in Section 5.2. Each experiment tests an explicit mechanistic boundary hypothesis formulated from source or architectural inspection before the cohort launches.

Native GPU cohorts span 84 planned conditions with 79 completions and 24 admitted fault cells. Agent cohorts span 42 SDK-projection episodes, 28 native runtime episodes, 163 approval requests across 24 conditions with 18 admitted, nine source-informed audit episodes, six capacity-boundary tests, and eight subagent-manager conditions, all kept on strictly unpooled denominators.

Endpoint or findingStandingWitness and scope bound
Aborted prefix admitted at hitTier-2b / 3 Witness28-layer KV digests, 294 checks; 10/10 wrong-target calls
Old report hits reused blockTier-2a WitnessBlock ID plus generation g over the 42-case matrix
Owner reaches error statusTier-2a WitnessNative FINISHED_ERROR and token history
GPU position stale post-rewindTier-2a WitnessHost tokens at 128 against GPU position at 288
Recompute differs from coldTier-2 WitnessState verdict 100% invariant across modes
New-owner output matches coldTier-2 WitnessProbe contamination mode-invariant; new owner clean
No-rewind arm differs from coldTier-2 WitnessHost-device split persists in invariant mode
Unprimed control differsQualifiedToken inequality retained; batch confound noted
Stale-output guard drops tokenRemoval controlcontinue → pass commits the token in 6/6 armed cases
Exporter reads raw eventsADK 7570Active-view filter and 3640e7d0c74b, 36 cond.
Stale prefix, reuse, preemptionvLLM 61768, 61905, 6191296 GPU trials and 42 CPU cases against b8c04dd3, 8ee68eb1
Output oracle unsound for stateCounterexample18-run factorial and 288-check BF16 MLP replay

Table 16. The endpoints re-stated after the oracle analysis of § 4 carry a named witness or a documented scope bound in all 12 cases. Each row binds an empirical endpoint to its witness class, upstream antecedent, and scope bound. Witness denotes direct Tier-2 or Tier-3 verification; Qualified marks a retained inequality with a documented batch-geometry scope.

Hit / Exp. is measured on the direct-abort case. On the preempted path the CPU matrix shows backported PR 61769 readmitting 112 tokens against 48 expected. “Bad” marks an owner left in PREEMPTED under fail, because legacy failure mapping scans only the running and remote-waiting queues. The owner-terminal predicate is not scored under recompute, where the owner is rewound and requeued by design, so a non-terminal owner there is expected behavior and not a violation (n/a). Both upstream commits were closed without merging (PR 61769 on November 12, 2026).

Native GPU and Agent Cohort Protocols

Eager-mode pointer-registration shim. Figure 5 and Table 17 run vLLM under enforce_eager with a single-call connector pointer-registration hook before each store, so LMCache V3 registers the physical tensor addresses that default eager execution skips outside CUDA-graph capture.

Agent cohorts and deferred-authority preconditions

Agent-side cohorts test whether historical context or superseded permissions leak across session boundaries. The eight-episode live-provider matrix of § 8.1 crosses allowed-once, canceled, rejected, and serialized across two model families. Five episodes reach dispatch evaluation and three fail precondition Pre: one provider family emitted no pending write draft in two runs, and one serialized run exceeded the setup timeout before draft creation. The planned artifact (§ 11) keeps the original gateway routing model identifiers so that each episode can be replayed against the endpoint that served it.

Root-cause sufficiency bridge

The repaired-arm cohorts of Table 18 are the six matched-task conditions of § 6 (ChatGLM2), nine histories (ADK), the ten E∧DE \land D runs of Table 6 and the two triggered generation cases of the 42-case matrix (vLLM), the two patched-tree runs of four reject-trigger runs (SGLang), and the 160 conflicting instances of Table 8 (approval runtime).

References

  1. [1]K. Greshake et al., “Indirect prompt injection in real-world LLM applications,” arXiv:2302.12173, 2023.
  2. [2]E. Debenedetti et al., “AgentDojo: A dynamic environment for prompt-injection attacks,” arXiv:2406.13352, 2024.
  3. [3]W. Kwon et al., “Efficient memory management for LLM serving with PagedAttention,” arXiv:2309.06180, 2023.arxiv.org/abs/2309.06180
  4. [4]L. Zheng et al., “SGLang: Efficient execution of structured LM programs,” arXiv:2312.07104v2, 2024.arxiv.org/abs/2312.07104
  5. [5]B. Ma et al., “Leyline: KV cache directives for agentic inference,” arXiv:2606.01065v1, 2026.arxiv.org/abs/2606.01065
  6. [6]C. Yao et al., “Forgetting without restarting: Execution-state unlearning for stateful LLM agents,” arXiv:2609.04875v1, 2026.arxiv.org/abs/2609.04875
  7. [7]Y. T. Shen et al., “Revoked but still authoritative: Revocation enforcement in agent-memory systems,” arXiv:2609.08258v1, 2026.arxiv.org/abs/2609.08258
  8. [8]ADK-Python maintainers, “Rewound turns still stored in long-term memory,” google/adk-python issue 7570, 2026.
  9. [9]mikee, “chatglm2-6b-4bit: app.py,” Hugging Face Spaces; snapshot in the artifact.
  10. [10]Cline contributors, “Cline Core SDK: local runtime, checkpoint restoration,” v0.2.0; snapshot in the artifact.
  11. [11]OpenHands contributors, “LocalConversation: fork, navigate, confirmation APIs,” SDK 1.58.2; archived with the artifact.
  12. [12]Cloudflare, “Cross-request KV cache exposure in GLM-5.3 Workers AI and our remediation,” 2026.
  13. [13]A. Deb, vLLM issue 61768, vllm-project/vllm, 2026.
  14. [14]vLLM contributors, PR 61769, vllm-project/vllm; pinned patch in the artifact.
  15. [15]L. Zhu et al., “Stealthy poisoning attacks via reused KV cache of reasoning,” arXiv:2610.22873v1, 2026.arxiv.org/abs/2610.22873
  16. [16]SGLang contributors, “Retire aborted disaggregated prefill results,” PR 36988, sgl-project/sglang.
  17. [17]SGLang contributors, “Do not admit intake-rejected requests to a PD handoff,” PR 38935, sgl-project/sglang.
  18. [18]SGLang Team, “SGLang security update: Improving request isolation,” 2026.
  19. [19]deepseek-ai, “dsh-superagent research prototype,” deepseek-ai/dsh-superagent-prototype, commit 6337fc823ce20251c8de8085948165c81aaa701e, Oct. 31, 2026.
  20. [20]deepseek-ai, “DSH user approval and agent runtime,” deepseek-ai/dsh-superagent-prototype v0.2.1-alpha.2; archived with lockfile.
  21. [21]Y. Xie et al., “Rethinking agent security through cross-session stored prompt injection,” arXiv:2606.04425v2, 2026.
  22. [22]X. Chen et al., “MemSecBench: Tracking agent memory poisoning from persistence to consequence and repair,” arXiv:2607.27080v1, 2026.arxiv.org/abs/2607.27080
  23. [23]Y. Louck, “Securing LLM-agent long-term memory against poisoning: Origin-bound authority,” arXiv:2606.24322v1, 2026.arxiv.org/abs/2606.24322
  24. [24]T. Cerruti et al., “Agent memory is a surface for endogenous authorization laundering,” arXiv:2609.01836v2, 2026.arxiv.org/abs/2609.01836
  25. [25]J. He and D. Yu, “Stored is not supported: Typed provenance and assertion guardrails for persistent AI agents,” arXiv:2609.02127v1, 2026.arxiv.org/abs/2609.02127
  26. [26]E. Chen et al., “Fresh memory, stale plans: Derivation currency for distributed LLM-agent memory,” arXiv:2609.03340v2, 2026.arxiv.org/abs/2609.03340
  27. [27]W. Chu, “When evidence changes: Evaluating memory repair and re-reading in language-model agents,” arXiv:2610.03902v1, 2026.arxiv.org/abs/2610.03902
  28. [28]J. H. Saltzer and M. D. Schroeder, “The protection of information in computer systems,” Proc. IEEE, vol. 63, no. 9, pp. 1278–1308, 1975.DOI
  29. [29]J. P. Anderson, “Computer security technology planning study,” ESD-TR-73-51, Vol. II, Electronic Systems Division, AFSC, Hanscom Field, 1972.
  30. [30]M. Bishop and M. Dilger, “Checking for race conditions in file accesses,” Computing Systems, vol. 9, no. 2, pp. 131–152, 1996.
  31. [31]H. T. Kung and J. T. Robinson, “On optimistic methods for concurrency control,” ACM Trans. Database Syst., vol. 6, no. 2, pp. 213–226, 1981.DOI
  32. [32]M. Burrows, “The Chubby lock service for loosely-coupled distributed systems,” in OSDI, 2006.DOI
  33. [33]A. Deb, vLLM issue 61905, vllm-project/vllm, 2026.
  34. [34]guanxingithub, “Load-failure report arriving after the owner was preempted,” issue 61912, vllm-project/vllm, Oct. 2026.
  35. [35]vLLM contributors, “Handle load failures after preemption,” PR 62287, vllm-project/vllm; closed unmerged Nov. 13, 2026.
  36. [36]ayoub-ibm, “kv_load_failure_policy="recompute" gives wrong output when a KV connector rejects a synchronous load (V2 runner),” issue 49250, vllm-project/vllm, Jul. 2026.
  37. [37]SGLang contributors, “Defer aborted prefill release until source reads drain,” PR 47250, sgl-project/sglan g; open as of Nov. 2, 2026.
  38. [38]Hugging Face Transformers contributors, “Caching prompt hidden states across generate calls,” issue 24841.
  39. [39]nanochat contributors, “Skip the row completed in the inference sample loop,” PR 736, karpathy/nanochat.
  40. [40]Linux kernel contributors, “RCU concepts,” Linux v5.16 documentation.
  41. [41]H. He, “Defeating nondeterminism in LLM inference: True batch-invariant operations,” Thinking Machines Lab, 2025.DOI
  42. [42]J. Yuan et al., “Understanding and mitigating numerical sources of nondeterminism in LLM inference,” arXiv:2506.09501, 2025.arxiv.org/abs/2506.09501
  43. [43]vLLM contributors, “Batch-invariant kernels for vLLM,” under VLLM_BATCH_INVARIANT.
  44. [44]M. Black et al., “Metamorphic testing for generative AI,” in Software Quality, 2023, pp. 181–201.
  45. [45]M. Kiezun et al., “Differential software testing,” in Software Engineering: Methods and Analysis, 2015, pp. 235–248.
  46. [46]J. B. Goodenough and S. L. Gerhart, “Toward a theory of test data selection,” IEEE Trans. Softw. Eng., vol. SE-1, no. 2, pp. 156–173, 1975.
  47. [47]E. T. Barr, M. Harman, P. McMinn, M. Shahbaz, and S. Yoo, “The oracle problem in software testing: A survey,” IEEE Trans. Softw. Eng., vol. 41, no. 5, pp. 507–525, 2015.DOI
  48. [48]R. A. McKeith, “Testing differentially-based applications,” in Proc. Int. Conf. Software Reliability and Quality, 1997.
  49. [49]vLLM, “Security: Multi-tenant deployments and prefix-cache timing mitigation,” documentation.
  50. [50]X. Wu et al., “Cache me, catch you: Cache related security threats in LLM serving frameworks,” in NDSS, 2026.DOI
  51. [51]X. Zhang et al., “I know what you asked: Prompt leakage via KV-cache sharing in multi-tenant LLM serving,” in NDSS, 2025.DOI
  52. [52]G. Wu et al., “Safe to resume? Breaking execution continuity of agent execution via rollback,” arXiv:2608.29381v1, 2026.arxiv.org/abs/2608.29381
  53. [53]Y. Su et al., “ChronoMem: Version control and semantic rollback for LLM agent memory,” arXiv:2607.27773v1, 2026.arxiv.org/abs/2607.27773
  54. [54]J. Guo et al., “Planarian: Managing agent state with statepoints,” arXiv:2609.35366v1, 2026.arxiv.org/abs/2609.35366
  55. [55]G. Zhang and H. Yang, “Aborted but not forgotten: KV-cache retention breaks rollback consistency in language agents,” arXiv:2608.15939v1, 2026.arxiv.org/abs/2608.15939
  56. [56]Y. Zheng et al., “When can agents safely checkpoint, fork, restore, and merge? Exact checking for execution edits,” arXiv:2608.22928v1, 2026.arxiv.org/abs/2608.22928

Paper details

vlnc:W_wxughgge
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents