Positions changed because they were over run, which is what entrenchment might have prevented. If Lee wasnt forced to shift units all of the battlefield because he was holding his ground he would have been thrilled.
If you look at the initial positions in the morning on the left, it just begs for entrechment. There was absolutely no value for the Rebs in repeatedly storming the cornfield, and the casualties in some of the best Confederate units were appalling. If Lees men could have stood in their trenches and cut Hooker down like Cold Harbor, Lee would have secured his left and had ample fresh units to consider a counter attack. A stand up fight served no purpose other than displaying their bravery, which was expensive in blood.
I take your point but given the rolling nature of the ground on the Confederate left and the just in time nature of troop arrival from The Harper's Ferry operation, where would field works have been erected and how would they have been manned if built? I've been walking the ground for 30 years and cannot for the life of me see what else Lee could have done. The fight was completely unlike any in the Overland Campaign including Cold Harbor. There was not the time, the manpower nor the favorable ground to achieve converging fields of fire on the expected line of the Union advance as was the case at Cold Harbor.