3days since the last Git and AI fuck-up

Incidents 11 Aug wiped the worktreeCodex

Asked to remove one file

Status: asked to remove one file. Removed data/.

What happened

A lead Codex agent told a worker agent to delete one stray Python cache file and nothing broader. The worker ran git clean -fX with that single file as its only path, and Git printed Removing data/.

That was the whole ignored data folder, a local SQLite database included, deleted without passing through the Recycle Bin.

Why it happened

PowerShell’s delete command had already been refused by policy, so the worker reached for Git. The cache file sat inside the ignored folder, and with -X Git can treat an ignored parent folder as the thing to remove. A dry run of the same command in a throwaway repository says Would remove data/ as well.

How it ended

The folder came back from a Windows snapshot taken about 26 minutes earlier and matched it byte for byte. The issue is still open.

From the cut

From the cut: Asked to remove one fileFrom the cut: Asked to remove one fileFrom the cut: Asked to remove one fileFrom the cut: Removing data/From the cut: Asked to remove one fileFrom the cut: I copied it.
Twenty-six minutes ago.From the cut: Asked to remove one file
The day before 6 AugThe agent was asked what happenedStatus: asked what happened. Did it again, harder.Watch it

The day after: Nothing to clean →