Members of the Six-Party talks have finally reached an agreement aimed at halting North Korea’s nuclear-weapons program. If the agreement holds, the accord has a good deal to offer both sides: In return for energy aid, security guarantees and steps toward normalizing relations, Pyongyang will dismantle its nuclear infrastructure in a way that outside powers can verify. Plenty of pitfalls remain,...