flybrain/infra/tests
acamilo 75e231c707 fly-feed: status exits quietly on a closed stdout (no broken-pipe error on stderr)
When stdout is closed early (e.g. `fly-feed status | head -1`), the second and later
status_report writes fail with EPIPE; bash's builtins report "write error: Broken pipe"
to stderr even with `trap '' PIPE`, because the failed write is reported by the
runtime, not the signal handler. Route every status_report write through a `say`
helper that checks printf's exit status and exits 0 on the first EPIPE: the reader
is gone, nothing useful is left to do, and `set -e` must not trip on the failing
write.

The change is scoped to status_report: bus/direct's stderr log/record writes are
unaffected, the output text is unchanged, and the switching behaviour and exit
codes are untouched. A test in infra/tests/lint.sh runs `fly-feed status` with
the existing stubbed state into `| head -1` and asserts nothing is written to
stderr.
2026-10-02 13:04:20 +00:00
..
fixtures/shadow-guard tests: recorded live-fly RTF traces for the shadow guard; docs: review round 2 (SHADOW-01) 2026-09-30 03:47:37 +00:00
de-pii-allow.txt tools: pii-scan guard with a private pattern list, tag-release gate and pre-push hook 2026-09-29 15:52:35 +00:00
lint.sh fly-feed: status exits quietly on a closed stdout (no broken-pipe error on stderr) 2026-10-02 13:04:20 +00:00
pii-scan-test.sh pii-scan: refuse an invalid pattern instead of scanning clean, and read '+++' as a header only after '---' 2026-09-29 16:56:56 +00:00
shadow_guard_traces.py infra: the guard judges the live fly against its own baseline (SHADOW-01 review round 2, G1) 2026-09-30 01:39:52 +00:00
test_loop_recover.py infra: a reset's replay is not progress; the ladder measures progress and catches against the reward names it has seen (row 70 review r3) 2026-09-30 23:58:13 +00:00