I once attended an overly neurotic consent workshop in which participants (who were mostly all already friends) were urged to ask for consent before hugging each other. I told some people there that i'd feel safer if they hugged me without asking first and they refused
I did this intentionally to point out the disconnect between professed values (make people feel safe) and practice (always ask for verbal consent), but i think everyone was too scared of breaking consensus rules to listen to me
In hindsight, I was annoyed and probably didn't communicate very well, but I still feel the same way about it. It was clear to me they were more driven by fear than by care for others, and I wanted to tell them that.
It's impossible to create a social algorithm or moral code to keep people from getting hurt. Implementing any such code would guarantee harm, since you'd have to force adherence.