feat: implement issue #2046 — dev-lead: unprocessed bot review threads are never retried — review-thread counterpart of #2017

Merged
DO
11d ago
+1062-12

Problem

dev-lead: unprocessed bot review threads are never retried — review-thread counterpart of #2017

From the issue: Bot review threads that dev-lead never processes are never retried. They sit with no reply and no resolution, and under required_review_thread_resolution the PR cannot merge. This is the review-thread counterpart of #2017, whose fix (#2022) covers only undispositioned PR issue 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/integration/test_prompt_coverage.sh,tests/dev-lead/unit/test_bot_thread_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 #2046