feat: implement issue #2208 — dev-lead unminimizes every informational-dispositioned bot comment on its next pass: maintainer-comment-gate.sh resolves its lib dir after the cd into the PR worktree (#2152 again, second file)

Merged
DO
1mo ago
+74-4

Problem

dev-lead unminimizes every informational-dispositioned bot comment on its next pass: maintainer-comment-gate.sh resolves its lib dir after the cd into the PR worktree (#2152 again, second file)

From the issue: dev-lead minimizes a bot comment RESOLVED on one pass and unminimizes it on the next, so pr-review's undispositioned-pr-comment gate can never settle on a PR that needs an informational disposition.

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_maintainer_comment_gate.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 #2208