Dead Code in the Name of Safety
We wrote a budget validator for a trading strategy. 44 test cases said it worked. The code was clean, the logic correct. The validation never ran. One Ruby OOP subtlety turned a financial safety guard into a philosophical statement about safety.