The robodebt royal commission is today expected to hear from a senior bureaucrat who was advised of potential legal issues before the flawed scheme was rolled-out