Skip to content

claim bot: decision-needed label for questions that wait on the maintainer - #2069

Merged
zackees merged 2 commits into
masterfrom
fix/2057-decision-needed
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/2057-decision-needed

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Fixes #2057 (maintainer approved).

Behavior (as the issue proposes):

  • A comment with a line starting Decision needed: (plain, **Decision needed:**, **Decision needed**:, or after a heading marker) adds decision-needed and a 🚀, silently. Anyone can set it, on claimed or unclaimed issues. Running text ("no decision needed: …") does not match.
  • Decided: (first line) from a maintainer (OWNER/MEMBER/COLLABORATOR) removes it; from anyone else it is refused with a reply. Removing the label by hand also works.
  • From the claimant, Decision needed: also counts as Blocked: (claim-bot: claimant-set claim-blocked state with a 7-day timer #2013): it adds claim-blocked, starts the 7-day timer and a new one renews it. The claimant's other progress removes claim-blocked as before and keeps decision-needed.
  • The hourly sweep never touches decision-needed.
  • coordination.md §2/§3 document it and link the list (label, oldest first); the obs-worker skill mentions it; the obs-coordinator report (§5) lists every open item older than 48 h each tick.
  • The decision-needed label is created in the repo.

Defaults picked where the issue left room:

  • Decided: is matched on the first line only, like the other commands; Decision needed: on any line, as the issue decides.
  • A comment that both carries a command and a Decision needed: line does both (e.g. Claiming: + a question); a refused command still only gets the refusal.
  • One 🚀 per comment even when two labels are added.

RED 7e79db1 (ci/test_claim_bot.py DecisionTest, 10 cases): FAILED (failures=1, errors=10) — module 'claim_bot' has no attribute 'DECISION' / 'handles', and claimant progress returned [] instead of removing claim-blocked after a decision comment.
GREEN ed5e810: all 73 claim-bot tests pass; ./lint passes.

No workflow change: the claim-bot workflow already runs on every issue comment; the event gate now also routes Decision needed: and Decided: comments. Contributor tooling only, so no features.md line.

@zackees
zackees enabled auto-merge October 24, 2026 06:54
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 5f5d2cd Oct 24, 2026
30 checks passed
@rdoupe rdoupe mentioned this pull request Oct 24, 2026
6 of 7 tasks
@zackees
zackees deleted the fix/2057-decision-needed branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

infra: decision-needed label for questions that wait on the maintainer

1 participant