]> git.giacomolli.uk - onechat/commitdiff
Rebuild agent memory in date order
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Mon, 9 Nov 2026 20:29:43 +0000 (17:29 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Mon, 9 Nov 2026 20:29:43 +0000 (17:29 -0300)
A rebuild merges new dated messages with the log of an agent in date
order, builds a new memory beside it with the real prompt and cache key,
and swaps the directories only when the whole tree is built. The old
directory stays as a timestamped backup, and a failed or stopped build
leaves it unchanged. Older history can so enter the chat before newer
decisions, which keeps the latest word on a thing the newest one.

The probe and the rebuild share one build runner with the call limit,
the quota stop, the waits before user messages, and the usage report.
Memory and the model client keep their own state behind methods. The log
takes an explicit date for a message and writes it to the day file of
that date.

Issue: b0b8bf9


No differences found