No e2e flow drives plan generation #124

Open
opened 2026-11-08 18:14:02 +00:00 by chris-kreidl · 3 comments
chris-kreidl commented 2026-11-08 18:14:02 +00:00 (Migrated from github.com)

Replay fixtures for generate would miss daily (the context carries today's date), so no e2e flow drives generation; the Plan tab was checked by hand with a real call. An e2e flow could seed a plan and check the rendering.

Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.

Replay fixtures for `generate` would miss daily (the context carries today's date), so no e2e flow drives generation; the Plan tab was checked by hand with a real call. An e2e flow could seed a plan and check the rendering. _Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08._
chris-kreidl commented 2026-11-08 20:05:39 +00:00 (Migrated from github.com)

What this is about. E2E tests replay recorded AI answers so they don't cost money. A recorded generate answer goes stale every day, because the request includes today's date, so no e2e flow covers writing a new plan. The Plan tab after generation has only been checked by hand with a real call.

Status (checked 2026-11-08): unchanged; no e2e flow drives generation.

Fix: freeze the date in the generation request for replay (a fixed "today" for the e2e athlete), or seed a generated plan and test only the rendering and streaming UI. Worth it if a generation-UI regression ever slips through.

**What this is about.** E2E tests replay recorded AI answers so they don't cost money. A recorded generate answer goes stale every day, because the request includes today's date, so no e2e flow covers writing a new plan. The Plan tab after generation has only been checked by hand with a real call. **Status (checked 2026-11-08):** unchanged; no e2e flow drives generation. **Fix:** freeze the date in the generation request for replay (a fixed "today" for the e2e athlete), or seed a generated plan and test only the rendering and streaming UI. Worth it if a generation-UI regression ever slips through.
chris-kreidl commented 2026-11-10 22:32:38 +00:00 (Migrated from github.com)

this may have been addressed in a recent PR that implemented more adaptive coaching and plan generation.

this may have been addressed in a recent PR that implemented more adaptive coaching and plan generation.
chris-kreidl commented 2026-11-19 03:21:30 +00:00 (Migrated from github.com)

Status (checked 2026-11-18), answering the 2026-11-10 question: partly covered. Session 41 added e2e/clearer-state.e2e.ts, which starts a generation, holds the request and checks the progress message ("The plan keeps generating and will appear here"). No flow replays a generate answer or checks the Plan tab rendering a finished plan, because the request still carries today's date. The original fix ideas still apply.

**Status (checked 2026-11-18), answering the 2026-11-10 question:** partly covered. Session 41 added `e2e/clearer-state.e2e.ts`, which starts a generation, holds the request and checks the progress message ("The plan keeps generating and will appear here"). No flow replays a generate answer or checks the Plan tab rendering a finished plan, because the request still carries today's date. The original fix ideas still apply.
Sign in to join this conversation.
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#124
No description provided.