This villager house design (images attached below) has a flaw. There are usually one to two villagers that spawn inside this house from a few villages that I took as a test sample. Both of them find it hard to exit the house because of the carpets (Their AI thinks that they can pathfind to the door but they don't realize that they can't fit through because of the carpets).
(It doesn't prevent them entirely, after quite a bit of struggle they might eventually make it out. I am uncertain about how many versions this house has had this flaw.
First image: The issue in question.
Second image: The type of house that has this issue.
Related issues
Attachments
Comments

This issue duplicates MC-21109 which was marked as Won't Fix.

Same core issue as MC-97799, villagers don't see carpets as obstacles in two-block-tall spaces.

The work around for this particular issue doesn't need villagers to change, does it? (as seen in MC-97799. It talks about having to change the mob heights).
But fix the flaw in this type of house design itself, just by removing these two carpets, don't you think?