The Court of Appeal reversed and remanded for resentencing because the trial court sentenced appellant to the aggravated term for corporal injury on a child, without first obtaining a stipulation from defendant as to the circumstances in aggravation relied upon by the court to impose the upper term, in violation of SB 567’s amendments to PC 1170.