Sudan's military council and protest leaders on Saturday signed a hard-won "constitutional declaration" that paves the way for a transition to civilian rule.
The deal was inked between Mohamed Hamdan Dagalo, deputy chief of the Transitional Military Council (TMC) and Ahmed al-Rabie, who represented the Alliance for Freedom and Change umbrella group.
In a speech, Mohammed Nagy Alassam, a leader within the FFC, emphasised the need for an investigation and justice for those who were killed, particularly during the violent dispersal of a protest site in the capital Khartoum on 3 June.
Videos shared on social media showed hundreds of people on their way to Khartoum on Friday night jubilantly singing but cautious, chanting "Civilian rule, civilian", as they promised to avenge the estimated 250 allegedly killed by security forces since protests began eight months ago. A prime minister nominated by civilians is due to be appointed next week.
He is expected to focus on attempting to stabilise Sudan's economy, which went into a tailspin when the oil-rich south seceded in 2011 and was the focus of the initial protests.
Elections are scheduled for 2022, but many Sudanese are already doubting the ability of transitional institutions to limit the power of the military elite.
It formalises the creation of a transition administration that will be guided by an 11-member sovereign council, comprised of six civilians and five military figures.
"Political dynamics will be more important than scraps of paper", says Rosalind Marsden of the London-based Chatham House think tank.
Other leaders who attended the ceremony included; Ethiopia's Prime Minister Abiy Ahmed and Egypt's premier Mustafa Madbuli.
General Mohammed Ali Ibrahim, a member of the Transitional Military Council, said on Friday that the signature would "reopen the door to Sudan's global relations".
On Friday, Amnesty International warned against Mr Bashir's possibility of escaping a trial before the International Criminal Court, which issued two arrest warrants against him, including for "genocide" in Darfur.
But his trial has been postponed to an as yet undetermined date.
The Sudan Revolutionary Front that unites these insurgents has supported the protest movement but rejected the constitutional declaration, demanding representation in the government and more guarantees on peace talks.