# Exercise Tracker tasks This file holds accepted, scoped implementation work. It is not a speculative backlog. Current status and known issues belong in `CURRENT_STATE.md`; durable decisions belong in `DECISIONS.md`. ## Proposed implementation sequence Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 through TASK-003 and TASK-012–TASK-013 are complete; TASK-014 is complete following Captain acceptance on 2026-11-04; TASK-006 is superseded; TASK-005 and TASK-008 are accepted; TASK-015 is Complete following Captain acceptance on 2026-11-04; TASK-016 is accepted for planning only; TASK-017 is Complete following Captain acceptance on 2026-11-07; the remaining tasks are proposed. Implement one task per isolated branch/worktree under `docs/WORKFLOW.md`. Preserve the documented initial programme, including optional/ranged prescriptions and distinct session types. TASK-013 supersedes the dog-walk reference added by TASK-012; TASK-014 supersedes timer work. ### TASK-001: Application foundation and responsive shell - Status: Complete - Objective: Establish the React/Vite, React-Bootstrap, and test foundation with a responsive application shell. - Scope: App entry, local styling, navigation frame, lint/build/test scripts, and boundaries for routine data, storage, timers, and views. - Acceptance criteria: The shell builds and renders at phone and desktop widths with keyboard-usable navigation; no backend, authentication, remote assets, or tracking SDKs are introduced. - Relevant areas: Package configuration, app source, tests. - Required validation: Lint, build, shell test, and mobile/desktop visual check. - Non-goals: Workout data, date navigation, logging, persistence, and timers. - Dependencies or blockers: None. The owner confirmed the phone and desktop visual check on 2026-10-25. Automated checks passed in the earlier validation record and again with Node 24.21.0 on 2026-10-26. ### TASK-002: Exercise definitions and authoritative routine seed - Status: Complete - Objective: Encode the full seven-day baseline as structured, versioned data. - Scope: Stable exercise IDs, prescriptions, order, session types, rest/load components, optional flags, untimed afternoon holds, daily hangs with an initial two-minute goal, and Monday/Friday “Full body stretch routine” headings with no exercise entries until supplied. Keep the exercise library separate from routine prescriptions. Earlier dog-walk data was removed under TASK-013. - Acceptance criteria: Data matches the owner-revised `docs/WORKOUT_ROUTINE.md`, including ranges and unspecified values; no invented stretch exercises or replacements; Saturday finger hangs and daily hangs are distinct. - Relevant areas: Bundled data, domain model, validation tests. - Required validation: Automated data invariants and manual source-to-data audit of every day and exercise. - Non-goals: Exercise imagery, logging, user edits. - Dependencies or blockers: TASK-001 is complete. The owner selected this task on 2026-10-25 and removed the previously listed stretch exercises on 2026-10-26. The seed follows `docs/WORKOUT_ROUTINE.md` for the pull-up EMOM discrepancy. Data invariants and the seven-day source audit passed; the repository's npm tests passed with Node 24.21.0 on 2026-10-26. ### TASK-003: Date and period navigation with routine views - Status: Complete - Objective: Show the correct routine for an actual local date and one selected period. - Scope: Today default, navigation across weeks, seven-day strip, exclusive Morning/Afternoon switch above it, locally remembered period, and Monday/Friday morning “Full body stretch routine” headings with no exercise rows yet. Earlier dog-walk UI was removed under TASK-013. - Acceptance criteria: Day changes preserve period; only one period is shown; browsing never creates a record; targets and exercise order match the seed. - Relevant areas: Navigation and session UI, preference state, tests. - Required validation: Interaction and keyboard tests, mobile/desktop visual check, build. - Non-goals: Saving performed work or timers. - Dependencies or blockers: TASK-002 is complete. The owner confirmed TASK-003 complete on 2026-10-26. Interaction tests, lint, and build passed with Node 24.21.0. ### TASK-004: Exercise detail and local media placeholders - Status: Proposed - Objective: Show useful exercise guidance offline before illustrations are available. - Scope: Detail panel, fields for instructions/muscles/equipment/cues/warnings, personal-note affordance for later storage, labeled placeholders and local asset metadata. - Acceptance criteria: Every seeded exercise opens a useful detail view; missing images have accessible placeholders; no hotlinked images or invented technique guidance. - Relevant areas: Exercise library, detail UI, tests. - Required validation: Detail and accessibility tests, offline asset check, responsive visual check. - Non-goals: Producing final illustrations or logging notes. TASK-015 supplies the expandable detail shell and missing-content placeholders; this task owns reviewed content/detail extensions. - Dependencies or blockers: TASK-002 and TASK-003; detailed technique text requires reviewed source/content. ### TASK-005: Extended workout recording - Status: Accepted - Objective: Extend the initial dated rep/weight records from TASK-014 with other requested performance details while preserving partial and historical records. - Scope: Storage migrations building on the existing hang-goal override and TASK-014 strength entries; additional load variants or counts when needed beyond TASK-014's exercise-specific strength fields; hangs, untimed hold checkoffs, notes, optional body weight, previous-session suggestions, and error states. No timer-derived workout or break duration, per-round EMOM logging, or volume-per-minute rate. - Acceptance criteria: Additional performance details and hang attempts survive reload and remain distinguishable from prescribed targets; multiple hang attempts are distinct; edits/reseeding do not rewrite history; browsing alone writes no workout; storage failures are surfaced. TASK-014's EMOM total, regular per-set reps/weight, and legacy total-weight records remain available. - Relevant areas: IndexedDB adapter, domain model, recording UI, tests. - Required validation: IndexedDB integration tests, migration/error cases, load-component and hang reload checks, partial-session checks, build. - Non-goals: Progress charts, routine editor, backup UI. - Dependencies or blockers: TASK-014 and TASK-015. TASK-015 now owns metadata-driven load/count/side/duration/hang recording, completion and previous-session suggestions. TASK-005 retains notes, optional body weight and other extended recording without duplicating TASK-015. ### TASK-006: Timers during and between exercises - Status: Superseded by TASK-014 - Objective: Show current local time, time the whole workout and relevant exercises/sets/rests, and let the owner change the daily hanging goal. - Scope: A larger persistent local time clock in the header; a manually started whole-workout elapsed clock with pause/resume/stop/reset; count-up timing for open-ended morning work such as finger hangs; countdowns from prescribed morning hold/carry durations, with a user choice when the prescription is a range and optional side steps; no times or per-exercise timers for afternoon isometric holds; an editable daily hang goal saved through a narrow IndexedDB routine override with no vest display yet; rest presets of 60, 90, 120, and 180 seconds, including the documented between-exercise rest; ten one-minute EMOM rounds; visible completion and optional short bleeps for impending and actual timer transitions, muted by default. - Acceptance criteria: Current local time is prominent, readable, and updates across views, including phone width; afternoon isometric holds show no time targets or timer controls, while the daily hang goal can be changed, survives reload, and shows no vest load; already-running timers remain accessible; the workout clock can run alongside one exercise, rest, or EMOM timer and both show correct elapsed time after background-tab return; only one exercise/rest/EMOM timer runs at once, and replacing it requires an explicit action; timers are available from the relevant morning exercise or rest context; prescribed targets and clock readings do not automatically create a completed workout record; EMOM uses timestamps and displays the correct round; when sound is enabled, distinguishable bleeps announce approaching and actual transitions without requiring sight of the screen, with equivalent visible feedback and no promise of background audio; per-round logging remains independent. - Relevant areas: Timer logic and UI, tests. - Required validation: Clock-controlled unit tests for concurrent workout/interval timing and pause/resume, wall-clock updates and afternoon timer absence, hang-goal IndexedDB read/write/error/reload checks, keyboard/interaction tests, sound-on/off and unavailable-audio checks, background-throttling check, build, and phone/desktop visual check. - Non-goals: Guaranteed background alarms, custom rest presets, or automatic workout completion/logging. - Dependencies or blockers: TASK-003 is complete. The owner removed timers on 2026-10-27. TASK-014 removes the timer implementation while retaining the time-of-day clock and editable hang goal. ### TASK-007: Routine editor - Status: Proposed - Objective: Edit future prescriptions through the UI without changing past records. - Scope: Exercise order, day/period assignment, sets/ranges, durations, load presets, rest and optional state beyond the already-editable daily hang goal; validation and persistence. - Acceptance criteria: Valid edits survive reload and app updates; historical sessions retain their performed values and prior prescription context; invalid entries are rejected clearly. - Relevant areas: Editor UI, routine versioning, storage, tests. - Required validation: Edit/reload/migration/history-isolation tests and responsive check. - Non-goals: Fully custom exercise creation unless separately approved. - Dependencies or blockers: TASK-005; clarify editor scope for adding/removing exercises before affected controls are built. ### TASK-008: History and progress - Status: Accepted - Objective: Browse actual dated performance and transparent basic trends without a time-based rate. - Scope: Completed/partial session history, prior vs current performance, reps and load trends, total external-load volume from completed regular sets and aggregate EMOM entries, with historical minute/legacy records preserved separately, longest continuous and cumulative hang separately, optional body-weight trend. - Acceptance criteria: External-load volume is the sum, across completed regular sets and aggregate EMOM entries; historical minute entries retain their own load calculations, of actual reps multiplied by recorded external kilograms moved (vest, dumbbell total based on count, and/or EZ-bar total; body weight excluded). Do not combine detailed and legacy representations for the same performance. Use the current aggregate when it coexists with older representations for one session; never sum both. Show the formula and raw totals; label partial workouts and incomplete load data. Timed-only work contributes no rep-load volume; routine edits leave history intact. Do not show volume per minute. - Relevant areas: Queries/aggregations, history/progress UI, tests. - Required validation: Calculation and view tests with mixed loading modes, missing weights, partial workouts, and timed-only exercises; responsive check. - Non-goals: Coaching, calorie estimates, streaks. - Dependencies or blockers: TASK-014 and TASK-005. The owner removed volume per minute on 2026-10-27 while keeping rep and weight recording. ### TASK-009: JSON backup and restoration - Status: Proposed - Objective: Transfer all local data using a versioned JSON file. - Scope: Export, schema validation, import preview/confirmation, replace/merge handling, and failure recovery. - Acceptance criteria: Round trip restores plans, logs, hangs, body weight, notes and settings; invalid files do not corrupt current records; replacement/merge requires explicit confirmation. - Relevant areas: Backup format, storage transaction, settings UI, tests. - Required validation: Full round trip in a fresh profile, invalid/old-version tests, transaction rollback test. - Non-goals: Cloud synchronization or CSV export. - Dependencies or blockers: TASK-015 supplies the tested JSON v2/v1 adapter; TASK-005/TASK-007 extend future stored content. User-facing preview/confirmation/conflict policy remains this task, with no automatic merge acceptance. ### TASK-010: Offline release and full UX verification - Status: Proposed - Objective: Make the built app usable on reload without a network connection and verify v1 end-to-end. - Scope: Service worker/cache, offline status, storage explanation and backup guidance, accessibility/responsive polish, complete acceptance checklist. - Acceptance criteria: Built app opens offline after initial load; all major controls work by keyboard and at phone width; no data transmission or remote asset dependency is required. - Relevant areas: Build configuration, app shell/settings, integration tests, documentation. - Required validation: Production build served from stable origin, offline reload, cross-feature smoke tests, accessibility and mobile/desktop review. - Non-goals: Deployment to a chosen host or multi-device sync. - Dependencies or blockers: TASK-004 through TASK-009. ### TASK-011: Reviewed exercise illustrations - Status: Proposed - Objective: Add accurate, licensed local illustrations for the documented exercise variants. - Scope: Create or source images, document rights/origin, review technique, add alt text and local assets. - Acceptance criteria: Added images match the prescribed variant, have reviewed technique and origin metadata, and load offline. - Relevant areas: Local assets, exercise library metadata, tests. - Required validation: Human technique/rights review and offline visual check. - Non-goals: Unreviewed generated or hotlinked imagery. - Dependencies or blockers: TASK-004; approved image source/review process. May proceed independently after that task. ### TASK-012: Dog walks as reference only - Status: Complete - Objective: Keep the owner's usual dog walks visible as context without asking for walk entries or timing them. - Scope: Replace three daily walk slots and their timer controls with a compact reference to the documented typical frequency, duration, and current vest use; remove walk-recording requirements from future storage, history, and backup scope; preserve the routine facts for possible later calorie calculations without implementing estimates. - Acceptance criteria: Today/Week shows the walk reference, no individual walk slots or timer controls; no walk logs are planned; the source routine and seed carry the same reference facts; calorie estimates remain out of scope. - Relevant areas: Routine seed and tests, Today/Week UI, specification, task/context documents. - Required validation: Routine data and UI tests, full test suite, lint, build, context validation, and `git diff --check`. - Non-goals: Calorie calculations, walk completion, duration or vest entry, and logging. - Dependencies or blockers: TASK-002 and TASK-003 are complete. The owner requested this change on 2026-10-26. - Completion evidence: Version 5 seed and Today/Week UI use one walk reference with no walk slots or timer controls. The full suite passed (25 tests across 7 files), as did lint, build, context validation, and `git diff --check` on 2026-10-26. Browser visual checks were unavailable in this environment. ### TASK-013: Remove dog walks from the app - Status: Complete - Objective: Remove dog walks from the workout tracker and its current product scope. - Scope: Remove the dog-walk reference from Today/Week, the routine seed, and current specification/source-routine requirements. Keep completed task and decision history as historical evidence. - Acceptance criteria: No dog-walk UI or seed data remains; tests assert the absence; active specification and future task scope do not require walks or calorie calculations. - Relevant areas: Routine view, seed, tests, specification and context documents. - Required validation: Full test suite, lint, build, context validation, and `git diff --check`. - Non-goals: Calorie calculation or changes to unrelated workout features. - Dependencies or blockers: The owner explicitly requested removal on 2026-10-26. Supersedes TASK-012's reference behavior. - Completion evidence: Version 6 seed, Today/Week UI, and current product documents omit dog walks. All 25 tests passed across 7 files, as did lint, build, context validation, and `git diff --check` on 2026-10-26. Browser visual checks were unavailable in this environment. ### TASK-014: Remove timers and record strength reps and weight - Status: Complete - Objective: Keep the local time-of-day clock but replace workout timers with dated strength recording. - Scope: Remove workout, exercise, rest, and EMOM timers and sound controls; retain the large wall clock and editable hang goal; save one actual total-reps and exercise-specific load entry for each EMOM exercise, and actual reps plus exercise-specific load for each regular set, by date and exercise in local IndexedDB. Vest, dumbbell, and EZ-bar inputs follow the documented seed; mixed vest/dumbbell work has separate fields. Keep the prescribed EMOM protocol visible as reference without a timer. - Acceptance criteria: No timer controls or audio remain; the wall clock still updates; EMOM totals and regular set rows can be edited and survive reload and date navigation; flys request dumbbell kilograms per dumbbell without a vest field; exercises with vest and dumbbells request both separately; a new set copies the previous set's weights and leaves reps blank; older single-total records remain available without reinterpretation; browsing without saving creates no workout record; invalid or unavailable storage is surfaced; no volume-per-minute display or requirement remains. - Relevant areas: React routine cards and styling, IndexedDB adapter, tests, task/decision/spec context. - Required validation: UI entry, load-component, next-set default, legacy-record, and reload tests; storage migration/error tests preserving the hang-goal override; full test suite, lint, build, context validation, and `git diff --check`. - Non-goals: Per-round EMOM logs, timed workout/break records, volume per minute, and a full history view. - Dependencies or blockers: TASK-002 and TASK-003 are complete. The owner requested this change on 2026-10-27. - Agent-side evidence: On 2026-10-27, the original EMOM and regular-set entries persisted by date and exercise in the version 2 IndexedDB store while the prior hanging goal remained available. Timer UI/audio/engine files were removed; 23 tests across 7 files, lint, build, context validation, and `git diff --check` passed. The 2026-10-28 component and next-set correction passed its focused tests; full validation results are recorded in `CURRENT_STATE.md` and `HANDOFF.md`. Captain validation of the revised entry flow remains open. - Engaged validation evidence (2026-11-04): Current-worktree tests (27 across 7 files), lint and build pass. Source/test review established no new defect; no app code changed. Browser inventory is empty and in-app browser unavailable, leaving visual/runtime QA unverified. Exact current worktree is served loopback-only at `http://127.0.0.1:5174/` for Captain acceptance; see HANDOFF. Status remains awaiting Captain validation. - Accepted TASK-014 correction (2026-11-04): Add suitcase-carry dumbbell kilograms per set, accepting zero and different loads across sets, copying the prior set load, and preserving save/reload/date isolation. Keep the duration-per-side prescription visible without requiring repetition inputs or inventing performed duration. Extend storage additively without rewriting existing records. Validate UI and storage regression coverage plus full checks; Captain validation remains required. - Correction evidence (2026-11-04): Suitcase-carry weight-only set inputs implemented with `load-sets` storage, explicit zero, independent loads, next-set copying, save/reload and date isolation. All 29 tests across 7 files, lint and build pass. No database version bump or historical rewrite; browser QA remains unavailable and Captain validation remains pending. - Accepted TASK-014 correction (2026-11-04): Add vest-only load metadata and per-set inputs for front planks (weight only, no reps) and side-plank hip raises (reps and vest). Preserve existing records and targets; accept zero and different weights per set, next-set copying and reload. This explicitly implements only these two equipment assignments from TASK-015; the broader task remains pending. - Plank correction evidence (2026-11-04): Seed v7 and shared editor show vest-only inputs for front planks and side-plank hip raises, without invented target loads. UI regressions verify per-set/zero loads, next-set copying, reload, absence of irrelevant fields/reps, and explicit conversion of historical bodyweight-only hip raises. All 32 tests across 7 files, lint and build pass. No database migration; awaiting Captain validation. - Completion evidence (2026-11-04): Captain explicitly confirmed “task complete” after the suitcase-carry and plank vest corrections. Final agent checks passed all 32 tests across 7 files, lint, build, context validation and whitespace checks. Agent browser QA was unavailable; Captain acceptance is recorded without claiming a separate agent visual check. No commit, merge or deployment was authorized or performed. ### TASK-015: Exercise equipment specifications and context-aware UI - Status: Complete - Engaged: 2026-11-04 on `task/015-equipment-ui` from clean `codex` commit `669bfc3`. Timer-free. Focused UI brief: `docs/TASK-015_UI.md`. - Lock-on: Captain selected TASK-015 for briefing on 2026-11-04 after accepting TASK-014. This was a briefing only; the subsequent ADR-018/engage instruction resolved timer/Git gates. - Brief refreshed: 2026-11-04. This is the existing matching task, expanded rather than duplicated. Initial planning was documentation-only; subsequent engagement authorized implementation. - Objective: Separate exercise capabilities, workout prescriptions, and actual performance, and use equipment/measurement metadata to drive a compact exercise interface. #### Scope and boundaries 1. Add versioned equipment and measurement metadata to all 30 current exercise definitions, following the assignment matrix in `WORKOUT_ROUTINE.md`'s equipment assignment matrix. Supported equipment vocabulary: bodyweight, weighted vest, dumbbell(s), EZ curl bar, straight bar. No exercise is assigned a straight bar by this request; support the type without adding exercises. Multiple equipment types may be used simultaneously. Deep-push-up dumbbells are support handles, excluded from lifted load. 2. Remove fixed resistance from exercise capabilities. Retain prescription targets separately, and record actual equipment-specific resistance independently for each set/minute. Dumbbell entry is kilograms per dumbbell with count represented explicitly; EZ/straight-bar entry is total kilograms including the bar. Zero is valid where additional resistance is supported; blank is not an inferred zero. 3. Define repetitions, repetitions per side, duration, duration per side, distance where appropriate, and EMOM repetitions per minute. Preserve existing rep/set ranges, order, optional exercises, and unspecified targets. Carries currently prescribe duration per side; do not invent a distance target. Bird-dog and other unilateral holds allow actual seconds per side without inventing prescribed times. 4. Replace prescription-load-key-driven fields with reusable metadata-driven controls. Support independent set completion, partial drafts, per-set loads, EMOM minute rows, duration attempts, previous matching session suggestions, and existing next-set load defaults. Suggestions are editable drafts, never automatically performed/completed records. Match by exercise, period, format, measurement/side semantics, and compatible equipment; do not suggest future sessions, reinterpret legacy totals, or overwrite current-date work. 5. Compact cards show name, target sets/reps/duration, relevant equipment and rest guidance; actual entry is distinct. Use shared field headings on desktop with accessible row labels, stacked controls on mobile, and expandable details for available instructions, muscles, technique notes and local images/placeholders. Review this proposal through Frontend UI Design before code. Keep Today/Week navigation, exclusive Morning/Afternoon switching, local clock and editable hang goal. Timer-free behavior follows ADR-018. 6. Daily hang is bodyweight-only with an initial editable 120-second continuous target, actual seconds per attempt, optional additional attempts, longest continuous and total duration separately. Never infer success from cumulative duration or prefill 120 as achieved. Keep Saturday weighted finger hangs distinct. 7. Preserve old records, load interpretation, hang-goal overrides and any local plan edits through versioned storage/record upgrades. Define and test versioned JSON serialization and legacy import compatibility at the adapter boundary; the Settings backup interface and merge policy remain TASK-009. 8. Update SPEC, WORKOUT_ROUTINE, relevant decisions, data README, tasks/current state and handoff with approved requirements, schema rules, validation and Captain acceptance evidence. #### Acceptance criteria and required tests - Audit all 30 exercise IDs against the authoritative equipment matrix; test each exercise's visible and absent controls, not just example cards. Validate schema vocabulary, measurement units, side semantics and equipment combinations. - Bodyweight-only hanging knee raises, afternoon holds and daily hang show no external-load input. Vest-only exercises show no dumbbell or barbell inputs; handles never add resistance. Straight-bar support has a schema/control test without a seeded assignment. - Bulgarian split squats and all four specified mixed leg exercises support separate vest and dumbbell values. Different sets and EMOM minutes retain different loads after save/reload/date navigation, including explicit zero. Dumbbell counts and bar-inclusive totals produce correct saved external load. - Rep exercises show reps or reps per side as appropriate; timed exercises show seconds or seconds per side without requiring reps. Carry distance is supported only when relevant metadata selects it. Finger-hang duration remains unspecified as a target. - EMOM supports ten minute-by-minute rep/load entries, partial rounds and derived totals. Legacy aggregate EMOM records remain aggregate, available without invented minute allocations. No default targets become actuals; mixed-load volume, if calculated, uses the sum of each minute's reps times its own load, never total reps times one assumed weight. - Completion follows successful explicit Save, not a separate checkbox: fully filled valid rows complete, incomplete rows stay drafts. Partial records survive reload; previous-session prefills and next-set defaults do not mark work complete or write records on browsing. - Daily hang attempts preserve actual seconds independently, compute longest and cumulative totals, and compare the continuous target to the longest attempt. Editable goal persists independently; unilateral isometric logging requires neither reps nor invented duration targets. - Metadata/prescription changes, reseeding and upgrades leave existing actuals and historical load semantics unchanged. Test old total-only and component sets/EMOM, v1 hang-goal-only database and v2 database, unknown historical equipment, blocked/unavailable storage and failed transaction rollback. No legacy total is decomposed or per-minute load fabricated. - Versioned JSON round trips restore both old and new records and relevant definition/prescription context; old versions are accepted through explicit adapters and invalid/unsupported input leaves data unchanged. No claim that old app binaries can read new records is required. - Keyboard and screen-reader labels remain useful despite reduced repeated visible text. Verify mobile (including 320px) and desktop layouts without horizontal scrolling, expanded details, errors, mixed equipment, many sets and EMOM rows. - Preserve exercise order/ranges/optional state, Monday/Friday empty stretch headings, date/period navigation, clock, storage errors and existing recording. Timer tests follow the approved timer decision. Run full `npm test`, lint, build, context validator and `git diff --check`; review diff against the confirmed base; perform mobile/desktop browser QA and obtain Captain validation before Complete. #### Inspected implementation and likely affected files - `src/data/exerciseDefinitions.json`: currently only IDs/names/categories; add equipment, measurement, support-role and version metadata. - `src/data/initialRoutine.json`, `src/data/index.js`, `src/data/README.md`, `src/data/initialRoutine.test.js`: versioned prescription seed (now v8), target/load separation and assignment invariants. - `src/App.jsx`, `src/StrengthEntryEditor.jsx`, `src/HangGoalEditor.jsx`, `src/routineView.js`, `src/strengthLoad.js`, `src/styles.css`: exercise cards, metadata selectors, reusable set/minute/attempt fields, details and responsive layout; add focused domain/components as needed rather than hardcoding exercise IDs. - `src/localDatabase.js`, `src/strengthStorage.js`, `src/hangGoalStorage.js` and their tests: versioned reads/writes, new performance shapes, compatible prior-session queries, historical context and overrides. Legacy strength validation retains repetition sets, weight-only `load-sets` and aggregate EMOM. New PerformanceEditor/model/storage support actual duration/side/attempt/completion/minute data from metadata. The old editor remains available only for explicitly editing original-format records. - `src/App.test.jsx`, `src/StrengthEntryEditor.test.jsx`, `src/routineView.test.js` and new focused metadata/storage/serialization tests. - Documentation listed above; future TASK-009 consumes the serialization contract. No export/import implementation exists today. #### Migration implications and proposed implementation sequence 1. Approve unresolved timer/Git decisions and UI brief; reconcile task ownership below. Establish a safe dedicated task worktree from the agreed base without losing current uncommitted prerequisites. 2. Define separate versioned exercise capabilities, prescriptions and performance records. New records retain actual units, side, equipment/count and sufficient definition/prescription context for historical interpretation. Review whether old preset weights remain optional prescription information; never use them to generate actual loads or capabilities. 3. Add metadata and audited seed updates, then a versioned performance reader/writer with legacy adapters. The initial baseline was IndexedDB v2. The implemented v3 adds performanceEntries and its compound index while retaining routineOverrides and strengthEntries verbatim. New detailed records use schemaVersion 1 and saved definition/prescription snapshots. Test before integrating UI. 4. Build reusable card/measurement/load/row/detail components; add minute and duration flows plus compatible prior-session lookup. Apply the focused layout proposal, preserving the existing visual language. 5. Add JSON codec/version compatibility fixtures, regression tests and browser QA; update context and hand off an exact testable representation. No repository testtask adapter currently exists; recheck at handoff. #### Dependencies, decisions and implementation gate - TASK-014 is Complete following Captain acceptance on 2026-11-04; its committed dated-load implementation in codex 669bfc3 is the technical baseline. - TASK-015 owns metadata, applicable per-side/duration/hang logging, completion and previous-session suggestions requested here, replacing the overlapping portions of TASK-005 when engaged. TASK-005 retains notes, optional body weight and other unrelated extended recording. TASK-004 supplies reviewed detail content; TASK-015 can provide the expandable shell and honest missing-content placeholders without waiting for TASK-011's final illustrations. TASK-008 consumes the new performance shapes; TASK-009 owns backup UI/import policy. Do not duplicate those features. - **Timer decision resolved (2026-11-04):** Captain selected timer-free behavior. Keep only the wall clock and prescribed rest/EMOM guidance; no timers/audio return (ADR-018). - **Git decision resolved (2026-11-04):** Captain authorized committing existing work and merging it into local `codex` before implementation. Create TASK-015 branch from that clean integration baseline per ADR-018 and WORKFLOW. Do not merge TASK-015 without further authority. - The current explicit request resolves earlier planning questions: minute-by-minute EMOM is required (derived totals supplement it; existing aggregate history stays aggregate); isometric duration means actual logging, not prescribed hold targets; daily hang goal means continuous; dog walks are bodyweight-only classification context without authorized restoration of removed app screens/records. No fixed vest values enter definitions. These do not require repeated approval. - Non-goals: unrelated redesign, new exercises, fabricated technique content/assets, dog-walk UI/logging, calorie calculations, routine editor, full history/backup UI, volume per minute, merge or deployment. - Skills applied: Frontend UI Design, Webapp Feature, Frontend Visual QA availability check and Code Review of tracked/untracked task changes against codex. Browser inventory remained empty; no visual pass is claimed. - Captain correction (2026-11-04): Remove all completion checkboxes; successful Save completes fully filled valid rows and retains incomplete drafts. Suggestions, browsing and failed saves do not create achieved performance. - Captain correction (2026-11-04): Remove the count input from all exercises; retain definition defaults for new rows and preserve recorded historical counts internally for load calculations. - Earlier Captain correction (2026-11-04): Floor flys always use two dumbbells. Hide their count control, retain kilograms per dumbbell and a fixed count of two in new records/calculations. Preserve original snapshot counts in existing records. - Implementation evidence (2026-11-04): Metadata and seed v8, reusable detailed editor, left/right actuals, minute EMOM/conventional sets, load/count and completion, hang totals, compatible previous-session lookup, expandable details, additive IndexedDB v3 and JSON adapter v2/v1 are implemented. Original stores/records remain intact. Reviewed against codex 669bfc3; no unrelated theme/history/backup UI changes. All 129 tests across 11 files, lint, build, context validation (0 warnings) and whitespace checks pass on 2026-11-04. Exact Captain checklist is in HANDOFF. Captain subsequently authorized task commit/merge to local codex on 2026-11-04; no push/deployment authorized. - Completion evidence (2026-11-04): Captain explicitly confirmed “task complete” after removal of all dumbbell-count inputs and completion checkboxes. Final checks passed 129 tests across 11 files, lint, build, context validation and whitespace checks. Agent browser QA was unavailable; Captain acceptance is recorded without claiming a separate agent visual pass. Captain subsequently explicitly authorized committing and merging this accepted task into local codex on 2026-11-04. No push or deployment is authorized. ### TASK-016: Apply a consistent dark theme - Status: Accepted for planning; awaiting implementation instruction - Requested: 2026-11-04 - Objective: Make the application consistently dark themed while preserving existing layout, navigation and workout behavior. - Scope: Dark page backgrounds and layered card/panel surfaces; readable primary/secondary text; coordinated borders, green accents, buttons, links, badges, form inputs and native controls. Cover selected, hover, focus, disabled, loading, saved/success and error states. Use shared CSS color tokens and compatible React-Bootstrap theme settings rather than scattered overrides. Retain the existing typography, spacing and component hierarchy. - Acceptance criteria: All existing Today, Week, History, Plan and Settings surfaces use the dark palette consistently, including exercise cards, strength-entry rows, hang-goal controls, header and clock. No unintended light panels or inputs remain. Text meets WCAG AA contrast (4.5:1 normal text, 3:1 large text); essential control boundaries and focus indicators meet 3:1 against adjacent colors. Selected/error/completion states are distinguishable without relying solely on color. Keyboard focus, touch targets and readability remain clear on mobile and desktop; no new horizontal overflow. Navigation, Morning/Afternoon switching, recording, date isolation and goal persistence remain operational. Dark theme applies consistently on initial load and reload, including when the OS uses a light theme. - Relevant areas: `src/styles.css`, `src/main.jsx`, `src/App.jsx`, shared React-Bootstrap configuration, strength/hang editors where required, existing interaction tests and `docs/SPEC.md`. No workout data or IndexedDB migration is expected. - Proposed approach: Inspect current UI and approve a restrained dark palette; centralize semantic colors for surfaces/text/borders/accent/status/focus; apply the supported Bootstrap dark theme plus local tokens; inspect all controls and states in the browser and correct contrast or native-control mismatches. Preserve existing green identity where contrast permits. - Required validation: Mobile (including 320px) and desktop browser review across all sections and both workout periods; keyboard/focus and measured contrast checks; input, disabled, saved and error-state review; existing test suite, lint, build, context validation and `git diff --check`; Captain visual acceptance before Complete. Avoid tests that merely duplicate CSS declarations. - Dependencies or blockers: Use the approved codex base and a clean dedicated task branch under WORKFLOW; TASK-015 currently occupies the sole worktree. Coordinate styling with TASK-015; neither task requires implementing the other's behavior. No new app behavior is authorized here. - Non-goals: New layouts, unrelated UX redesign, light-mode variants, a theme picker, OS-theme switching, new settings or persistent preferences, and changes to workout definitions/storage/timers. - Decisions required before implementation: Review the exact palette through the UI brief; default scope is a single dark theme. A light/dark switch would require separately approved scope. - Recommended skills when engaged: Frontend UI Design → Webapp Feature → Frontend Visual QA. This record does not authorize implementation. ### TASK-017: Replace EMOM tables with one weight and one total-reps input - Status: Complete — Captain explicitly accepted on 2026-11-07 - Engaged: 2026-11-07 on `task/017-emom-totals`, base `codex` / `9c0e820`. - Requested: 2026-11-07. Captain reiterated that the EMOM minute table is unwanted and only one weight input and one total-reps input are needed. - Objective: Restore simple aggregate EMOM entry under ADR-020, consistent with the original ADR-014 intent. - Scope: Replace the normal EMOM input table with exactly one weight (kg) input and one total-reps input per exercise/session. Remove minute rows and the minute/conventional-set mode switch. Keep prescribed protocol guidance, explicit Save, validation and dated local persistence. - Acceptance criteria: Every EMOM exercise has exactly these two performance inputs, with no minute table, repeated fields, add-set controls, completion checkboxes or mode switch. Values survive Save, reload and date/period navigation with correct isolation. Zero weight is valid; blanks remain missing rather than becoming zero or targets. Browsing writes nothing; invalid values and storage failures remain visible. Existing aggregate and detailed minute records retain original values and semantics without silent conversion, overwritten history, fabricated uniform weights or double-counting. Regular sets, non-EMOM equipment controls, hangs, navigation and the wall clock retain existing behavior; timers remain absent. - Relevant areas: `src/PerformanceEditor.jsx`, `src/performanceModel.js`, performance/legacy storage adapters and tests, `docs/SPEC.md`, `docs/TASK-015_UI.md` and context documents. - Required validation: UI assertions for exactly one weight and one total-reps input and no EMOM table/mode switch; IndexedDB save/reload/date-isolation tests; historical aggregate/minute compatibility and zero/blank/error regressions; full tests, lint, build, context validation and `git diff --check`. Verify keyboard use and 320px/desktop layout. Captain manual acceptance is required before Complete. - Non-goals: Changes to the training programme or other exercise entry, advanced/per-minute entry, timers, history/progress screens and unrelated refactors. - Dependencies or blockers: TASK-015 is integrated on local `codex` (inspected HEAD `9c0e820`). ADR-020 supersedes its minute-entry requirements and ADR-017's corresponding clause. During implementation define compatible persistence and historical access without silently collapsing varying historical loads. TASK-008 must support new aggregates alongside preserved minute history without double-counting. No additional input fields are authorized. - Implementation evidence (2026-11-07): Two-input EMOM form, separate aggregate key/format, preserved original editors, aggregate-only suggestions and JSON v3 with v1/v2 import compatibility implemented. 139 tests across 12 files, lint and build pass; context/whitespace checks and refreshed testtask snapshot are recorded in HANDOFF. Reviewed against codex / 9c0e820. Browser UI automation inventory is empty; real 320px/desktop and keyboard visual checks remain for Captain. No commit/merge performed. #### Accepted TASK-017 validation correction — one input for both sides (2026-11-07) - Status: Complete — included in Captain acceptance on 2026-11-07. - Scope: All exercises currently asking separate left/right reps or seconds, including Single-arm preacher curls over a chair, use one reps/seconds input per set labeled as applying to each side. Entering or clearing it updates both sides together. Keep equipment inputs and prescribed side guidance. - Acceptance: No separate left/right input controls remain. Save/reload, multiple sets, zero/blank drafts and compatible suggestions work. Previously recorded unequal or partial left/right values remain intact on read and untouched Save, shown as read-only history; entering a replacement explicitly applies it to both sides. No schema migration or programme changes. - Validation: All-exercise control matrix; preacher-curl and hold entry/reload; historical unequal/partial preservation; storage integration; full tests/lint/build/context/whitespace and refreshed TASK-017 test snapshot. Captain acceptance remains required. - TASK-017 completion evidence (2026-11-07): Captain explicitly stated “task complete. commit all and merge to codex”, accepting EMOM totals and shared per-side inputs. Final automated verification: 143 tests across 13 files, lint, build, context validation and whitespace checks pass. No independent agent browser visual pass is claimed. Captain authorized committing all pending task changes and local codex integration; no push/deployment. Work was done on a dedicated task branch in the original worktree, not a separate implementation worktree; this workflow deviation is recorded, not retroactively corrected. Testtask execution belongs to Captain.