Case study / Oct 2026

Moonbow Academy: a K–5 curriculum where the model proposes and the code disposes.

You can trust a generative model to write a K-5 lesson. You cannot trust it to draw one. I designed and built Moonbow Academy, a standards-aligned home learning environment where the model proposes the language and deterministic code owns every figure that carries an answer.

Digital HealthAIHuman-in-the-loop0-to-1K-5 CurriculumAI Guardrails
Moonbow Academy: a K–5 curriculum where the model proposes and the code disposes project cover
The process

Problem.

A generative model cannot be trusted to draw its own figures. That is the problem this study is about, and it is narrower than it sounds: the model is a fine author of language and a poor author of anything that has to be exact. Asked to render three-quarters, it can render three-fifths. Asked for a clock face, it can draw the wrong hands. On the one screen where a child is looking, 'mostly right' is not a rounding error — it is a misconception, taught patiently, at the age when the foundations are being laid. Two other gaps shaped the product around it. ELA had a structural hole: 86 of its parent standards — writing, and speaking and listening — have no lesson shape at all, which is 32% of reading and ELA. And no surface in the system had ever asked the child to choose, state a need, or self-rate; the child was data, never a voice. Self-advocacy is a moment-of-work skill, which means it has to be taught inside the lesson or not at all. So the curriculum had to carry three things at once: standards alignment at K–5 scale, a place for the child's own judgement, and figures that are exact without exception.

Thesis.

The bet is a boundary, not a model. Content — the prompt, the explanation, the story — belongs to the generative layer. Anything carrying an exact answer belongs to deterministic code, and the code does not ask the model what to draw. The rule is stated once and read three ways: the figure is the question, which makes it safe where the figure is what the child reads; the figure would be the answer, which makes it forbidden on graded blocks, where bare is the correct end state rather than a gap to close; and draw only what the prompt already states, so a figure never introduces a fact the words did not. Six of the twelve visual primitives are withheld from the model's response schema altogether, which makes the failure mode structural rather than behavioural. The bet is falsifiable, and narrowly: it fails the moment a figure on a graded block traces back to the model instead of the resolver. It does not claim that a deterministic guard is automatically right — a guard that overwrites art the content authored is a different failure, and the harder one.
Four resolver defects, each one a case where the deterministic visual guard overwrote artwork the content had deliberately authored. resolveCountingQuestionVisuals deleted an authored angle diagram. resolveFractionVisuals collapsed two identical stated addends and drew the distractor rather than the sum. resolveComparisonVisuals drew jellyfish on the row labelled Starfish. statedCountInPrompt read the idiom 'counting one by one' as a quantity of one. The same four flags re-opened after every content fix, which is what produced the corollary the architecture now rests on: a guard must be sure it is correcting something before it overwrites.
When the guard overwrote the art. Four defects, one root cause: the chain could not tell placeholder art from authored art.

Prototype.

Moonbow Academy is a parent-launched, child-run home learning environment: a standards-aligned K–5 curriculum served by a deterministic, review-gated lesson engine, with a child kiosk, an Academy-only parent dashboard and a display-only TV mirror. Curriculum. 2,412 lessons across four subjects — 874 math, 889 reading, 433 science, 216 social studies — composed of 594 core, 615 variant and 1,203 fluency rows. Three lesson shapes: the standard intro, instruction, practice, check, celebration; a W/SL task shape built for the 86 ELA writing and speaking standards that have no lesson shape at all, carrying a non-graded task kind, two to four task steps and a caregiver note; and a depth shape for science and social studies. The year is 36 weeks of four structured days plus one flex or offline day, about 180 days, and day plans are a pure function of the year plan, the course templates and the completion log — no cron. Week and year views run the same simulation chronologically, so the three always agree. The visual system. Twelve primitives, six of them resolver-only and deliberately absent from the model's response-schema enum, including clock faces, angle diagrams, place values and fraction bars. Serving is library-first from a store keyed by standard, grade band and variant, with on-demand generation as the fallback. The serving chain is eight passes and the order is load-bearing: resolveFractionVisuals both adds fraction bars and drops a leaking count, and resolveDiagramVisuals runs last of all, on instruction blocks only. For states of matter the model emits a fact and the resolver draws it, so a required enum cannot force a wrong figure. The child path. The child never signs in; the parent's app mints the session, and the token travels in the URL fragment rather than the path or the query, so it stays out of request logs and out of the Referer, and the classroom strips it on read. Three self-advocacy moments — a pre-lesson mode choice, an in-lesson 'I'm stuck' ladder, a post-lesson self-check — use an authored line bank and pre-generated audio, so there is zero generative AI in the child's loop. Rewards are signal-pure: stars attach to correct answers, completed lessons and opt-in returns, never to a struggle or a rating. Evidence. Mastery is captured per item, and the anti-weaponization rules are the design: no accuracy ratio on a mastery row, no number printed behind a signal, and abstention wins ties.
The same lesson under two chains, separated by a serve-time chain of eight passes and a batch chain of seven. The eighth pass draws the diagram, so an authored instruction block is stored without it and served with it, and a diagram cannot be audited by reading the stored column. Below, six of twelve visual primitives are named as resolver-only and absent from the model's response schema: clock face, angle diagram, place value, fraction bars, fraction number line and states of matter. The audit ledger is shown with its limits: 2,296 flags raised, 2,285 fixed, 11 deliberately open, and 542 graded blocks the numeric leak sweep cannot check at all.
Stored without it, served with it. Eight passes at serve time, seven in batch — and the audit ledger's open flags shown rather than hidden.

Evaluation.

Moonbow Academy is pre-launch, so the evaluation is structural rather than outcome-based: no users, no pilots, no measured learning gains to report. What exists is an audit ledger — 2,296 flags raised, 2,285 fixed, 11 deliberately left open — of which 88 were wrong visuals, and that is the evidence the boundary held. Three failures are worth naming because each was fixed at the cause rather than the symptom: a duration-telemetry collapse that looked like random loss until it resolved to the exact day the web kiosk began serving; a learner-wiki snapshot that produced nothing in production, because the refresh job's own gate could never be satisfied; and a direction function that reported 'steady' from a delta it had never computed. A fourth class is the most useful — four instances where the guard chain overwrote deliberately authored art — because it produced the principle the architecture now rests on: a guard must be sure it is correcting something before it overwrites. Two limits remain known and unflattering: 11 flags are open by choice, and 542 graded blocks whose key is a list or a pair cannot be checked by the numeric leak sweep at all.
The impact

Outcome metrics.

2,412
Lessons in the library across K–5 and four subjects

874 math · 889 reading · 433 science · 216 social studies; 594 core + 615 variant + 1,203 fluency. The scale the deterministic engine has to hold correct.

6 of 12
Visual primitives the model is forbidden to emit

Six primitives are resolver-only and absent from the model's response-schema enum, because a model asked to draw 3/4 can draw 3/5.

8 vs 7
Resolver passes at serve time versus in batch

The serve-time chain is eight passes; the batch writer stops at seven. An authored instruction block is therefore stored without its diagram and served with it — which is why a diagram cannot be audited by reading the column.

Looking back

Learnings.

- Personalization lost to correctness. Overlaying every scene with the learner's hyperfixation broke image and content agreement — it forced race cars into sea turtle lessons. The fix was to serve the lesson's authored theme and delete the overlay, and layer 3 personalized hero art was cut with it. - A schema must require what it depends on. Structured output was omitting the optional options and correctIndex fields on text-heavy reading re-rolls, which produced a 70% skip rate. Making them required fixed it. - Deferring the full read-aloud bake was about text, not money. The key is a content hash, so editing text orphans its clip; re-baking 16,000 clips before the text settles would have meant re-baking most of them again. - Vocabulary discipline is a trust control. A product is authenticated, a school is accredited, an intervention earns an evidence tier, and a child-data product carries privacy certifications. Conflating those is a legal and trust hazard, so 'accredited' is a word this product may not use. - Two failures had the same shape as the thesis. A typographic apostrophe mismatch silently broke audio content hashes, and starting a lesson could return silently when a block parsed to a null subject. Both are a system acting without being sure.