What is the Fitness MVP? #60
Notifications
Due Date
No due date set.
Depends on
Reference: bobby/hapi#60
Reference in new issue
Block a user
Part of #44
Question
What does the fitness domain need at MVP: core entities (workouts, exercises, body metrics?), the first endpoints/flows, how data gets in (manual, Bots, device integrations later), and what is explicitly deferred?
Resolution: Fitness MVP
Fitness in v1 is a hand-logged record of Workouts and body Measurements, one set per Person. It's greenfield: lifting is on pen and paper today, and cardio lives on an Apple Watch or Garmin. There's no historical import. Terms are in
GLOSSARY.md→ Fitness.Ownership (ADR-0001 / ADR-0005 applied)
fitness:read|writeBindings. None ship in v1.Entities
strength|bodyweight|timed|cardio. The kind decides what an entry records.performed_on(required local date; a paper log often has no times); optionalstarted_atandduration_s; note; optionalexternal_id(unique per Person);recorded_by. It holds orderedentries[], and each entry has anexercise_idplus:sets[]for strength, bodyweight, and timed Exercises. A Set hasreps,load_g(added load for bodyweight),duration_s(timed), optionalrpe, and awarmupflag (warmups are excluded from bests).cardio{}for cardio Exercises:duration_s(required),distance_m(optional), andavg_hr_bpm(optional). Pace is computed on read.body_weight,body_fat_pct,waist,chest,arm,thigh; extended by migration); an integer value in the kind's base unit (g, mm, hundredths of a percent);measured_on(required); optionalmeasured_at; optionalexternal_id;recorded_by.Getting data in
external_id. A repeat returns200with the existing record, so a retry on flaky gym wifi doesn't double-log. The v2 wearable importer reuses the same key. There's no separateingestendpoint in v1.API surface (flat,
/v1/fitness/...,owner+recorded_byon every record)exercises: CRUD (delete only if unused), archive,/{id}/merge,/{id}/promote,/{id}/history(past Sets or cardio efforts plus the best non-warmup Set by load and by reps, computed on read, nothing stored).workouts: list (filters: date range, Exercise; sorted byperformed_on, thenstarted_at), create whole,GET,PUT(replaces the whole Workout including entries),PATCH(top-level fields only),DELETE(hard).measurements: list (filters: kind, date range), create,PATCH,DELETE(hard).Deferred to Fitness v2
Templates, routines, programs, and goals; richer records (estimated 1RM, PR feeds); wearable import (Garmin/Apple Watch importer Bot reusing
external_id, plus calories, elevation, splits, and GPS); daily aggregates (steps, sleep, resting HR, HRV); scheduling and notifications (workout reminders, "no weigh-in for 7 days" nudges); drop sets, supersets, and tempo. Nutrition is a separate future domain. Fitness v1 adds nothing to the map's Scheduling or ntfy fog.No ADR: nothing here is hard to reverse, and shared Exercises follow the Finance Category precedent.