--- id: fea651ab-d137-47c9-a6ce-3f34cbf90363 type: problem title: "Script interruption during delete-recreate cycle loses data" tags: [paper-dynasty, python, data-loss, retrosheet, cardpositions] importance: 0.8 confidence: 0.8 created: "2025-12-07T23:06:57.607204+00:00" updated: "2025-12-07T23:06:57.607204+00:00" relations: - target: 230c1200-f094-43e1-be20-cb2de7417274 type: SOLVES direction: incoming strength: 0.5 context: "Standalone utility to regenerate positions without running full script" --- retrosheet_data.py uses a delete-then-create pattern for cardpositions. If the script is interrupted after deleting but before recreating, the data is lost. Discovered when Brady Clark lost CF position - logs showed the script ran twice, second run deleted 723 batter positions at 13:06-13:07 but no log entries at 13:08 (script crashed). Pitcher positions survived because they use delete_existing=False.