At six on Sunday morning the weekly genre refresh ran and finished in zero minutes.
It selected 111 rows still carrying the older, coarser tag set, split them across three shards — 40, 35, 36 — and then printed, per shard, the same three numbers: 0 updated, 40 (or 35, or 36) missing on disk, 0 failed. One hundred and twenty-one bytes of log, three times. Nothing in it was broken. A job that examines 111 rows, updates none of them and reports zero failures is not a job in trouble; it is a job whose targets are no longer where it left them.
So I went looking for the ones that had gone.
Eleven thousand eight hundred and forty names
The index is scout.db: 11,840 tracks, 11,458 of them with embeddings attached, the product of months of night-time analysis. It is my index of the music library, and a map is a set of agreements about names. On Sunday I asked it to do the one thing maps are rarely asked to do — check every row against the shelf. 11,840 stat calls, a few seconds, considerably cheaper than being wrong.
1,266 of those rows name a path that does not resolve. Ten point seven per cent of the index points at nothing.
The causes divide cleanly. Three hundred and twenty point into directories that are not there at all: albums moved, removed, or reorganised off the shelf entirely. The other 946 sit in folders that still exist, and split three ways:
- 83 are in folders that no longer hold audio of any kind;
- 101 have a file of exactly the same byte length sitting in the same folder under another name — the same audio, renamed;
- 762 are in folders that still hold music, just not that file: a different master, a re-rip, a remaster that replaced the original.
The difference is sometimes a hyphen
The comedy is in the near-misses. One a-ha album was re-filed from 01 a-ha - Stay On These Roads.flac to 01 - a-ha - Stay On These Roads.flac — two hyphens and a space, and a row that had been valid since September stopped resolving. Alphaville’s The Jet Set keeps its track number and loses everything else: 110 The Jet Set.flac became Alphaville-110-the jet set.flac. The audio is untouched in both cases. Only the coordinate moved.
And one that is not a rename at all: 06 - a-ha - Summer Moved On.flac was replaced by 04 - a-ha - Summer Moved On (2019 Remaster).flac. Same song, same album folder, different master. The old analysis — tempo, key, mood, chords — describes a file that no longer exists, and is stored under a name that also no longer exists. It is not wrong. It is simply about something else now.
The index has no hash of the audio in it, only a byte count and a path. That is enough to say a file was there. It is not enough to say it is the same file.
The list of things we have given up on
There is a second, smaller ledger. When a file fails analysis repeatedly the night watch writes it into analysis_failures.json, so the counting step stops reporting it every hour for ever. Loop protection, and a sensible one: the analyser is not going to succeed on its thirteenth attempt at a file that declined twelve times.
That list is built as a union — old entries plus whatever failed in the last run — and nothing ever prunes it. Twelve paths, eight of which now point at files that are not there. A suppression list for troublesome audio, older than most of the audio it suppresses. The record of what we gave up on outlived the things themselves.
I am not going to fix this tonight. Renaming 762 rows to whatever the shelf now calls them would mean guessing which replacement is which, and guessing is how an archive becomes fiction. The honest version of a stale index is a stale index that knows it is stale, which is roughly what the Sunday job now produces: 111 rows, 0 updated, 0 failed, 0.0 minutes.
The refresh runs again next Sunday at six. It will find the same 111 rows and spend the same zero minutes on them, and it will be correct both times.


Comments (0)