Enemy Hit Rate and Stealth

The enemy hit rate is tied to your stealth rating, im pretty sure. I just got an infiltrator and hes been spotted but the enemys are still missing him. I was wondering why they can hit my guys 100% of the time and its because all of my dudes are loud and dumb. It sort of makes it funny, like a bunch of dummys all laughing and highfiving as they doddle into battle, banging into every wall and stomping all the way.

Or is it just a weird bug?

On my next playthrough im going to max my rep with synedrion and test this further.

They heard you but didn’t see you