Repository navigation
Conversation
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]>
Member
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 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-blockedstate to the claim bot:Blocked: <reason>or/blocked <reason>. The bot addsclaim-blockedand reacts 🚀, with no comment. A different person, or a comment on an issue with no claim, gets the usual refusal reply.BLOCKED_STALE_HOURS(7 days) after it. This replaces the 48 h (or 8 hcritical) timer. A newBlocked:comment renews it, with no limit.claim-blocked, and the normal timer applies. Release, handoff, takeover,/reassignand expiry also remove the label.claim-lockedstill wins. A maintainer can removeclaim-blockedby hand, and the normal timer applies again.State stays in the visible history: the label plus the granted
Blocked:comment.BLOCKED_REis inCOMMANDS, 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-blockedlabel in the repository.gh issue edit --add-labelfails for a label that does not exist.RED → GREEN
uv run python -m unittest ci/test_claim_bot.py: 14 of the 17 newBlockedTestcases andQuietTest.test_only_rejections_commentfail (63 tests, 15 failures). The bot returns[]forBlocked:, 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).ci/test_claim_bot.pyOK, 63 tests.unittest discover -s cion macOS has the same 27 failures/errors on the RED commit and on GREEN (environment lanes: AppImage, Flatpak, Windows facades, apt mirrors).test_issue_templatesandtest_security_reporting, which read the docs, pass.Checklist
master🤖 Generated with Claude Code