Uses ADR-0001 as the template for the sections of every ADR, moves the remaining in-document amendments to amendment sections at the end in chronological order, renames the consequence subsections to the template names, and fixes the heading formatting.
Covers the favorites feature and the playlist and favorite pagination changes with unit, integration and security tests, and fixtures for the new request, response, DTO and entity types.
Also fixes the issues found while covering the commit: declares FavoriteMediaKind.None as the default value and rejects it in every favorite operation; queues the favorite added domain event only after the persisted favorite is read back; and preserves the private, no-store cache header on view pages after the antiforgery and session middlewares overwrite it.
Reflects the media library scanning overhaul: the database-centric scan job pipeline (file system discovery, scan diff, hashing, metadata enrichment and scan results save), the plugin hook points and scan job registry, the cancellation and progress trackers, the SignalR progress notification flow and the scan lifecycle domain event handlers.