Add run deletion guard to genlocke edge cases bean

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Julian Tabel
2026-02-09 10:52:21 +01:00
parent a81a17c485
commit d39898a7a1
3 changed files with 5 additions and 5 deletions

View File

@@ -12,6 +12,6 @@ Collect and evaluate edge cases for genlocke tracking. Review periodically to de
## Edge Cases
- [ ] What happens if a genlocke run is manually deleted? (The GenlockeLeg would still reference a non-existent run_id)
- [ ] 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?