feat: implement issue #2072 — bot-comment retry scan fails with "jq: Argument list too long" on PRs with many comments — undispositioned bot comments are never retried
Problem
bot-comment retry scan fails with "jq: Argument list too long" on PRs with many comments — undispositioned bot comments are never retried
From the issue: The bot-comment retry scan added in #2022 fails closed on PRs with many comments: jq is invoked with the whole comment list as a command-line argument and exits with Argument list too long, so the scan skips the PR and never retries its undispositioned bot comments.
Risk
Low — changes automation shell logic under scripts/, covered by shellcheck (--severity=warning) and the bats suite.
Test plan
Tests added/updated: tests/dev-lead/unit/test_bot_comment_retry.bats. Verification: bash scripts/dev-lead-lint.sh (shellcheck --severity=warning) ran pre-commit; the bats suite runs in CI.
Rollback
Revert this PR. No non-revertible side effects (no tags, migrations, or external state).
Monitoring
This PR's Lint (shellcheck) and bats checks show pass/fail; watch subsequent dev-lead / pr-review runs for behavioral regressions.
Closes #2072