pub fn validate_agent_id(agent_id: &str) -> Result<()>
Validate that an agent_id contains only safe characters and is within length limits.