pub fn parse_agent_role(topic: &str) -> Option<&str>