Keeping cuts on moving bodies (Part)

Hi everyone, I have a frame part which is connected at each corner. I have it drawn so that it can fold flat when placed in a new configuration. This part works OK but when I go to cut into the square frame and then flatten it again, the cut does not stay in the same position.

I could draw in relations to the shape (circle for testing purposes), but the intended use could have complex shapes and I'd rather have an extrude cut just stamp out the desired shape and then flatten to keep it?

I've also tried this in assembly context with cutting an assembly feature but it won't remember the position there either... I've attached the part if anyone wants to have a go!