Robot laws: Why we need a code of conduct for AI – and fast

From election-rigging bots to potentially lethal autonomous cars, artificial intelligence is straining legal boundaries. Here’s what we need to keep it in check