A long-running dispute between Welsh and UK Governments over plans to share out EU powers post-Brexit has ended, meaning the two governments won't now take the argument to court.
But it also means the end of an alliance between ministers from Cardiff and Edinburgh which has seen Carwyn Jones and Nicola Sturgeon battling what they call a 'power grab.'
Agreement has come after the UK Government offered further changes to its EU Withdrawal Bill, which have been accepted by Welsh ministers but not their Scottish counterparts.
Until now both have been angry that the bill would see some powers over rules and regulations that are the responsibility of devolved administrations remaining in London when they return from Brussels instead of being transferred to Cardiff and Edinburgh.
After months of talks failed to produce an agreement, the two governments took steps to introduce their own laws to ensure they gained those powers, known as Continuity Bills. Ministers in London referred those bills to the Supreme Court which could have overturned them. You can read more detail of the background of this complicated dispute by clickinghere.
The Finance Secretary, Mark Drakeford, who's been leading for the Welsh Government in the negotiations said that it was a workable deal.
The Scottish Government continues to oppose the move. First Minister Nicola Sturgeon has written to the Prime Minister explaining her continued disagreement while Brexit minister Mike Russell has also set out the SNP government's objections.
David Lidington, the Cabinet Office minister who's been leading negotiations between the three governments described the agreement as 'a significant achievement.'
However Plaid Cymru's leader Leanne Wood condemned what it described as a 'backroom deal' that results in 'selling Wales down the river.'