Back to Plate

Coverage Priority Map Post Yjs Merge

docs/plans/2026-03-22-coverage-priority-map-post-yjs.md

53.0.59.3 KB
Original Source

Coverage Priority Map Post Yjs Merge

Goal

Run fresh repo coverage, score every packages/*/src/** file for non-React unit-test value, and sync the next recommendations against:

  • March 6, 2026 cleanup strategy
  • March 9, 2026 excellence plan
  • March 17, 2026 execution passes
  • the now-merged Yjs suite work

Coverage Run

  • Command:
    • bun test --coverage --coverage-reporter=lcov --coverage-dir=.coverage-repo-2026-03-22b --reporter=dots
  • Result:
    • 2557 pass
    • 0 fail
    • 444 files
    • 4.25s
  • Artifact:

Sync From Completed Work

  • March 14, 2026:
    • markdown already got the worthwhile helper and fallback pass.
  • March 15, 2026:
    • table already got the merge, sizing, and selection helper pass.
  • March 17, 2026:
    • selection, docx-io, and the focused non-React core lane already got follow-up work.
  • March 22, 2026:
    • 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.

Scoring Rules

  • Scope is every runtime file under packages/*/src/**.
  • /react files score 0 by design.
  • Barrels, declaration files, and type-only files score 0.
  • Declarative rule tables under autoformat/rules/** score 0.
  • Recent package passes get penalized so we do not recommend the same work twice.
  • Scores favor deterministic transforms, parsers, serializers, queries, provider logic, plugin contracts, and pure helpers with meaningful uncovered behavior.
  • UI-skewed packages get pushed down even when they are uncovered.

My Order

1. list-classic

Best next package.

2. suggestion

3. docx

4. ai

5. layout

6. list

7. code-block

8. autoformat

Surgical only.

9. csv

Tiny but sharp.

10. comment

Good file-level value, but not a bigger campaign than the packages above.

Not Next

  • yjs
    • just landed a serious fast plus slow pass
    • current matrix score is 0
  • media
    • current non-/react matrix score is 0
    • the old March 17 recommendation is stale here
  • markdown
  • selection
    • only one real leftover file still registers
    • March 17 already consumed the good internal seams
  • docx-io
    • pure-helper pass already happened on March 17
    • remaining debt is lower-value export/app crossover
  • table
  • core
    • still has low-coverage leftovers
    • most of them are not as clean or as urgent as the packages above

Ranking Snapshot

This is my actual recommendation order, not just the raw heuristic sort.

RankPackageScoreTake
1list-classic49Best next deterministic editor-behavior lane
2suggestion46Rich transform/diff value without /react
3docx45Very unit-testable cleaner/import seams
4ai47Good pure transform/helper lane, avoid network theater
5layout44Strong column transform seams
6list41Cheap query/toggle follow-up
7code-block36Real non-React behavior still left
8autoformat25Surgical pass only
9csv19Two-file slice, clean ROI
10comment26Good file-level value, smaller overall win

Artifacts

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.