Trained to obey? More like instructed to obey in an observable manner.

I'm describing reinforcement learning.