[GH-ISSUE #467] [Long-Term Memory] Bound Review Queue context and persistence #235

Closed
opened 2026-10-20 17:25:39 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Aug 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/467

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

Long-Term Memory's Review Queue currently hydrates review context through broad note retrieval and can expose acceptance actions while required context is still unavailable. Its review-state persistence also needs coalesced writes and reliable lifecycle flushing so recent edits are not lost during blur, navigation, unmount, or chat changes.

Proposed package or change

Improve the existing Long-Term Memory package by adding a bounded ids mode to GET /notes, using that mode for Review Queue context, failing closed when context cannot be loaded, and coalescing review-state persistence with explicit lifecycle flushes. Add route, UI, and lifecycle regression coverage without changing the shared schema or Marinara Engine.

Why should this be optional?

Long-Term Memory is already an optional downloadable package. The change remains package-owned because it affects the package's server route, client Review Queue, and package regression tests rather than core Engine behavior.

Alternatives considered

Keeping the existing broad requestAllNotes retrieval would preserve unnecessary work and would not provide a clear trust boundary for missing review context. Adding a new endpoint or a persistence service would expand the package surface without being required for this behavior.

Additional context

The implementation will preserve existing note-list behavior when ids is absent, use a maximum of 100 requested IDs, and build the package only after source and focused regression validation are complete.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Aug 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/467 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? Long-Term Memory's Review Queue currently hydrates review context through broad note retrieval and can expose acceptance actions while required context is still unavailable. Its review-state persistence also needs coalesced writes and reliable lifecycle flushing so recent edits are not lost during blur, navigation, unmount, or chat changes. ## Proposed package or change Improve the existing Long-Term Memory package by adding a bounded `ids` mode to `GET /notes`, using that mode for Review Queue context, failing closed when context cannot be loaded, and coalescing review-state persistence with explicit lifecycle flushes. Add route, UI, and lifecycle regression coverage without changing the shared schema or Marinara Engine. ## Why should this be optional? Long-Term Memory is already an optional downloadable package. The change remains package-owned because it affects the package's server route, client Review Queue, and package regression tests rather than core Engine behavior. ## Alternatives considered Keeping the existing broad `requestAllNotes` retrieval would preserve unnecessary work and would not provide a clear trust boundary for missing review context. Adding a new endpoint or a persistence service would expand the package surface without being required for this behavior. ## Additional context The implementation will preserve existing note-list behavior when `ids` is absent, use a maximum of 100 requested IDs, and build the package only after source and focused regression validation are complete. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#235
No description provided.