Fix AI Agent Dementia: Persistent Memory for Stateful Agents