R405 · Infrastructure for agents at scale › Production incidents and cascading failure

A rejected request that was never rejected

Read the original

inference-servingsecuritydeveloper-infrastructureclaim-checkingvendor

Source: Cloudflare, "Cross-request KV cache exposure in the GLM-5.3 Workers AI model, and our remediation with SGLang", published 2026-10-26. The inference engine's own write-up of the same incident and the status-page entry are linked from it and are outside what this summary covers.

What happened

For thirteen days, a serving stack returned other customers' data. 155 responses on one model were affected, every one of them to a prompt longer than 681,280 tokens. The provider found no evidence of deliberate exploitation and says the affected requests are consistent in timing and volume with ordinary long-context use. It does not say how many customers, and it does not say how the completeness of the 155 figure was established.

The disclosure is unusually specific about mechanism, and the mechanism is the reason to read it: nothing here is exotic, and the same shape is reachable by anyone running disaggregated inference.

The mechanism

Two defects had to line up.

A configuration mismatch. The model was launched with a context window of 1,048,576 tokens and a prefill KV cache pool with room for 681,280. Any prompt between those two numbers could not fit the pool it had to be written into. The exposure was present from launch — it was not introduced by a later change.

A rejection that did not reject. A prompt too large for the pool was marked internally as rejected and replaced with a one-token placeholder. Instead of aborting, prefill went on to generate the KV cache for the placeholder and transferred that to the decode node. Decode then proceeded on the assumption that prefill had overwritten the previous request's cache with this request's full prompt. It had not. And pages are not zeroed when released — the next request to receive a page simply overwrites it — so the pages decode read still held the previous tenant's tokens. The client received HTTP 200.

The admission queues on both roles were checking the wrong predicate: whether a request was finished, not whether it was rejected. A rejected request looks finished.

Why the testing passed

The provider states it plainly: long-context validation checked HTTP response codes and engine performance, and did not check output coherence. A response that is 200, fast, and well-formed passes a test that never reads it. This is the generalisable failure, and it is not specific to inference: any validation suite that asserts on status and latency while treating the payload as opaque will pass a stack that is returning the wrong payload confidently.

The second generalisable failure is upstream. The engine bug had been reported by another user as a public issue on 2026-07-06 — seven weeks before this deployment launched with the configuration that could reach it. A fix for a related failure path had been merged in early September but was not yet in a release. So the defect was known, filed and partly fixed in the open, and still shipped, because nothing connected the open issue to the deployment that was vulnerable to it.

What the fix actually is

Worth being precise, because the obvious guess is wrong. The circulating summary of this incident says that prompts larger than the KV cache broke tenant isolation. Over-length prompts were the trigger; they were not the cause, and a prompt-length check is not the remedy.

The shipped remedy is two-layered:

Supporting changes: deferred KV release on both roles, bounded transfer batches, and a load balancer that holds the prefill connection until prefill finishes and the decode connection until the first token before closing both.

No performance cost is published for the shipped fix. The only figure in the post belongs to an unshipped prototype — page-level tagging, measured at under 1% in throughput and tail latency — which was disabled shortly after for reliability reasons. A production version is described as in progress. Treat "isolation costs about 1%" as a number about something that is not running.

The invariant they added, which is the transferable artefact

After the fact, the provider added a check that reads the KV pool size against the context length directly from the running engine, before any disaggregated deployment change ships. That is the right shape for this class of bug: not a test that exercises a path, but an assertion that a dangerous relationship between two configuration values cannot exist in a deployment. The deployment check now also covers deferred release on both roles and transfer batch bounds.

They also added, upstream, an optional checksum that decode verifies on the transferred KV before generating, plus canary fixes. Both are explicitly incomplete: the checksum and canary flags do not yet cover every model architecture, and extending checksum validation to every decode step is listed as still in progress. Zeroing pages on release remains a draft proposal. The post's closing note on formal verification is candid — they expect gaps in what provers can tell them.

Failure modes to look for in your own stack

  1. Any capacity value that can be smaller than a declared limit. Context window versus KV pool is one instance. The general form is a configured maximum that a second component cannot actually accommodate, where exceeding it takes an error path nobody exercises.

  2. Error paths through a cross-process handoff. Disaggregated prefill/decode, or any producer/consumer split, where the consumer assumes the producer wrote what it was asked to write. The consumer needs to verify, not assume — and "finished" is not "succeeded".

  3. Memory reuse without clearing. Pages, buffers, slabs, arenas: reuse without zeroing is a performance decision that becomes a disclosure boundary the moment any path reads before writing.

  4. Validation that never reads the payload. Status codes and latency percentiles are not correctness. A long-context suite in particular should assert that the output is a coherent continuation of this input.

  5. Open issues in a dependency you have not mapped to your own deployments. The engine bug was public for seven weeks. The gap was not detection, it was that nobody could answer "which of our deployments can reach this".

  6. A single version number in a disclosure. This post states two different release versions for the same patch in two places. Pin against the actual commit or PR, not against prose.

Review checklist for a disaggregated inference deployment

Connections

See R405 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.