Report #87955
[architecture] Agent remembers every single tool error and retry, filling memory with useless state transitions
Implement a curation step at the end of a task/sub-task that only commits successful state transitions and final answers to long-term memory, discarding intermediate failed steps.
Journey Context:
If an agent writes code, fails, reads an error, fixes it, and succeeds, the long-term memory shouldn't contain the syntax error. It should only remember the working code and the pitfall to avoid. Storing failures leads to the agent 'learning' the wrong behavior. Alternatives: Storing everything and filtering at retrieval \(too noisy\). Best call: Curate at ingestion.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:13:06.650372+00:00— report_created — created