Test Suite Backfill
Add a meaningful test suite to existing untested (or under-tested) code, prioritizing the highest-risk behavior and edge cases over vanity coverage. Scopes coverage FIRST — the public surface, the critical paths, the edge/error cases, and the target the tests must hit — then writes characterization and edge-case tests that pin real behavior and would catch real regressions. Covers test prioritization, characterization tests, edge/error-case coverage, arrange-act-assert structure, and coverage-that-matters over line-count chasing.
How it runs
| # | Step | Who runs it | What happens |
|---|---|---|---|
| 1 | Coverage scope | Planner | lock the surface, critical paths, edge cases, target |
| 2 | Write the tests | Developer | characterization + edge-case tests that catch regressions |
| 3 | Evaluate | Reviewer | Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap. |
| 4 | Finish | Developer | All acceptance criteria met. Stamp a short summary and report DONE. |
Say something like "add tests to this code" or "backfill tests" or "increase test coverage" or "write tests for an untested module" or "test this function" in chat to start it.