Robots operating independently need clear rules about accountability when they make costly or dangerous mistakes.