Ocasionally, wmf-config/logos.php is manually changed in a way that introduces drifts between the configuration file (logos/config.yaml) and the PHP. In other words, the generated PHP file on master branch is different from the actually committed one. A recent example of this is fixed by r887825.
logos/manage.py seems to have support for validation included, so this should be reasonably easy to accomplish.
Tagging Continuous-Integration-Config, as this will require adding a Python-based CI job. I think we should first add it as an experimental check, ensure that the newly added validation works well, and then eventually making it voting.