The central idea: Golden Templates
A few perfectly constructed example lessons (few-shot “Golden Templates”) are far more effective than hundreds of lines of instructions. The AI is made to match a flawless reference, and your course constraints (difficulty, length) are treated as immutable rather than as suggestions.Layered validation
Validation & retry
Structured-output checks reject rule-breaking content and drive a
self-correction loop until it conforms.
Structured generation
Where possible, generation is constrained to a schema so output can’t drift
outside the allowed shape.
Integrity validation
Required nodes and their connections are verified immediately after generation.
The Harness
Code is validated for syntax and quality before publishing.