pub fn generate_id(existing: &HashSet<String>, length: usize) -> String
Generate a short alphanumeric ID, retrying on collision or YAML-unsafe IDs.