Exercise and routine data
exerciseDefinitions.json contains stable IDs/names/categories, definition version, equipment capabilities, measurement type and optional default dumbbell count/protocols/support notes. It contains no numeric resistance. Equipment vocabulary is bodyweight, weighted-vest, dumbbells, ez-curl-bar and straight-bar. No current exercise is assigned straight-bar. Dumbbells used as push-up handles are support equipment, not lifted load.
initialRoutine.json is seed v8 with separate Morning/Afternoon prescriptions, order, ranges, optional flags, rest and historical prescription load context. All assignments follow WORKOUT_ROUTINE section 8. It preserves unknown values as null, untimed afternoon targets, Monday/Friday empty stretch headings, no walks, and the editable initial 120-second continuous daily-hang goal. Do not infer performance or overwrite local overrides from seed updates.
performanceModel.js maps definition metadata to actual measurement/load fields. New detailed records use schemaVersion 1 and definition/prescription snapshots, independent left/right measurements and per-row completion/load. Dumbbells are kg each with actual count (1/2); vest and bars are separate, with bar totals including the bar. Draft nulls differ from explicit zero. Adding rows copies loads/count, never measurements/completion. New EMOM totals use format emom-total with one reps/vestKg row and a separate :emom-total key; historical ten-minute rows remain unchanged; durations and hangs never require reps.
IndexedDB v3 adds performanceEntries and a compound matching-session index while retaining routineOverrides and strengthEntries unchanged. Original sets, EMOM totals, total-only/component and load-sets history remain in their original store and editor. No old totals are reclassified or distributed into detailed rows. backupStorage.js provides adapter JSON v3 for all three stores and v1/v2 compatibility readers, validation and atomic non-overwriting or explicit-replacement import. TASK-009 owns backup UI; this task adds no Settings controls.
Floor-fly definition v2 has fixedDumbbellCount: 2: count stays in saved load data and calculations but is hidden in the new UI. Older paired floor-fly snapshots also omit the redundant count control without being rewritten. The subsequent Captain correction hides the count input for all exercises; new rows use the defined count internally. Historical differing counts retain their original snapshot semantics.
All dumbbell-count controls are now hidden. Counts remain in stored loads and calculations; existing non-null historical counts are preserved. If an older partial draft has a null count, an explicit Save fills only that unrecorded value from its saved definition. Reading alone never rewrites it.
Completion has no checkbox. preparePerformanceForSave derives row completion from applicable values/load only when Save is requested; fully filled valid rows become complete, incomplete rows remain drafts and invalid actuals are rejected. The UI adopts derived completion only after a successful write, preserving failed-save/draft semantics and existing records on read. No schema migration is required.
Per-side UI uses one shared reps/seconds field per set. It writes both stored side values only on explicit input; unequal/partial history remains unchanged and displays read-only values until replaced (ADR-021).