fix(553): exclude bot-authored issues from the queue selector
PR Gates / CI image pin matches docker/ci (pull_request) Successful in 30s
PR Gates / Docs update reminder (pull_request) Successful in 55s
PR Gates / decisions lifecycle (pull_request) Successful in 58s
Build ErsatzTV Image / API docs in sync (OpenAPI + endpoint index) (pull_request) Successful in 1m27s
Build ErsatzTV Image / Formatting (changed .cs conform to .editorconfig) (pull_request) Successful in 16s
Build ErsatzTV Image / Build & test (.NET) (pull_request) Successful in 7m40s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (pull_request) Successful in 6m42s
Build ErsatzTV Image / Build & push image (amd64) (pull_request) Has been skipped
Build ErsatzTV Image / Functional E2E (curl contracts) (pull_request) Successful in 16m34s

scripts/select-queue.sh ranked Renovate's Dependency Dashboard (#22) as an
ordinary `priority: low` candidate. With an all-low backlog ordered by issue
number, #22 sorted to the top and was proposed to every fresh session — a bot-
rewritten status board whose checkboxes are commands to Renovate, not work
items. A session trusting the selector's "trust the ordering" contract would
either waste a pickup or make the exact undocumented judgment call the script
exists to eliminate (this session hit it live).

Drop bot-authored issues in the same jq pass that drops PRs/in-progress/parked:
match login `renovate` plus the GitHub `name[bot]` convention so a future bot
dashboard is excluded too. A bot's actionable output is PRs (already excluded);
it never files a human work-item issue, so the whole class is never a pickup.

Also make "scan for bundle-able siblings after claiming" an explicit kickoff
step (new step 4) with a third bundle axis — shared label / adjacent subject —
so a session sweeps small independent same-label issues together (e.g. this
change's own #553 + #512 ci-cd hygiene bundle) instead of closing one at a time.

Verified: selector no longer lists #22; genuine backlog issues still rank; the
only bot-authored open issue is #22. shellcheck clean.

Fixes #553

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-22 17:01:46 +02:00
co-authored by Claude Opus 4.8
parent 732322dc84
commit 6208d66864
2 changed files with 31 additions and 10 deletions
+11
View File
@@ -19,6 +19,9 @@
# - ordering: within a tier, priority high>medium>low, then lowest issue number.
# - label exclusions: `in-progress` and `parked` are dropped; pull requests are excluded
# (type=issues + a .pull_request guard).
# - author exclusion: bot-authored issues are dropped (login `renovate` or a `name[bot]` login).
# A bot's actionable output is PRs (already excluded); its one lingering ISSUE is Renovate's
# Dependency Dashboard (#22), a status board, not a pickup — see ersatztv#553.
#
# WHAT STAYS JUDGMENT (the script FLAGS, it does not decide):
# - CLAIM? — a "claiming" note can precede the `in-progress` label; the script flags any candidate
@@ -84,6 +87,14 @@ rows=$(
.[]
# drop PRs and label-excluded issues up front
| select(.pull_request == null)
# drop bot-authored issues. A bot only emits PRs as work (already excluded above); it never
# files a human work-item issue, so the whole class is never a pickup. The concrete case is
# Renovate Dependency Dashboard (#22): a bot-rewritten status board whose checkboxes are
# commands to Renovate, not work items -- yet as a priority:low issue it sorts to the top of an
# all-low backlog and was proposed to every fresh session (ersatztv#553). Matches known bot
# logins plus the GitHub name[bot] convention so a future bot dashboard is excluded too.
| (.user.login // "") as $author
| select(($author == "renovate" or ($author | test("\\[bot\\]$"))) | not)
| (.labels | map(.name)) as $L
| select(($L | index("in-progress")) | not)
| select(($L | index("parked")) | not)