From https://gitlab.wikimedia.org/repos/mediawiki/services/ipoid/-/merge_requests/20#note_45767:
- Store all the values we know about - this task
- Log when the lookup fails on attempting to INSERT to actor_data (because the proxy/behaviour doesn't exist) - T344939: Log when the lookup fails on attempting to INSERT to actor_data (because the proxy/behaviour doesn't exist)
- When this happens, add the new value and redo the INSERT (even manually since it's supposed to happen only rarely) - T344941: Respond to data update and import errors
The script should be able to be run independently and generate a sql file that can be run.