💡 Suggestion
Test preservation of an existing key after a malformed reply (test/functional/feature_torcontrol.py:340, head)
These malformed-key cases start without a cached key and only check that no cache file is created. Add a case with a valid cached key: return a malformed key, reconnect, and verify that ADD_ONION uses the original key. This would catch adopting the malformed reply in memory before rejecting it, which could leave the service unavailable on reconnect even though the trusted key remains on disk.
Document malformed-cache recovery in a release note (src/torcontrol.cpp:575, head)
When the cached key is malformed, the new check leaves -listenonion unavailable until the cache file is removed and the node is restarted. The runtime warning explains recovery, but users upgrading should also be told in a PR-specific release note. The Developer Notes call for release notes for significant bug fixes and visible end-user changes.
Review coverage was incomplete. The adversarial review had incomplete evidence. The adversarial_glm review did not complete.