update_verify_update_archive($project, $archive_file, $directory)
Implements hook_verify_update_archive().
First, we ensure that the archive isn't a copy of Drupal core, which the update manager does not yet support. See https://www.drupal.org/node/606592.
Then, we make sure that at least one module included in the archive file has an .info.yml file which claims that the code is compatible with the current version of Drupal core.
See also
\Drupal\Core\Extension\ExtensionDiscovery
_system_rebui