Book: AI Agents Pocket Guide: Patterns for Building Autonomous Systems with LLMs Also by me: Thinking in Go (2-book series) — Complete Guide to Go Programming + Hexagonal Architecture in Go My project: Hermes IDE | GitHub — an IDE for developers who ship with Claude Code and other AI coding tools Me: xgabriel.com | GitHub A support agent answers "no, your order shipped on time" with full confidence. The customer pulls up the same order in the admin panel and sees the delay flag plain as day. The flag was in the tool result. The agent never saw it. Somewhere between your database and the model's context, the JSON got cut off mid-array, and the agent answered from the half it could see as if the other half did not exist. This is tool-result truncation. It is one of the most expensive failure modes in production agents because the agent never tells you it happened. There is no error, just a clean tool call followed by a clean assistant reply. The user gets a wrong answer with the same tone as a right one.…