Spaces:
Runtime error
Runtime error
Commit History
-
[NAH-13] Weak-topic targeting: bias next_card toward low-grade topics
next_card now looks at the next few due cards and surfaces the one whose topic has the lowest average grade so far (when that topic is actually weak, avg < 3). The chosen card is rotated to the front so apply_result's "pop the front" contract still holds. No-op until there's answer history, so early cards keep normal order. Tests (test_weak_topic.py, no model): no-history order, weak topic surfaced, lookahead window respected, apply_result contract preserved. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>ab8e02f