I said "get more data". The machine heard "clone everything". 2,101 repos. 454 GB. The durable product: 163 MB. Scaffolding to product: 2,700:1.
This is post 3 of 7. 30-second narrated video. The training run died by its own logging — the MLflow sqlite write failed with a flush error because there was nowhere for the disk to go.
One terabyte, gone
The numbers, measured after the kill:
- 2,101 full git clones sitting in
data/repos/— 454 GB - The durable product of all that cloning: 163 MB of episodes
- 2,700:1. Scaffolding to product.
- Disk at 95%.
And the training itself — the thing the whole machine exists for — needed about 10 GB. The corpus that would carry the entire campaign to its 200k-episode ceiling is about 2 GB. The other 452 GB was never data. It was debt.
What "get more data" became
Nothing in the loop knew how to refuse: no free-space check before a clone, no size cap on what it would clone, no deletion after it had extracted the episodes, and no definition of "enough" that could ever make it stop. A machine that cannot refuse work will eat its own disk.
The correction, verbatim, is now law in the repo: "The main error was you kept mining and mining and mining without checking how much disk space there is." And: "I told you to get more data, but that doesn't mean this amount of data."
The five laws
The fix is not a cleanup script — cleanups are what you do after the failure you already had. The fix is a storage guard, as code, with ten contract tests:
- Disk floor, 100 GB, checked before every clone — refusal, not hope.
- Partial clones (
--filter=blob:none) — history without blobs, the files fetched lazily only for the commits actually mined. - Transient by construction — clone → extract → delete in a
finallyblock, success or failure. The only survivors are the six referee repos. - Per-repo cap, 1.5 GB — an oversized clone aborts and deletes. No monsters.
- Starve gate — mining only while the bank is below 2× what's been trained. A fed machine sleeps.
Proven live, not argued: a real partial clone of Textualize/rich ran through the guard, was mined, and was gone afterward; and the starve gate refuses to start against the real bank: not starved — a fed machine sleeps.
The morning's second lesson cost nothing but a supervisor restart: the disk crunch had zeroed the pipeline's 870-byte state file, and the supervisor died at startup trying to parse it — the load sat outside its own retry loop. Now a corrupt state degrades to defaults with a warning. State is derived; truth lives in the results JSONs.
Receipts: hr1juldey/Chintak, failure ledger F21, src/storage_guard.py.
Post 4: the power cut twice in two hours, and the run restarted from step 0 both times anyway.


