--- title: fix: an unattended run can file an album under a similar artist's folder status: closed labels: [] created: 2026-09-14 closed: --- Found by the audit of 2026-09-14. Reproduced end to end with scripts/make-edge-fixtures.sh: four albums by four different artists were filed into four other artists' folders. While resolving an artist, a fuzzy candidate at or above 0.75 similarity was taken automatically under --yes, and written to artists.toml, so every later album by that credit followed it there. "Blur" and "Blue" score 0.750; "The Cure" and "The Cult" 0.750; "RTL Artist" and "Art Artist" 0.800. Nothing downstream notices, because no check compares a folder name against the ALBUMARTIST tag. Measured on the edge fixtures before the fix: Cue Artist -> dupe-artist (fuzzy match 82%, auto-selected) RTL Artist -> art-artist (fuzzy match 80%, auto-selected) Long Artist -> loose-artist (fuzzy match 75%, auto-selected) Slash Artist -> scan-artist (fuzzy match 75%, auto-selected) A similar name is now only ever offered, never taken. An unattended run creates the folder the credit names and prints the exact artists.toml line to add if the two really are the same artist. The interactive prompt still lists the candidates, but its default is the new folder rather than the guess. The same commit fixes the alias round trip: TOMLKey writes keys with %q and the reader only trimmed the outer quotes, so a credit containing a quote or a backslash -- "Weird Al" Yankovic, say -- never matched the entry written for it.