Commit Graph
38 Commits
Author SHA1 Message Date
alexmandClaude 6c07122fc5 feat(migrate): glossary from 1.0 terms.yaml and values.yaml
`coursebank migrate glossary --terms terms.yaml --values values.yaml`
writes glossary.yaml. Ids gain their term- and val- prefixes, course
becomes term and meaning becomes definition, a value's term: gains the
prefix of the id it names, and first and lectures are dropped; each one
the targets now contradict is reported, as is each entry no target lists
yet and each field 2.1 has no place for.

Like the other migrations it copies lines, so comments, block scalars,
and flow mappings survive. Every entry is read back and compared with the
same conversion done on the parsed source, falling back to the serializer
when the copy differs. An existing glossary.yaml is added to, never
rewritten, and an entry the course already declares is skipped, so a
second run is a no-op.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 12:23:39 -05:00
alexmandClaude 50a1e083c1 feat(render): 2.1 lecture page, glossary page, and student reports
Derive each glossary entry's first lecture from teaching order and split
a lecture's terms into new and earlier. Add `coursebank lecture page`
(objectives with descriptions, targets with explanations and ceilings
named by policy.levels, terms, equations, numbers, common mistakes,
readings with minutes, materials) and `coursebank lecture glossary`.
Render brace references in student prose as links, values, quoted
beliefs, or target numbers. Student reports, Markdown and Typst, show
what meeting each target looks like, the correction for a registry
misconception, and group misses that share one.

A test renders every student-facing output from the example and checks
that no authoring, notes_private, evidence, conflicts, or status text
reaches it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 12:15:15 -05:00
alexmandClaude b8fdf4d6a8 feat(lint): glossary rules for terms, equations, values, misconceptions
Fourteen rules in a new `glossary` family (src/authoring/lint/glossary.rs):
unused entries, renamed or coined terms with no textbook name, coined
terms with no exam wording, circular definitions, coined terms in items,
unsourced values, value variants in prose or items, policy-forbidden
target wording, explanation terms a target does not list, recall values
printed in items, deep targets on equations with no implications, and
unresolved {lo-}/{t-} references in 2.0 prose fields. Two of them are
notes: entries defined away from the objective that first needs them,
and the count of proposed entries.

Adds Severity::Note. `coursebank lint` prints notes by default and does
not fail on them, so a course with proposed entries still passes a lint
gate. A distractor that names a registry misconception counts as designed
and as having student feedback.

On the example the glossary rules report exactly glossary-unused on
val-per-decade and glossary-proposed for two entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 12:02:50 -05:00
alexmandClaude 960cf6cbd3 feat(validate): 2.1 errors for the glossary registries
Validation now checks what 2.1 adds: registry ids carry their prefix and
are unique across all registries (E2101); a target's terms, equations,
values, and misconceptions name declared entries (E2102); equation
symbols resolve (E2103); values give a value or an ordered range and a
declared term (E2104); citation keys in the new registries resolve
(E2105); brace references in student-facing prose resolve (E2106);
`conflicts` and `target_text_forbid` patterns compile (E2107); and a bank
option's misconception_id is declared (E2108).

An unresolved {lo-...} or {t-...} in a field 2.0 already had (objective
and target text, reading notes) is left to the linter, because 2.0
accepted it and rendered it literally; the new reference kinds and the
new fields are checked everywhere.

