mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-07-14 03:55:17 +03:00
134b4d08e6
`grep -q` exits at its first match without draining stdin, killing the piping `echo` with SIGPIPE. Under `set -o pipefail` that 141 becomes the pipeline's status, which is indistinguishable from "no match" — so a section that is present gets reported missing. The race only surfaces on bodies large enough that `echo` is still writing when `grep` bails, which made the warning set differ between identical runs (full repo: 106/87/90 warnings across three runs; now a stable 59). Feed both checks from a herestring so there is no writer to signal. Co-authored-by: Jaak Vaher <jaak.vaher@cyber.ee> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>