[GH-ISSUE #5951] Claims: accept standalone /claim and /unclaim after explanatory text #1894

Open
opened 2026-11-02 15:50:27 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @JulesB40 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5951

🤖 Filed by JulesB40's AI agent (OpenAI Codex), not by JulesB40 personally.

A contributor may explain their findings and end the same comment with /unclaim. Currently that command is silently ignored because it is not at the beginning of the comment. This pattern appears in #4507.

For example, this should release the commenter's claim:

🤖 Agent: I haven't reproduced the problem yet. Releasing this for someone who can test it in game.

/unclaim

Current behavior

  • .github/workflows/claim-command.yml only starts the command job when the comment begins with /claim, /unclaim, or their 🤖 Agent: variants.
  • tools/ci/claim_command.py::parse() only examines the first nonempty line.
  • #4233 already added support for the 🤖 Agent: prefix on that first line; this request is specifically about commands placed later in a comment.

Proposed behavior

  • Accept one standalone command line anywhere in a newly created comment, optionally prefixed with 🤖 Agent:. Preserve /unclaim @login for users already authorized to release another person's claim.
  • Ignore commands inside Markdown blockquotes, code blocks, inline code, and HTML comments, and do not interpret commands embedded in ordinary sentences.
  • Reject multiple actionable command lines with a clear response rather than choosing one implicitly.
  • Update both the workflow's candidate filter and the parser so they agree on supported placement and whitespace.
  • Preserve existing ownership checks, claim limits, bot exclusion, per-issue serialization, and main-only execution.

Add regression tests for a trailing /unclaim after an explanation, a later /claim, existing first-line/prefixed commands, quoted/code examples, and ambiguous multiple commands. This concerns comment creation only; replaying edited comments is outside the proposal.

Related: #3859, #3862, #4233. Searched existing issues and PRs for unclaim, claim-related titles, and claim_command.py; no matching request or implementation was found.

🤖 Generated with OpenAI Codex

Originally created by @JulesB40 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5951 > 🤖 Filed by JulesB40's AI agent (OpenAI Codex), not by JulesB40 personally. A contributor may explain their findings and end the same comment with `/unclaim`. Currently that command is silently ignored because it is not at the beginning of the comment. This pattern appears in #4507. For example, this should release the commenter's claim: ```text 🤖 Agent: I haven't reproduced the problem yet. Releasing this for someone who can test it in game. /unclaim ``` ### Current behavior - `.github/workflows/claim-command.yml` only starts the command job when the comment begins with `/claim`, `/unclaim`, or their `🤖 Agent:` variants. - `tools/ci/claim_command.py::parse()` only examines the first nonempty line. - #4233 already added support for the `🤖 Agent:` prefix on that first line; this request is specifically about commands placed later in a comment. ### Proposed behavior - Accept one standalone command line anywhere in a newly created comment, optionally prefixed with `🤖 Agent:`. Preserve `/unclaim @login` for users already authorized to release another person's claim. - Ignore commands inside Markdown blockquotes, code blocks, inline code, and HTML comments, and do not interpret commands embedded in ordinary sentences. - Reject multiple actionable command lines with a clear response rather than choosing one implicitly. - Update both the workflow's candidate filter and the parser so they agree on supported placement and whitespace. - Preserve existing ownership checks, claim limits, bot exclusion, per-issue serialization, and main-only execution. Add regression tests for a trailing `/unclaim` after an explanation, a later `/claim`, existing first-line/prefixed commands, quoted/code examples, and ambiguous multiple commands. This concerns comment creation only; replaying edited comments is outside the proposal. Related: #3859, #3862, #4233. Searched existing issues and PRs for `unclaim`, claim-related titles, and `claim_command.py`; no matching request or implementation was found. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/)
Author
Owner

@kira-horizon[bot] commented on GitHub (Nov 1, 2026):

Claimed by doodly on Discord, to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #5951).

<!-- gh-comment-id:6559495827 --> @kira-horizon[bot] commented on GitHub (Nov 1, 2026): Claimed by `doodly` on Discord, to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #5951). <!-- kira:work -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1894
No description provided.