A deal was reached to pause more than 15 months of war and release hostages held in Gaza. Mediators say its success would depend on Israel and Hamas “acting in good faith”