DeepTutor
DeepTutor copied to clipboard
[Bug]: Mastery Path concept objective stuck in partial loop: tutor follow-ups don't ask for the judge's missing element, judge requires next objective's content
Do you need to file an issue?
- [x] I have searched the existing issues and this bug is not already filed.
- [x] I believe this is a legitimate bug, not just a question or feature request.
Related: #1940 (tracking), #2363, #2249.
Describe the bug
A CONCEPT objective gets stuck in an endless partial loop even though answers are accumulated correctly (cumulative learner_answer grows 186 → 266 → 430 → 594 → 719 chars across 5 learner turns, all result: partial, final: true).
Two causes combine:
- Tutor follow-up questions do not target the judge's missing element. Every
mastery_assessfeedback names the same gap ("the role of X: it provides decision-relevant information and coordinates via metrics/incentives"). The tutor, however, asks narrower sub-questions each time ("which information would department A need?", "why would a metric including inventory cost help?"). The learner answers those correctly, the tutor says "exactly", and the judge again returnspartialwith the same gap. From the learner's view: five correct answers, zero progress. - The judge's criterion includes content of a later objective. The objective is the first one of a module ("coordination problems and information needs as tasks of X, explained with the example"). The judge demands "steering behaviour via metrics and incentives", which is the explicit subject of the next objective ("distinguish decision support and behaviour steering"). The objective-scoped packet's
coverage.coveredalso already includes that later material. So the gate asks for something that has not been taught yet in this path.
Steps to reproduce
- Source-grounded path, module with objective A (example-based "explain why X is needed") followed by objective B (the two functions of X).
- Learn A; give a correct answer to the example, then answer each tutor follow-up correctly.
- Observe:
learning_evidencegets onepartialper turn with near-identical feedback;qualitative_mastery[A]stays false; tutor follow-ups never ask for the named gap.
1.7.1 + #2261 + #2324 + #2325 (cumulation works; this is not the single-message grading of #2249), model gpt-6.1-terra.
Expected behavior
- After a
partial, the tool result should give the tutor the concrete missing element and an instruction to ask exactly for it (or to teach it first if it was not taught yet), instead of free-form follow-ups. - The qualitative judge should only require what the objective itself states and what was taught for it; criteria that belong to a later objective in the same path should not block the earlier one (e.g. pass the neighbouring objectives' names to the judge as "out of scope").
- Optionally: path creation/confirmation should flag objectives whose wording overlaps a later objective.
Related Module
Mastery Path – learning/service.py (assess_qualitative_semantic), capabilities/mastery/tools.py (MasteryAssessTool result payload), mastery loop prompts.