| Concept | What it retains |
|---|---|
| Call context | Tokens available to the model now |
| Long-term memory | Application records across calls: facts, preferences and references |
| Checkpoint | Process state and a point from which execution can resume |
| KV (Key–Value) cache | Intermediate attention key/value computations that accelerate generation |
Clearing a KV cache does not erase application memory. Restoring a checkpoint does not undo an email or payment already sent.
A timeout means confirmation did not arrive in time. The server may have executed the request. An idempotency key identifies one logical operation so a service can recognize its retries.
order-17.A new key on each retry makes them different operations. Protection depends on the service's retention period and rules. After checkpoint recovery, also check whether the external action already happened before the crash.
| Situation | Action |
|---|---|
| 429 and Retry-After | Respect the waiting period; bound retries and apply delay/backoff |
| Validation: unknown field | Correct the fields against the contract; waiting does not repair arguments |
| Steps produce no new result | Enforce step, time and cost budgets |
| The user cancels | Stop pending actions; completed actions are not automatically undone |
| Retrieval is unavailable but sources are mandatory | Report the limitation and offer a retry; do not substitute guesses |
Two workers read counter 10 and each writes 11. The expected value was 12: one update is lost. An atomic increment, lock or write-version check can prevent this. A transaction needs suitable isolation and update logic.
In “create user → assign role,” the second step waits for the first step's ID. Check role validity and permission for both actions before execution.
Example: 99 requests take 1 second each; one takes 101 seconds. The mean is 2 seconds, although one user waited almost two minutes. Inspect the distribution, tail percentiles and individual slow traces.