A flurry of dealmaking, largely brokered by the office of Gov. Gavin Newsom, is radically transforming the November ballot at the last minute, with agreements to withdraw a record number of measures before a key deadline this week and potentially even more changes yet to come next week.