This is a layman's perspective on the events of the past two days. There are constitutional and legal analyses aplenty. One thing I can say right off is that these events are NOT based on constitutional validity or legalities. They are simply politics.
Prachanda had to ensure that he remained the leader of the Maoist Party. He therefore had to maintain his quixotic stand on sacking the Chief of Army Staff. His unilateral sacking brought down his government and he had to resign. The President was beseeched by 18 political parties to retain the CoAS. He did so in the best spirit of keeping intact the only security apparatus of the nation and to rebuttal the high-handed unconstitutional action of the Maoists.
Now the Maoist high command has declared that they will push for the CoAS's ouster in the streets and in government. They have further declared that a new government cannot be formed without their support. They have also termed the President's action unconstitutional. In effect, they have reverted to their rabble-rousing ways.
The next few days will probably see Maoist rallies all over the country and especially in Kathmandu. I doubt the police can keep the peace. Who else can? Obviously, the Army. The nation has reached this watershed to preserve its Chief. Let us see now if that Chief can direct the army to preserve the peace and security of the Nepali people.
The new government is apparently to be led by the United Marxist-Leninists, supported by the Nepali Congress, the 3rd and 2nd largest parties respectively in the Constituent Assembly. They will need the support of many other parties, not least the Madhesh-oriented parties, to form a government of national consensus. The Maoists should ideally support this "National Government" which can proceed with the drafting of the constitution - the main job of this CA. But Maoist "idealism" would perhaps prevent them from keeping the nation above petty party doctrines.
When Lenin wrote his pamphlet which was titled the same as the title of this piece, he knew what was to be done and did it. I wish Nepali "leaders" were Lenins, minus the Marxist flavour.