repair_migrations built its two errors without scrub: rusqlite appends
the full path of a database it cannot open, so "Cannot open database"
carried the profile folder, and the OS user name with it, to the
Journal. The body moves to repair_at(db_path), which passes every error
it returns through scrub once, at its exit, with the database's parent
folder; the command resolves the path, then calls it.
The test replaces the database file with a folder of the same name: the
exists() guard passes and rusqlite fails to open it even as root, where
a read-only file would simply open read-only. It first checks that
rusqlite's own message names the folder, then that repair_at's error
names the file and <profile folder>, and no segment of the folder.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>