Quick check: does your agent stack have a memory.md in it somewhere? An AGENTS.md? A notes file the agent appends to when something seems worth keeping?

Thought so. Mine did too. It's the pattern everyone converges on, it takes twenty minutes to build, and it genuinely works — right up until the day it hands a customer a fact that stopped being true in March.

This post does three things: shows you exactly why the pattern rots (with a real-shaped sample file we'll dissect), gives you a small script to audit your own file tonight, and walks through the architecture change that actually fixes it. No vendor required for any of it.

The pattern we all built

Strip away the framework and every self-managed memory loop looks like this: