Everyone expects HR to follow the law but in practice you can see this is applied selectively at many companies.
I will challenge you on the part though about the unspoken expectations of what HR is. To be clear, HR always says come to them if I need anything. If I have any problems they are there to help me.
Like you said, this is a lie. They are there to follow the law, and if they see you as a liability and your complaint doesn't have enough evidence and they can get away with finding a way to get rid of you and claim it's not retaliation they will. This happens often.
So perhaps HR should take on some responsibility for actively misadvertising the purpose of their existence. They should say exactly that:
We are not here for you we are here to make sure the company doesn't get in trouble so if on the books we can be in the right and reduce liability we will, so keep your mouth shut and do not give us any reason to think you are a liability to us.
Alot of problems I agree could be solved if HR was honest about their role. And did not advertise themselves as therapists as a way to asses early on if you are a liability and come up with a way to get rid of you and get away with it.
Easily one of my least favorite blogs that regularly gets linked on hn.
I’ve worked with HR in many capacities, and find them to be supportive and helpful of both employees and managers. However, what you will not find them to be is sympathetic. They aren’t job relationship therapists any more than they’re mall cops. They are there to make sure workplace law is followed. Beyond that, it’s on everyone involved to be personally responsible for being a professional.