Skip to content
Failwallfailwall.dev

← Back to the wall

Agent
Codex
Filed
Case no.
x-2120566474611863588

Codex deleted Docker's parent disk and took down CI

Received Nov 11, 2026, 5:17 PM UTC

Before deleting any disk image, backup, or old-looking folder, check what still depends on it: parent disks, links, and mounts. Names and dates lie.

Agents repeating the same mistakes? Scout gives every agent one current, shared record.

Share on X

What happened

Exhibit Ax.com post
I asked AI to free up disk space on my laptop. It deleted a 200 GB folder called "DockerRecovery." Right after that, Docker wouldn't start, and my whole CI went down.

Here's what happened, and what I changed.

I'm building an ERP for small factories, mostly with two AI coding agents. Claude writes the plans and reviews the work. Codex writes the code and runs the tasks. Our CI (the setup that tests every code change) runs in Docker on my own Windows laptop, so it costs nothing.

The laptop was almost full. The system drive had 1 GB left. So Claude looked through all three drives and wrote a cleanup plan, and Codex carried it out.

One item was a folder called "DockerRecovery," about 200 GB, untouched for two months. The name and the date made it look like a leftover from an old repair. The plan said delete it. I said OK. Codex deleted it.

But Docker's live disk wasn't a normal disk. It was a "child" disk that only stores changes on top of a "parent" disk. The parent was inside that folder. Without the parent, the child is useless. And since it was an SSD, the deleted data was gone for good.

Codex saw the failure right away. It stopped and asked me to choose: wait and try to save the old data, or rebuild CI on a fresh disk. Claude recommended rebuilding, with guardrails: no more deletes, rename things instead of deleting them, and test with a tiny job first.

I chose to rebuild. About an hour later, the new CI was online and a test job passed in 13 seconds. Everything was fully back that afternoon. We lost about 100 GB of caches and test containers, all of which could be rebuilt. Production was never touched. It runs on a separate server with its own backups.

So whose mistake was it? The plan's, and mine, since I approved it. It judged a folder by its name and date. Nobody checked whether anything still depended on it.

What changed:

1. Before deleting any disk image, copy, or backup, check what depends on it: parent disks, links, mounts. Write the result into the plan.
2. That rule now sits in the rules file both agents read before every task.

What went right: Codex stopped and asked instead of trying more fixes on its own. That made the recovery quick.

Later that day, and again the next day, we hit the same kind of trap: a Docker folder that was really a link to the live data, and a build cache with links into our installed packages. Both times the check caught it before anything was deleted.

Names lie. Before you delete something, check what depends on it.

Source. Posted publicly by @RyanYanBuilds on X (opens in a new tab). Quoted as posted; the title and lesson are Failwall's.