š fix(design): read a Kind: line written as a list item (#740)
Reported in athya-hq/athya_mono#4333.
The design check now reads a Work item's Kind: line written as a list item. KIND_LINE (src/design.ts) takes an optional -, * or + marker and at least one space before the bold or plain Kind:, so - **Kind:** Contract (identity, ...) is Contract, * Kind: Process. is Process and + **Kind:** Experience is Experience. The space is required, as a list item has it, so the first * of **Kind:** is never read as a marker and -**Kind:** still names no kind. Bold and plain lines read as before, and the check still fails closed: a line with other text before the marker (see - Kind: X, a Kind: X), or a mention mid-sentence, names no kind, so its slice is checked.
athya_mono's Work item 0078 (athya-hq/athya_mono#2610) wrote - **Kind:** Contract. niyam v0.8.2 read it as kindless and refused athya-hq/athya_mono#4331, a non-UI hotfix, for a missing Figma frame, until the owner unbulleted the line.
Other Kind readers. No other code in niyam reads a Kind: line: src/work.ts, src/features.ts and scripts/ have none (grep -rnE "(/\^|RegExp\().*[Kk][Ii][Nn][Dd]" src scripts finds only KIND_LINE and doc-number config). The Decision parser in src/decisions.ts reads Decision issues, not Work items, plain and whole-line by the 2026-11-06 record, and its reader also feeds Check:, which runs a command, so it stays as it is.
Evidence
Before (main's regex), the new tests: 5 of 17 Kind tests fail.
ā reads "- **Kind:** Contract (identity, sync)." as Contract
ā reads "* Kind: Process." as Process
ā reads "+ **Kind:** Experience" as Experience
ā reads "Goal: x\n - **Kind:** Process." as Process
ā reads a Kind: line written as a list item (athya_mono#4333)
+ code: 1, err: ['ā state #34 links no Figma frame (a figma.com/design link with node-id)', 'pr-design: refused by the design check']
The last one is prDesign on a slice whose Work item is shaped like 0078: refused exactly as athya_mono#4331 was.
After: 17 of 17 pass. The prDesign case prints ā pr-design: #12 builds Contract work item #7; frames are for Experience work and makes no Figma call. The no-kind cases (-**Kind:**, a Kind:, see - Kind:, -- Kind:, mid-sentence) read as no kind before and after.
pnpm check: 3274 of 3274 src tests pass (99.93% lines), 215 of 215 script tests.
Mutation (pre-push): src/design.ts: 289 killed of 289, 0 blocking.
Docs: README's Design frames paragraph and a docs/decisions.md record.
After the merge: a release, then athya_mono's onboard at it.
š¤ Generated with Claude Code
Summary by cubic
Fixes the design check so it reads a Work item's Kind: line written as a list item, instead of treating it as kindless and demanding Figma frames.
KIND_LINEnow accepts an optional-,*, or+marker and a space before the bold or plainKind:, so- **Kind:** Contractreads as Contract.- The required space keeps the first
*of**Kind:**from reading as a marker;-**Kind:**still names no kind. - Lines with other text before the marker, or a mid-sentence
Kind:mention, still name no kind, so the check still fails closed.