fix: populate capture notes without extra provider requests

Merged
SI
1mo ago
+205-8

Newly resolved captured recordings are upserted without notes, while the catalog's completeness check still requires notes. Add notes to the existing song upsert from the track metadata already returned by the Spotify batch request.

Bounded successor to existing #687 (638c133dfd4e06057701a69c6286b2b4c1ade835) under Mono358, on current main 1dc45a48c5bd34b219db84d07d8008bada150692, preserving API1087. The old proposal's generateTrackNotes call also fetches artist genres. This version extracts its pure text formatter and uses raw artist names during capture, adding no provider requests. Manual import retains its genre lookup and failure fallback. The retired Redis producer is not restored.

This fixes the notes portion for newly resolved recordings. It does not backfill existing mapped songs, run a real capture or guarantee that every row has the other required catalog fields. Existing ISRC deduplication, identifier mappings, artist links and upsert semantics remain. Partial metadata yields a short summary; empty titles produce no notes.

Validation: actual mapper/manual-helper tests failed3/passed3 before the fix; final focused suite passes169tests across37files after the review fix. Tests verify persisted notes, reissue mappings, unchanged existing batch/token counts, zero capture genre calls, and manual genre/fallback behavior. All four required CI checks and response-contract typechecking pass on the exact refreshed head:7,188tests/1,287filespass,15tests/13filesskip. PreviewSUCCESS. Full lint, changed-file formatting and diff checks pass. Whole-project local TypeScript has211diagnostics byte-identical to baseline. Independent review identified a missing-explicit-status factual claim; undefined/null now produce a short summary (two regression tests failed before the guard). Final Standards/Spec delta review has no remaining actionable findings for exacthead e60cf73352468810186ae4ff602ffcfeaa0524a3 (tree e521f281c8e20478ac1c692c14d612deb640c0f1).

No real provider/customer/database operation, credit charge, migration, access or deployment setting change was performed. Source validation boundaries are in docs/verification/capture-track-notes.md.