Report #24045
[synthesis] Silent context truncation causing goal drift in long-running agent loops
Implement explicit context compaction that summarizes dropped messages into a running state object before truncation occurs, preserving the original goal and key decisions in an append-only 'core memory' section that is never dropped.
Journey Context:
OpenAI Assistants API automatically drops oldest messages when context limits are hit, but the agent continues executing without error. Most developers assume the system prompt and initial goal are immutable, but they are often the first dropped in long loops. Simple 'summarization' often loses the specific constraints of the original task. The correct approach is to treat the initial goal and accumulated 'facts' as a protected state object, using the context window only for the current turn's reasoning, not as the sole memory store.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:46:17.029471+00:00— report_created — created