pub(crate) async fn admit_start(
state: &AppState,
agent_id: &str,
) -> Result<(), String>Expand description
May agent_id be started? Yes when it already runs, when nothing is over a limit, or when an idle
agent with no view can be stopped to make room; otherwise Err("capacity: ...").