A policy engine reads rules, then writes decisions, contexts, and facts into a memory store that outlives the request. The engine's authors and the store's authors are usually the same two or three people at first, and then they are not. One side renames a method parameter, the other changes a serialization shape, someone changes an error code from NOT_FOUND to 404, and nothing fails until a user hits the path that crosses the seam.
Agent memory is now a first-class architectural concern, not a novelty. JetBrains frames long-term memory as a persistence layer outside the context window that holds stable facts and decisions and returns them when relevant JetBrains long-term memory guide. MongoDB places memory engineering at the center of agent reliability, spanning short-term working memory, semantic cache, and long-term episodic and semantic types MongoDB agent memory guide. Once memory is load-bearing, its boundary with the code that reads and writes it is load-bearing too.
The drift is not usually a dramatic API break. It looks like this: the store starts returning a 0 count for an expired key instead of raising a missing-key error, and the policy engine's retry branch now loops. Or the bulk put becomes non-atomic and the engine's partial-write recovery never triggers. Tests that stub the store keep passing because the stub was edited by the same person who broke the assumption, so the test now encodes the bug.



