We've all been there. You find a file that "works perfectly" but nobody dares touch it. The tests pass. There are no bugs. Yet the moment you try to refactor it, you realize why everyone avoids it—it's impossible to understand.

That's cognitive debt.

Unlike technical debt (which measures bugs and violations), cognitive debt measures the mental...