Steps to Reproduce
Create a work item with two criteria, one checked:
## Acceptance Criteria
- [x] First criterion
- [ ] Second criterion
## Notes
The syntax for a done criterion is `- [x] text`.
Build a plan site that renders it, and read the item's checkedCount / totalCount (or the milestone progress bar).
Expected
1 of 2: only the Acceptance Criteria section counts, and it agrees with the count entity.criteria gives.
Actual
2 of 3: the [x] in the Notes counts as a checked criterion.
Approach
- Count from the structured criteria, not from text: the page-walk path should read the same list the scan path does, or both should read the Acceptance Criteria section through a content model.
- SPEC-142 D6 pointed at the long-term form: a per-section content model on
work's Acceptance Criteria (knownSections.<name>.model, resolver.ts:518) that resolves it as a checklist. When the plan runes move to definitions (SPEC-152), that model belongs in work's frontmatter. - Decide whether
[-] (skipped) counts toward the total, and whether [>] (active) counts as unchecked, and apply the same rule on both paths. - Add a test with a stray marker outside the criteria section, and one comparing the two paths.
References
- SPEC-142 D6: where this was first noted.
- SPEC-152: the plan runes as compositions.