This feature has existed for a while (I'm not sure since when exactly), but I'm mainly interested in the Gen VI implementation (hence the tag).
Usually, at the start of a game, you have some number of Boxes available. In B/W, those were 8, in X/Y I think it was 15. Under certain conditions though, you receive additional Boxes that just appear at the end of your current Boxes list. Which brings me to Part 1 of my question:
1) What are the exact conditions for additional Boxes to appear and do you always get 8 additional Boxes? (Using Pokemon Bank reveals that in X/Y, the maximum number of Boxes is 31, which I have experienced to be unlocked in 2 steps of 8 Boxes each.)
Since I'm a person who really likes to order and organize stuff, my Boxes have names and are used to categorize my Pokemon. This results in some Boxes ending up empty for a while most of the time. So here's to
2) Do additional Boxes you receive stay forever or do they disappear if the conditions for them are no longer met?
3) If they disappear, is there a way (such as renaming or putting any Pokemon in the last Box) to make them stay no matter what, even if you released all your other Pokemon?