Files
DeepTutor/tests/agents/question
ZQR1101 ae4bce956c fix(question): retry a starved quiz repair, and count it honestly
The quiz step asks for one JSON object out of a budget that reasoning
tokens also draw on, so a thinking model can spend the whole budget
thinking and leave nothing to parse. The repair round that exists to
rescue it is itself an LLM round and starves the same way, with nothing
after it left to ask again -- the learner got a "[Generation failed]"
placeholder, which is #1508's probabilistic missing question. Give that
round the retry _plan already has.

The envelope then hid the failure: `successful` counted
metadata["error"], a key the pipeline never writes, so an
all-placeholder quiz reported success=True / failed=0 to book blocks and
exam_mimic. Count `issues` instead -- it is recomputed after the repair
attempt, so what survives it is the question the learner actually got.
2026-09-21 21:29:38 +08:00
..