cfd267627c
Replace scalar collected_record_id/wishlisted_record_id subqueries with a single matching_records JSON array grouped by release group (records.musicbrainz_id). Add parse_matching_records/1 for JSON parsing and derive_legacy_record_ids/2 as a temporary bridge for existing templates. Update tests to use shared musicbrainz_id fixtures.