How it was built
The content pipeline lives in this repository, with its gates and their tests. Every number on this page is read from the repository at build time, so it cannot drift into describing a better pipeline than the one that exists.
The gates came before the generation
All three gates were written, wired into CI, and proven by tests to refuse things — before the pipeline generated any lesson. That ordering is the whole argument. A generator built first and gated afterwards is gated to whatever it already produces; gates built first define what is acceptable independently of what any model happens to emit.
That claim is checkable in the commit history rather than merely asserted.
What each gate refuses
| Gate | Refuses | Negative tests |
|---|---|---|
validate.py | invalid structure, an undeclared objective, a block at a level it is not allowed at, a duplicate id, prose past the word budget, real licensed code sets | 24 |
concept_log.py | re-defining a concept an earlier lesson taught, or using one before it is introduced | 7 |
qa_gate.py | any criterion below 3, a mean below 4.0, or a verdict missing criteria | 27 |
58 negative tests. Each set includes a case asserting that valid content passes, because otherwise a gate could satisfy its own tests by refusing everything.
The concept log
It remembers which lesson first taught each concept. A later lesson may recall or apply it, but may not define it again, and may not lean on a concept nothing has introduced yet. A reviewer catches that across five lessons. Nobody catches it reliably across a hundred and twenty, which is the scale the pipeline exists to serve.
| Concept | First taught in |
|---|---|
appeal | 07-denials-cause-category-cure.json |
clean_claim | 04-anatomy-of-a-claim.json |
clearinghouse | 04-anatomy-of-a-claim.json |
coverage_active | 03-eligibility-and-pre-authorisation.json |
denial | 07-denials-cause-category-cure.json |
eligibility | 03-eligibility-and-pre-authorisation.json |
The rubric gate
Eight criteria, scored 1–5. A lesson fails if any criterion falls below 3, or the mean falls below 4.0 — two thresholds because they catch different problems. The mean catches a lesson that is mediocre everywhere; the floor catches one that is excellent in seven places and unacceptable in the eighth.
LLM rubric score, fresh-context judge, self-assessed — not human QA. The judges never see the generation prompt, and none of them is from the generator’s model family: the panel has five seats, Kimi K3, DeepSeek V3.2 and GLM-5 hosted on Amazon Bedrock, the open model Qwen3-30B-A3B-Thinking-2507 served on a rented GPU, and Command A+ through Cohere’s API. That rules out a model marking its own work; it does not make the score a human judgement. The check on that check — a blind inter-rater sample, three lessons scored by a human who has not seen the models’ scores, with the mean absolute difference reported — has not been run yet.
Status, honestly
The five published lessons were hand-authored. 5 lessons have since been generated through the pipeline from a source note, and passed both deterministic gates: structural validation and the concept log. They are not published, because pipeline output is a draft and a human decides whether it ships.
Four of these drafts are on the samples page. The fifth, lesson 02, was the pipeline’s first test draft, written as part of the demo course, so it is not shown as a standalone sample.
The rubric gate has been run on these drafts. Each judge read them in a fresh context that had not seen the generation prompt and did not author the lesson, and each verdict records its own caveat about how independent that makes it — the most recent one is published below, as written.
The run log holds 60 entries (59 passed), failures included. It mixes verdicts from judges that were tried and then retired with runs by the seated panel, so no single pass rate is quoted from it: one percentage across both would describe neither. Calibration trials are kept in a separate log. Most recent: writing-a-shift-handover — mean 5.00 over 8 scored criteria.
Judge independence: This judge is a different model family and a fresh context: it saw only the judge prompt, the rubric and the lesson. It did not direct the project and did not author anything in it. It is still a language model scoring a language model's output, so the label applies: not human QA.
The log is published here in full — including the runs the gate refuses. A history containing only successes is not evidence of anything.
Who reviewed this
No claims or revenue-cycle practitioner reviewed this content. It was authored from public sources by an instructional designer. All code sets are fictional training codes, and a real deployment would use a deploying organisation’s own payer rules and licensed code sets, reviewed by someone who works in the field.
What was done is an instructional-design review: objective alignment, coverage, the assessment blueprint, feedback quality, and the Arabic. That is genuine expertise, but it is not a subject-matter accuracy review, and the two are not the same thing.