This file is the build plan the repository was generated from. It is kept for reference
so participants can see how the training repo was specified. The phase-by-phase content is
summarised below; the live spec is in docs/prd.md, the decisions in docs/adr/.
- Phase 1 — Skeleton and docs: Taskfile, doctor script, README, CLAUDE.md, business context, PRD, five ADRs.
- Phase 2 — Backend: FastAPI + SQLModel, four tables, products/orders routers, seed script, 9 pytest tests.
GET /orderscarries an intentional N+1 (OPS-214). The discount feature is specified but not built. - Phase 3 — Web and mobile: React/Vite Cart + a stubbed DiscountField; Flutter cart screen; GitHub Actions CI.
- Phase 4 — Workshop material and checkpoint tags.
checkpoint/session-4is the only place the N+1 fix exists. - Phase 5 — Rehearsal (human-led).
Deliberately wrong, on purpose: the N+1 in backend/src/toko/routers/orders.py, and the absence of any
/discount endpoint. Do not "fix" either on main.