Suite review, first batch: test groups smallest first, covers named before the sync reads them #238

Merged
bvandeusen merged 5 commits from dev into main 2026-12-01 06:41:21 -05:00
5 Commits
Author SHA1 Message Date
bvandeusenandClaude Opus 5.5 f4f036c8a7 fix(8249): a redundant verdict can name a cover the sync has not read yet
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Successful in 2m7s
CI & Build / integration (push) Successful in 2m41s
CI & Build / Build & push image (push) Successful in 25s
A test is usually rewritten in the same change that removes the one it
replaces, so the cover is new to the ledger when the verdict is recorded,
and the next refresh retires the removed test. classify_shapes refused such
a cover as matching no live shape. With a bound `repo` the cover now
resolves the way the judged shape already does, as a provisional row the
next sync adopts; without one it is refused as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:58:35 -05:00
bvandeusenandClaude Opus 5.5 251f5cb286 Revert the deliberate break: the kind filter and the planning route are back
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / Python tests (push) Successful in 2m6s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Successful in 18s
The break (a16a0ef) went red exactly where it should, in CI run 11227:
- test_routes_planning::test_starting_a_plan_is_routed_on_the_app;
- test_integration_task_kind_list [issue] and [work]; the all-kinds case
  stayed green, as it must.
Nothing else failed (unit 1 failed / 3771 passed, database 2 failed / 478
passed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:57:34 -05:00
bvandeusenandClaude Opus 5.5 a16a0ef3cd test(8249): DELIBERATE BREAK, the kind filter and the planning route removed to watch their tests fail
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Failing after 1m47s
CI & Build / integration (push) Failing after 2m44s
CI & Build / Build & push image (push) Skipped
Reverted by the next commit. CI must go red on test_integration_task_kind_list
(issue and work rows) and test_routes_planning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:51:13 -05:00
bvandeusenandClaude Opus 5.5 fc1e30588e test(8249): task kinds are proven by a listing, not by a signature
Review of the small test groups. Four tests pinned an argument list or a
function existing where the behaviour was untested or tested elsewhere:
- test_routes_planning: the signature check and the callable check become
  one check that POST /api/tasks/planning is routed on the app.
- test_routes_tasks_kind: both signature checks go; create_note and
  list_notes are called with task_kind by tests that would fail without it,
  and the blueprint check is covered by the planning route check.
- test_list_notes_filters_by_task_kind asserted only that the call did not
  raise. It is replaced by a database test that lists issues, work and all
  kinds and checks the rows and the count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:51:13 -05:00
bvandeusenandClaude Opus 5.5 7c7a1a7ab9 fix(8249): test groups come smallest first, and a big one is read as a feature area
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m14s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Successful in 35s
A group is the set of tests reaching the same code from different files. A
test that drives a feature through its one entry point reaches exactly that
entry point whatever it checks, so the largest groups are a feature tested
from many files, not copies. Listing them first buried the two- and
three-test groups where one-for-one duplicates are. The readout, the tool and
the panel now list smallest first; each group says copies or area and how
many files it spans, and the panel tells an area to fold its scattered cases
into one file. Plugin 2026.12.01.0748.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:49:06 -05:00