While the pupae are in the cocoon, they are incased in a shelter, often called an ant-house.

Red Wood Ant Shelter of Pupae, so-called ant-house

While the pupae are in the cocoon, they are incased in a shelter, often called an ant-house.