You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.0 KiB
2.0 KiB
Task 1: AI Training Evaluation Persistence Report
Delivered
- Added
docs/sql/2026-07-16-ai-training-evaluation.sql.- Creates
ai_training_evaluationwith a unique(student_user_id, teaching_class_id, task_id)key. - Persists independent help and assessment statuses, task/answer snapshots, reports, raw model responses, model names, completion times, errors, and assessment score.
- Adds nullable
student_training_answer.ai_assessment_score.
- Creates
- Added
AiTrainingEvaluation,AiTrainingEvaluationMapper, and its MyBatis XML mapping.findByStudentClassAndTaskretrieves the sole evaluation record for a student, teaching class, and task.insertIgnoresafely creates the record under concurrent requests.claimHelpandclaimAssessmenttransition onlyNOT_STARTEDorFAILEDrows toPROCESSING.- Completion and failure operations update only rows currently in
PROCESSING.
- Added
aiAssessmentScoretoStudentTrainingAnswer, its XML result/column/dynamic insert/dynamic update mappings, andupdateAiAssessmentScorefor a targeted score write-back. - Added the assessment score column to the fresh
student_training_answertable DDL inStudentTrainingAnswerServiceImpl.
Test-first evidence
- Added
AiTrainingEvaluationServiceImplTestbefore implementation. - Ran
mvn -Dtest=AiTrainingEvaluationServiceImplTest testbefore production changes.- Expected RED result: test compilation failed because
AiTrainingEvaluationandAiTrainingEvaluationMapperdid not exist.
- Expected RED result: test compilation failed because
- Implemented the persistence files and re-ran the same targeted Maven test.
- GREEN result: 3 tests run; 0 failures; 0 errors; 0 skipped.
Verification notes
git diff --checkcompleted without whitespace errors.- Maven emitted existing project-model warnings about local Aspose
systemPathdependencies and the relocated MySQL connector artifact. They do not originate from this task and did not prevent compilation or the targeted test from succeeding.