the Western diplomat, who spoke on the condition of anonymity because he was discussing confidential talks, signaled that all of the main outstanding issues had been resolved, including the thorny question of how many years an embargo on conventional arms shipments into and out of Iran would remain in place.