feat(schema): 2.1 types, fragments, and JSON Schemas
Add the term, equation, value, and misconception registries (src/model/course/glossary.rs) and the new optional fields on objectives, targets, lectures, readings, bank options, and policy. Load registry entries from objective files, glossary.yaml, and course.yaml, with one definition site per id as for every other registry. Port every edit in docs/design/2.1/build_schemas.py into the hand-written schema builders, add glossary.schema.json, and test the generated schemas against the targets; the only differences are two 2.0 spellings the code already had. The 2.0 example fragments load and validate unchanged. The 2.1 example bank gains `status: draft`, which every coursebank item requires. tests/docs.rs skips docs/design/, which holds design records rather than guide pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
47 files changed
+10568
-55
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# A 2.0 lecture fragment. It must still validate under 2.1.
|
||||
lectures:
|
||||
l09:
|
||||
title: Pairwise alignment
|
||||
unit: u1
|
||||
slides_url: https://example.edu/slides/l09
|
||||
teaches:
|
||||
- lo-alignment-scoring
|
||||
- lo-alignment-recurrence
|
||||
readings:
|
||||
- ref: durbin1998biological
|
||||
locator: 'ch. 2'
|
||||
targets: [t-align-matrix-terms, t-align-local-vs-global, t-align-fill-matrix]
|
||||
summary: >-
|
||||
Introduces the alignment matrix and the recurrence, then contrasts the global and local fills.
|
||||
focus: >-
|
||||
Fill one small matrix by hand and follow the traceback.
|
||||
skip: >-
|
||||
Gloss the affine-gap extension. It comes in a later lecture.
|
||||
@@ -0,0 +1,22 @@
|
||||
# A 2.0 objective fragment (from the objectives prompt's worked shape). It must still validate under 2.1.
|
||||
learning_objectives:
|
||||
lo-alignment-recurrence:
|
||||
text: 'Use the dynamic-programming recurrence to produce an optimal alignment, and predict how the result moves when the scoring changes.'
|
||||
unit: u1
|
||||
level_ceiling: 3
|
||||
prerequisites: [lo-alignment-scoring]
|
||||
tags: [alignment, algorithms]
|
||||
|
||||
learning_targets:
|
||||
t-align-fill-matrix:
|
||||
text: 'Determine the optimal global alignment score for a short pair of sequences by filling the matrix from the recurrence, and read the alignment off the traceback.'
|
||||
objective: lo-alignment-recurrence
|
||||
level_ceiling: 3
|
||||
prerequisites: [t-align-matrix-terms]
|
||||
tags: [alignment, algorithms]
|
||||
t-align-gap-penalty-effect:
|
||||
text: 'Predict how raising the gap penalty changes the optimal path through the matrix.'
|
||||
objective: lo-alignment-recurrence
|
||||
level_ceiling: 3
|
||||
prerequisites: [t-align-fill-matrix]
|
||||
tags: [alignment]
|
||||
Reference in new issue
Block a user