The personal memory list stops at 200 notes with no way to page #2141

Closed
opened 2026-11-27 07:25:25 +00:00 by sam · 1 comment
Owner

Why: maxNotes = 200 in modules/memory/notes.go bounds what a conversation is given, and it is also the only limit on the inspection read a person and the shared list use. A person who has remembered more than 200 facts of one class can no longer see the oldest ones through GET /api/memory/notes, and the response carries no total and no offset, so nothing says the list was cut.

Exposure: anyone past 200 notes of one class. The write path is one fact per call, so it is reachable over months rather than immediately. Those notes are still forgettable by id, and rememberNote never refuses for volume.

Done when: the memory list can reach every note a caller may read, either by paging (limit/offset with a total) or by lifting the conversation bound off the inspection read.

**Why**: `maxNotes = 200` in `modules/memory/notes.go` bounds what a conversation is given, and it is also the only limit on the inspection read a person and the shared list use. A person who has remembered more than 200 facts of one class can no longer see the oldest ones through `GET /api/memory/notes`, and the response carries no total and no offset, so nothing says the list was cut. **Exposure**: anyone past 200 notes of one class. The write path is one fact per call, so it is reachable over months rather than immediately. Those notes are still forgettable by id, and `rememberNote` never refuses for volume. **Done when**: the memory list can reach every note a caller may read, either by paging (`limit`/`offset` with a total) or by lifting the conversation bound off the inspection read.
sam added the buglow labels 2026-11-27 07:25:25 +00:00
Author
Owner

Fixed in 27cd2d0df.

The conversation read keeps maxNotes; the read of a person's own notes (Mine) and the shared list (Shared) now pass allNotes (0), which the store reads as LIMIT NULL, so both reach every note the caller may read. Nothing else changes: the response shape stays as it was, and no note becomes readable that wasn't.

TestTheConversationBoundStaysOffTheInspectionRead (modules/memory/notes_test.go) pins it with the fake store: it fails before the change with "the read of a person's own notes passed limit 200, want 0", and it also asserts the conversation read still passes 200 so the bound can't silently return to one side or the other.

task check passes on a clean worktree at the commit.

Fixed in 27cd2d0df. The conversation read keeps `maxNotes`; the read of a person's own notes (`Mine`) and the shared list (`Shared`) now pass `allNotes` (0), which the store reads as `LIMIT NULL`, so both reach every note the caller may read. Nothing else changes: the response shape stays as it was, and no note becomes readable that wasn't. `TestTheConversationBoundStaysOffTheInspectionRead` (modules/memory/notes_test.go) pins it with the fake store: it fails before the change with "the read of a person's own notes passed limit 200, want 0", and it also asserts the conversation read still passes 200 so the bound can't silently return to one side or the other. `task check` passes on a clean worktree at the commit.
sam closed this issue 2026-11-27 08:17:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#2141