Founder Notes
The Ceiling of a Fix
My laptop was nearly out of disk, and I did the obvious thing. I cleared caches.
It worked. Several gigabytes came back, nothing was lost, and every one of those caches rebuilds itself on demand. By any local measure it was a correct fix.
A few hours later the disk was at a hundred percent, with about a hundred megabytes free.
The question I never asked
The caches were never going to be the answer, and I could have known that before I started.
Everything I cleared added up to a few gigabytes. The thing actually consuming the disk was tens of gigabytes: one directory of stale working copies, an order of magnitude larger than the entire remedy. Even if the cleanup had gone perfectly, and it did, the problem would still have been sitting there afterwards. It was.
What I never did was the arithmetic. Not "will this help?" - it obviously helps, that is why it is tempting - but "if this succeeds completely, is the problem gone?" That question takes seconds, and it disqualifies whole categories of fix before you spend anything on them.
A remedy whose best possible outcome is smaller than the problem is not a partial fix. It is a non-fix, and it is expensive, because it consumes exactly the attention the real fix needed. I spent a long stretch of that afternoon watching a cache-clearing job grind through a large store of small files, waiting politely on something that could not have won.
Convention is not measurement
Here is the part worth keeping.
I did not choose caches because I had measured them. I chose them because caches are what one clears. They are the customary answer to "the disk is full," and reaching for the customary answer felt like diagnosis.
Listing the top level of my home directory by size would have named the real offender in one command, in under a minute. I ran it eventually. I ran it after the cleanup, which is to say after I had already decided what the problem was.
Convention tells you where people usually find the answer. Measurement tells you where this one actually is. They agree often enough that the habit survives, and the times they disagree are exactly the times you are in trouble - because a problem that got this big usually got big for an unusual reason. If the reason were usual, the usual thing would have caught it.
What the fix that worked had in common
When I finally looked, the fix that worked was not more careful or more clever. It was a different class of thing. Most of that directory was reconstructible, build output and dependency trees that any machine can regenerate from a network, and there was a great deal of it. The useful axis was never "is this safe to remove." It was "how much of this is there, and how much of it can be rebuilt."
That is a better way to sort remedies than by familiarity. Size first, then how much is reconstructible, then effort. Familiarity does not belong on the list at all.
The general form
Before you apply a fix, price its ceiling. Ask what happens if it works perfectly, and compare that to the size of the problem. If the two do not meet, you have not found a small fix. You have found the wrong one, and the fact that it produces real, measurable, entirely genuine progress is what will keep you from noticing.