That backwards diode would have to be the fault of the harness maker. He put the wrong ends on each wire.

The diode goes to the idle micro-switch. I don't know why that diode was used in that circuit. I'm guessing it was done for an electrical noise problem.