Tehran shifts to predictive, software-based governance to seal border loopholes, protecting heavily subsidized energy reserves from cross-border profiteers and economic sabotage.