What age do you think children need to know about what consent is, etc?

As soon as possible. It doesn’t have to be on the nose, it can start subtle. Working in early childhood education, we sometimes talk about what you should or should not do to others. So one of the things on the “good list” is hugging. I always make a point to stress that hugging is ok if the other person is ok with it too.