Distinguish doc_link_failure from doc_compile_failure in history recording
Check the doc error message for "link" (case-insensitive) to categorize
doc failures as doc_link_failure vs doc_compile_failure, so both categories
are produced in the history.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>