lib/report-directory.sh cannot distinguish a failed walk from an empty one, so callers needing the distinction must duplicate its listing
Id: TD-PPagop-26082837 · Status: resolved · Filed: 2026-08-28 · Resolved: 2026-09-28 · Ref: https://github.com/Pullwright/agent-ops/pull/1902
_report_directory_walk degrades a failed gh api to return 0 with no output — byte-identical to what ‘no directory matched’ produces — and report_directory_most_recent inherits that: an empty result means either ‘no report directory exists’ or ‘the read failed’, and the API cannot say which. This already bit once: PR #896’s first iteration read the ambiguity as the definite empty in gather-project-review.sh –current-date, which would have irreversibly retired every review-
Noticed while the Approver was judging https://github.com/Poetic-Poems/agent-ops/pull/896.
Migrated to https://github.com/Poetic-Poems/agent-ops/issues/1024.