Cube shape returns after the final slice. Recheck the order of the corners and the middle band.
Test permutation after cube shape
Once both layers alternate edges and corners, compare the order around each ring with the reference. An isolated exchange of two pieces requires a temporary change of shape. The demonstration starts with a swapped pair of corners and a flipped middle.