Skip to content

Fix: the board check counts a run claimed ahead of the work as covering the part a branch adds - #2147

Merged
repeat98 merged 1 commit into
mainfrom
fix/board-covering-claims
Nov 25, 2026
Merged

repeat98 merged 1 commit into
mainfrom
fix/board-covering-claims

Conversation

@repeat98

@repeat98 repeat98 commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

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 holds digitakt-ii/tables/4-6 on #1999: the base branch adds tables 4 and 5 so far, and table 6 comes with #2146. compareClaims accepted 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:ready renews 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 and scripts/docs.mjs pass. The full pr:ready was 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

…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>
@github-actions github-actions Bot added the bug Something isn't working label Nov 25, 2026
@repeat98
repeat98 merged commit 28ea29c into main Nov 25, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant