Mayor Michael Bloomberg's administration and the union representing New York City school principals and assistant principals reached a tentative contract agreement yesterday that would offer bonuses of up to $25,000 a year to select principals who agree to spend three years in troubled schools. The deal would increase base pay by 23 percent, compounded over nearly seven years, and add 15 minutes to principals’ and assistant principals’ workdays.