The US military and the Afghan government have sealed an agreement on the gradual transfer of control of the main US prison in the country, a last-minute breakthrough that brings the first progress in months in contentious negotiations over a long-term partnership.
The compromise deal came on the day Afghan president Hamid Karzai had set as a deadline for the Americans to hand over the Parwan prison.
The agreement gives the US six months to transfer Parwan’s 3,000 Afghan detainees to Afghan control.
However, the US will also be able to block the release of prisoners, easing American fears that insurgents or members of the Taliban could be freed and return to the fight.
The deal removes a sticking point that had threatened to derail talks that have been going on for months that would formalise the US-Afghan partnership and the role of US forces in Afghanistan after Nato’s scheduled transfer of security responsibility to the Afghan government at the end of 2014.
On Thursday, US president Barack Obama and Mr Karzai discussed the stalled security pact talks in a video conference.
White House press secretary Jay Carney said the two leaders noted progress toward completing an agreement “that reinforces Afghan sovereignty while addressing the practical requirements of transition”.
Another major sticking point in the negotiations remains unresolved: night raids by international troops on the homes of suspected militants. Mr Karzai has demanded a halt to the raids, which have caused widespread anger among Afghans.
US and Afghan officials have said that they want a strategic partnership agreement signed by the time a Nato summit convenes in Chicago in May.