robots.txt and sitemap files look like a few lines of text, but parsers are strict about format. A BOM at the start, CR instead of LF line endings, inconsistent casing in User-agent or Disallow, a sitemap XML missing its namespace or unescaped URLs can make a crawler ignore the whole file or read only part of it. Pages still open, so the configuration layer effectively does not exist.
Treat declaration files as artifacts that must parse cleanly: verify UTF-8 encoding without BOM, normalize line endings, follow the spec for directive casing, validate the sitemap with an XML checker and escape special characters in URLs. After a change, read the file with two different parsers and confirm the same number of directives, then keep the validation result and date with the record.
This article covers encoding and parse robustness for declaration files; it passes no verdict on any allowance scope and promises nothing about differences between crawler implementations. Record parse results and dates as observed, write flat numbers as flat, and do not use them to push a change of crawl rules or direction.