Lebanon and Israel signed a US-sponsored framework agreement on Friday aimed at ending months of hostilities and launching a process to restore stability along the border, although officials and analysts cautioned that its implementation will depend on security commitments, the role of the Lebanese army and the future of Hizbollah’s weapons.