pub fn has_error_text(sample: &str) -> bool
True when a sample looks like a failure. Literal-first scanning, because this runs on every tool result and the common case is a clean one.