fn sweep_one_agent_dir( id_store: &Store, agent_id: &str, memory_dir: &Path, detected_via: &str, broker: &Broker, ) -> usize