[GH-ISSUE #600] [Issue]: Memory Nag shared memories exceed per-character consideration cap #314

Closed
opened 2026-10-20 17:26:24 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Memory Nag can exceed Maximum memories to consider at once per character when a memory belongs to more than one relevant character. A shared memory is deduplicated before it consumes the later character's quota.

The recall prompt can also select a vault memory that merely restates the immediate scene or an action happening now, instead of surfacing useful prior history.

Affected package

Memory Nag (memory-nag)

Expected behavior

Every selected memory should count against the consideration limit of every associated relevant character, even when the same memory was already selected while processing another character. Recall should reject memories that only repeat the current scene.

Actual behavior

A shared memory only consumes the quota of the first processed character. Later characters can therefore receive the shared memories plus their full allotment of character-only memories. The prompt does not explicitly reject present-scene repetition.

Steps to reproduce

  1. Set the per-character consideration limit to 5.
  2. Make two characters relevant and give the second character two memories shared with the first plus five character-only memories.
  3. Trigger Memory Nag and inspect <agent_runtime_context>; seven memories associated with the second character can be included.
  4. Include a vault memory describing the exact action in the latest scene; it can be selected as a nag.

Environment

  • Marinara Engine version: 2.4.4 staging
  • Package version: Memory Nag 1.0.16
  • Install type: source
  • OS + version: macOS
  • Browser or app shell: Marinara desktop browser shell

Logs, screenshots, or video

The runtime context showed five Pantalone-associated candidates and seven Maukie-associated candidates with a configured limit of five.

Additional context

Release blocker for v2.4.4. Keep the implementation local to shortlist accounting and the default recall prompt, with a regression proof.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/600 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Memory Nag can exceed **Maximum memories to consider at once per character** when a memory belongs to more than one relevant character. A shared memory is deduplicated before it consumes the later character's quota. The recall prompt can also select a vault memory that merely restates the immediate scene or an action happening now, instead of surfacing useful prior history. ## Affected package Memory Nag (`memory-nag`) ## Expected behavior Every selected memory should count against the consideration limit of every associated relevant character, even when the same memory was already selected while processing another character. Recall should reject memories that only repeat the current scene. ## Actual behavior A shared memory only consumes the quota of the first processed character. Later characters can therefore receive the shared memories plus their full allotment of character-only memories. The prompt does not explicitly reject present-scene repetition. ## Steps to reproduce 1. Set the per-character consideration limit to 5. 2. Make two characters relevant and give the second character two memories shared with the first plus five character-only memories. 3. Trigger Memory Nag and inspect `<agent_runtime_context>`; seven memories associated with the second character can be included. 4. Include a vault memory describing the exact action in the latest scene; it can be selected as a nag. ## Environment - Marinara Engine version: 2.4.4 staging - Package version: Memory Nag 1.0.16 - Install type: source - OS + version: macOS - Browser or app shell: Marinara desktop browser shell ## Logs, screenshots, or video The runtime context showed five Pantalone-associated candidates and seven Maukie-associated candidates with a configured limit of five. ## Additional context Release blocker for v2.4.4. Keep the implementation local to shortlist accounting and the default recall prompt, with a regression proof. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:24 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Aug 25, 2026):

Release-blocker acceptance also includes a small prompt correction: turn-by-turn recall must not select a memory that merely restates the immediate scene or action currently happening. Nags should surface relevant prior history, not the present moment.

<!-- gh-comment-id:5412830034 --> @SpicyMarinara commented on GitHub (Aug 25, 2026): Release-blocker acceptance also includes a small prompt correction: turn-by-turn recall must not select a memory that merely restates the immediate scene or action currently happening. Nags should surface relevant prior history, not the present moment.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 25, 2026):

Fixed in #601 and merged to staging as Memory Nag 1.0.17. Shared memories now consume every associated character's shortlist quota, and the recall prompt rejects immediate-scene repetition.

<!-- gh-comment-id:5412953341 --> @SpicyMarinara commented on GitHub (Aug 25, 2026): Fixed in #601 and merged to staging as Memory Nag 1.0.17. Shared memories now consume every associated character's shortlist quota, and the recall prompt rejects immediate-scene repetition.
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#314
No description provided.