3days since the last Git and AI fuck-up

Incidents 16 Sept wiped the worktreea home-made loop

Wrong directory, right command

Status: recovered from unnamed blobs. Git's idea of a backup.

What happened

An agent working on a robotics simulator meant to reset a linked worktree and ran git checkout -- . with its shell still sitting in the main checkout, which held 22 modified files from the previous session.

Why it happened

The command was the one for a worktree reset, but the shell was in the wrong directory. Git did what it was told and asked nothing, because that command never asks.

How it ended

The files came back only because they had been staged earlier, which left their blobs in the object database with no names attached.

The next day the repository added a helper that refuses to restore over uncommitted changes unless it saves a backup first, plus one line in the agent instructions saying to use it.

From the cut

From the cut: Wrong directory, right commandFrom the cut: Wrong directory, right commandFrom the cut: Wrong directory, right commandFrom the cut: No warning.From the cut: Wrong directory, right commandFrom the cut: Wrong directory, right command
The day before 10 SeptThe shortcut to ApplicationsStatus: cleaned the build folder. And /Applications.Watch it

The day after: Phoned a friend through DNS →