pub(crate) fn clear_cap( state: &AppState, def_id: &str, ) -> Result<CapChange, String>
Takes the agent’s own cap away, so it has the default again, and does what change_cap does for the cap that gives.
change_cap