Skip to main content

gate_upgrade

Function gate_upgrade 

Source
pub fn gate_upgrade(
    provenance: Option<&TurnProvenance>,
    user_instruction: &str,
) -> Result<(), GateRefusal>
Expand description

The gate for App upgrade: gate, except a Swarm broadcast doesn’t count as the user’s word. An upgrade restarts AgentMux once for the whole machine, so a broadcast to ten agents would have all ten try it; the user is asked instead. A broadcast still authorizes an agent quitting itself.