Windows 10 x64, Java 8 v241 (build 1.8.0_241-b07), Minecraft Java 20w09a
A raid occurred in my home village and all the villagers died in 2 minutes because they were all 'hiding' outside surrounded by various trap doors rather than going inside the many safe available houses.
What I expected to happen was...:
Villagers should go inside at night and during raids.
What actually happened was...:
Most villagers think a tile surrounded by 4 trap doors is safe (naturally generated in some villages)
Steps to Reproduce:
1. Village spawns with a bunch of trap doors forming square or rectangular areas
2. Villagers think they are safe if surrounded by 4 (or more) trap doors
3. Literally any mob (especially raiders) can kill villagers who don't even move because they assume they are safe outdoors behind 4 or more trap doors rather than inside a building.