Political factions in Egypt have tentatively agreed to a deal to form a new constitutional assembly, an agreement which would end weeks of brinksmanship.
The deal focuses on the breakdown of the 100-member body - how many seats will be allocated to various political parties and other groups.
Field Marshal Mohamed Hussein Tantawi, the head of the ruling Supreme Council of the Armed Forces (SCAF), has asked parliament to convene on Tuesday to select the actual members of the assembly.
The parliament already appointed an assembly once before, in March, but it was suspended by court order in April amid complaints that it was not representative of Egyptian society.
Politicians have been negotiating ever since about the make-up of the new assembly. SCAF gave the parliament an ultimatum of sorts on Tuesday, saying it would choose the assembly itself unless politicians reached a deal within 48 hours.
Under the terms of the agreement, 39 seats will be reserved for members of parliament. Those seats will be allocated roughly according to the make-up of parliament: The Muslim Brotherhood's Freedom and Justice Party, which controls nearly half of parliament, will receive 16 seats; the salafi Nour Party will receive seven; and so on.
Other blocs of seats will be reserved for constitutional scholars, representatives of Muslim and Christian religious institutions, workers, and other groups. The military will have one representative, according to local media reports.
The deal came after a seven-hour meeting on Thursday between SCAF and representatives from more than 20 political factions.
A busy week ahead
The appointments will be one of several major developments in Egyptian politics next week.
The country's high court is due to decide on Thursday whether the parliament itself is constitutional.
A lower court found that the electoral process - allowing political parties to compete with independent candidates for some seats - might be unconstitutional.
If the supreme court agrees, the parliament would be dissolved and new elections would be called.
The court will also rule on a challenge to Ahmed Shafiq, one of the two candidates in this month's presidential runoff election.
A law passed by parliament earlier this year bans former officials from Hosni Mubarak's deposed regime from running for public office. Shafiq was Mubarak's last prime minister, so the law, if upheld, would bar him from the run-off.
That could turn the run-off into an up-or-down vote on Mohammed Morsi, the Muslim Brotherhood's candidate and Shafiq's lone competitor. Or it could trigger a whole new presidential election; legal experts say the constitution is unclear about which scenario should occur.
The run-off election is scheduled for June 16 and 17. Shafiq and Morsi were the top vote-getters in the first round, last month, edging out eleven other candidates.