Sounds like something from I Robot. :cool:
1. A program may not injure a human being or, through inaction, allow a human being to come to harm.
2. A program must obey the orders given to it by human beings, except where such orders would conflict with Line 1.
3. A program must protect its own existence as long as such protection does not conflict with Line 1 or Line 2.