docs/plans/2026-03-22-coverage-priority-map-post-yjs.md
Run fresh repo coverage, score every packages/*/src/** file for non-React unit-test value, and sync the next recommendations against:
bun test --coverage --coverage-reporter=lcov --coverage-dir=.coverage-repo-2026-03-22b --reporter=dots2557 pass0 fail444 files4.25smarkdown already got the worthwhile helper and fallback pass.table already got the merge, sizing, and selection helper pass.selection, docx-io, and the focused non-React core lane already got follow-up work.yjs just got the fast suite, slow collaboration lane, and follow-up upstream-inspired cases.Strong take: the raw matrix still slightly over-scores core and table because they are big and still have uncovered leftovers. I would not reopen them next. The actual recommendation order below is the one to follow.
packages/*/src/**./react files score 0 by design.0.autoformat/rules/** score 0.list-classicBest next package.
suggestion/react detourcore leftoversdocxdocx-io, which already got its pure-helper passaisuggestion and docx, not before themlayout/react requirementlistlist-classic is movingcode-blockcore or tableautoformatSurgical only.
packages/autoformat/src/lib/rules/**csvTiny but sharp.
commentGood file-level value, but not a bigger campaign than the packages above.
yjs
0media
/react matrix score is 0markdown
selection
docx-io
table
core
This is my actual recommendation order, not just the raw heuristic sort.
| Rank | Package | Score | Take |
|---|---|---|---|
| 1 | list-classic | 49 | Best next deterministic editor-behavior lane |
| 2 | suggestion | 46 | Rich transform/diff value without /react |
| 3 | docx | 45 | Very unit-testable cleaner/import seams |
| 4 | ai | 47 | Good pure transform/helper lane, avoid network theater |
| 5 | layout | 44 | Strong column transform seams |
| 6 | list | 41 | Cheap query/toggle follow-up |
| 7 | code-block | 36 | Real non-React behavior still left |
| 8 | autoformat | 25 | Surgical pass only |
| 9 | csv | 19 | Two-file slice, clean ROI |
| 10 | comment | 26 | Good file-level value, smaller overall win |
The TSVs are the exhaustive matrix for every package and file under packages/*/src/**. The markdown is the actual call on what to do next.