Session 55: Cycling only #232
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#232
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
55 · Cycling only: strength out of the app
Phase: Cycling only 1/2 (owner request 2026-11-08, #231) · Branch:
session/55-cycling-only· Depends on: nothingStrength training went in early (sessions 08, 10, 12b): the coach prescribed it, the rules placed it, its fatigue fed ATL, and Progress charted estimated 1RMs. The owner never logged a strength session (production has no
SessionLogorLoggedSetrows) and judges the design wasn't thought through. Take it out so the coaching can focus on the bike; strength may come back later as a fresh design, not this one. This session removes every reader and writer. The tables, columns and enum values stay (unused) until session 56 drops them, because production runs the previous build on the new schema during a deploy and after a rollback (CLAUDE.md→ Migrations).Read first
docs/requirements.md→ "Strength alongside the bike", FR-1, FR-2, FR-3, FR-4, FR-8, FR-10, FR-12b, FR-15, FR-16 and the "Data model" and "AI design" sections (grep for strength, exercise, e1RM, RPE)docs/decisions.md: grep for strength, RIR, exercise, 12b, TSS-eqprisma/schema.prisma:SessionKind.strength,PlanTrigger.strength_logged,AiPurpose.normalise,ExercisePattern,DoseType,Equipment,AthleteProfile.strengthPerWeekandexcludedExercises,Exercise,PlannedSession's strength fields,PlannedExercise,SessionLog,LoggedSet,DailyLoad.strengthTssEq,User.customExercisesgrep -rli 'strength\|exercise\|e1rm\|rir\b' src e2e evals scripts prisma/seed*(about 165 files at the time of writing)Goal
PlanDraft,PlanPatch). Bump each prompt version and re-record fixtures (bun run ai:record). Evals: drop or rewritelong-block-two-strength, and take strength out of the other athletes and replan base plans.PlanOriginandPlanTriggerif one fits, or add a value (adding an enum value is safe). Run it in the build's migrate step or as a one-off script: say which and why indocs/decisions.md. Older versions keep their strength sessions in the database. The plan views, version history and diff must still read them without crashing (skip or label them), since session 56 is the one that removes them.strength-doseandexercise-selection. Remove strength fromkey-workout-protection(strength before a hard ride),availability(strength time),structure,training-loadandRULES_CONFIG, plus their labels and settings rows. The overrides validator ignores stored strength keys (a user may have overridden them) and the settings save drops them.DailyLoadrecompute writesstrengthTssEq0 (the column stays until 56), and form, projection and the "today" readout read bike TSS only. No stored logs exist, so no history changes. Check that by recomputing the owner's load on abun run db:pullcopy: CTL, ATL and TSB match before and after./log/strength, the draft, the exercise picker), thestrength_loggedtrigger's producers, the normalise (exercise mapping) AI task and its model setting, and strength from Log, History, Today, Plan's calendar, session dialog and week totals, matching rides and the Strava upload.Rules
src/domain/stays pure. Delete the domain code and its tests rather than leaving dead exports.Tests
strength.e2e.tsandexercise-mapping.e2e.ts. Remove strength frome2e/support/test-user.tsandseed-progress.ts, and from any flow that asserts it (Today, Plan, charts, edits, export, a11y, keyboard).bun run evalandbun run eval:replanstay 100% compliant with no strength in any plan.Out of scope
Dropping the tables, columns and enum values (session 56). A new strength design. File anything else as an issue.
Done when
No screen, prompt, rule, export or AI task mentions strength. The owner's active plan has a new version without strength, and older versions still open. Load history is unchanged. The requirements read as a cycling app. Unit, typecheck, lint, format, audit and e2e pass. Add an owner check (a
nowissue): open Plan, Today, Progress, Settings and onboarding on the phone and confirm no strength is left. Finish with the end-of-session ritual inCLAUDE.md.Also:
e2e/offline.e2e.tslogs a strength session offline. Rewrite it around a hand-logged ride, and wait for the service worker to report offline before saving; that should also fix its flake (#93).