fix(tutor-quality): check every Topic an Example activates for a masterable LEARN path - #149
Merged
Merged
Conversation
…erable LEARN path The authoring gate checked prerequisites and the executable LEARN path only for Topics that a quality case expects. A Topic that a real Example merely activates was never checked. In the production catalog, variables-and-serial was activated on 16 of 35 Examples and unresolved from the first turn (its Concept serial-output required an int-only prerequisite), which blocked the Topic-driven Tutor with content-exhausted for the whole session. New catalog-wide invariant, independent of quality cases: for every Example in the manifest and every Topic the production matcher activates on its main sketch, a learner who answers every planned question successfully (production planner, the Example's effective LEARN strategy) must reach Topic mastery. No provider is involved; weak-answer exhaustion and DEEPEN capacity stay out of scope. Issue code unmasterable-example-activation, with the Example ID. The strict LEARN loop moves into strictLearnPath and is shared with the existing per-case executable-path check (behavior unchanged). RED/GREEN: 6 validator tests and 1 directory test (RED without the wiring). Against the real Course Content: 16 issues at 2ac716f, none with the serial-output prerequisite removed. TutorQuality SSOT §4 states the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ttbombadil
added a commit
that referenced
this pull request
Oct 3, 2026
…refined fixture finding Prerequisite removal (UnoSim-Examples#4) and the catalog-wide authoring gate (#149) are decided and implemented; the catalog has no Topic left that is unresolved from the first turn. The fixture finding is refined: missing LEARN evidence alone does not cause the recurring follow-up, because the planner excludes used questions only through the dialog history; consistent fixtures need a planner repetition decision and more post-mastery content. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 3, 2026
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.
Purpose
The authoring gate missed the most severe deterministic Tutor defect in the production catalog. This PR extends it with a generic invariant, so that the anchor corpus and the real Course Content cannot drift apart unnoticed again.
Finding
tutor-quality-validatorchecked prerequisites, mastery capacity and the executable LEARN path only for Topics that a quality case expects. A Topic that a real Example merely activates was never checked.In
ttbombadil/unosim-examples(2ac716f, the default Course Content source inserver/config.ts),variables-and-serialis activated on 16 of 35 Examples and unresolved from the first turn: its Conceptserial-outputrequired anint-only prerequisite. On those Examples the Topic-driven Tutor never serves a planned question and stayscontent-exhaustedfor the whole session. The content fix is in ttbombadil/UnoSim-Examples#4.Invariant
For every Example in the manifest and every Topic the production matcher activates on its main sketch, a learner who answers every planned question successfully must reach Topic mastery. The path uses the production planner, Topic classification and the Example's effective LEARN strategy.
unmasterable-example-activationcarriesexampleId(also printed by the CLI).strictLearnPathand shared with the existing per-case check; that check's behavior is unchanged.RED / GREEN
validate:tutor-course-contenton real content2ac716funmasterable-example-activation(exactly the 16 known Examples, nothing else)Rollout order
aaa52fadand passes..unosim-compatible-commitin UnoSim-Examples so that its CI enforces the invariant.Merging this PR before #4 makes the local
validate:tutor-course-contentagainst the current content red. UnoSim's own CI is unaffected, because it uses synthetic fixtures.Gates
db272a84)npm run checknpm run test:tutor-qualitynpm run test:unitnpx eslint . --ext .ts,.tsxnpm run check:docs,git diff --checkNo provider calls; no prompt, Judge, criteria or verdict change.
🤖 Generated with Claude Code