Rapid advances in artificial intelligence and the fear of joblessness have led to developments on what to do to ensure that robots don’t steal jobs.