[PR #1037] [MERGED] fix(long-term-memory): keep chat-only availability private #1261

Closed
opened 2026-10-21 05:07:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1037
Author: @Promansis
Created: 9/23/2026
Status: ✅ Merged
Merged: 9/23/2026
Merged by: @Promansis

Base: staging ← Head: fix(long-term-memory)/1028-chat-only-availability


📝 Commits (4)

  • 87a9dae fix(long-term-memory): keep chat destinations private (#1028)
  • 3a1dc44 test(long-term-memory): isolate chat-only import fixture (#1028)
  • b1ac8f6 test(long-term-memory): assert grouped chat extraction scope (#1028)
  • e4beddd test(long-term-memory): generate grouped chat evidence (#1028)

📊 Changes

21 files changed (+267 additions, -133 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.14.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+5 -0)
📝 packages/long-term-memory/client.js (+23 -23)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+48 -48)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+3 -6)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/chat-scope.ts (+2 -5)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/scoped-targets.ts (+7 -1)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/scope.ts (+4 -0)
📝 scripts/build-feature-packages.mjs (+4 -2)
📝 tests/long-term-memory-delta-review.regression.ts (+20 -0)
📝 tests/long-term-memory-extraction-graph.regression.ts (+28 -0)
📝 tests/long-term-memory-routes.regression.ts (+23 -0)
📝 tests/long-term-memory-runtime.regression.ts (+24 -1)

...and 1 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1028

Why this change

  • A memory intended for one chat could become available in other chats through a shared persona, character, or group.

What changed

  • Long-Term Memory now keeps current-chat write/import destinations chat-only while retaining expanded source discovery and explicit sharing selections. Narrower extraction forks rather than modifying a broader-visible memory.
  • Added scope, import, recall, and extraction regressions; rebuilt Long-Term Memory 1.3.14 manifest, bundles, archive, and catalog entries. Corrected boundary-derived build provenance in the feature builder.

Package and security impact

  • Affected package IDs: long-term-memory (1.3.14).
  • Engine compatibility impact: unchanged (minimum 2.4.1); package boundary provenance retained.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: availability of newly extracted chat-only memories is narrower; existing broader scopes are not migrated. Automated install, offline restart, backup, uninstall, reinstall, and durable-byte checks passed.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • No manual verification performed. Automated test-ltm.sh all and test-ci.sh passed on 3a1dc443; the browser lifecycle and installation regressions are included. Hosted checks remain pending.

Documentation impact

  • No documentation changes needed

  • Updated this README catalog and package guidance

  • Updated linked Marinara Engine documentation

  • Updated the Long-Term Memory changelog for 1.3.14; no README or Engine documentation changes.

UI evidence (if applicable)

  • Automated browser lifecycle covered source availability and mobile behavior; no screenshots or recordings attached.

Summary by CodeRabbit

  • Bug Fixes
    • Current-chat memories are now kept exclusive to that chat, including within group chats. Explicit persona, character, and group destinations remain shared.
    • New chat-only evidence is kept separate rather than added to a broader existing memory.
  • Updates
    • Long-Term Memory has been updated to version 1.3.14.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1037 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/23/2026 **Status:** ✅ Merged **Merged:** 9/23/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/1028-chat-only-availability` --- ### 📝 Commits (4) - [`87a9dae`](https://github.com/Pasta-Devs/Marinara-Agents/commit/87a9dae5a693a1432459dc297cc65861d6dddb57) fix(long-term-memory): keep chat destinations private (#1028) - [`3a1dc44`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3a1dc443c0f7f7e67e59a8dfa5b38aa3578107b3) test(long-term-memory): isolate chat-only import fixture (#1028) - [`b1ac8f6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b1ac8f679ff497f5e4d8e5dd1c55c030ee67ce13) test(long-term-memory): assert grouped chat extraction scope (#1028) - [`e4beddd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e4bedddf3316910db8732a0a1209a66e648de596) test(long-term-memory): generate grouped chat evidence (#1028) ### 📊 Changes **21 files changed** (+267 additions, -133 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.14.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+5 -0) 📝 `packages/long-term-memory/client.js` (+23 -23) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+48 -48) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+3 -6) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/chat-scope.ts` (+2 -5) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/scoped-targets.ts` (+7 -1) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/scope.ts` (+4 -0) 📝 `scripts/build-feature-packages.mjs` (+4 -2) 📝 `tests/long-term-memory-delta-review.regression.ts` (+20 -0) 📝 `tests/long-term-memory-extraction-graph.regression.ts` (+28 -0) 📝 `tests/long-term-memory-routes.regression.ts` (+23 -0) 📝 `tests/long-term-memory-runtime.regression.ts` (+24 -1) _...and 1 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1028 ## Why this change - A memory intended for one chat could become available in other chats through a shared persona, character, or group. ## What changed - Long-Term Memory now keeps current-chat write/import destinations chat-only while retaining expanded source discovery and explicit sharing selections. Narrower extraction forks rather than modifying a broader-visible memory. - Added scope, import, recall, and extraction regressions; rebuilt Long-Term Memory 1.3.14 manifest, bundles, archive, and catalog entries. Corrected boundary-derived build provenance in the feature builder. ## Package and security impact - Affected package IDs: `long-term-memory` (1.3.14). - Engine compatibility impact: unchanged (minimum 2.4.1); package boundary provenance retained. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: availability of newly extracted chat-only memories is narrower; existing broader scopes are not migrated. Automated install, offline restart, backup, uninstall, reinstall, and durable-byte checks passed. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - No manual verification performed. Automated `test-ltm.sh all` and `test-ci.sh` passed on `3a1dc443`; the browser lifecycle and installation regressions are included. Hosted checks remain pending. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation - Updated the Long-Term Memory changelog for 1.3.14; no README or Engine documentation changes. ## UI evidence (if applicable) - Automated browser lifecycle covered source availability and mobile behavior; no screenshots or recordings attached. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Current-chat memories are now kept exclusive to that chat, including within group chats. Explicit persona, character, and group destinations remain shared. * New chat-only evidence is kept separate rather than added to a broader existing memory. * **Updates** * Long-Term Memory has been updated to version 1.3.14. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:07:09 +07:00
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#1261
No description provided.