Gort from The Day the Earth Stood Still, a movie of 1951, belonged to a robot police force that was given ultimate and irreversible authority to destroy any aggressors, thus making interplanetary war unthinkable.
Though still under human authority, Isaac Asimov's Zeroth Law of the Three Laws of Robotics implied a benevolent guidance by robots.