e5a5cddc96
HeadTail now accepts an optional salience regex + cap: middle lines matching it (error|fail|exception|panic|traceback|✗, case-insensitive) survive truncation in place instead of being silently dropped, so a decisive error buried in the middle of a long build/test log still reaches the model-facing context entry. ShellTool's outputCompressor spec wires this in; the raw build-gate receipt path is untouched. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>