Had Sir Keir continued as prime minister until at least May 2027, he would have avoided being Labour’s shortest-serving Prime Minister.