Context
#33769 identified that Matt Pocock Skills Reviewer fails its Pre-fetch PR diff step with exit code 141 (SIGPIPE) when the PR diff exceeds 3000 lines. The root cause is the set -o pipefail + gh pr diff ... | head -n 3000 shape: head closes its stdin early, gh receives SIGPIPE on its next write, and pipefail propagates 141.
That fix patches one workflow. The shape is likely present in other generated .lock.yml files — exactly the workflows that should be most defensive against large diffs.
Quick-win task
grep -rnE '\| (head|tail)( |$)' .github/workflows/*.lock.yml .github/workflows/*.md and triage hits.
- For each match that runs under
set -o pipefail, apply the same pattern: either { cmd || true; } | head -n N, or write to a temp file and truncate.
- Patch source
.md files (not .lock.yml) and re-compile.
Success criteria
- All
| head / | tail usages either are not under pipefail or tolerate SIGPIPE.
- No new step-exit-141 failures from large-input branches in the next 7 days.
References
- Sibling issue: #33769
- Source audit: [DeepReport 2026-05-21]
- Estimated effort: < 2h (one PR touching ~3-6 workflows)
Generated by 🔬 DeepReport - Intelligence Gathering Agent · ● 17.9M · ◷
Context
#33769 identified that
Matt Pocock Skills Reviewerfails itsPre-fetch PR diffstep with exit code 141 (SIGPIPE) when the PR diff exceeds 3000 lines. The root cause is theset -o pipefail+gh pr diff ... | head -n 3000shape:headcloses its stdin early,ghreceives SIGPIPE on its next write, andpipefailpropagates 141.That fix patches one workflow. The shape is likely present in other generated
.lock.ymlfiles — exactly the workflows that should be most defensive against large diffs.Quick-win task
grep -rnE '\| (head|tail)( |$)' .github/workflows/*.lock.yml .github/workflows/*.mdand triage hits.set -o pipefail, apply the same pattern: either{ cmd || true; } | head -n N, or write to a temp file and truncate..mdfiles (not.lock.yml) and re-compile.Success criteria
| head/| tailusages either are not underpipefailor tolerate SIGPIPE.References