Repository navigation
Fix: the board check counts a run claimed ahead of the work as covering the part a branch adds - #2147
Merged
Merged
Conversation
…ng the part a branch adds A hook claim on digitakt-ii/tables/4-6 now covers a branch that adds tables 4-5, so #1999 no longer fails as unclaimed. pr:ready renews a covering run whole. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What was wrong or hard
A run of hook indices claimed ahead of the work did not count for a branch that adds only part of it. #1999's board check failed with
hook digitakt-ii/tables/4-5 ... is unclaimed, although Claptom-music holdsdigitakt-ii/tables/4-6on #1999: the base branch adds tables 4 and 5 so far, and table 6 comes with #2146.compareClaimsaccepted only a claim whose key matched the needed run exactly, so the covering claim fell through to "free".What this changes
scripts/agent-board.mjs: a hook claim you hold (or one tied to the pull request) whose run covers the needed run now counts as yours. Exact keys still win, a partial overlap of your own is still unclaimed, and someone else's overlapping claim still fails as before. The check's line names the covering claim:✓ hook digitakt-ii/tables/4-5: yours (claim digitakt-ii/tables/4-6).scripts/pr-ready.mjs: when a covering run is yours,pr:readyrenews that run whole instead of claiming only the part, so it never gives up the rest of the run.docs/AGENT_BOARD.md: one sentence in the hook row of the claims table.How I checked it
vitest run scripts/agent-board.test.mjs scripts/pr-ready.test.mjs: 43 passed, including two new tests (a covering run held by you or tied to the pull request; someone else's, a partial own claim, a run in another list; and pr:ready renewing the covering run). ESLint on the three scripts andscripts/docs.mjspass. The fullpr:readywas left to CI. Not tested on a unit: nothing here runs on an instrument.Guides: the claims table in docs/AGENT_BOARD.md did not say whether a run claimed ahead covers a branch that adds only part of it; its hook row now says so.
🤖 Generated with Claude Code