We (me and demis14) are working for some time now on startpos records. We know already a lot about these ID's and how connected each other inside CAI and between CAI and the rest of startpos file and also the regions.esf. The usual que is building slot, settlement, region, faction, trade posts, government, connectivity, armies, and so on. CAI_INTEFACE is a summary of startpos and regions files with entries connected to every single element of the game. But there are a lot more to decode with entries and tables. We have left unattached the CAI records which has to do with the canpain AI. This is the hardcore of a real AI modding...
Alpaca, I also believe that CAI likes changes but not adding new records. And I am searching more about this. But when I am thinking what actually happens with the exit bug I have serious doubts. So when you exit the game or in game menu what the game engine is doing? It doesn't save the game, this happens only if the player saves or when you hit turn button and the auto save is created. It probably close all the routines that need for the game running without interesting on saving changes. From the other hand, if the issue is a missing record or connectivity among records how the game is played normally, (upgrades the new buildings, saves and loads games, etc.)?