pub fn dataset_materialization_protocol_error(error: AppError) -> ProtocolError
Maps a managed Datafile-to-Dataset failure to a stable redacted result.