Seems a bit iffy when ive had a look but generally once it has been healed back to the hooker and or when the hooker picks up the ball. The referee apparently usually calls "go" when he deems the ball to have cleared the ruck and the defence can advance.