Asimov's 3 Laws and The Robot Constitution
I’m glad they’re thinking about this, but it’s a tricky road paved with danger. See “I, Robot” (the short story collection by Asimov, not the inferior Will Smith movie). Hope it goes better for us than it did in the short stories.
Google’s DeepMind ‘Robot Constitution’ will make sure its AI droids won’t kill you - The Verge