People don’t move through a company in a straight line. They leave and come back, change roles, go on leave. An automation built for a line, hire at one end and leave at the other, does exactly what it was built to do, passes every test, and still fails here.
A returning employee should be one identity, not two. Two accounts for one person split their history, can create duplicate accounts and licences downstream, and leave an access review unable to see they’re the same person. So the match against former employees runs before anything is created.
Access comes from the role they’re returning to. What they had before belonged to their old job, and restoring it would bring back exactly the access an access review is meant to remove.
Offboarding moved their work to a colleague, and that was right at the time. Undoing it is its own step with its own owner, because the colleague may have kept working in those files.