Issue #1862 โ toggle the bugs to see how each one hid the others. 3 PRs queued for analysis: #1854, #1853, #1852.
Bug A โ 2> err.log captures nothing
claude -p returns auth/permission errors as JSON on STDOUT โ verdict.json.
err.log stays empty, so `cat err.log` in the || block shows nothing.
Fix: log BOTH verdict.json and err.log on failure.
Bug B โ errexit kills the loop before continue
GHA default shell is bash -e. `cat err.log` on an empty file exits non-zero,
killing the entire step BEFORE `continue` fires โ PRs 2 and 3 never analyzed.
Fix: guard every diagnostic cat with `|| true`.
Bug C โ dontAsk silently refuses tools
/ci-debug needs Bash for `gh pr checks` + `gh api .../logs`. dontAsk refuses
permission-requiring tools โ empty verdict, no error.
Fix: --permission-mode acceptEdits (read-only skill, headless-safe).