PR #141: Singapore P5 Water Cycles and Electrical, in the new lesson format
Two Singapore Primary 5 chapters, Water Cycles and Electrical System, now work as new-style GPT-Live lessons. A P5 learner can go from the chapter card to the lesson video, teach Ducky, see the report, and redo any missed ideas in the Library. Older accounts that still use the default voice engine keep the old chapters, so nobody lands on a lesson their account can't run. No database writes and no migrations.
REVIEW: APPROVE An independent reviewer approved it in round 3 with no blocking and no "should" items. Rounds 1 and 2 asked for changes, and all of them are fixed. CI is green at head b30beb58. Only you merge to staging.
Who built and reviewed it
| Builder | Claude Opus 5.5, high effort, in a Cursor cloud agent (bc-89ed252e) |
| Reviewer | gpt-5.6-sol, high reasoning, in a fresh Cursor cloud agent each round (r1 bc-a86f94a3, r2 bc-cc13a543, r3 bc-42cb1292) |
| Verdict | APPROVE round 3, no blockers |
What the PR changes
- Two new lessons, written from the MOE Primary Science syllabus (May 2024): Water on the Move and Making a Bulb Light Up. Each has an opening question and four "why/how" ideas Ducky asks the child to explain.
- A syllabus checklist: every MOE outcome for these topics is either taught by an idea or listed as "not covered" with a reason. Tests enforce this.
- Routing by voice engine, so each account only sees the version it can run (diagram below).
- AGENTS.md now says Singapore MOE P5 is the focus (your Nov 29 decision, Dec 15 ready line). California and Sec 3 content stays live.
- Lesson videos aren't made yet. The 10 video slots show a "coming soon" placeholder.
How a learner gets to the right lesson
While the check is still loading, the two cards say "Ducky is getting this chapter ready…" and can't be clicked. Other chapters aren't affected.
The two lessons
Water on the Move
"After a rainy morning, the puddles on the school field are gone by recess. Where did the water go?"
- How can the same water be ice, water and invisible water vapour?
- Big: Why do wet clothes dry faster spread out on a hot, windy day?
- Where do the droplets on a cold can of drink come from?
- Big: How does sea water end up as rain, and why does that matter?
Not covered: water pollution, and conserving water.
Making a Bulb Light Up
"You press the switch on a torch and the bulb lights up. What has to happen inside?"
- Big: How do the battery, wires, switch and bulb work together?
- Conductors, insulators and safe handling (paper clip vs plastic ruler)
- Why is a bulb brighter with a second battery in series?
- Big: Why do more bulbs sometimes get dimmer, and why can one broken bulb turn the rest off?
Not covered: conserving electricity, and building circuits from diagrams.
What changed after each review
- Round 1 (changes requested). Blocker: older default-engine accounts would hit an error when they tried to teach the new lesson, and old links didn't work for GPT-Live accounts. Fixed with engine-based routing. Also fixed: the "compare the three states of water" outcome is now taught (shape and volume); the electrical safety coverage no longer contradicts itself (safe handling is taught, only conservation is left out); the test now covers the card → watch → Teach Ducky and report links; the fact-checker says age 11 and "Singapore Primary 5"; AGENTS.md updated.
- Round 2 (changes requested). Three blockers: if the engine check failed, the page quietly stayed on a route the account couldn't run; the cards briefly showed the wrong version while loading; and the dev-only preview pages existed in the production build. All fixed: a clear error page with Try again, cards that wait and never show the wrong link, and preview pages that exist only on local dev servers (production returns 404 for all of them). The test now really clicks through the lesson, wording says "an 11-year-old", and each syllabus outcome has its own ID that tests check.
- Round 3: APPROVE. No blocking or "should" items. The reviewer reran everything and watched all three videos.
The videos
All three are Playwright recordings of this branch on a local dev server, using the real /chapters, lesson and Library pages with sample data. The engine answer is faked by the test so each case can be shown, but the card, report link, side-list idea, Next idea and Teach Ducky are real clicks. Each holds about 3 seconds at the start and the end. Click a timestamp to jump there and pause.
1. Water on the Move, as a GPT-Live learner
PASS- What this checks
- The whole learner path for the Water lesson: card → lesson page → report → Library redo → back to teaching.
- Which part of the PR it proves
- A GPT-Live account sees the new lesson on its card, the report's "watch these next" links open the right missed ideas, all four ideas exist and step in order, and Teach Ducky goes back to the lesson.
- What to watch for
- Chapters page, held. The Water Cycles card shows the new lesson's ideas, then it's clicked.
- "Water on the Move" lesson page with the video placeholder.
- "Great teaching!" report with two missed ideas. The first is clicked.
- Library opens at idea 2 (wet clothes). Idea 1 is clicked in the side list.
- Next idea steps through ideas 2, 3 and 4.
- Teach Ducky is clicked and lands back on the lesson page, held to the end.
2. Making a Bulb Light Up, as a GPT-Live learner
PASS- What this checks
- The same path for the Electrical lesson.
- Which part of the PR it proves
- The Electrical card opens the new lesson, and its report links, four ideas and Teach Ducky all work.
- What to watch for
- Chapters page, held, then scrolls to the Electrical System card with the new ideas, which is clicked.
- "Making a Bulb Light Up" lesson page with the placeholder.
- Report with missed ideas. The first is clicked.
- Library at idea 2 (paper clip vs ruler), then idea 1, then Next idea through 2, 3 and 4.
- Teach Ducky lands back on the lesson page, held to the end.
3. Cards: loading, failing, then a default-engine account
PASS- What this checks
- What the two cards do while the engine check is slow, when it fails, and for an older default-engine account.
- Which part of the PR it proves
- The round 2 fix: the cards never show the wrong version or a link that won't work. Older accounts still get the old chapters.
- What to watch for
- Engine answer held back: both cards say "Ducky is getting this chapter ready…" and aren't links.
- Engine check fails: "Oops! Ducky couldn't open this chapter." with Try again, still no link (Electrical shown after scrolling).
- Try again is clicked and the engine answers "default".
- Both cards now link to the old chapters with the old ideas, held to the end.
Other checks at b30beb58
| GitHub CI | green: frontend, backend, both Docker builds, new-code check, critical paths and e2e-critical |
| Frontend | lint, typecheck and build pass. 1,136 of 1,141 tests pass, 5 skipped (all pre-existing). |
| Backend pytest | 1,609 passed, 37 skipped (pre-existing) |
| Production preview pages | all 404 on a fresh production build, and the preview cookie is ignored (output) |
| Syllabus | reviewer checked the content against the MOE syllabus PDF (pp. 48-50 and 59). Accurate and right for an 11-year-old. |
| Database | no migration and no new frontend database write. The engine check is read-only. |
The one gap (not blocking)
No video shows a signed-in learner starting a real session. That needs WorkOS keys and a backend that would write to the shared database, which agents aren't allowed to use. The signed-in E2E tests are written but marked fixme until PR #136 (Teleport) fixes students landing on "Choose your plan". The server routing is covered by unit tests for both engines and every failure case, and the reviewer accepted this.
For you
- Signed-in E2E: to test real sessions and real reports, do you want a WorkOS test environment plus a separate local database, or a dev-only fake learner login (blocked in production)?
- Ducky's wording: Ducky's persona still calls itself a "5th grader". Should it say "Primary 5" for Singapore learners? This PR leaves it alone because the Ducky PR (#145) owns the persona.
- Next chapters: Respiratory System and Circulatory System are still old-format. Convert them next?
- Uncovered topics: water pollution, conserving water and electricity, and building circuits from diagrams. Should these become their own lessons, be added to these two, or stay out?
- Lesson videos: 10 are missing (one per lesson plus one per idea). Which first, and should they be hosted in the app's public folder or in private storage?
- AGENTS.md: already updated in this PR to the Singapore P5 focus. It changes agent rules, so it needs your sign-off as part of the merge.
- Merge to
stagingwhen you're happy.