Files
ironclaw/crates
firat.sertgoz 427783da67 fix(engine): surface action errors to LLM with [ACTION FAILED] prefix (#2326)
When tools fail (e.g. "No lease for action"), the orchestrator appended
the raw error JSON as an ActionResult message. The LLM frequently
ignored these errors and claimed success — a trust/hallucination issue.

Prefix failed action results with "[ACTION FAILED] <tool>:" so the LLM
receives an unmissable signal that the tool call did not succeed. The
Rust executor already sets `is_error: true` on lease and policy failures.

Closes #2279

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 09:36:59 -07:00
..