Repository navigation
Description
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 addsclaim-blockedand 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-blockedgoes stale afterBLOCKED_STALE_HOURS(proposed: 7 days) from the lastBlocked:comment. A newBlocked:comment renews the timer. When the timer ends, the sweep removesclaim-blockedandclaimed, silently, as today. - Takeover. While the blocked claim is active,
Taking over stale claim from @xgets 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) removesclaim-blocked. The claim then uses the normal 48 h (or 8 hcritical) timer.Releasing, handoff and/reassignalso removeclaim-blocked. - Maintainer override.
/reassign @userworks as today.claim-lockedcontinues to have priority overclaim-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
- Timer length: 7 days, or a different value?
- Who can set it: the claimant (proposed), or only maintainers?
- Limit on renewals (for example, a maximum of 3 renewals before a maintainer must confirm), or no limit?
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 24, 2026
Claiming: #1808. One PR: RED tests in ci/test_claim_bot.py for Blocked:/
/blockedset 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.claim-bot: claimant-set claim-blocked state with a 7-day timer (obs-r…