Why was it the Junker that proved to Yumemi that she was "malfunctioning"?
Is this a plot hole? Or, perhaps, a defect of the anime adaptation?


Both. Adaptation-induced plot hole.

The flashback with the old guy is anime-only. No such scene is in the VN and Junker never heard about robot like Yumemi.