Deciding what the program should do was never going to be the difficult bit.
Unfortunately, there are fewer development tools available for modifying the brain of a moron. I ended up writing the entire issue up in our workflow management system, spelling out what X was, what Y was, that adding them together equals Z, and if it needed to be A then X or Y should be changed accordingly. Tonally, it was one notch above "explaining addition to a child". I would be kinder, but this guy pulls this stunt two or three times a month.