Every run, the hourly one and Read now alike, read at most 10
conversations (PerRun), so a backlog of 400 (All) took 40 hours.
- A run the user asks for reads every conversation due
(memdistill.ReadAll, through distillNow): switching on, picking a
model or a longer range, and Read now. Still one request at a time,
at the picked model and reasoning level.
- The hourly run reads up to 30 (PerRun, was 10), more than a busy
hour brings, so only a backlog left by a stop or a failure waits for
it.
- The row shows how far a run has gone ("Reading conversations… 37 of
400", Progress -> doing/of in GET /api/memory/distill), with a Stop
(memdistill.Stop, POST /api/memory/distill/stop); switching off stops
it too. A stop drops the request in flight, which is read next time,
and isn't an error.
- After a run the row says how many it left unread (State.Left), and
Read now reads them. All's menu note no longer says "10 an hour".
docs/subsystems/memory.md says all of this.
Run (mote; all at base bb4dd8679, then the Go tests again at this head
on 53280aa08, which touches sessions stats only: ok):
- go test -count=1 ./internal/memdistill ./internal/memory: ok;
-race -count=3 ./internal/memdistill: ok
- go test -count=1 -run 'Distill|Dream|Budget' ./internal/gui: ok
- node --test library-memory.test.cjs i18n-keys.test.cjs, chromium and
webkit, 980 and 420 wide, every language: 26 pass, 0 fail
- go vet darwin; GOOS=linux -tags nogui; GOOS=windows (memdistill,
gui): ok. gofmt -l: clean.
A sandbox backlog: TestBacklogReadAtOnce lists 400 (Listed)
conversations under All; the hourly run reads 30 and leaves 370,
ReadAll reads all 370 with progress 1 of 370 to 370 of 370, and reads
none again.
Broken by hand:
- ReadAll capped at PerRun again: TestBacklogReadAtOnce red (read 30)
- Stop without cancelling the run: TestStopEndsTheRun times out
Not tried: a real run of a 400-conversation backlog against a real
model and account (how long it takes depends on the model; one request
each); the full suite (started after the tag).