Skip to content

infra: Claim bot labels and assigns claimants, expires stale claims #909

Closed

Description

@zackees

Problem

coordination.md §2 tells claimants to add the claimed label, but only triage-or-higher accounts can label. Outside contributors' claims (#777, #809, #811, #815, #817) never got the label, so the grind bot, which skips only labeled issues, can duplicate their work. The 48 h expiry in §3 is also honor-system: nothing removes stale labels.

Plan

A claim bot: .github/workflows/claim-bot.yaml (issue_comment + hourly schedule, GITHUB_TOKEN with issues: write), logic in a stdlib uv script tools/claim-bot/claim_bot.py with a pure decide() unit-tested in ci/test_claim_bot.py.

  • Claiming: comment → add claimed, assign the commenter. Refuse (reply) when someone else holds a fresh claim or the commenter already holds 2.
  • Releasing from the claimant → remove label and assignee.
  • Taking over stale claim from @x → reassign only if x's claim is stale.
  • /reassign @y from MEMBER/OWNER/COLLABORATOR → reassign regardless.
  • Stale = no claimant comment on the issue and no push/comment/review on their linked PR for 48 h, or 8 h on issues labeled critical. Warn 2 h before expiry. Hourly sweep expires stale claims.
  • claim-locked label: the bot never touches the issue.

State is derived from the issue timeline and comments; no hidden markers.

Docs: coordination.md §2–3, port issue template, obs-worker skill (a fresh Claiming: comment counts as a claim even without the label).

Activity

  1. added
    infra
    on Oct 15, 2026
  2. zackees commented on Oct 15, 2026

    @zackees
    MemberAuthor

    Claiming: #909

    1. One PR (infra/claim-bot): RED commit with ci/test_claim_bot.py against a stub, GREEN commit with the script, workflow and doc updates.
      First PR expected today.
  3. added
    claimed
    on Oct 15, 2026
  4. self-assigned this
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

claimedinfra

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions