d0801ef0ff
Review findings (both low, no bugs; accumulator design adversarially confirmed): - test-coverage: the DoD's hottest changed site — get_media's pre-semaphore cache-hit — had no direct zero-SQLite guard (the spy test only exercised download_media_file), so a regression re-introducing a per-hit write into the get_media branch would pass green. Add a mirror spy test through get_media asserting the accumulator is written and update_media_file_access_sync is NOT called. Verified site-specific: neutering only the get_media write reds the new test while the download_media_file test stays green. - documentation: the _access_updates comment claimed a str/int key mix "would make the WHERE silently never match" — empirically false: channel is a TEXT column, so a bound int is affinity-coerced and DOES match. Reword to say we key str(channel) to stay consistent with the stored form rather than lean on SQLite's implicit coercion (the code was already correct on both sites). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>