Skip to content

claim-bot: claimant-set claim-blocked state with a 7-day timer - #2013

Merged
zackees merged 2 commits into
masterfrom
fix/1808-claim-blocked
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/1808-claim-blocked

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Fixes #1808.

A claimant whose work waits on something they don't control comments Blocked: <reason> (or /blocked <reason>). The bot adds claim-blocked and reacts 🚀, silently like other accepted commands.

  • Timer: the claim goes stale 7 days (BLOCKED_STALE_HOURS) after the last Blocked: comment; a new one renews it.
  • Takeover / Claiming: refused while it is active, with the time left and "ask the claimant or a maintainer".
  • Clear: any other claimant progress removes claim-blocked and the normal 48 h / 8 h timer applies again: a plain claimant comment on the issue (in the comment event) or activity on their PR (in the sweep). Releasing, handoff, /reassign and an accepted takeover also remove it.
  • Expiry: the sweep removes both labels, silently. A stray claim-blocked with no claim is removed too.
  • Priority: claim-locked still wins: the bot ignores locked issues entirely.
  • Refusals: Blocked: from anyone but the claimant, or with no claim, gets the usual refusal reply.

Decisions (the issue's open questions):

  1. Timer: 7 days, as proposed.
  2. Who sets it: the claimant only, as proposed. Maintainers keep /reassign and claim-locked.
  3. Renewal limit: none. Each renewal is a public comment, so an indefinite block is visible, and a maintainer can /reassign or remove the label. A cap needs a maintainer-confirm flow that can go in a follow-up if it's wanted.

Workflow and label

  • The workflow needs no change: it already runs on every issue comment and hourly.
  • The comment handler now also handles plain comments on issues labeled claim-blocked, so a progress comment can clear it. The issue's labels come from the event payload.
  • I created the claim-blocked label in the repo, since gh issue edit --add-label fails on a missing label.

Docs: coordination.md §3 (a table row and a paragraph), the obs-worker skill (when to use Blocked:, and to keep the reason general). No features.md line: the ledger doesn't cover contributor tooling.

Evidence

  • RED 492982e: uv run python -m unittest ci/test_claim_bot.py gave FAILED (failures=3, errors=14), because BLOCKED and BLOCKED_STALE_HOURS were missing and Blocked: was not a command.
  • GREEN 730cfbf: 63 tests OK. ./lint passes.

@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Coordinator note: this overlaps @vpacher's draft #1809 ("claim bot keeps a claimant-blocked claim for 7 days"), which implements #1808 too and has been waiting for the maintainer's decision on the parameters (7 days, set by the claimant, no renewal limit). Please agree between you which one continues, so #1808 doesn't get two implementations. I've also flagged it to the maintainer.

@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit e9f0b4a Oct 24, 2026
30 checks passed
@zackees
zackees deleted the fix/1808-claim-blocked 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: Claim bot: claimant-set claim-blocked state with a longer expiry

1 participant