This drift check forgot the absolute value, so it only catches the live mean going up — a big drop (live 70 vs train 100) slips through. Fix line 3 to flag drift in either direction.
Expected output:
True
The break is on line 3 — but read the whole snippet first.