Repository navigation
fix(schema): a parametric variable's description says the engine samples and evaluates; release 0.42.1 (#277) - #278
Merged
Conversation
…les and evaluates (#277) The ExerciseVariable description ended "The engine validates the contract and never samples or evaluates", false since engine#220: resolveExerciseVariables samples and evaluates and evaluateExpression is exported. It now names both helpers and that the random source is a parameter. The frozen schema baseline takes the same text (the byte test went red on the edit, as it should); make sync-types regenerated the doc comment in lesson-schema.generated.ts. No type, field or rule changes; x-schema-version stays 1.19. Found by adaptive-learner's v2.17.0 docs audit: its generated lesson-format reference publishes the sentence in eight languages. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Patch release: the ExerciseVariable description (#277), plus the Pages site changes already on main (engine#272, engine#274), which ship nothing in the package. CHANGELOG dated, version claims in docs/comparative-analysis.md moved to 0.42.1 (the docs-version-claims test found the three). make release-check, make prose-check and npm run docs:api:check are green. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #277
What
schema/lesson.schema.json,ExerciseVariable.description: "The engine validates the contract and never samples or evaluates." becomes "The engine validates the contract and offers the sampling and evaluation as pure helpers,resolveExerciseVariablesandevaluateExpression(engine#220), which a consumer may call; the random source is a parameter." The old sentence has been false since engine#220 (PR feat(variables): the engine evaluates parametric exercises (refs #220) #225, 2026-09-25).src/schema-baseline.test.ts, 1 failed), as designed, and is green again with the baseline updated in the same commit.make sync-typesregenerated the doc comment insrc/types/lesson-schema.generated.ts.x-schema-versionstays 1.19.docs/comparative-analysis.mdmove to 0.42.1.Why now
Found by adaptive-learner's docs audit for its v2.17.0 release (adaptive-learner#3831). The app generates its developer page
lesson-format-reference.mdin 8 help languages from the schema mirror, so it publishes the false sentence. After this release the app re-pins (make sync-schema), and the page follows. The content repos need no re-pin: they generate nothing from descriptions.Gates
make release-check: green. 77 test files, 2076 tests, lint, typecheck, build. The docs-version-claims test first found the three stale "0.42.0" claims indocs/comparative-analysis.md.make prose-check: OK.npm run docs:api:check: OK.Docs audit (
.claude/rules/release.md)For each change in the 0.42.1 section I searched README, CONTRIBUTING,
docs/, both blog languages and the in-code docs:docs/lesson-format.mdalready documentsresolveExerciseVariables(lines 423-458), so nothing to change.did-we-reinvent-the-wheel.md, en and de) state the original split and carry an addendum on engine 0.34.0 and engine#220, so they hold as dated history.src/variables.ts:153"Never evaluates anything" describesvariableReferences, which only lists names, so it is true and stays.scripts/*docstrings) landed with them; nothing new.docs/comparative-analysis.mdnow says 0.42.1 (three places).docs/architecture.md:825names 0.42.0 as the version that removeddescription, which is history and stays.After merge
Tag
v0.42.1,make publish, wait for the registry, GitHub release, then the app re-pin.🤖 Generated with Claude Code