Report #75479
[frontier] Continuing long sessions causes irreversible context pollution from completed subtasks
Implement Episodic Compartmentalization: at task boundaries, serialize agent state to vector store, spawn fresh instance with only summarized context injected, preventing cross-contamination
Journey Context:
Context pollution occurs when completed subtasks' edge cases, failed attempts, and exploratory reasoning linger in context, biasing future reasoning through priming and anchoring effects. Simple context window truncation loses critical information while retaining noise. Episodic Compartmentalization treats sessions as discrete episodes: when a subtask completes, the full state \(plans, reasoning, outcomes\) is compressed into a memory store \(vector DB or structured DB\). A new agent instance is spawned with only the summary and API access to the memory store, not the raw history. This mimics human episodic memory consolidation during sleep. Tradeoff: latency from state serialization and potential information loss in compression.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:17:32.693838+00:00— report_created — created