Report #39406
[frontier] Long-running agent processes exceed context windows or accumulate toxic historical bias
Implement generational garbage collection for memory: divide memory into 'Eden' \(current conversation\), 'Survivor' \(recent summaries\), and 'Tenured' \(archival vectors\). Use reference counting: when no active sub-agent references a memory shard, purge it. Explicitly call \`gc.collect\(\)\` after each tool execution loop.
Journey Context:
Simple truncation loses critical procedural context; full history overwhelms the window. Generational GC mimics human working memory: recent details are precise, old facts are summarized, and irrelevant data is forgotten. This prevents 'context poisoning' where early false assumptions dominate later reasoning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:36:41.716655+00:00— report_created — created