Skip to content

infra: claim bot keeps a claimant-blocked claim for 7 days - #1809

Closed
vpacher wants to merge 2 commits into
obs-rust:masterfrom
vpacher:infra/claim-blocked
Closed

vpacher wants to merge 2 commits into
obs-rust:masterfrom
vpacher:infra/claim-blocked

Conversation

@vpacher

@vpacher vpacher commented Oct 22, 2026

Copy link
Copy Markdown
Member

Fixes #1808

Draft: this PR shows one answer to the three decisions in #1808, so that a maintainer can merge it as is or ask for changes. The choices: 7 days, the claimant sets it, no renewal limit.

What and why

A claim that waits for something the claimant does not control (a maintainer decision, another PR, coordinated or non-public work) shows no public progress. The claim then expires after 48 h, and a different agent can take it over (#1808).

This PR adds a claimant-set claim-blocked state to the claim bot:

  • Set. The claimant comments Blocked: <reason> or /blocked <reason>. The bot adds claim-blocked and reacts 🚀, with no comment. A different person, or a comment on an issue with no claim, gets the usual refusal reply.
  • Timer. While that comment is the claimant's latest sign of work, the claim goes stale BLOCKED_STALE_HOURS (7 days) after it. This replaces the 48 h (or 8 h critical) timer. A new Blocked: comment renews it, with no limit.
  • Takeover. A takeover of an active blocked claim is refused. The reply gives the time left and tells the person to ask the claimant or a maintainer.
  • Clear. Any other progress from the claimant (comment, or commit/comment/review on their PR) ends the block. The hourly sweep then removes claim-blocked, and the normal timer applies. Release, handoff, takeover, /reassign and expiry also remove the label.
  • Precedence. claim-locked still wins. A maintainer can remove claim-blocked by hand, and the normal timer applies again.

State stays in the visible history: the label plus the granted Blocked: comment. BLOCKED_RE is in COMMANDS, so the event gate and the granted-reaction reader both see the command.

Docs: coordination.md §3 (table row and paragraph), obs-worker skill (one bullet in step 7).

Before merge: a maintainer must create the claim-blocked label in the repository. gh issue edit --add-label fails for a label that does not exist.

RED → GREEN

  • RED commit: f588ff4. uv run python -m unittest ci/test_claim_bot.py: 14 of the 17 new BlockedTest cases and QuietTest.test_only_rejections_comment fail (63 tests, 15 failures). The bot returns [] for Blocked:, the 48 h timer expires blocked claims, and release/handoff/reassign do not remove the label. The 3 cases that pass on RED check that the old behavior stays when the block does not apply (no label, PR progress, claim-locked).
  • GREEN: f637d47. ci/test_claim_bot.py OK, 63 tests. unittest discover -s ci on macOS has the same 27 failures/errors on the RED commit and on GREEN (environment lanes: AppImage, Flatpak, Windows facades, apt mirrors). test_issue_templates and test_security_reporting, which read the docs, pass.
  • Real app: N/A (CI tooling only).

Checklist

  • Base is master
  • I claimed the issue, or no one else has an open PR for it
  • Characterization test (if the unit had none), then RED, then GREEN commits
  • User-visible change: not applicable (contributor tooling, no app change)
  • (Optional) Local gate passed and the pushed head is stamped; otherwise PR CI runs the full suite
  • Warning or flag changes: N/A
  • Intentional differences from C: N/A

🤖 Generated with Claude Code

vpacher and others added 2 commits October 22, 2026 20:02
A claim that waits for something outside the claimant's control (a
maintainer decision, coordinated or non-public work, another PR) shows no
public progress, so it expires after 48 h and a different agent can take
it over. The claimant can now comment 'Blocked: <reason>' or
'/blocked <reason>': the bot adds `claim-blocked`, the claim expires 7
days after the latest such comment, and progress, release, handoff,
takeover or /reassign clear the label. 14 of the 17 new tests and the
quiet-scenario test fail: the bot does not handle the command yet.

Refs obs-rust#1808

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The claimant's 'Blocked: <reason>' or '/blocked <reason>' adds
`claim-blocked` (rocket reaction, no comment). While that comment is the
claimant's latest sign of work, the claim goes stale BLOCKED_STALE_HOURS
(7 days) after it instead of 48 h (or 8 h on `critical`); a new
`Blocked:` comment renews it, with no limit. Any other progress ends the
block and the sweep removes the label. Release, handoff, takeover,
/reassign and expiry also remove it. Only the claimant can set it; a
takeover of a blocked claim is refused with a pointer to the claimant
and maintainers. coordination.md §3 and the obs-worker skill describe
the command.

Refs obs-rust#1808

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

@vpacher #2013 (zackees) has merged and implements #1808 (the claimant-set Blocked: state, 7 days). Please check whether anything in this draft is still needed on top of it. If not, it can be closed.

@vpacher

vpacher commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Thank you, @zackees. #2013 covers all of this draft: the claimant-set state, the 7-day timer and the renewal. It also adds the clear-on-progress and claim-locked priority rules, which this draft did not have. Nothing in this draft is still needed, so I am closing it.

Note: I did not claim #1808 before I opened this draft. I should have put a claim or a note on the issue first. I will do that next time.

@vpacher vpacher closed this Oct 24, 2026
@vpacher
vpacher deleted the infra/claim-blocked branch October 24, 2026 05:02
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

2 participants