Five-by-five survival matrix: five truncation policies (head-N, tail-N, head+tail, middle-out, match-centred) against five positions of a planted evidence line in a 400,110-character payload at a 20,000-character budget. Head-N keeps the line only at 0%, tail-N only at 100%, head+tail at 0% and 100%, middle-out only at 50%, and the pattern-centred window at all five positions.

Your Agent Drops 380 KB of Tool Output. Which Line Survives?

A coding agent runs a test suite, a log tail or a recursive grep. The tool returns 400 KB. The harness caps it before the text reaches the model, and the cap is almost always a character or byte budget applied to a fixed part of the string — the head, or the two ends. The agent then answers confidently about a failure whose stack frame was at 62% of the output and never made it into the prompt. ...

November 22, 2026 · 10 min · baeseokjae