Files
DeepTutor/deeptutor
Harsh f76de28db9 fix(mastery): count the whole memory request against the history plan
The fold loop counted only each exchange's archive text and always folded
the oldest exchange, so one exchange over the plan was sent whole, and
prior learner memory could push a fitting exchange over it.

Fold the longest prefix of whole exchanges whose complete request fits:
prior memory, the system instruction and the exchanges as _summarize()
serializes them, plus a reserve for the length line. If even the oldest
exchange doesn't fit, send no memory call; the watermark stays and the
exchange stays in exact recall.
2026-11-11 11:32:20 +05:30
..
2026-11-06 01:56:26 +08:00
2026-11-06 01:56:40 +08:00
2026-11-06 02:06:45 +08:00
2026-11-06 01:56:24 +08:00
2026-11-06 16:41:21 +08:00
2026-11-06 16:41:21 +08:00
2026-11-06 16:41:21 +08:00