Imagine a tester reports that an arrival announcement repeated while they were looking for parking. A GPS trace might help reproduce it. It would also reveal where they went and when. What information is necessary to diagnose the behavior?
Record state transitions
For the repeated arrival case, diagnostics could record that the app entered the arrival area, played the prompt, and then triggered arrival again. Relative time since guidance started, a coarse distance bucket, and an ephemeral route-session ID may be enough to see the state transition firing twice.
| Debugging question | Candidate diagnostic |
|---|---|
| Did the same arrival cue play twice? | Prompt type and playback count |
| Did a reroute reset arrival state? | Route revision and arrival state transition |
| Did the app bounce around the arrival threshold? | Coarse distance bucket and transition count |
One possible fix is to track whether the app already announced arrival for that maneuver. A synthetic test can move in and out of the arrival area and check that the cue plays once without using anybody’s trip.
Treat diagnostic payloads as an API
Define an allowlist of diagnostic fields and test the event shape. Review SDK breadcrumbs, crash reports, and request logging too. A clean analytics event can coexist with a crash breadcrumb that captures a destination search or an entire request URL.
This is one way to design debugging around RHYTH’s goal of avoiding retention of raw precise location.

![[Spanish] Refactoricé 1400 líneas con un agente de IA: así comprobé que mis pruebas no me mentían](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy3e5k1jxr45qtqzyk1d6.png)