Who Pays for Repairs in Massachusetts?

Every Massachusetts city we've verified and the repair-responsibility rule for each (sidewalk, sewer lateral, tree roots, service lines), each cited to its official code. 3 cities, 5 records.