pub fn write_published_record( root: &Path, request: &str, record: &PublishedRecord, ) -> Result<(), String>