I think probably the most helpful next step would be to review your integration scripts and/or any other kind of RapidPro scripting that you have. I have spoken about this behavior with some other colleagues here at Medic and confirmed that there is no CHT functionality that should be updating the reported_date
on an existing contact. So, this change has to be getting pushed into Couch from some external integration. From the functionality and timing of the update it does appear that the integration is triggered in the same flow as the RapidPro.
Unfortunately I am not familiar with the specifics of your integration scripts, so I cannot say if perhaps this is coming from a parallel workflow (perhaps one also triggered by a different outbound
script) or if somehow RapidPro can be configured to push updated phone numbers back into the CHT…
If all else fails, the HA Proxy container is logging info on all the traffic flowing through it. The logs for that container should be able to capture some info about a PUT
request to the medic/{{contact_uuid}}
. But, at best, that will probably only get us the IP Address of the service doing the update… There is some more info about grabbing logs in these docs.