Villagers constantly forget that it's raining
I first encountered this problem in 1.16.100, or perhaps it goes back as far as 1.16.20.
The Problem:
When it rains, villagers initially get under a roof as they're supposed to, but after a short time there, sometimes they walk back out into the rain. Then they suddenly realize it's raining again and run back to their shelter. This repeats for as long as they would be awake and working, or until it stops raining, or until it's time to sleep.
The bug affects all kinds of villagers, regardless of profession. There is an exception for clerics, in that due to MCPE-110777 they sometimes stay on top of their brewing stand without moving, even in the rain.
In experiments I learned that this only happens if the "roof" they're under consists of nonsolid blocks (e.g. stairs or slabs). If they have solid blocks above them, they simply stand inside as expected.
I have attached a world that demonstrates this. It's easier than writing out repro steps.
Created Issue:
Villagers constantly forget that it's raining
I first encountered this problem in 1.16.100, or perhaps it goes back as far as 1.16.20.
The Problem:
When it rains, villagers initially get under a roof as they're supposed to, but after a short time there, sometimes they walk back out into the rain. Then they suddenly realize it's raining again and run back to their shelter. This repeats for as long as they would be awake and working, or until it stops raining, or until it's time to sleep.The bug affects all kinds of villagers, regardless of profession. There is an exception for clerics, in that due to MCPE-110777 they sometimes stay on top of their brewing stand without moving, even in the rain.
In experiments I learned that this only happens if the "roof" they're under consists of nonsolid blocks (e.g. stairs or slabs). If they have solid blocks above them, they simply stand inside as expected.
I have attached a world that demonstrates this. It's easier than writing out repro steps.
@Auldrick, the screenshot is from my Coastal Village Seed. It was made before I found this bug report. My settings are the defaults when the world was created, v1.16, above Settings screenshot. I did view your .mcworld, but in my case the villagers stayed out as it it was a sunny day.
I assume you were trying it out in the attached world. The rain didn't stop because it's a creative world and I turned the weather cycle off. In fact, re-importing it wouldn't change anything; you must have turned the weather cycle back on in the settings or used the command interface to do it.
Then what new information were you intending to add? That in the village you made, the villagers didn't go inside at all? It's not obvious that that's a bug—I think that's normal behavior if they don't have a bed or it's too far away from where they are at the moment—but in any case it doesn't seem to be about this bug.
Also, I don't understand how it could be a sunny day if you imported the world I attached, as when I made it it was raining and the weather cycle was turned off. Unless you turned it back on again, or maybe it has something to do with opening it in a beta release, which would upgrade it to the new release. But again, in either case it doesn't seem to be new information about this bug.
After looking at your screenshot a little longer, I noticed something else. The two villagers nearby are looking at you. That's a higher priority than getting out of the rain, so it probably explains why they are staying out in the rain. If they're behaving the way I described, they would head for their beds, but if they saw you along the way they would stop and look at you for a while instead, and then when you didn't try to trade with them they would go back to their workstations. Then a moment later the cycle would repeat. So that's actually the same behavior as I described, it's just that you got yourself in the way and that changed it. Try staying out of sight when you observe.
In Minecraft Bedrock v1.17.0.23 Beta, all the villagers stayed out in the rain. I slept in the bed, but the rain did not stop. I had to re-import the world to get the rain to stop, see attached screen capture.
I figured out that this happens because they have stairs above them. Apparently, when checking for a block that protects them from the sky, slabs (either lower or upper slabs) are acceptable but stairs, either right side up or upside down, are not.