Skip to content

Commit 2af453f

Browse files
authored
Merge pull request #20 from Doppp/codex/ai-101-terminology-v2
Teach AI terminology before the first prediction
2 parents d37d444 + 1c558c8 commit 2af453f

32 files changed

Lines changed: 806 additions & 155 deletions

File tree

AGENTS.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ When acting as a learner's tutor:
4141
- Treat lesson Markdown as the canonical subject record. Teach from it conversationally and direct
4242
the learner to the browser's reference notes for durable definitions, worked examples, and recap.
4343
- Check only the prerequisite vocabulary needed for the active checkpoint. Explain a missing term
44-
briefly, then return to the lesson; do not make chat the only source of a core concept.
45-
- Ask the learner to predict in chat before revealing outcomes.
44+
with a definition, example, and nearby non-example, then return to the lesson; do not make chat
45+
the only source of a core concept.
46+
- Treat `prepare` and `check` phases as prerequisites for prediction. Ask one concrete recognition
47+
question, and do not advance while the learner cannot interpret the checkpoint's words.
48+
- Ask the learner to predict in chat only after the prerequisite vocabulary is usable.
49+
- Distinguish model inference, repeated generation, and product-level reasoning. Treat generated
50+
step-by-step text as output to verify, not a guaranteed private computation trace or proof of
51+
correctness.
4652
- Direct them to manipulate the explorable.
4753
- Inspect `data-explorables-*` and `data-tutor-*` browser state when available so the conversation
4854
stays aligned with the active lesson and checkpoint.

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ All notable changes to `explorables` are documented here.
99
- A bounded loopback tutor event stream and `explorables tutor` listener so lesson navigation and
1010
checkpoint actions in the browser can prompt the adjacent coding-agent tutor during an active
1111
session without analytics, accounts, raw control telemetry, or private host APIs.
12-
12+
- A six-lesson AI 101 runway that teaches course vocabulary, software inputs and outputs, rules and
13+
learned models, classification and generation, language models and products, training and
14+
inference, and inference, generation, and reasoning before mathematical machinery.
15+
- A course-local learner glossary with stable beginner definitions and later refinements.
16+
- Optional `prepare` and `check` checkpoint phases for terminology orientation and concrete
17+
recognition before prediction.
18+
- A visible tutor-led prerequisite surface backed by canonical lesson Markdown, plus two accessible
19+
sandboxed activities for software-component and reasoning-path boundaries.
20+
- ADR 0013 and an expanded consented learner-study protocol for the zero-ML-vocabulary audience.
1321
- Opt-in `teaching.mode: tutor-led` presentation: the coding-agent conversation leads the live
1422
lesson while the browser defaults to checkpoint, explorable, evidence, exercise, and collapsed
1523
reference notes. Stable `data-tutor-*` state keeps host inspection provider-neutral.
@@ -42,7 +50,12 @@ All notable changes to `explorables` are documented here.
4250

4351
- Tutor-led lessons now keep prerequisite bridges and foundational definitions in the main lesson
4452
flow; only worked explanations and recaps remain in the optional reference-notes disclosure.
45-
53+
- `AI from First Principles` is versioned as `0.7.0-ai-101.1`, now contains nineteen lessons, and
54+
starts with terminology rather than an unsupported classification question. Its new progress
55+
namespace leaves prior browser-local progress untouched.
56+
- Tutor policies now require a definition, example, non-example, and recognition check for missing
57+
prerequisite vocabulary. They distinguish inference, generation, reasoning, and product
58+
orchestration without treating generated explanations as private computation traces.
4659
- `AI from First Principles` is versioned as `0.6.0-tutor-led.1`, now contains sixteen lessons, and
4760
uses Codex/Claude conversation as the primary teaching surface. Its browser-progress namespace is
4861
intentionally fresh; earlier local progress remains untouched under its prior course version.

apps/dev-preview/src/styles.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,23 @@ pre {
10371037
background: var(--blue);
10381038
}
10391039

