Session 55: Cycling only (strength out of the app) #241

Merged
chris-kreidl merged 2 commits from session/55-cycling-only into main 2026-11-09 00:54:42 +00:00
chris-kreidl commented 2026-11-09 00:27:08 +00:00 (Migrated from github.com)

Closes #232

What changed

  • Plans: generate, re-plan and chat prescribe rides only (generate-v4, replan-v6, chat-v7); PlanDraft/PlanPatch hold rides only. Evals: long-block-two-strength dropped; strength removed from the other athletes and the four replan base plans (sessions and the rationale sentences about them).
  • Active plans: scripts/remove-strength-sessions.ts runs in build:vercel after prisma migrate deploy and gives each active plan with today's or later unlogged strength sessions one new version without them (trigger profile_changed, origin clamped, existing values the old build can read). Past and logged strength and every ride stay. A plan with nothing to remove is skipped, so later runs write nothing. Remove in 56.
  • Rules: strength-dose, exercise-selection, autoregulation and key-workout protection are gone (the last two only judged strength); strength left availability, structure, form-floor, training-load and RULES_CONFIG. Stored strength overrides are dropped on read and by the settings save; Settings' Training rules card (strength gaps only) is gone.
  • Load: DailyLoad recompute and every projection use bike TSS only; strengthTssEq is left at its new default 0.
  • Logging: strength logger, draft, exercise picker, normalise task and its model setting, strength_logged producers, and strength in Log, History, Today, Plan, session dialog, week totals and ride matching are all removed. Strava uploads were rides already.
  • Profile, onboarding, Progress, exports: no strength count, exclusions or lifting fields; no e1RM chart; weekly TSS is rides; CSV and the account JSON export no longer write strength; the privacy page no longer mentions strength logs.
  • Old data still reads: views, drafts, missed marks and feedback read rides only; strength entries in stored diffs are left out of history; strength_logged versions keep their label; a queued strength_logged trigger is claimed as ride_logged; strength pins are ignored; old history cursors still page; a strength write queued offline by the old build isn't restored (the owner had none).
  • Schema: additive only (defaults of 0 on AthleteProfile.strengthPerWeek and DailyLoad.strengthTssEq). The exercise seed and CI's seed step are gone.
  • Docs: requirements rewritten (FR-1–4, 8, 10, 12b, 15, 16, foundations table, a short "Strength: removed" note, data model, AI design), decisions, history, PROGRESS, architecture, CLAUDE.md.
  • #93: the offline flow now hand-logs a ride (owner's comment) and refuses writes at the context while offline, because setOffline doesn't always reach the service worker. The online state is also set before the restored queue resumes.

How it was checked

  • Load check on a db:pull copy: see below; unchanged.
  • bun test 1336 pass (DB included); typecheck, lint, format, audit and the migration check pass; production build passes.
  • Playwright: full suite 54/54. The offline flow failed once in an earlier full run, then passed in two repeat runs beside its neighbours (60/60) and in a final full run.
  • bun run eval: Gate 3 pass, 5/5 compliant, no fallbacks, US$1.27. bun run eval:replan: 10/10 compliant, US$0.31.
  • New tests: the removal step (removes upcoming strength, keeps past and logged ones, second run writes nothing), old versions with strength reading as rides only, retired rule overrides, load ignoring strength logs, retired triggers and cursors, the offline queue dropping strength writes.

Left open

  • Load check on a production copy: passed. Recomputing the owner's 64 DailyLoad days from rides only matches production exactly (largest CTL/ATL/TSB difference 0); production has no strength logs, sets or strength load. The owner's active version holds no strength sessions, so the removal step is a no-op on this deploy (it found nothing, twice).
  • Owner check: #240. Session 56 (#233) drops the schema and the removal build step.
  • #71 (VoiceOver pass) still lists the strength logger, which no longer exists.

Run prompts/92-review.md in a fresh session before merging.

🤖 Generated with Claude Code

Closes #232 ## What changed - **Plans:** generate, re-plan and chat prescribe rides only (`generate-v4`, `replan-v6`, `chat-v7`); `PlanDraft`/`PlanPatch` hold rides only. Evals: `long-block-two-strength` dropped; strength removed from the other athletes and the four replan base plans (sessions and the rationale sentences about them). - **Active plans:** `scripts/remove-strength-sessions.ts` runs in `build:vercel` after `prisma migrate deploy` and gives each active plan with today's or later unlogged strength sessions one new version without them (trigger `profile_changed`, origin `clamped`, existing values the old build can read). Past and logged strength and every ride stay. A plan with nothing to remove is skipped, so later runs write nothing. Remove in 56. - **Rules:** strength-dose, exercise-selection, autoregulation and key-workout protection are gone (the last two only judged strength); strength left availability, structure, form-floor, training-load and `RULES_CONFIG`. Stored strength overrides are dropped on read and by the settings save; Settings' Training rules card (strength gaps only) is gone. - **Load:** `DailyLoad` recompute and every projection use bike TSS only; `strengthTssEq` is left at its new default 0. - **Logging:** strength logger, draft, exercise picker, normalise task and its model setting, `strength_logged` producers, and strength in Log, History, Today, Plan, session dialog, week totals and ride matching are all removed. Strava uploads were rides already. - **Profile, onboarding, Progress, exports:** no strength count, exclusions or lifting fields; no e1RM chart; weekly TSS is rides; CSV and the account JSON export no longer write strength; the privacy page no longer mentions strength logs. - **Old data still reads:** views, drafts, missed marks and feedback read rides only; strength entries in stored diffs are left out of history; `strength_logged` versions keep their label; a queued `strength_logged` trigger is claimed as `ride_logged`; strength pins are ignored; old history cursors still page; a strength write queued offline by the old build isn't restored (the owner had none). - **Schema:** additive only (defaults of 0 on `AthleteProfile.strengthPerWeek` and `DailyLoad.strengthTssEq`). The exercise seed and CI's seed step are gone. - **Docs:** requirements rewritten (FR-1–4, 8, 10, 12b, 15, 16, foundations table, a short "Strength: removed" note, data model, AI design), decisions, history, PROGRESS, architecture, CLAUDE.md. - **#93:** the offline flow now hand-logs a ride (owner's comment) and refuses writes at the context while offline, because `setOffline` doesn't always reach the service worker. The online state is also set before the restored queue resumes. ## How it was checked - Load check on a `db:pull` copy: see below; unchanged. - `bun test` 1336 pass (DB included); typecheck, lint, format, audit and the migration check pass; production build passes. - Playwright: full suite 54/54. The offline flow failed once in an earlier full run, then passed in two repeat runs beside its neighbours (60/60) and in a final full run. - `bun run eval`: Gate 3 pass, 5/5 compliant, no fallbacks, US$1.27. `bun run eval:replan`: 10/10 compliant, US$0.31. - New tests: the removal step (removes upcoming strength, keeps past and logged ones, second run writes nothing), old versions with strength reading as rides only, retired rule overrides, load ignoring strength logs, retired triggers and cursors, the offline queue dropping strength writes. ## Left open - **Load check on a production copy: passed.** Recomputing the owner's 64 DailyLoad days from rides only matches production exactly (largest CTL/ATL/TSB difference 0); production has no strength logs, sets or strength load. The owner's active version holds no strength sessions, so the removal step is a no-op on this deploy (it found nothing, twice). - Owner check: #240. Session 56 (#233) drops the schema and the removal build step. - #71 (VoiceOver pass) still lists the strength logger, which no longer exists. Run `prompts/92-review.md` in a fresh session before merging. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer!241
No description provided.