What happens when you fake danger to get robots to murder people for you. Or when the robot has “bugs” that kill demographics you don’t like more often.
This is a horrifically terrible idea.
It is imperative that a human always be a decision maker about lethal force so proper judgement can be made and someone can be held accountable if it is made badly.