The tentative contract announced last week by City Hall and the United Federation of Teachers reflected a longstanding pattern: Politics, not expiration dates, dictate when deals are struck and what they contain.

Here’s a look back at how that pattern has played out over the last 20 years of contract jousting.