Versioned city-block modules. A blueprint book in the game blueprint library is the source of truth; every placement of a module is re-pasted as ghosts when its blueprint changes.
Is factorio playing itself yet?