But agreement is thinner than it appears. The NPT allows countries the right to develop nuclear energy for purposes such as electricity generation, a loophole that allows governments to build most of what is necessary to produce the fuel for a nuclear weapon.