After making some changes to ColonyCapital
<ImprovementType>Population</ImprovementType>
<SecondaryType>MaxManufacturing</SecondaryType>
<PlacementType>ManufacturingHub</PlacementType>
<IsIndestructible>false</IsIndestructible>
<IsColonyUnique>true</IsColonyUnique>
<Stats>
<EffectType>ManufacturingCost</EffectType>
<Scope>Queue</Scope>
<Target>
<TargetType>Improvement</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>0.01</Value>
</Stats>
and fixing the other stuff so you can build it if you don't have one or it's upgrades (sometimes I let myself place it with civilization capitals, sometimes not) the ai likes to delete it, but doesn't seem to rebuild it. Note I mean AI opponents, although help with governor behavior would be awesome too. I don't use them myself but I would eventually like to release this if I can get it to work how I would like. If not I might make a new building entry instead then. (repurposing game assets)
Is it possible to have the ai delete it on colonize, pick the optimum spot and rush it as default behavior? If not how do I go about making the ai not want to delete it, or prioritize rebuilding it if they do? I guess I would have similar concerns about governor behavior too