pub fn verify_file(path: &Path, max_file_size: u64) -> FileRecordExpand description
Verify a file is UTF-8 without BOM. Unreadable / oversized files fail closed (a gate must not wave through what it cannot inspect). The size is re-checked after the read, mirroring the other processors, so a file that grows between stat and read cannot slip past the cap.