2 Commits

Author SHA1 Message Date
JohnnnSinaaa
c4e50815ac test(mastery): cover body-based expected_answer registration 2026-11-11 02:40:01 -08:00
XZH
cb4c25db26 fix(mastery): shuffle choice options so the correct answer moves (#1691)
Models register the correct option first almost every time, and the
registration order is exactly what the answer card renders — so quiz
after quiz read A = correct.

Shuffle the options at mastery_quiz registration, after validation and
echo stripping: bodies stay unique, labels are re-issued positionally,
and the expected answer follows its body to the new label, so the
interactive card and the deterministic grader keep comparing the same
representation. Mastery-tools tests now assert through option bodies
instead of registration order.

Co-authored-by: multica-agent <github@multica.ai>
2026-10-03 03:33:54 -07:00