Report #44234
[architecture] Dumping raw conversation context from one session into the next session's prompt
At session end, run a structured summarization pass that extracts: \(1\) key decisions made and their rationale, \(2\) current state of work including file paths and branch names, \(3\) open questions and blockers, \(4\) user preferences discovered or confirmed. Store as a typed session summary object with metadata \(session\_id, timestamp, task\_tags\). Next session retrieves the summary object, never the raw transcript.
Journey Context:
Raw context dumps are token-expensive, contain irrelevant back-and-forth, include abandoned reasoning paths, and lack structure for targeted retrieval. A 200-message conversation might contain 5 key decisions buried in noise. Structured summaries are compact \(typically 5-10% of the raw token count\), queryable by field, and do not pollute the new session with outdated intermediate reasoning. The tradeoff: summarization is lossy—you cannot reconstruct the full conversation from a summary. Therefore always preserve the raw transcript in cold archival storage for audit and recovery, but never load it into context. LangChain's ConversationSummaryMemory pattern codifies this, and the same principle applies at the agent architecture level: the handoff between sessions must be a compression step, not a copy step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:43:04.155015+00:00— report_created — created