1040+
.checkpoint-prerequisites {
1041+
margin-block: var(--space-4);
1042+
padding: clamp(1rem, 2.5vw, 1.5rem);
1043+
border: 1px solid var(--border);
1044+
border-radius: var(--radius-lg);
1045+
background: var(--surface-raised);
1046+
}
1047+
1048+
.checkpoint-prerequisites > .eyebrow,
1049+
.checkpoint-prerequisites > h2 {
1050+
margin-top: 0;
1051+
}
1052+
1053+
.checkpoint-prerequisites .lesson-fragment > h1:first-child {
1054+
display: none;
1055+
}
1056+
10401057
.tutor-handoff .eyebrow,
10411058
.tutor-handoff h2,
10421059
.tutor-handoff p:last-child {

docs/PRD.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,19 @@ For a lesson that introduces a foundational concept, the Markdown must also prov
805805
- at least one deliberate failure and the invariant it violates; and
806806
- a concise recap or self-check that asks the learner to explain rather than merely recognise.
807807

808+
For a declared zero-domain-knowledge audience, prerequisite terminology is itself an instructional
809+
objective. Define each required term in plain language, give a concrete example and a nearby
810+
non-example, and ask a recognition question before asking for a prediction. Tutor-led presentation
811+
must keep this prerequisite material visible on the activity surface; it must not require the
812+
learner to discover essential definitions inside collapsed reference notes. Courses may use
813+
optional `prepare` and `check` checkpoint phases before `predict` without adding a Markdown
814+
directive or a second progress store.
815+
816+
AI courses must distinguish training, inference, generation, and reasoning. “Reasoning” describes
817+
problem-solving behaviour that may span model inference, repeated calls, product orchestration,
818+
and tools. Generated step-by-step prose is output to verify, not guaranteed evidence of private
819+
model computation or correctness.
820+
808821
This contract does not imply a minimum word count or rigid heading vocabulary. Automated validation
809822
continues to check structure, paths, fallbacks, and executable contracts; editorial review and
810823
learner playtesting determine whether the explanation is sufficient for the declared audience.
@@ -2793,7 +2806,8 @@ See how it works. Build it yourself.
27932806
- [ ] The reference course begins with a plain-language learning-loop orientation before gradient
27942807
descent or other mathematical machinery.
27952808
- [ ] Before the learning loop, a beginner can distinguish AI, machine learning, generative AI, an
2796-
LLM, and a chatbot product, then trace one autoregressive next-token step.
2809+
LLM, and a chatbot product; separate training, inference, generation, and reasoning; then trace
2810+
one autoregressive next-token step without relying on undefined AI terminology.
27972811
- [ ] At least five target learners complete two lessons.
27982812
- [ ] Setup failures and authoring friction are documented.
27992813
- [ ] Feedback informs the v1 format before the full course is produced.

docs/course-authoring.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,17 @@ Before the prediction, give the learner:
192192
- plain-language definitions for every new term or symbol needed to make the prediction; and
193193
- a small, concrete setup whose values can be inspected by hand.
194194

195+
For a zero-domain-knowledge audience, use `prepare` and `check` checkpoints before `predict` when
196+
the learner must acquire terminology first. `prepare` establishes the definition, example, and
197+
non-example; `check` asks a concrete recognition question. These phases use ordinary lesson
198+
Markdown and the existing checkpoint schema, not a custom directive. A prediction must test
199+
reasoning from the supplied setup rather than prior familiarity with the vocabulary.
200+
201+
When authoring AI material, distinguish model inference, repeated generation, and reasoning that
202+
may span product orchestration or tools. Generated step-by-step prose is an output that can be
203+
checked; do not describe it as a guaranteed faithful transcript of private model computation or as
204+
evidence that the answer is correct.
205+
195206
After the interaction, include:
196207

197208
- an explanation that connects the observed values to the formal mechanism;

docs/course-roadmap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ These are separate course packages with separate `COURSE.md` files. They share t
121121
Status: complete.
122122

123123
- Deliver the v0.1 runtime and authoring format.
124-
- Complete the sixteen-lesson foundation course and tiny Transformer.
124+
- Complete the nineteen-lesson foundation course, including its six-lesson AI 101 runway, and tiny Transformer.
125125
- Verify deterministic training, generation, caching, evaluation, sandboxing, accessibility, and clean builds.
126126

127127
### Milestone 1 — guided course delivery
128128

129129
- Add reusable opt-in checkpoints, ordered navigation, explicit skip/Explore controls, local resume state, and tutor focus rules.
130-
- Apply the complete guided loop to all sixteen foundation lessons.
130+
- Apply the complete guided loop to all nineteen foundation lessons.
131131
- Preserve unrestricted navigation for existing courses that do not opt in.
132132

133133
### Milestone 2 — course-family and source freeze
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# ADR 0013: Make prerequisite vocabulary visible before prediction
2+
3+
## Status
4+
5+
Accepted
6+
7+
## Context
8+
9+
The first tutor-led beginner checkpoint asked learners to classify AI products before confirming
10+
that words such as classifier, label, learned model, generative, LLM, product, and boundary were
11+
usable. Canonical lesson Markdown contained definitions, but tutor-led presentation collapsed that
12+
prerequisite prose and foregrounded the prediction. A programming-literate learner with no ML
13+
vocabulary could therefore be blocked at the first step despite matching the declared audience.
14+
15+
## Decision
16+
17+
Add optional `prepare` and `check` checkpoint phases. In tutor-led courses, render the canonical
18+
lesson introduction—including vocabulary, examples, non-examples, and worked setup—on the activity
19+
surface before the active checkpoint. `prepare` records vocabulary orientation; `check` records a
20+
concrete recognition task; prediction follows only after those prerequisites are complete.
21+
22+
Keep definitions in ordinary Markdown and add no custom directive, second progress store, account,
23+
grading system, or private host bridge. Teach inference, generation, and reasoning as distinct
24+
terms. Generated reasoning prose is observable output to verify, not guaranteed access to private
25+
model computation or proof of correctness.
26+
27+
## Consequences
28+
29+
- Tutor-led pages carry more prerequisite prose in the activity surface, but learners no longer
30+
need to discover essential definitions inside collapsed notes.
31+
- Existing courses and checkpoints remain valid because both phases are optional.
32+
- Discovery-cycle validation continues to require predict, experiment, apply, and reflect in order;
33+
prepare and check may precede them.
34+
- Instructional sufficiency still requires editorial review and consented learner playtesting.

docs/implementation-plan.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,26 @@ Deliverables:
265265
Exit check: completing learner and explorable checkpoints emits semantic events the adjacent tutor
266266
can react to; the first lesson visibly defines its core vocabulary before the prediction control;
267267
and the full repository verification matrix passes.
268+
269+
## Milestone 16 — AI 101 terminology and supported reasoning
270+
271+
Deliverables:
272+
273+
- Publish a course-local terminology register with stable beginner definitions, refinements,
274+
prerequisites, examples, non-examples, and misconception boundaries.
275+
- Replace the compressed opening with a short beginner runway covering software inputs and
276+
outputs, rules and learned models, classification and generation, language models and products,
277+
training and inference, and inference, generation, and reasoning.
278+
- Require recognition checks before predictions in foundational lessons and make prerequisite
279+
vocabulary visible in the tutor-led activity surface rather than only in collapsed notes.
280+
- Teach reasoning as observable problem-solving behaviour that may span model inference, product
281+
orchestration, and tools; do not present generated explanations as faithful private computation
282+
or as proof of correctness.
283+
- Update the host-neutral tutor policy, authoring guidance, validator coverage, browser tests,
284+
learner-study protocol, PRD, implementation status, and changelog.
285+
286+
Exit check: a programming-literate learner with no AI vocabulary can progress through the runway
287+
without external definitions, distinguish classification from generation, distinguish a model from
288+
its product, separate training, inference, and generation, and give a cautious explanation of
289+
reasoning. Automated checks verify instructional order and accessibility; the existing five-learner
290+
study remains required external evidence before the curriculum claim is considered validated.

docs/implementation-status.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Updated: 21 August 2026
44

55
## Completed
66

7+
- Added the `0.7.0-ai-101.1` terminology correction: a course-local glossary, six-lesson beginner
8+
runway, visible prerequisite surface, `prepare` and `check` phases, software-pipeline and
9+
reasoning-path explorables, host-neutral tutor policy, authoring guidance, ADR 0013, and focused
10+
schema/browser coverage. External learner validation remains explicitly pending.
711
- Read the complete PRD and build assignment.
812
- Verified authenticated SSH GitHub access as `Doppp`.
913
- Verified `Doppp/explorables` is public and defaults to `master`.
@@ -66,7 +70,7 @@ Updated: 21 August 2026
6670

6771
The v0.1 runtime MVP remains verified. Course-session continuity now provides a framework-owned resume surface, lesson-level local state for persistent courses, Guided checkpoint resume and confirmed rollback, page-exit flushing, storage-failure messaging, host-neutral state attributes, shared lifecycle language, and a stable strict development origin. Model Atlas implementation, local hardening, clean-checkout verification, and pull-request CI are complete.
6872

69-
`AI from First Principles` `0.6.0-tutor-led.1`, Guided Course Mode, Agent Plugins v1 packaging, the
73+
`AI from First Principles` `0.7.0-ai-101.1`, Guided Course Mode, Agent Plugins v1 packaging, the
7074
general local course library, course overview, and contextual discovery flow are implemented. The
7175
library presents the shared frontier core and DeepSeek, Kimi, Qwen, MiniMax, and GLM
7276
specializations as planned rather than runnable. Its DeepSeek and GLM cards reflect the V4 and 5.2
@@ -93,6 +97,7 @@ learner-study evidence also remain.
9397

9498
```text
9599
21 Aug reciprocal tutor + visible foundations pass (format/lint/typecheck, 38 suites/113 tests, collection and minimal validation, all builds, 20 course suites/61 model tests, 14 starter/reference exercise pairs, 18 browser tests including learner/explorable tutor events, visible definitions, responsive layout, and axe, plus 2 site tests and live loopback-listener verification)
100+
27 Aug AI 101 terminology runway pass (clean pnpm 11 worktree after latest-master reconciliation: format/lint/typecheck, 38 suites/113 tests, collection/minimal validation, all builds, 20 course suites/61 model tests, all 14 starter/reference exercise pairs, 18 browser tests on an isolated port including prerequisite progression/tutor events/19-lesson progress/theme/narrow layout/axe, and 2 site tests)
96101
20 Aug tutor-led LLM runway pass (clean pnpm 11 worktree: format/lint/typecheck, 36 suites/109 tests, collection and minimal validation, all builds, 20 course suites/61 model tests, 14 starter/reference exercise pairs, 17 browser tests including tutor state/reference notes/ordered-list containment/320px/axe, and 2 site tests)
97102
20 Aug course orientation pass (clean Node 24/pnpm 11 worktree: format/lint/typecheck, 34 suites/105 tests, collection and minimal validation, all builds, 18 course suites/57 tests, 14 starter/reference pairs, 16 browser tests including overview/contextual order/320px/axe, and 2 site tests)
98103
20 Aug compact library hero pass (16 browser tests; 320×700, 720×800, 900×700, 1100×760, and 1427×900 geometry; light/dark in-app Codex visual QA; scoped format/lint, typecheck, 33 suites/102 tests, validation, and all builds)

docs/research/beginner-llm-curriculum.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,22 @@ decisions remain governed by `docs/PRD.md`.
4141

4242
## Resulting sequence
4343

44-
1. Generative AI and language models
45-
2. The next-token loop
46-
3. How machines learn: training versus inference
47-
4. Gradient descent and backpropagation
48-
5. Vectors, losses, and optimisation
49-
6. Tokenisation and numerical representations
50-
7. Attention and Transformer blocks
51-
8. Next-token training, inference, caching, and sampling
52-
9. Evaluation and leakage
44+
1. Course vocabulary and recognition-before-prediction
45+
2. Software inputs, outputs, components, rules, and learned models
46+
3. Classification, generation, language models, and products
47+
4. The next-token loop
48+
5. How machines learn: training versus inference
49+
6. Inference, generation, reasoning, and product orchestration
50+
7. Gradient descent and backpropagation
51+
8. Vectors, losses, and optimisation
52+
9. Tokenisation and numerical representations
53+
10. Attention and Transformer blocks
54+
11. Next-token training, inference, caching, and sampling
55+
12. Evaluation and leakage
56+
57+
The added terminology runway follows learner feedback that the earlier first checkpoint still
58+
assumed the meanings of classifier, label, learned model, product boundary, inference, and
59+
reasoning. The correction treats those terms as course content, not as a diagnostic prerequisite.
5360

5461
The sequence is intentionally spiral-shaped: the learner first sees the complete next-token loop,
5562
then revisits each component with more mathematical and implementation detail.

0 commit comments

Comments
 (0)