mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 23:33:29 +00:00
GET keeps authentication, the module gate and the AI capability, and hands the rest to readWorkoutDetail (lib/workouts/detail.ts): the stored row, the canonical winner of its cluster, the enrichment reads and the body, as named stages. DELETE keeps authentication and the HTTP answers; the ownership check, the synced-source refusal and the transactional removal with its records, audit, cache and detection tail move to lib/workouts/delete-manual-workout.ts. The parity walk recorded before the move is unchanged; the guards that name the canonical-identity reads and the track readers point at the service.