Complete TASK-005 dated notes and daily body weight

This commit is contained in:
rob
2026-11-11 14:15:08 +00:00
parent be0ff2b2e4
commit e3bd365add
17 changed files with 512 additions and 22 deletions
+17 -2
View File
@@ -4,7 +4,7 @@ This file holds accepted, scoped implementation work. It is not a speculative ba
## Proposed implementation sequence
Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001–003, TASK-012–018 and TASK-020 are Complete. TASK-006 is Superseded; TASK-005 and TASK-008 are Accepted. TASK-019 is Complete following Captain acceptance on 2026-11-11; its persistent reconstruction is integrated, while the original `/tmp` source remains missing. Remaining tasks are Proposed. Completed application work is integrated in local codex, including reconstructed TASK-018 compact inputs within TASK-016. Implement one task per isolated branch/worktree under `docs/WORKFLOW.md`. Preserve the authoritative programme and historical storage semantics.
Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001–003, TASK-012–018 and TASK-020 are Complete. TASK-006 is Superseded; TASK-008 is Accepted; TASK-005 is Complete following Captain acceptance and explicit commit/local codex merge authorization. TASK-019 is Complete following Captain acceptance on 2026-11-11; its persistent reconstruction is integrated, while the original `/tmp` source remains missing. Remaining tasks are Proposed. Completed application work is integrated in local codex, including reconstructed TASK-018 compact inputs within TASK-016. Implement one task per isolated branch/worktree under `docs/WORKFLOW.md`. Preserve the authoritative programme and historical storage semantics.
### TASK-001: Application foundation and responsive shell
@@ -52,7 +52,7 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001–003, TA
### TASK-005: Extended workout recording
- Status: Accepted
- Status: Complete — Captain explicitly stated “task complete” on 2026-11-11, satisfying the acceptance gate. Source `.task-worktrees/task-005`, branch `task/005-notes-bodyweight`, base codex `be0ff2b`. Captain subsequently explicitly authorized “commit and merge”; local codex integration includes the accepted notes/body-weight scope and documentation.
- 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.
@@ -61,6 +61,8 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001–003, TA
- 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.
- Engaged remaining scope: session notes by date/period, dated exercise notes by date/period/exercise and optional body weight once per date (kg, shared across periods). Separate explicit Save/Clear draft actions, additive storage and backup compatibility. Existing recording capabilities are preserved, not rebuilt. UI/contract brief: `docs/TASK-005_UI.md`.
### TASK-006: Timers during and between exercises
- Status: Superseded by TASK-014
@@ -370,3 +372,16 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001–003, TA
- TASK-019 completion (2026-11-11): Captain explicitly stated “task-019 complete. commit and merge”, satisfying the acceptance gate and authorizing commit/local codex integration of the validated persistent reconstruction. Existing 180/180 tests across 15 files with one worker, lint/build, source preflight and base diff review remain valid; completion changes only context. No independent agent browser review claimed. All completed available task work is integrated after this merge. Home's duplicate pre-acceptance context is saved in a safety stash rather than overwritten. No push/deploy, worktree/branch/stash removal, registration pruning or Captain-session cleanup authorized.
#### TASK-005 implementation evidence — 2026-11-11
- Delivered remaining accepted scope: optional date/period session notes, dated exercise observations and optional date-only positive decimal kg body weight shared across periods. Separate optional disclosures/forms reuse the existing dark theme and compact numeric width; explicit Save, Clear-draft/Save removal, unsaved/saved/error/retry states. No note/body-weight action modifies or completes performance. Existing navigation discards unsaved drafts; keyed forms/cancelled reads prevent stale-date/period feedback.
- Additive IndexedDB v4 adds workoutDetails without rewriting goal, legacy or detailed stores. Strict schemaVersion 1 observation validation; JSON v4 export and v1–v4 import. Old-format replacement preserves new observations absent from old files; v4 replacement/import atomicity and rollback tested. Old app builds cannot open the upgraded database/read new backups; no downgrade claimed. No new dependencies.
- UI/design and contract are recorded in TASK-005_UI.md, SPEC's TASK-005 contract and ADR-022. Existing measurement/load/hang/Save/suggestion behavior retained; no history/plan/backup UI, illustration work, timers, programme changes or unrelated refactor.
- Validation: 206/206 tests across 18 files with `npm test -- --maxWorkers=1`, lint, final build, no-launch home `--check 005`, context validation (0 warnings), whitespace and base diff review against `be0ff2b` pass. New tests cover upgrades from older DBs and blocked connections, literal history preservation, valid/invalid input, backup round trips/old imports/rollback, save/clear/reload, isolation, empty sessions, read/write failures and async read/save races. Original storage tests retain preservation checks with v4 expectations.
- Captain alone runs `./scripts/testtask.sh 005`. Desktop/320px, keyboard/focus, disclosures, decimal/native controls, save/reload and period/date isolation require Captain acceptance before Complete. No independent agent browser/console/network pass, runner/server/browser/manual snapshot launch or session cleanup claimed. No task commit/merge/push/deploy authorized.
- TASK-005 completion evidence (2026-11-11): Captain explicitly confirmed “task complete”, accepting the delivered notes/body-weight scope. Agent validation remains 206/206 tests across 18 files with one worker, lint/build, source preflight, context/whitespace and base diff review. No independent agent visual pass claimed. No application changes after acceptance. Commit/merge/push/deploy and session/worktree cleanup remain unauthorized; accepted implementation is preserved in its persistent source.
- TASK-005 integration authorization (2026-11-11): After explicit acceptance, Captain instructed “commit and merge”. Commit the validated candidate on task/005-notes-bodyweight and fast-forward local codex from be0ff2b. No application changes since acceptance; prior 206-test/lint/build evidence remains valid. Preserve duplicate home context in a safety stash before merging. No push/deploy, source/snapshot/worktree/stash removal or testing-session cleanup authorized.