pub(crate) const PHASE_CONSECUTIVE_FAILURE_LIMIT: i32 = 5;
Failures in a row before a phase counts as broken rather than unlucky.