Adds the `regex` crate, with default features off, for the course's own
patterns. Each error has a test built from the prototype's self-test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:58:53 -05:00
alexmandClaude 51a2fd235f 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>
2026-11-16 11:55:18 -05:00
alexm 15175f64fd feat: include bonus
Pipeline / check (pull_request) Successful in 12m11s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
2026-11-02 08:22:07 -05:00
alexmandClaude c8d6f4a5dd Name Scienting as the copyright holder and contributor
Pipeline / check (pull_request) Successful in 12m21s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
Replace 'Scientific Computing Studio' in the source headers, the Cargo.toml
authors, and the LICENSE contributor line. pixi.toml still has the old
authors line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014zNf4shD4zaCKLucZWPYL9
2026-10-20 00:21:19 -04:00
alexm e9e5584ab9 fix: exam typst template
Pipeline / check (pull_request) Successful in 4m8s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
2026-10-05 14:45:02 -04:00
alexm c6d6ee10b6 feat: improvement
Pipeline / check (pull_request) Successful in 5m0s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
2026-09-27 01:11:09 -04:00
alexm 5ac1e317c0 feat: cooked up something fierce
Pipeline / check (pull_request) Successful in 3m9s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
2026-09-26 18:22:25 -04:00
alexm eabc98ad31 feat: splitting 2026-09-26 01:15:12 -04:00
alexm 220363d4d3 feat: more comprehensive cohort report
Pipeline / check (pull_request) Failing after 35s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
2026-09-22 01:19:35 -04:00
alexm cea9769022 fix: seals after changes 2026-09-22 00:58:32 -04:00
alexm d3f21e913b fix: exam report targets and objectives
Pipeline / check (pull_request) Successful in 2m43s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
2026-09-22 00:39:22 -04:00
alexm cfe8a3216c fix: rendering in typst
Pipeline / check (pull_request) Successful in 3m8s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
2026-09-22 00:19:40 -04:00
alexm 003340dc6f fix: handle targets
Pipeline / check (pull_request) Failing after 2m38s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
2026-09-21 15:24:16 -04:00
alexm 8ec48fb185 feat: add learning objective targets
Pipeline / check (pull_request) Failing after 3m25s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
2026-09-21 14:02:34 -04:00
alexm 9755417899 feat: add more report cli options
Pipeline / check (pull_request) Failing after 21s
Pipeline / docs (pull_request) Skipped
Pipeline / nightly (pull_request) Skipped
Pipeline / release (pull_request) Skipped
2026-09-20 10:54:39 -04:00
alexm beec860a2c refactor: better what to read 2026-09-20 09:40:00 -04:00
alexm cea03048b8 feat: improve dropped question support 2026-09-20 00:41:26 -04:00
alexm ba84c4d82a chore: add dropped question to reports 2026-09-19 23:15:31 -04:00
alexm 92c8a8fc75 refactor: improve cohort report 2026-09-19 22:19:25 -04:00
alexm c06d5caa8c refactor: improve student report 2026-09-19 21:30:04 -04:00
alexm 994e9065e8 feat: implement reports 2026-09-19 20:06:41 -04:00
alexm 6ae993d393 fix: improve key 2026-09-14 13:01:09 -04:00
alexm 1b6b1f99fd feat: cleanup exam template 2026-09-14 05:22:12 -04:00
alexm 51f095d677 fix: handle latex equations when rendering typst 2026-09-14 04:20:15 -04:00
alexm b375e6c94f feat: fix exporting to pdf 2026-08-30 21:20:03 -04:00
alexm d38d89549c fix: improve canvas export 2026-08-26 21:24:22 -04:00
alexm 4cd33f1768 fix: handling of equations in QTI 2026-08-17 01:37:01 -04:00
alexm 1cc8137be9 feat: write quarto assignment with encryption 2026-08-10 03:25:15 -04:00
alexm 327ac371e4 feat: improve worksheet 2026-08-10 01:52:15 -04:00
alexm f475c630e0 feat: support readings and lecture rendering 2026-08-08 16:24:50 -04:00
alexm 468af3a815 fix: merge .gitignore instead of overwrite 2026-08-08 13:06:48 -04:00
alexm 5515567f17 refactor: cargo fmt
Deploy docs / deploy (push) Canceled after 0s
Nightly / nightly (push) Canceled after 0s
CI / check (push) Successful in 3m12s
2026-08-07 23:36:26 -04:00
alexm 32e1dc1101 fix: don't flatten docs
Sync README to GitHub / sync (push) Successful in 12s
CI / check (push) Failing after 25s
Deploy docs / deploy (push) Canceled after 4m26s
Nightly / nightly (push) Canceled after 16s
2026-08-07 23:31:35 -04:00
alexm 28d63c14e3 feat: git-based nightly versions 2026-08-07 23:20:42 -04:00
alexm abc0bdf621 Dev (#1)
Sync README to GitHub / sync (push) Successful in 12s
CI / check (push) Successful in 8m31s
Deploy docs / deploy (push) Successful in 6m44s
Nightly / nightly (push) Successful in 10m33s
Reviewed-on: #1
2026-08-07 15:48:11 -04:00