fn hash_policy_file( hasher: &mut Hasher, path: &Path, file: File, control: &IndexWorkControl, ) -> Result<(), CliError>
Hash one bounded policy file with cancellation checks between chunks.