What is relationship of run_phase and main_phase?

In reply to ppeezz:

This is because there is kind of a hierarchy of phases. The main_phase is embedded in the run_phase.