Could possibly have internal corrosion in the brown wire that only acts up when it's hot. Might be the wire itself. As a test, you might be able to run a jumper wire from the ignition switch to where the brown wire terminates and see if it still acts up.(after you do your other tests)