mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1196] [MERGED] fix(long-term-memory): targeted group recall returns only the responder's memories #1341
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1341
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1196
Author: @Promansis
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/targeted-group-recall📝 Commits (2)
401f08bfix(long-term-memory): 1.3.39 — targeted group recall returns only the responder's memories (#1194)612b244test(long-term-memory): cover targeted filtering after the group grows (#1194)📊 Changes
14 files changed (+175 additions, -62 deletions)
View changed files
➕
artifacts/long-term-memory-1.3.39.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+6 -6)📝
packages/long-term-memory/CHANGELOG.md(+4 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+22 -22)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/generation-injection.ts(+13 -0)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts(+10 -0)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-runtime.regression.ts(+86 -0)📄 Description
Pull request
Linked issue
Closes #1194
Why this change
promptCharacterIds, but Long-Term Memory ignored it and recalled every chat character's memories plus global, chat-only, persona-only, mixed-character, and foreign-character/shared-chat notes. A targeted responder could receive memories that belong to another character.What changed
long-term-memory1.3.39:prepareGenerationLongTermMemorytreats a non-empty strict subset of a multi-character chat's characters as the targeted responder, and passes an explicitexclusiveCharacterIdssignal into retrieval.retrieveLongTermMemoryapplies the restriction only when that option is set: an eligible note must have non-emptyscope.characterIdsand every id must be in the target set. Global, chat-only, persona-only, mixed-character, and other characters' shared-chat notes are excluded; a non-targeted full-set handoff or a single-character chat keeps today's chat-wide behavior.manifest.json,server.mjs,artifacts/long-term-memory-1.3.39.zip, catalog v2/v3 lanes and the legacy alias, andnotes.jsonrelease notes;client.jsunchanged.npm run check(prettier/eslint) passes; other callers ofmatchesLtmScope/ltmScopesOverlap(GET /notes, transfer, extraction, reconciliation,subject-identity,/search) are unchanged because the new option is opt-in from generation only.Package and security impact
long-term-memoryengine.min/maxExclusiveunchanged (>=2.4.1 <4.0.0), capability API 1.6 unchanged. The Engine already supplies the target ids; no Engine change is required.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
npm run check;node scripts/test-catalog-lanes.mjs;node scripts/validate-package-locales.mjs;node scripts/validate-catalog.mjs;node scripts/tests/catalog-release-notes.regression.mjs;git diff --check.runtime,scope-targets,routes,routes-notes,routes-scope-identity,storage,local-characters,installation.installationregression installs the exact committedlong-term-memory-1.3.39.zipand covers install, offline restart, full-backup inclusion, uninstall, reinstall, and durable-byte preservation against the real Engine host runtime.4a1ee518310f58285effc2583f075ca2d742880ea230ac04fa656c793026d19e.Documentation impact
UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.