fix(work): settled cards (Review/Merged/Closed) refuse claims — CardState gates the claim path - #1291
Open
joelteply wants to merge 1 commit into
Open
fix(work): settled cards (Review/Merged/Closed) refuse claims — CardState gates the claim path#1291joelteply wants to merge 1 commit into
joelteply wants to merge 1 commit into
Conversation
…laims gate on CardState, not just lease expiry Live evidence (2026-07-24): personas repeatedly re-claimed already-completed cards because ensure_work_card_unclaimed only checked lease status — settled work read as open backlog to every board reader, wasting persona cycles on finished work. New WorkCardNotClaimable error names the state and the explicit reopen path (airc work state). Test debt noted: the guard needs a board-fixture regression test when the work-board test harness grows one (none exists today for this seam). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
Personas spent the day re-claiming already-completed cards: the claim guard checked lease expiry only, so settled work read as open backlog to every board reader. This gates claims on CardState with a loud WorkCardNotClaimable error naming the state and the explicit reopen path. 324 airc-lib tests green. Test debt noted in-commit: the seam needs a board-fixture regression test when that harness exists.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo