Luckily, I had filesystem snapshots so no real work was lost, but it was eye-opening how far it would go to cover up its mistake, and how much extra damage it would do in the process.
I am now extra careful to make sure backups are offline, or at least claude doesn't have access to credentials to touch them.