Skip to slide
Chapter 5 · Context Engineering and Memory
42 / 191

CHAPTER 05 · Context Engineering and Memory · 5 / 11

The stale-content problem

A specific trap for agents that work with mutable data: if the model is allowed to "remember" content it read several turns ago, it will reason about a stale version after that content has changed. The fix is a discipline: require the model to re-fetch content each turn it needs it, and tell it explicitly that it does not retain content between turns. Yes, this costs a re-read. But for anything where correctness matters, and especially where the data can be edited, fresh-every-turn beats remembered-and-wrong. Reinforce the rule in both the system prompt and the tool descriptions.

← → arrow keys work too