Boris Johnson heads for the EU summit in Brussels today with the chances of getting a Brexit deal hanging in the balance.
Talks between UK and EU negotiators look set to go down to the wire as the leaders of the (member states gather.)
Any deal thrashed out will not only have to have the agreement of the British government and all EU member states, but will also have to satisfy enough of the disparate factions in parliament for it to pass a Commons vote.
If a deal looks to be on the table then MPs could decide today whether parliament will sit on Saturday after the summit.
Their approval for such a move would allow Mr Johnson to put any deal to MPs in what would be the first Saturday sitting since the Falkland Islands invasion.
The key date for the prime minister is 19 October because the Benn Act, which was passed by MPs trying to prevent a no-deal Brexit, states he must write to Brussels asking for a delay if parliament does not agree to a deal by then.
The likelihood of an agreement appeared to ebb and flow throughout Wednesday.
EU sources told the Reuters news agency that a tentative deal was largely ready, but “overall backing from the British government is needed to launch it all”.
Mr Johnson told his cabinet that “there was a chance of securing a good deal but we are not there yet and there remain outstanding issues”.
There was cautious optimism from European leaders, with French President Emmanuel Macron saying: “I want to believe an agreement is being finalized and that we will be able to endorse it tomorrow (Thursday). “
Appearing at a joint news conference with German Chancellor Angela Merkel, Mr Macron added that it was his hope that a deal” can be found in the coming hours “.
Meanwhile, Mrs Merkel declared: “We are in the final sprint.”
However, even if an agreement is reached in the coming hours, it could still founder on the rocks of domestic politics.
The numbers in the Commons to pass a deal are incredibly tight, with the prime minister having to rely on hardline Brexiteers in the Tory party, such as the European Research Group (ERG), Conservative MPs who have lost the whip, Labor MPs in Leave constituencies and the government confidence and supply partners the DUP.
The DUP is unhappy with the prospect of a customs border between Northern Ireland and the rest of the UK, as well as issues of consent regarding the suspended Stormont assembly.
Another sticking point in the proposed agreement appeared to be whether EU VAT rates would apply in Northern Ireland.
Leader Arlene Foster earlier poured cold water on suggestions that one of the main stumbling blocks to a deal – Northern Ireland consent issues – had been removed.
“Discussions continue,” she wrote on Twitter. “Needs to be a sensible deal which unionists and nationalists can support.”
The key issue that needs to be addressed is the issue of the Irish border.
Former prime minister Theresa May managed to negotiate a deal with the EU – but saw it rejected three times by parliament.
This was in large part due to the presence of the backstop in her deal – the customs plan to avoid a “hard” border between Ireland and Northern Ireland if a free trade deal between the UK and EU is not reached.
Having come to office pledging to scrap the backstop from the withdrawal agreement, Sky News understands that Mr Johnson has in recent days proposed a compromise to try and break the deadlock.
The PM’s new proposal would replace the backstop, with Northern Ireland continuing to administer EU tariffs despite leaving the bloc’s customs union.
This would remove the need for customs checks but also allow businesses north of the border to benefit from new UK trade deals by applying for a rebate from the government.
The UK has reportedly a greed in principle that there will be a customs border in the Irish Sea, something the DUP has previously expressed opposition to.
If the DUP can be placated and brought on side, the majority of the ERG are likely to follow suit and back the agreement in a parliamentary vote.