Alright, as someone who was sleeping when this happened but is still a part of the village who did the raid.
From what I gather, the actions were legal in the game. It's not clear whether they were intended, but probably not. However, minehole raiding has been a thing every world thus far, and with some minor security precautions it wouldn't have happened. How is this any different from some noob camp leaving a cave/minehole in their base and getting raided that way? In no world ever was that intended, but people still did it, because the defenders had so obviously brought it upon themselves.