Skip to content

chore(tooling): the content rules are the engine's (template#92) - #44

Merged
astrapi69 merged 1 commit into
mainfrom
chore/engine-owns-content-rules
Oct 1, 2026
Merged

astrapi69 merged 1 commit into
mainfrom
chore/engine-owns-content-rules

Conversation

@astrapi69

Copy link
Copy Markdown
Owner

Summary

This brings the template-owned files in line with adaptive-learner-content-template#92 (merge 5e2bb78): the content rules are the engine's. The 12 changed files are copied byte for byte from the template, and the 2 deleted tests are removed.

  • Engine gate (validate_with_engine.mjs): a valid lesson must also meet the engine's quality minimums (validateLessonQuality, keyed to the lesson's purpose); they block, as before. Each lesson gets its set's source language, for the card-back script lint.
  • Structure gate (validate_content.py): keeps the shape, the directory layout and the set manifests. The quality layer, the language-pair and title_native checks, the script table, the distractor rules and the accept_orderings copy moved to the engine (learn-content-engine#185, #190, #202).
  • engine_check.mjs: new. generate_exercises.py asks the engine through it, which also fixes a check that never reported anything.
  • audit_content.py: drops the checks the engine gate now blocks on.
  • Other files: the CI test job installs the pinned engine; ownership.json and the docs are updated.

Measured before the wave: a snapshot of this repository with these files had a green self-test, 0 files with engine errors and all sets passing the structure gate. Its test results were unchanged apart from the two deleted test files.

🤖 Generated with Claude Code

Template-owned files copied byte for byte from
adaptive-learner-content-template 5e2bb78: the quality minimums, the
language rules and unique ids are the pinned engine's (0.34.0); the
structure gate keeps the shape, the layout and the set manifests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@astrapi69
astrapi69 merged commit 1b122c1 into main Oct 1, 2026
7 checks passed
@astrapi69
astrapi69 deleted the chore/engine-owns-content-rules branch October 1, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants