PR evidence · RubberDuck · PR #141 → staging

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

BuilderClaude Opus 5.5, high effort, in a Cursor cloud agent (bc-89ed252e)
Reviewergpt-5.6-sol, high reasoning, in a fresh Cursor cloud agent each round (r1 bc-a86f94a3, r2 bc-cc13a543, r3 bc-42cb1292)
VerdictAPPROVE 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

Chapter card,bookmark or link Which voice enginedoes this account use?read-only check, no DB write GPT-Live default can't tell New lesson (this PR)video → teach Ducky → report → Library redo Old chapter (unchanged)accounts created before migration 0012 Clear error with "Try again"never a wrong link or a half-working 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?"

  1. How can the same water be ice, water and invisible water vapour?
  2. Big: Why do wet clothes dry faster spread out on a hot, windy day?
  3. Where do the droplets on a cold can of drink come from?
  4. 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?"

  1. Big: How do the battery, wires, switch and bulb work together?
  2. Conductors, insulators and safe handling (paper clip vs plastic ruler)
  3. Why is a bulb brighter with a second battery in series?
  4. 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

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.
Speed:

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.
Speed:

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.
Speed:

Other checks at b30beb58

GitHub CIgreen: frontend, backend, both Docker builds, new-code check, critical paths and e2e-critical
Frontendlint, typecheck and build pass. 1,136 of 1,141 tests pass, 5 skipped (all pre-existing).
Backend pytest1,609 passed, 37 skipped (pre-existing)
Production preview pagesall 404 on a fresh production build, and the preview cookie is ignored (output)
Syllabusreviewer checked the content against the MOE syllabus PDF (pp. 48-50 and 59). Accurate and right for an 11-year-old.
Databaseno 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

  1. 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)?
  2. 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.
  3. Next chapters: Respiratory System and Circulatory System are still old-format. Convert them next?
  4. 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?
  5. 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?
  6. 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.
  7. Merge to staging when you're happy.