Repository navigation
fix: refuse mastery visual cards whose pixels were not inspected - #2502
Merged
pancacake merged 1 commit intoNov 15, 2026
Merged
Conversation
A visual whose source resolved but whose pixels were never in the model input was still registered. Grade and correct then failed closed, and only void could clear the card. Refuse that visual before registration, and tell a correction of an already stored card to void it. Fixes HKUDS#2494 Co-authored-by: markxu <[email protected]>
Contributor
|
Reviewed: unsupported single/group visual cards are refused before registration; existing uninspected cards remain Merge-ready. Boundary note: direct internal |
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.
Summary
prepare_visualrefuses a visual when the named source was not in the tutor's model input, somastery_quizreturnsVisual practice is unavailable: … no assessment was createdand does not register the card.pixels_inspected: falsestill grades asungradedand does not change mastery.mastery_repair_questionwithaction="correct"on that card returns the existing “Void it and pose a supported replacement” guidance.action="void"is unchanged.Fixes #2494
AI assistance
This fix and its regression tests were prepared with AI assistance.
Test plan
ungradedwith the pixel message and no mastery changeaction="correct"asks to void it;action="void"abandons the card and leaves mastery unchangedruff checkandruff format --checkon the edited filesAdditional verification: 80 focused tests and 745 learning/capability tests passed.