The Impact of Memory Compaction on Long-Running AI Agents
Long-running AI agents inevitably accumulate large histories, which makes memory compaction necessary. But compaction isn’t just about reducing storage; it determines what the agent continues to believe. When memory is summarized or collapsed, some commitments, constraints, and lessons are preserved while others disappear. If this process is careless, it introduces drift, breaks determinism, and quietly alters the agent’s identity. For agents operating over weeks or months, compaction must protect causality and authority, not simply shrink memory.
