An intermittent electrical continuity failure and short of the DECU-XPC wiring harness, which resulted in an uncommanded and an initially undetected engine deceleration and a resulting loss of main rotor rpm. Also causal was the manufacturer's inadequate installation of the wiring harness at the time of manufacture.