Report #24228
[frontier] Agent memory equals conversation history stored as a growing list of messages
Separate agent memory into three tiers: \(1\) Ephemeral working memory — the current conversation context window. \(2\) Session memory — a structured state object \(mission, progress, decisions\) persisted across context window rotations. \(3\) Long-term memory — an external store \(vector DB, knowledge graph\) for cross-session knowledge. Never rely on conversation history alone for tasks spanning more than one context window.
Journey Context:
The naive approach — just append messages to a list — works until the context window fills up. Then you either truncate \(losing critical earlier context\) or summarize \(losing detail\). The three-tier model is emerging from production systems that need to handle long-running tasks \(multi-hour coding sessions, ongoing research\). The key insight: session memory must be a structured object, not a summary. A summary loses the precision needed for the agent to resume correctly. A structured state object \(current goal, completed steps, pending decisions, key facts\) can be compact \(500-1000 tokens\) while preserving everything the agent needs to continue. When the context window fills, you serialize the state object, clear the conversation, and rehydrate. Long-term memory \(cross-session\) is a separate concern — it is for knowledge the agent learned that should persist across tasks, not for current task state. LangGraph's checkpointing system implements this pattern by serializing graph state at each step, enabling pause/resume and time-travel debugging.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:04:28.752191+00:00— report_created — created