Report #54706
[synthesis] Agent loops derail silently without error when tool returns unchanged state
Inject a stale-state detector in the agent loop: if the observation hash matches the previous observation, synthesize a synthetic error message \(e.g., 'Error: State did not change after action'\) to force the LLM to alter its strategy.
Journey Context:
Standard retry logic only catches exceptions. When an API succeeds but does nothing \(e.g., editing a file that already has the text, clicking a disabled button\), the agent sees a 'success' and repeats. Developers often try to fix this by adding prompt text \('do not repeat yourself'\), but LLMs ignore this under pressure. Forcing a synthetic error breaks the 'success' assumption and triggers the model's error-recovery pathways instead of relying on fading attention to negative constraints.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:19:11.015641+00:00— report_created — created