---
# nuzlocke-tracker-pm9f
title: Genlocke edge cases
status: draft
type: task
created_at: 2026-02-09T08:48:46Z
updated_at: 2026-02-09T08:48:46Z
parent: nuzlocke-tracker-25mh
Collect and evaluate edge cases for genlocke tracking. Review periodically to decide if any need dedicated handling.
## Edge Cases
- [ ] Prevent run deletion if the run is linked to a genlocke leg. The `DELETE /runs/{id}` endpoint should check for a `GenlockeLeg` with matching `run_id` and return 400 if found, telling the user to remove the run from the genlocke first.
- [ ] What happens if a user tries to advance a leg twice? (Currently guarded by "next leg already has a run" check)
- [ ] What if the user edits a completed run back to active after the genlocke has already been marked completed/failed?