Complete TASK-008 history and progress

This commit is contained in:
rob
2026-11-11 17:54:19 +00:00
parent e3bd365add
commit bf9c3ce320
16 changed files with 878 additions and 17 deletions
+8
View File
@@ -9,6 +9,14 @@
Code/configuration take precedence over this summary.
## Active TASK-008 — 2026-11-11
Captain engaged Frontend UI Design → Webapp Feature with the lock-on defaults. Source `.task-worktrees/task-008`, branch `task/008-history-progress`, base codex `e3bd365`. Home app stays on codex with context only; all History application/spec/design/tests remain in the isolated source. Status: Complete following Captain’s explicit “task complete” acceptance on 2026-11-11; Captain subsequently authorized local commit/merge; no push/deploy.
Candidate replaces History's placeholder with read-only newest-first saved dates, date/period filters, row actuals/notes/daily weight, partial/draft/observation labels, original-record disclosures and compatible exercise/body-weight charts/values/comparisons/recorded highs. Saved metadata and completed rows govern math; known zero remains distinct from unavailable values. EMOM totals supersede coexisting minute/set records even when drafts; legacy period/completion/definition are not inferred and duplicate representations are excluded. Legacy load-field modes and changed actual dumbbell counts stay separate in comparisons. Continuous/cumulative hangs remain independent; body weight/timed work contribute no rep-load volume.
All history reads use a consistent validated readonly transaction; no stored data/schema/backup/dependency/programme change. UI uses the existing dark theme; row details mount on date expansion and chart date/scale text remains regular-size HTML. Design/math contract: candidate TASK-008_UI.md, SPEC TASK-008 section and ADR-023. Final full suite passes 234/234 tests across 22 files with one worker; final lint/build, source preflight, context/whitespace and base diff review pass. Full evidence is in HANDOFF. No independent browser/visual/keyboard pass, runner/server/browser/manual snapshot or session cleanup claimed. Captain acceptance and local integration authorization are recorded.
## Accepted TASK-005 integration — 2026-11-11
Captain engaged Frontend UI Design → Webapp Feature for the briefed remaining TASK-005 scope. Captain explicitly accepted TASK-005 with “task complete” on 2026-11-11. Status: Complete. Captain subsequently explicitly authorized commit/local codex merge. Implementation is preserved in persistent `.task-worktrees/task-005`, branch `task/005-notes-bodyweight`, base `be0ff2b`. TASK-005 is integrated into local codex under Captain’s subsequent “commit and merge” instruction; verify resulting commit/refs with Git. No push/deploy authorized.
+11
View File
@@ -381,3 +381,14 @@ Retain the current left/right storage fields and historical semantics. Explicit
- Status: Accepted through Captain's engagement of the briefed TASK-005 scope, 2026-11-11.
Session notes belong to date/period, exercise notes to date/period/exercise, and body weight to the date shared across both periods. These are optional actual observations, stored separately from performance and from permanent exercise-library guidance. Saving them does not complete sets, copy prescription targets or change load/volume. Use explicit Save; Clear edits the draft and Save confirms removal. Notes are plain text (4000-character limit); body weight is finite positive decimal kilograms. Preserve prior records via additive storage and old backup readers. Technical schema/version and exact UI are specified in TASK-005_UI.md.
## ADR-023: Read-only history and compatible recorded progress
- Status: Accepted through Captain engagement of the TASK-008 briefing defaults, 2026-11-11.
History is read-only, newest first, with date/period filters, saved row details and local accessible charts/values. Counts refer to recorded completed/draft rows, not completion of the whole prescribed workout. Notes-only/weight-only dates are observations. Calculations use saved actuals/metadata, with explicit zero, missing/partial/overflow distinctions; no normalized performance, timers, coaching, calories or streaks.
Prefer the current EMOM total when it coexists with original minute/set data, including when current data is a draft. Preserve other representations separately and exclude them from totals. Legacy date/exercise records have no saved period/definition/completion: show original saved values without inferring those fields; if detailed data exists for the same date/exercise, keep the legacy record separately excluded to avoid double-counting. Otherwise its original total load/reps remain separately usable as earlier recorded volume, with unknown weight-only volume clearly labelled.
Compare detailed series only within exercise, period, format, saved measurement/equipment/fixed-count signature and actual dumbbell-count modes. Legacy series are separate by original format and recorded load-field modes. Row-based volume excludes body weight and timed-only work. Highest recorded metrics are within a compatible series, with partial labels; body weight has no preferred/best direction. Unknown/invalid storage fails visibly rather than silently manufacturing data. Storage schema and backup contracts remain unchanged.
+29 -12
View File
@@ -3,24 +3,41 @@
> Replaceable snapshot; repository code and maintained context take precedence.
- Updated: 2026-11-11.
- TASK-005: Complete. Captain explicitly accepted (“task complete”), then separately authorized “commit and merge”.
- Source: `.task-worktrees/task-005`, branch `task/005-notes-bodyweight`, base codex `be0ff2b`; target local `codex`. Verify final commit/refs with Git.
- All available completed task implementation is integrated after this merge. No push/deployment or worktree/session cleanup authorized.
- Active: TASK-008 History and progress. Captain engaged Frontend UI Design → Webapp Feature with the lock-on defaults; Complete following Captain’s explicit “task complete” acceptance on 2026-11-11. Captain subsequently authorized commit and local codex merge.
- Source: `/home/rob/projects/exercise-tracker/.task-worktrees/task-008`, branch `task/008-history-progress`, base codex `e3bd365`.
- Home remains codex `e3bd365` with active task/current-state/handoff context only. Application, design/spec/decision and tests stay in the 008 source. Other implementation worktrees/stashes/missing registrations are preserved. No task commit/merge/push/deploy authorized.
## Delivered and validated
## Delivered
Optional date/period session notes, dated exercise observations and one daily positive decimal kg body-weight value shared across periods. Compact disclosures/forms retain the dark UI and existing workout hierarchy. Independent explicit Save; Clear edits only the draft, Save confirms removal. Notes are plain text with a 4000-character limit. Read failures prevent overwriting and offer retry; failed saves retain drafts; keyed forms isolate late reads/save feedback. Navigation follows existing discard-of-unsaved-draft behavior. Notes/body weight never complete or modify performance or previous-session suggestions.
Real History replaces its placeholder: From/To date and recorded-period filters, Refresh/Retry, Clear filters, newest-first date disclosures, read-only saved actuals/notes/daily body weight, compatible exercise series/metric selection, latest vs previous values/change, recorded highs, and separate body-weight trend. SVG plots have readable HTML date/scale labels and accessible exact-value lists; missing points break lines and one point does not invent a comparison. Date row details mount only when opened. Existing header/clock/navigation and dark styling remain.
IndexedDB v4 adds workoutDetails and leaves original goal/legacy/detailed records intact. JSON v4 exports and v1–v4 imports validate and transact atomically. Old-format replacement preserves new observations absent from old envelopes; v4 replacement covers all four stores. Older app builds cannot open v4 DBs/read v4 backups; no downgrade claimed. No dependencies, programme, timers, history/routine editor/backup interface or reviewed content/illustrations added.
Counts describe recorded completed/draft rows, never completion of a whole prescribed workout. Notes-only/weight-only observations are labelled. Calculations use saved definitions, actual loads/counts and completed rows; body weight/timed work have no rep-load volume. Display the formula, raw per-row/known session totals, zero/partial/missing/overflow distinctions, longest continuous and cumulative hangs separately. Alternate representations are not double-counted: emom-total takes precedence even as a draft; originals remain in excluded disclosures. Legacy data has no period/definition/completion snapshot, so original totals are not reinterpreted. If detailed data exists on the same date/exercise, legacy stays at date level excluded; otherwise it is a separate Earlier records group. Legacy and changed measurement/equipment/format/count/load-field modes do not share detailed comparison series.
206/206 tests across 18 files pass with `npm test -- --maxWorkers=1`. Lint/final build, source preflight, context validation (0 warnings), whitespace and diff review against `be0ff2b` pass. Coverage includes upgrades from v1/v2/v3, blocked upgrades, original record preservation, backup round trips/old imports/rollback, input validation, save/clear/reload, empty sessions, date/period/exercise isolation, failures and async read/save races. No independent agent browser/console/network/desktop/mobile/keyboard review claimed; Captain acceptance is recorded. Application implementation unchanged during acceptance/integration preparation, so checks are not rerun solely for completion documentation.
One consistent readonly transaction validates performanceEntries/strengthEntries/workoutDetails. Invalid/unsupported data fails visibly without modification or silent empty success. No writes, schema/backup/dependency/programme changes, editing/deleting history, timers, coaching, calories or streaks. Date filters apply to daily weight; period filters do not split it.
Design: docs/TASK-005_UI.md. Scope decision: ADR-022. Storage/backup contract: TASK-005 section in docs/SPEC.md. PROJECT_OVERVIEW describes the integrated v4 architecture.
Design and math brief: docs/TASK-008_UI.md. Contract: TASK-008 section in docs/SPEC.md. Durable decision: ADR-023. Candidate overview describes History; home overview stays the integrated baseline until authorized merge.
## Git state and retained evidence
## Validation
All completed available implementation is integrated after TASK-005 merge; no unique uncommitted application work remains. Home and persistent task worktrees should be clean; verify before new work. Four named safety stashes preserve duplicate/older context/tooling from prior integrations, including home's pre-merge TASK-005 context. Applying them wholesale would restore stale documentation; retain pending Captain cleanup authority. Missing original `/tmp` registrations remain prunable evidence, not unmerged candidate code. No branches/worktrees/stashes/snapshots deleted and no Captain sessions stopped.
- Final full suite: 234/234 tests across 22 files pass with `npm test -- --maxWorkers=1`, including the final rendering and legacy weight-only UI cases. Earlier focused rendering/async checks also passed.
- Final lint/build and no-launch source preflight `--check 008` pass. Context validation: 0 warnings; whitespace and diff review against e3bd365 pass.
- New calculation/storage/UI/async coverage includes mixed/saved/asymmetric-side loads, bars, zeros, drafts/missing loads, timed work, continuous/cumulative hangs, duplicate representations, legacy unknowns, overflow, compatibility separation/order, notes/weight-only observations, readonly transaction/data preservation, invalid/unavailable storage, empty/loading/filter/detail/chart/retry/refresh and late-response cancellation. Existing tests are retained.
- No independent browser/console/network/desktop/mobile/keyboard review claimed. Captain explicitly accepted the candidate; TASK-008 is Complete. No independent agent visual review is claimed. No agent runner/browser/server/manual snapshot launch or session cleanup.
## Testtask
## Captain manual test
Captain alone runs/stops real sessions. From home, `./scripts/testtask.sh 005` still selects the persistent source and Node automatically; `--check 005` validates without launch. Snapshots remain separate under source `.test-worktrees` and must not be edited. Completion documentation may require the supported runner to refresh on Captain's next launch. No runner/browser/server/snapshot launched for integration.
From project home:
```bash
./scripts/testtask.sh 008
```
Expected source: `/home/rob/projects/exercise-tracker/.task-worktrees/task-008`. The isolated fresh profile initially has no history. Use Today/Week to save actual performance on two dates for the same exercise/period, including zero external weight and a partial later entry. Enter session/exercise notes and daily weight on suitable dates. In History:
1. Confirm newest-first dates, completed/draft/notes-only/weight-only labels; expand dates and check exact reps, component loads/counts, durations and notes. Browsing must not save or change entries.
2. Filter date range and Morning/Afternoon, check an invalid/reversed range and empty matches, Clear filters and Refresh. Daily weight is shared and follows date range rather than period.
3. Select a compatible exercise/metric; compare latest/prior values and recorded high with original actuals. Volume formula/raw totals must match completed actuals. Two saved sessions enable a comparison; one point remains explicitly one point. Open exact recorded values.
4. Save two afternoon hang attempts (e.g. 60 and 75 sec): longest is 75, cumulative is 135, not a continuous 135-sec achievement. Check daily weight has its own chart and is excluded from load volume.
5. At desktop/320px, check readable chart labels/scales/values, wrapping rows/notes/filter labels, no horizontal overflow, keyboard focus/order, date and progress selectors, disclosures and existing navigation/clock.
Legacy/minute overlap, weight-only originals, failure/cancellation and arithmetic overflow have automated fixtures; do not claim manually seeded old data or fault injection. Captain alone launches/stops real testtask. Do not edit snapshots. TASK-008 is accepted/Complete and authorized for local commit/merge.
+1 -1
View File
@@ -8,7 +8,7 @@ This is a newly initialized repository. The user calls the planned product "Work
Workout Tracker is a personal local workout app with actual-date navigation, exclusive Morning/Afternoon views, a persistent local-time clock and no workout timers. Seed v8 contains 30 versioned exercise definitions with equipment/measurement metadata. Reusable logging shows only relevant reps, durations and equipment-specific loads, with one shared measurement input for per-side work, supports completed rows, partial drafts and explicit previous-session suggestions offered only when compatible earlier completed data exists, and records EMOM with one weight and one total-reps input. Earlier minute records remain separately accessible. Daily hangs have an editable continuous target, independent attempts, longest continuous and cumulative totals. Monday/Friday stretch routines have headings but no invented exercises. Dog walks remain excluded; their latest classification is bodyweight-only reference context.
Exercise definition, workout prescription and dated performance are independent. New performance retains definition/prescription snapshots, while original aggregate, rep-set and weight-only history stays readable separately. Optional dated session/exercise notes and one daily body-weight entry in kg use independent Save actions; body weight is shared across both periods. Exercise details expose available programme notes and placeholders; reviewed technique/muscle content and local illustrations remain future work. The application uses a single dark green theme with coordinated Bootstrap/native controls and compact numeric inputs. History/progress screens, routine editing, backup interface and offline reload remain separate tasks. SPEC defines behavior and WORKOUT_ROUTINE the authoritative initial programme.
Exercise definition, workout prescription and dated performance are independent. New performance retains definition/prescription snapshots, while original aggregate, rep-set and weight-only history stays readable separately. Optional dated session/exercise notes and one daily body-weight entry in kg use independent Save actions; body weight is shared across both periods. Exercise details expose available programme notes and placeholders; reviewed technique/muscle content and local illustrations remain future work. The application uses a single dark green theme with coordinated Bootstrap/native controls and compact numeric inputs. History provides read-only newest-first recorded sessions, date/period filters, original record disclosures, notes/body weight and compatible exercise/body-weight trends with exact recorded values. Routine editing, backup interface and offline reload remain separate tasks. SPEC defines behavior and WORKOUT_ROUTINE the authoritative initial programme.
## Technology and architecture
+11
View File
@@ -366,3 +366,14 @@ This current contract supersedes earlier database/backup version descriptions fo
- IndexedDB v4 adds `workoutDetails`, preserving all prior stores/records. Keys: `date:period:session-note`, `date:period:exerciseId:exercise-note`, `date:body-weight`. Values have `schemaVersion: 1`, `kind`, `date`, applicable `period`/`exerciseId` and either `text` or `weightKg`. Validate identity, record fields, values and key consistency.
- JSON exports use envelope v4 with `workoutDetails`; imports accept v1/v2/v3/v4. Older envelopes contain no observation store; even an explicit old-format replacement preserves existing observations rather than inferring their deletion. V4 replacement covers all four stores atomically. Validate all records before mutation; duplicate/non-replacing import failures roll back all stores. Older app builds cannot open a v4 database or read v4 backups; retain this app version for restoring new data. No downgrade/rewrite of historical records and no backup UI in this task.
- UI composition and state/accessibility/responsive specification: `TASK-005_UI.md`. Existing programme notes remain distinct from personal observations. History charts remain TASK-008; backup interface remains TASK-009.
## TASK-008 history contract — 2026-11-11
History is now read-only, replacing its placeholder, with From/To date filters (initially all dates), saved-period filter, Refresh/Retry and Clear filters. Dates are newest first; row details mount on disclosure expansion. Show saved names/measurement/equipment and original actual values, completed/draft row counts, notes and daily weight. Counts never assert whole-programme session completion. Weight-only/notes-only dates do not become completed workouts. Body weight follows date range only because it is shared across periods.
A consistent readonly transaction validates keys/records across performanceEntries, strengthEntries and workoutDetails; no writes/migrations or backup changes are added. Current emom-total wins over original minute/set representation for the same date/period/exercise even if it is a draft. Preserve original rows in a separate disclosure excluded from current totals. Legacy records have only date/exercise identity and original recorded totals: period, completion and saved definition are unknown. If any detailed record exists for that date/exercise, keep the legacy data in a separate date-level disclosure and do not count it. Otherwise group it under Earlier records (period not saved), retaining original rep/load calculation; weight-only legacy data has no inferred reps or volume.
Detailed external-load volume sums completed actual reps × external kg from saved vest, dumbbell kg-each × saved count and bar totals. Reps-per-side include both saved side values, with originals shown. Timed/distance work and body weight contribute no rep-load volume; drafts are excluded. Show known completed-row totals with partial/missing-data qualifiers; arithmetic outside supported finite/safe-count ranges is unavailable, not zero. True zero remains valid. Original legacy externalKg is never reinterpreted through current definitions. Do not combine alternate representations.
Progress groups exercise/period/format/saved measurement-equipment-fixed-count signature and actual dumbbell-count modes. Legacy groups stay separate by original format/load-field modes. Offer compatible previous/current values, change, recorded high and metric selection (reps, known volume, highest actual external load, duration/distance, longest/cumulative hang as appropriate). Partial records remain labelled; no adjustment for number of sets or estimate of missing performance. Hanging exercise IDs remain independent. Daily weight has a separate date-only trend with no preferred direction. Local SVG plots have normal-sized HTML date/scale labels and accessible exact recorded-value lists; missing values break lines and one point does not invent a comparison. No new dependencies, editing/deleting history, backup UI, recommendations, calories, streaks or time rates. UI/acceptance brief: TASK-008_UI.md; durable choices: ADR-023.
+25
View File
@@ -0,0 +1,25 @@
# TASK-008 UI and calculation brief
2026-11-11. Extend the existing dark UI after Captain engaged Frontend UI Design → Webapp Feature with the lock-on defaults. Base e3bd365; source .task-worktrees/task-008, branch task/008-history-progress.
## Composition and interaction
History replaces its current placeholder. Retain header/clock/navigation. A history panel contains date From/To filters (initially all dates), period filter (all, Morning, Afternoon, earlier records whose period was not saved), Refresh and Clear filters. Invalid date range has associated error feedback. Below, newest-first recorded dates use semantic disclosures (row details mount only while a date is open, keeping long histories compact to render) showing read-only sessions, actual rows, notes and daily body weight. No edit/delete/automatic save actions. Empty store and no filter matches are distinct; loading hides stale data; errors offer retry. Reload on re-entering History or explicit Refresh, with cancellation after unmount/retry. Filters affect sessions and exercise progress; body weight follows date range only because it is date-level/shared across periods.
Exercise progress uses a select for compatible series and a metric select: completed reps, completed-row volume, highest recorded external load, recorded duration/distance, longest continuous hang/cumulative hang as applicable. Show latest vs previous compatible recorded date with explicit values/difference, not coaching. Simple locally rendered SVG chart has labelled units/date range and an accompanying accessible recorded-values list with partial-state labels. Missing points break lines rather than implying zero. One record shows a dot and no fabricated comparison; no records show an explanation. Daily body weight has its own chart/values, one point per date. Exercise series show the highest recorded metric within that compatible group (detailed completed rows or separate original legacy saved totals, with partial records labelled); body weight has no “best” direction. Chart scales/dates use normal HTML text rather than tiny scaled SVG labels on mobile. No new chart dependency, network, 1RM/estimated performance, calories, streaks or time-based rates.
Desktop filters wrap in a bounded row; disclosures and progress have intrinsic responsive widths. Below 576px filters stack, controls/actions keep 44px heights, row details/notes wrap, and charts scale within the container at 320px. Use semantic field labels, details/summary, headings, time, lists and focus outlines; selected options/partial/error meanings do not rely on color. Reuse Bootstrap Form/Button and existing tokens; do not redesign other screens. No independent browser validation claimed.
## Data and math contract
Read a consistent readonly transaction across performanceEntries, strengthEntries and workoutDetails. Validate stored keys/values; invalid data causes explicit error rather than silently manufacturing/skipping totals. No writes, schema upgrades beyond current v4, backups changes or new dependencies.
Group detailed entries by date/period/exercise. If an emom-total exists, it is current even if it is a draft; original minute/set data remains separate, never summed. Earlier legacy date/exercise records have no period/definition snapshot/completion flag. If any detailed representation exists for that date/exercise, preserve the legacy record at date level and exclude it from totals (do not infer its period). Otherwise show a separate Earlier records session: original externalKg × saved reps/total reps, explicitly labelled legacy saved rows with unknown completion; weight-only records have no inferred reps/volume. Do not reinterpret legacy load components/current seed definitions. Legacy series remain separate from detailed series.
Detailed calculations use only saved definition, actual load and completed rows. Reps-per-side sums both saved side values; show side semantics and original values. External kg sums recorded vest, dumbbell kg-each × saved count, and bar totals; body weight is excluded. Volume = sum(completed reps × recorded external kg), never timed/distance-only work. Explicit zero is valid. Draft/unknown loads/reps and arithmetic overflow must remain distinguishable from a true zero; show known completed-row totals with missing-data/partial qualifiers. Duration-only work has no rep-load volume. Longest continuous and cumulative attempts are distinct; daily hangs and finger-hang exercise IDs never combine. Session completion labels describe recorded rows, not completion of the whole prescribed workout. Notes-only/weight-only dates are not completed workouts.
Comparison groups use exercise ID, saved period/format, measurement/equipment signature and actual dumbbell-count modes. Changed measurement/equipment/count/legacy representation does not share a series. Partial sessions may show their known completed-row metrics but remain explicitly labelled; no normalized workload or invented missing actuals. Saved names/snapshots take precedence; legacy IDs are shown without inferring an old name from current routine data.
## Required verification
Pure calculation cases for mixed equipment, asymmetric sides, zeros, drafts, unknown loads, timed-only work, duplicate representations and overflow; trend compatibility and ordering; readonly IndexedDB snapshot/data preservation and failures; empty/loading/error/filter/detail/chart/notes/body-weight UI plus cancellation. Full tests with one worker, lint/build, context/whitespace/base-diff review and no-launch --check 008. Captain alone runs ./scripts/testtask.sh 008 for desktop/320px/keyboard and real save → history checks before Complete.
+15 -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-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.
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 Complete following Captain acceptance, with commit/integration pending separate authority; 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
@@ -87,7 +87,7 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001–003, TA
### TASK-008: History and progress
- Status: Accepted
- Status: Complete — Captain explicitly stated “task complete” on 2026-11-11, satisfying the acceptance gate. Source `.task-worktrees/task-008`, branch `task/008-history-progress`, base codex `e3bd365`. Changes remain uncommitted/unmerged pending separate Git authority.
- 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.
@@ -96,6 +96,8 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001–003, TA
- 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.
- Engaged UI/calculation brief: docs/TASK-008_UI.md. Read-only newest-first recorded sessions, date/period filters, compatible series/metric comparison and accessible local charts/values; no invented whole-session completion or double-counted representations.
### TASK-009: JSON backup and restoration
- Status: Proposed
@@ -385,3 +387,14 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001–003, TA
- 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.
#### TASK-008 implementation — 2026-11-11
- New read-only History screen from base codex e3bd365 in persistent .task-worktrees/task-008 on task/008-history-progress. Date/period filters, newest-first expandable recorded dates, saved actual/row/note/weight details and compatible local progress charts with values, comparisons and recorded highs. Original/legacy representations remain separately visible and excluded from their replacements; notes-only/weight-only and draft/partial states are explicit. No whole-workout completion inference.
- Reuses existing schema/metadata without writes, migration, backup/dependency/programme changes. Separate calculation/normalization model and readonly consistent storage snapshot validate records and avoid missing-value-as-zero or overflow. Compatibility includes actual dumbbell count modes and legacy original load-field modes. Saved snapshot names/actuals remain independent of current seed changes.
- Design, state/accessibility/responsive/algorithm contract: docs/TASK-008_UI.md, SPEC TASK-008 section and ADR-023. Test evidence and Captain checklist are in HANDOFF. Captain alone runs ./scripts/testtask.sh 008; acceptance is recorded. Captain authorized local commit/merge; no push/deploy or runner/browser/server/manual snapshot launch.
- TASK-008 final validation (2026-11-11): 234/234 tests across 22 files pass with `npm test -- --maxWorkers=1` after final rendering/legacy-label changes. Final lint/build, no-launch source preflight, context validation (0 warnings), whitespace and diff review against e3bd365 pass. Four new test files cover model/storage/UI/async history cases. No schema/backup/dependency or stored-data changes. Captain accepted the implementation and authorized local commit/merge; no independent agent browser pass claimed.
- TASK-008 completion evidence (2026-11-11): Captain explicitly confirmed “task complete”, accepting the delivered History/progress candidate. Agent validation remains 234/234 tests across 22 files with one worker, lint/build, source preflight, context/whitespace and base diff review. No independent agent visual review claimed. Application code is unchanged after acceptance. Commit/merge/push/deploy and session/worktree cleanup remain unauthorized; accepted implementation is preserved in its persistent source.