mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 11:19:51 +08:00
On a free-text mastery question, a learner's "I don't get it, explain" was judged ungraded and stored as the interaction's user_answer. Every later mastery_grade call then preferred that stored reply over the learner's actual answer — the judge rejected the same help request again as ungraded, and the question could never be cleared. The gate sat at mastery 0.0 until the tutor called mastery_skip_question itself. The committed user_answer is authoritative on purpose: the pause/resume boundary stores the learner's exact words, and a later model round must not paraphrase them. It stops being authoritative once the learner has said something else *and* the stored reply was never ruled on. Revise through the existing record_question_answer path, which rewrites user_answer and keeps the superseded attempt in the event log as assessment.revised. A repeated, empty, or whitespace-identical reply is not a revision, and a group interaction is excluded: its child questions keep their own per-leaf revisable logic. This is the free-text half of #1004, which only covered choice cards. Closes #2595.