Report #91844
[synthesis] Agent fails catastrophically downstream because a tool implicitly mutated global state and the agent's subsequent prompts assume the original state
Enforce absolute paths and stateless tool designs where possible. If state mutation is necessary, the tool must explicitly return the new state delta, which is forcefully injected into the agent's next context window.
Journey Context:
Agents maintain state primarily through their context window. If a tool changes state \(like cd in a shell\) but only returns a generic success, the agent's context still reflects the old state. Subsequent relative path commands fail inexplicably. The synthesis is that tool interfaces must bridge the gap between imperative state mutation and the declarative statelessness of the LLM context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:45:08.280732+00:00— report_created — created