Draw your workflow.
Drag a line to decide where a stage goes when it passes and where it goes back when it fails. Or just describe it to your AI; Gatwen checks the proposal for dead ends before you approve.
Drag a green dot to the stage that comes next when it passes. Drag a red dot to an earlier stage to set where it goes back on fail.