Auto-Close on Regime Change: The Feature I Was Afraid to Ship

How the Econ Bot's regime-change auto-close works, why I almost didn't ship it, and the testing path that made me confident enough to turn it on.