It should not be possible to have a "friendly" rebellion. A rebellion is, by it's very definition, an armed resistance to the current government. An attempt to undermine and overthrow the lawful authority of the realm by force of arms, and replace it with your own.
Any kind of agreement like "Let's make sure no one is in the capital except for the five 'rebels', then we'll call the rebellion, I'll immediately give in, and then you can unban me." is, IMO, a blatant abuse of game mechanics.