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,16 @@
|
||||
# banks/alignment.yaml (coursebank 2.1): one option names the registry misconception it encodes
|
||||
bank: { id: alignment, title: Alignment }
|
||||
items:
|
||||
- id: q-align-which-scores-higher
|
||||
status: draft # coursebank requires a status on every item; an approved one also needs cognitive_process, sources, and design
|
||||
level: 2
|
||||
stem: 'Two alignments of the same pair have the same number of matching columns. Why can their scores differ?'
|
||||
learning_targets: [t-align-score-columns]
|
||||
options:
|
||||
- { id: o-columns-all-count, text: 'Mismatches and gaps also add to the score, so the other columns differ.', correct: true }
|
||||
- id: o-matches-only
|
||||
text: 'They cannot differ; the score counts matching columns.'
|
||||
misconception_id: mis-only-matches-count
|
||||
error_type: incomplete_understanding
|
||||
- { id: o-length, text: 'The longer alignment always scores lower.', misconception: 'students pick this when they think length alone is penalized' }
|
||||
- { id: o-order, text: 'The score depends on which sequence is written on top.', error_type: plausible_irrelevant, misconception: 'students pick this when they confuse the matrix layout with the score' }
|
||||
Reference in new issue
Block a user