Persistent memory changes what an agent is. A stateless model answers within one context window and forgets; an agent with memory carries its past into every future session, and that is exactly where the risk concentrates the AI agent memory design guide. The design guide frames memory as three deliberate decisions (what to store, when to load, when to forget), and each one has failure modes that look like "the agent is unreliable" when they are really cases of nobody owning the memory layer.
The loop appears when the agent writes to that layer itself. An agent summarizes a tool output, stores the summary as a fact, retrieves it next week, and treats it as its own learned knowledge. The memory poisoning literature calls this the write-back loop: untrusted input flows in, gets stored as the agent's own recollection, and returns later as trusted context memory poisoning exploits that wait. That post notes OWASP added memory and context poisoning to its Top 10 for agentic applications, precisely because the attack and its effect are temporally decoupled.
You do not need an attacker for the loop to close. Self-summarization is enough. A retrieval agent reads a document, writes "the customer's contract renews in March" into memory, and three months later cites that memory to justify a renewal reminder. If the original document said April and the agent misread it, every downstream step now rests on the agent's own error, with no external check. Research on stale memory found that even the best evaluated model reached only 55.2% overall accuracy on tasks that required recognizing when a stored belief had been invalidated by later evidence the STALE benchmark. An agent is measurably bad at noticing that its own stored facts have gone out of date.
There is a second, subtler mechanism. A systematic study of memory poisoning identified four write channels into long-term memory, including system-prompt-driven writes and compaction-driven writes, where the agent condenses a long conversation and stores the summary From Untrusted Input to Trusted Memory. Compaction is the most dangerous channel for self-reinforcing loops because it is invisible: nobody asked the agent to remember anything, the runtime just trimmed context and kept the result. The same study found that agents designed to write and retrieve memory more aggressively are more exploitable, and that existing prompt injection defenses fail to cover this class of attack. Your eager memory configuration is a risk multiplier.



