So the shutoff wasnt on your property? Here if you are on municipal, you are responsible from the curb stop in to your house, same goes for sewer line. From that point out falls on municipality.
No excuse for putting curbstop or connection under the sidewalk....that's where "cant fix stupid " seems appropriate.