[PR #199] [MERGED] fix(long-term-memory): resolve scoped imports and vault filters #850

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/199
Author: @Promansis
Created: 8/2/2026
Status: ✅ Merged
Merged: 8/3/2026
Merged by: @Promansis

Base: staging ← Head: fix/ltm-scope-and-imports


📝 Commits (3)

  • 7c4718e fix(long-term-memory): resolve scoped imports and vault filters
  • a42cfc8 fix(long-term-memory): match persona-scoped vault memories
  • 7ea67e8 merge: resolve staging catalog updates

📊 Changes

13 files changed (+346 additions, -97 deletions)

View changed files

➕ artifacts/long-term-memory-1.1.1.zip (+0 -0)
📝 catalog/catalog.json (+9 -9)
📝 catalog/v2/catalog.json (+9 -9)
📝 catalog/v3/catalog.json (+9 -9)
📝 packages/long-term-memory/client.js (+11 -11)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+2 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+32 -37)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts (+3 -1)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/scope.ts (+28 -7)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-lifecycle.regression.ts (+53 -6)
📝 tests/long-term-memory-routes.regression.ts (+184 -0)

📄 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 #196
Closes #197

Why this change

  • Memory Vault All filters omitted memories from related chats and branches, and scoped imports could preview a branch summary but fail with Missing source memory.

What changed

  • Load all Long-Term Memory scope targets, preserve branch group scope, and enforce character intersection when chat scopes overlap.
  • Let explicit group or multi-chat scopes control source resolution while preserving current-chat-only imports.
  • Add route regressions for All-chat, All-branch, selected-branch, duplicate-ID, and scoped import behavior.
  • Rebuild Long-Term Memory 1.1.1, its client/server bundles, artifact, manifest hashes, and catalog lanes.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; remains >=2.3.5 <4.0.0
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: package update requires the existing restart; no storage schema or uninstall behavior changes

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

  • Automated: long-term-memory-routes.regression.ts, long-term-memory-storage.regression.ts, and long-term-memory-lifecycle.regression.ts passed against the Marinara Engine toolchain.
  • Automated: node scripts/test-catalog-lanes.mjs, node scripts/validate-catalog.mjs, and git diff --check passed.
  • Not performed: browser UI verification or manual package installation/update.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

  • Not captured; browser UI verification was not performed.

Summary by CodeRabbit

  • Bug Fixes

    • Improved Long-Term Memory scoping across chats, groups, branches, and characters.
    • Ensured character-related memories are matched correctly while unrelated memories remain excluded.
    • Improved fallback behavior when the current chat is unavailable.
    • Preserved branch group context during memory selection.
    • Fixed importing branch sources when using the appropriate group scope.
  • Chores

    • Updated the Long-Term Memory package to version 1.1.1.

🔄 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/199 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 8/2/2026 **Status:** ✅ Merged **Merged:** 8/3/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix/ltm-scope-and-imports` --- ### 📝 Commits (3) - [`7c4718e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7c4718e1fe1eb0c5801b278d7ead26e786fbef16) fix(long-term-memory): resolve scoped imports and vault filters - [`a42cfc8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a42cfc8b27acf559ea0d973ffa5bf7bbf6027ea7) fix(long-term-memory): match persona-scoped vault memories - [`7ea67e8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7ea67e8161640b4ebd5db4685d5eef450ac091a5) merge: resolve staging catalog updates ### 📊 Changes **13 files changed** (+346 additions, -97 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.1.1.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -9) 📝 `catalog/v2/catalog.json` (+9 -9) 📝 `catalog/v3/catalog.json` (+9 -9) 📝 `packages/long-term-memory/client.js` (+11 -11) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+2 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+32 -37) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts` (+3 -1) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/scope.ts` (+28 -7) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-lifecycle.regression.ts` (+53 -6) 📝 `tests/long-term-memory-routes.regression.ts` (+184 -0) </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`. <!-- Open as a draft while implementation is in progress. Mark Ready for review only after validation and self-review. --> ## Linked issue <!-- Every PR should reference an issue or feature request. --> Closes #196 Closes #197 ## Why this change <!-- What user problem, package bug, or catalog goal does this solve? --> - Memory Vault `All` filters omitted memories from related chats and branches, and scoped imports could preview a branch summary but fail with `Missing source memory`. ## What changed <!-- Include affected package IDs and generated outputs. --> - Load all Long-Term Memory scope targets, preserve branch group scope, and enforce character intersection when chat scopes overlap. - Let explicit group or multi-chat scopes control source resolution while preserving current-chat-only imports. - Add route regressions for All-chat, All-branch, selected-branch, duplicate-ID, and scoped import behavior. - Rebuild Long-Term Memory `1.1.1`, its client/server bundles, artifact, manifest hashes, and catalog lanes. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; remains `>=2.3.5 <4.0.0` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: package update requires the existing restart; no storage schema or uninstall behavior changes ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested, step by step. --> - Automated: `long-term-memory-routes.regression.ts`, `long-term-memory-storage.regression.ts`, and `long-term-memory-lifecycle.regression.ts` passed against the Marinara Engine toolchain. - Automated: `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-catalog.mjs`, and `git diff --check` passed. - Not performed: browser UI verification or manual package installation/update. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for package UI changes. --> - Not captured; browser UI verification was not performed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved Long-Term Memory scoping across chats, groups, branches, and characters. * Ensured character-related memories are matched correctly while unrelated memories remain excluded. * Improved fallback behavior when the current chat is unavailable. * Preserved branch group context during memory selection. * Fixed importing branch sources when using the appropriate group scope. * **Chores** * Updated the Long-Term Memory package to version 1.1.1. <!-- 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-20 17:31:36 +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#850
No description provided.