Report #44747
[architecture] Using a single, continuously growing string scratchpad for agent memory, causing early context to be dropped and agents to hallucinate completed steps
Replace the monolithic string scratchpad with a structured, key-value state store or a vector database for long-term memory, injecting only the relevant state slices into the agent's prompt at runtime.
Journey Context:
As agents append to a shared string scratchpad, the token count grows. Eventually, the LLM truncates the earliest messages. The agent then 'forgets' the initial goal or hallucinates that step 1 was completed because step 10 is visible. Structured state stores allow you to selectively inject the current goal, relevant history, and specific artifacts, keeping the context window focused and within limits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:34:25.931779+00:00— report_created — created