scripts/route/slot_route.py standby says whether the slot that is not serving could take the route. Nothing runs it, so a standby that stops being fit (stalled store, stale policy, a diverged account count) is found only when someone looks, which may be at the moment it is needed.
Done when a scheduled check runs it and alerts on a change from fit to not fit, the way the freshness check alerts on the serving slot.