mirror of
https://github.com/nearai/ironclaw.git
synced 2026-09-03 08:06:01 +08:00
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>