Your SaaS product prepares renewal briefs from customer contracts. The backend retrieves the right account’s files, calls a hosted model and shows the result to the account manager. The request is authenticated and the database access checks pass. Once the prompt reaches the inference provider, another system decides which working memory the model can use. What happens if that system attaches the wrong context?
Cloudflare reported that 155 responses from its hosted GLM-5.3 model contained data from other customers’ requests between August 27 and September 9, 2026. Cloudflare restored the model on September 9 and published its disclosure on October 26. The company reported that no other Workers AI model was affected.
Follow the prompt into model memory
During prefill, the model processes the input tokens and computes attention state. During decode, it generates output tokens and reuses that state from the key-value cache, or KV cache. Reuse saves work as the response grows. The cache holds model tensors derived from the prompt, so whoever controls which cache the decoder reads also controls part of the context behind the answer.
A serving team can run prefill and decode together, or split them across worker pools to tune time to first token and steady streaming separately. Splitting adds a handoff where the state must reach the right request intact. Keeping the stages together removes that transfer but still requires correct allocation and reuse within shared memory.
Where the boundary failed
Cloudflare’s report describes a mismatch between the deployment’s advertised request capacity and the memory it had available, alongside a defect in error handling. Some requests still produced responses using state associated with other requests. Cloudflare corrected the deployment configuration and ran a patched serving engine before restoring the model.
A useful design question is what the decoder must establish before it emits anything. Give each request an explicit isolation scope and attempt ID. Authorize reuse only inside its allowed scope, and validate that the complete state belongs to the active attempt before opening the stream. If the system cannot establish that, end the attempt with a typed error and release its state.
Decide what to reject and what to retry
If your team operates inference, validate the supported context size against the actual worker configuration before a deployment takes traffic. At runtime, distinguish a request that exceeds a documented limit from a temporary capacity problem. A client can fix the first by sending less input. The second can be eligible for a bounded retry with a fresh attempt and separately verified state.
Treat intentional prefix reuse as an explicit policy. A shared prefix can save prefill work, but private prefixes need a defined scope across cache keys, workers and reuse paths. If a customer requires dedicated infrastructure, confirm what is dedicated, including workers and caches, and account for the capacity and operating cost.
| Serving decision | Expected behavior | Evidence to request or retain |
|---|---|---|
| Admit a request | Reserve the required capacity or return an explicit error. | Deployment check and admission outcomes by serving revision. |
| Start streaming | Confirm complete state for the active attempt and its authorized scope. | Verification result and whether output started. |
| End a failed attempt | Discard its state. Any eligible retry starts with a fresh attempt. | Error class, retry correlation and cleanup outcome. |
In a staging environment you control, verify the outcomes for successful admission, a failed handoff and a canceled attempt. Use synthetic account data. Check the decision to start output and the state cleanup alongside the response. Record request IDs, outcome and serving revision without putting customer prompts in routine telemetry.
Ask the provider to show where its guarantee ends
If your team calls a hosted API, ask what the offered deployment tier isolates and which serving stages the guarantee covers. Ask how the provider verifies cache ownership and handles incomplete state, which request identifier it needs to investigate, and how it reports an incident’s affected deployment and time window. Retention, training use and runtime isolation each need their own answer.
Your application can still minimize what it sends. For a renewal brief, extract the account’s eligible clauses and attach their source IDs before calling the model. If the route is suspended or its guarantees fall short for that data class, hold the brief for review or route it to a deployment already approved for the same class.
Give the on-call owner a decision they can make
Write down who can pause the route, what features are affected and how pending briefs will be handled. Keep provider request IDs and timestamps so the team can correlate its calls with an incident window. If output is suspect, stop it from feeding downstream records and preserve the necessary evidence under your incident process. Restore the route after the person responsible reviews provider evidence and confirms that the route meets the original data requirements.
Use the same release discipline as an AI agent rollout. For a team evaluating a model provider or operating its own inference stack, tell me about the engineering role and one workload you need to isolate. A concrete starting point is the data you send, where the control boundary sits and what evidence your team can ask for when something goes wrong.