The agreement, due to take effect on 29 October, is intended to allow humanitarian aid and civilian evacuations in a city where residents have endured years of Russian occupation, severe food shortages and dangerous attempts to escape.