async fn settle( state: &AppState, actor: &Actor, agent_id: &str, name: &str, request_id: &str, stopped: Result<(), String>, )