The prime minister thought he had his paperwork complete after months of delicate negotiation.
All he needed was clearance from the Democratic Unionist Party (DUP) and his backbench Brexiteer MPs before signing off with the EU.
But, as his predecessors at Number 10 discovered, dealing with the DUP is challenging.
Thanks to those same predecessors, trust between DUP leader Sir Jeffrey Donaldson and the Tory leadership has been slowly eroded.
That is why the party was not moved by the assurances offered by the prime minister in the House of Commons on Wednesday.
"We've heard the same warm words from the same dispatch box before, it counts for nothing," said one DUP MP.
That is why the DUP leader warned against "tweaking" the protocol and demanded the "legally binding text" be rewritten.
Mr Sunak has invested too much to walk away.
He cannot sit on a deal which provides much needed remedies for businesses struggling under the burden of the Northern Ireland Protocol.
Plus, he is desperate to bank the gains he has secured.
That may include taking back control of state aid, VAT and other tax breaks in Northern Ireland which, under the protocol, fell to Brussels.
That was leaked this week and was not totally discounted by sources in Brussels.
Such leaks are useful in countering back bench and DUP pressure in the absence of publishing the deal.
Could this be one of the important areas where Sir Jeffrey Donaldson told us real progress has been made?
But what the prime minister really needs is for the DUP to hold back on its verdict of any deal.
This would allow the government time to win over business leaders and other stake holders before the DUP passes judgement.
But if the government is to secure its goal of restoring the Stormont institutions then the DUP will have to be won over at some stage
The party is expecting the deal to be published early next week and it will likely flag concerns but reserve full judgement until it sees any accompanying legal text
With a council election looming in May, rejecting the deal is the easiest option for Sir Jeffrey.
But saying no is not a long term sustainable position and that is the calculation the government will be banking on .