Under the landmark 2007 pact -- involving the two Koreas , the U.S. , China , Russia and Japan -- North Korea pledged to disable its nuclear program in a step toward its eventual dismantlement in exchange for diplomatic concessions and energy aid equivalent to 1 million tons of oil .