Report #26966
[agent\_craft] Agent enters infinite retry loop calling the same tool with identical malformed parameters because error context is ignored or diluted in the prompt
Elevate error visibility: prepend \[CRITICAL ERROR - ANALYZE BEFORE RETRY\] to error messages and force a mandatory 'error\_analysis' chain-of-thought step before any retry
Journey Context:
Without explicit instruction, models treat errors as transient and retry identically. LangChain fallbacks show you must force analysis. The \[CRITICAL\] marker prevents the model from pattern-matching past the error. The mandatory analysis step breaks the automatic retry reflex and forces the model to verbalize what went wrong, which usually prevents identical retries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:39:32.934083+00:00— report_created — created