From a43c62b4029ebc00330b5db3e9b1e32238b5f149 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Nov 2026 02:38:03 +0000 Subject: [PATCH] fix(pm): a Blocked-by value opening with none names no target blockedByTargets read every #N in the directive value, so the line 'Blocked-by: none. Order: independent of #36987's ruling.' counted as blocked by #36987 and card-pick held the card out of every pick. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude --- scripts/pm/check-half-states.mjs | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/scripts/pm/check-half-states.mjs b/scripts/pm/check-half-states.mjs index b415c207764..8c39144e7de 100644 --- a/scripts/pm/check-half-states.mjs +++ b/scripts/pm/check-half-states.mjs @@ -3991,6 +3991,22 @@ export function h13AreaWithoutPmState(issue, nowMs = Date.now()) { */ const BLOCKED_BY_REF = /(? numbersOf(blockedByTargets(b))).join('|'), '|||'); + t('blockedByTargets: …and only that directive: a sibling on the line still counts', numbersOf(blockedByTargets('`Blocked-by: none (#5)` · `Blocked-by: #6`')), '6'); + t('blockedByTargets: `none` AFTER a ref is prose, the ref still counts', numbersOf(blockedByTargets('Blocked-by: #7 (none of #8 matters)')), '7,8'); + t('blockedByTargets: a word that merely starts with `none` is not the token', numbersOf(blockedByTargets('Blocked-by: nonesuch#9, none-of-them #10')), '9,10'); + t('blockedByTargets: …and the `#A, #B` run, bulleted and bolded lines read as before', [ + 'Blocked-by: #6234, #6245', + '- Blocked-by: #9823', + '**Blocked-by:** #9823', + ].map((b) => numbersOf(blockedByTargets(b))).join('|'), '6234,6245|9823|9823'); + t('hasBlockedByLine: a `none` line is still a line (H4 asks presence, not targets)', hasBlockedByLine('Blocked-by: none. Order: independent of #36987.'), true); // The whole directive family reads through `directiveValues`, so all of it // gains the multiplicity — pinned on a NON-`Blocked-by:` key, beside the pin // that a key after a WORD is still prose and invents nothing.