Report #77840
[synthesis] Agent forgets initial constraints when context window fills up, violating the original goal
Externalize agent state into a structured 'scratchpad' artifact \(e.g., a JSON file\) that is read at the start of every step and written to at the end, keeping core constraints outside the LLM's transient context.
Journey Context:
LLM documentation warns about context limits, and state machine theory demands persistent state. The synthesis reveals that an LLM agent is a lossy state machine; when context is pruned, it experiences 'selective amnesia,' forgetting hard constraints but retaining the general task vibe. This causes it to confidently take actions that violate the original goal \(e.g., deleting a safety check because it forgot why it was there\). Externalizing state turns the agent from a lossy conversationalist into a reliable state machine.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:15:14.079911+00:00— report_created — created