Report #100753
[agent\_craft] Tool output truncation hides the real failure at the bottom of a long log
Return structured status metadata \(exit code, success flag, byte count\) separately from output text. For failures, truncate from the end and preserve the tail; for logs, de-duplicate and keep head plus tail.
Journey Context:
Blindly truncating long stdout to a fixed token limit often drops the traceback or final error. The agent then invents a failure cause or declares success. The fix is to separate control signals from content and truncate by semantics, not just length. Exit codes and byte counts are tiny and must never be elided. This is the same principle as Unix pipelines: the status channel is independent of the data channel.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-02T05:02:32.538379+00:00— report_created — created