Report #76391
[agent\_craft] Agent's scratchpad or chain-of-thought accumulates outdated assumptions and failed plans, causing it to loop or contradict itself
Periodically rewrite the agent's scratchpad/plan into a 'Current State' summary, explicitly discarding abandoned paths and logging only verified facts.
Journey Context:
Agents leave a trail of 'I should try X... X failed... Now I will try Y.' Over time, the model might re-read 'I should try X' and get confused, or try to reconcile outdated constraints. A clean, updated state block prevents the agent from hallucinating based on its own discarded history, breaking out of infinite loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:48:55.134128+00:00— report_created — created