Report #79362
[synthesis] Agent repeats previously failed attempts because failed history fell out of the context window
Implement an external episodic memory summarizer that condenses failed attempts into a Negative Prompt \(e.g., Do not use method X, it fails with Y\) that is always prepended to the context, rather than keeping the raw logs of the failures.
Journey Context:
Developers often just increase max\_tokens or let the framework truncate the top of the chat. But truncation removes the initial failures, leading to cyclical repetition. Keeping raw logs wastes tokens. The synthesis is that failure modes must be actively compressed into constraints and pinned to the top of the prompt, changing the representation from historical narrative to active instruction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:48:28.213461+00:00— report_created — created