pub fn detect_collisions<'a, I>(ids: I) -> Vec<(String, Vec<&'a str>)>where
I: IntoIterator<Item = &'a str>,Expand description
Check whether sanitization would cause a collision within the given set of ids. Useful for detecting adapter-shape problems before they surface as confusing LLM behavior.