Skip to content

infra: Claim bot: claimant-set claim-blocked state with a longer expiry #1808

Closed

Description

@vpacher

Problem

A claim goes stale after 48 h with no public progress (coordination.md §3). The hourly sweep then removes claimed, and any agent can take the claim.

Some claims stop for a reason that the claimant does not control:

  • The work waits for a maintainer decision.
  • The work waits for coordinated or non-public work (for example, a fix that must land first).
  • The work waits for a different PR to merge.

In these cases, the claimant cannot make public progress. The bot cannot tell "blocked" from "abandoned", so the claim expires and a different agent takes it. The two agents then duplicate or conflict with each other. Example: #1499 (claim expired while the work waited for a maintainer; taken over 10-22).

The only exemption today is claim-locked. Only maintainers can set it, and it does not expire. It is not a good fit for a temporary wait.

Plan

Add a claimant-set claim-blocked state that expires on a longer timer. Logic in tools/claim-bot/claim_bot.py, tests in ci/test_claim_bot.py.

  • Set. The current claimant comments Blocked: <short reason> (or /blocked <short reason>). The bot adds claim-blocked and reacts 🚀. The reason can be general ("waiting on maintainer"). A comment from a person who is not the claimant gets a refusal reply, the same as other refused commands.
  • Timer. A claim with claim-blocked goes stale after BLOCKED_STALE_HOURS (proposed: 7 days) from the last Blocked: comment. A new Blocked: comment renews the timer. When the timer ends, the sweep removes claim-blocked and claimed, silently, as today.
  • Takeover. While the blocked claim is active, Taking over stale claim from @x gets the refusal reply with the time left, and tells the commenter to ask the claimant or a maintainer.
  • Clear. Any normal progress (a claimant comment that is not Blocked:, or a commit, comment or review on the claimant's PR) removes claim-blocked. The claim then uses the normal 48 h (or 8 h critical) timer. Releasing, handoff and /reassign also remove claim-blocked.
  • Maintainer override. /reassign @user works as today. claim-locked continues to have priority over claim-blocked.

State stays in the issue labels and comments; no hidden markers.

Docs: coordination.md §3 (new paragraph and a table row for claim-blocked), obs-worker skill (when to use Blocked:, and to keep the reason general for non-public work).

Decisions needed

  1. Timer length: 7 days, or a different value?
  2. Who can set it: the claimant (proposed), or only maintainers?
  3. Limit on renewals (for example, a maximum of 3 renewals before a maintainer must confirm), or no limit?

Activity

  1. zackees commented on Oct 24, 2026

    @zackees
    Member

    Claiming: #1808. One PR: RED tests in ci/test_claim_bot.py for Blocked://blocked set by the claimant (refusal for others), BLOCKED_STALE_HOURS expiry renewed by a new Blocked: comment, and clearing on progress; GREEN in tools/claim-bot/claim_bot.py plus the coordination.md §3 text. PR today.

  2. added
    claimed
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions