Repository navigation
Fix: pr:ready's board step counts the checked pull request's own claim as its own, whoever runs it - #2589
Merged
Conversation
…m as its own, whoever runs it A maintainer finishing a contributor's pull request ran pr:ready as themselves; the board step saw the contributor's claim tied to that same pull request, called it someone else's and stopped the check. CI already passed the event's pull request to compareClaims. Locally, board check and pr:ready now ask gh pr view for the checked-out branch's pull request, and pr:ready leaves such a claim with its holder instead of trying to re-claim it. A claim tied to another pull request still stops it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98
marked this pull request as ready for review
December 4, 2026 08:40
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.
Works now: a maintainer finishing a contributor's pull request can run
npm run pr:readywithout the agent-board step stopping on the contributor's own claim for that same pull request. Nothing changes for musicians or on a unit; this is developer tooling only.base/octatrack-next, the owner rannpm run pr:ready -- --base-branch base/octatrack-nexton ilia-murzinov's branch. The board step ran as repeat98, saw ilia's hook claim tied to Base: FM engine take hooks for synth and cx-osc (69-90) #2352, called it someone else's claim and stoppednpm run check, so the remaining suites were skipped. CI already handled this case:board checkpassed the event's pull request number tocompareClaims, which counts a claim tied to that pull request as its own. The localboard checkand pr:ready's claim step passed no pull request at all.branchPullRequest(root)inscripts/agent-board.mjsreturns{number, branch, author}. In CI it reads the event, as before. Locally it asksgh pr viewfor the checked-out branch, and returns null when gh finds nothing.board check(thenpm run checkstep) and pr:ready'sboardClaimspass it tocompareClaims.scripts/agent-board.test.mjs: "lets a maintainer finish the claim holder's pull request, and still stops on a claim tied to another". It fails onmainand passes here. ThecompareClaimstest gained the branch-only and other-pull-request cases.gh pr checkout 2352into a throwaway worktree on a local branch namedcheck-2352-board.branchPullRequestresolved#2352 prop/cx-osc-fm-engine-hooks ilia-murzinov. As repeat98, ilia's still-activemodule analog-rytm-mkii/improved-compclaim (tied to Base: FM engine take hooks for synth and cx-osc (69-90) #2352) moved from "others" (old call) to "mine". The same call with pull request 2353 still put it in "others".npm run pr:readygreen on f553bd4 (current main merged): the check passed in 1477 s. Two earlier runs overlapped another worktree's check and failed only on test timeouts, with no assertion failures.docs/AGENT_BOARD.mddid not say whose a pull request's claim is when someone else finishes that pull request. I added a "Finishing someone's pull request" line under Claims.Limits
gh pr checkoutand tracks no PR head.gh pr viewthen finds nothing.branchVerdictstill prints "yours" for such a claim inboard checkoutput. The verdict is right; only the wording is loose.🤖 Generated with Claude Code