3days since the last Git and AI fuck-up

Incidents 10 Sept wiped the worktreeClaude Code

The shortcut to Applications

Status: cleaned the build folder. And /Applications.

What happened

Claude wrote a Gradle packaging task for a macOS DMG. The staging folder it builds contains the standard drag-to-install shortcut, Applications -> /Applications, and the task cleared that folder at the start of every build.

Over five builds between 20:34 and 21:10 on 9 September it deleted every app the user’s account could write to, among them VS Code, Codex, Obsidian, DaVinci Resolve, Chrome, Firefox, Postman, Android Studio and WhatsApp. App Store and system apps survived.

Why it happened

The task cleared the folder with Kotlin’s deleteRecursively(), which follows symbolic links into directories, so it went through the shortcut into /Applications. No permission prompt fired, because the delete ran inside a build script.

How it ended

Asked about it, Claude replied “Yes. This was me.” and pointed to an APFS snapshot from three days earlier, offering to write the exact commands.

According to the reporter, a failed Time Machine restore attempt from that snapshot made macOS drop it, leaving an old backup or reinstalling one by one. The issue is open with no reply from the maintainers.

From the cut

From the cut: The shortcut to ApplicationsFrom the cut: And the usual shortcut
to Applications.From the cut: Followed the shortcut.From the cut: Yes. This was me.From the cut: Snapshot dropped.From the cut: The shortcut to Applications
The day before 6 SeptThe whole restaurant heardStatus: wanted a passing check. The restaurant heard three failures.Watch it

The day after: Wrong directory, right command →