[PR #1125] [MERGED] feat(long-term-memory): combine two Memory Vault places with AND (1.3.30) #1307

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

📋 Pull Request Information

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

Base: staging ← Head: feature(long-term-memory)/1124-vault-and-filter


📝 Commits (3)

  • 43888d2 feat(long-term-memory): combine two Memory Vault places with AND (1.3.30)
  • 8de24a7 fix(long-term-memory): keep the second Memory Vault place literal and explain an empty AND
  • b4bcc92 fix(long-term-memory): use the display label for the primary scope entry

📊 Changes

15 files changed (+371 additions, -119 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.30.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/client.js (+26 -26)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+193 -49)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+4 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-browser.regression.ts (+76 -3)
📝 tests/long-term-memory-feedback-clarity-ui.regression.mjs (+28 -1)

📄 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 #1124

Why this change

  • The Memory Vault could only scope to one place at a time, so users could not ask "which memories are available in both of these places?".
  • Issue #1124 asks for a second optional place selector whose selection combines with the first using AND.

What changed

  • packages/long-term-memory (1.3.30): added a second optional place selector to the Memory Vault. Two selected places combine with AND so the list and bulk selection show only memories available in both; clearing the second place restores the normal single-place view.
  • Preserved primary-scope behavior for the secondary picker: the secondary list is built without inheriting the selected character, and current-chat entries keep the server-resolved scope.
  • Preserved linked-memory context while AND filtering: the query returns the intersection for the navigator and bulk selection plus the primary results as link context, so incoming links, link suggestions, and linked-title search still resolve.
  • Added combineWithPlace, noSecondPlace, combinedScope, and noMemoriesInCombinedScope locale keys.
  • Regenerated outputs: client.js, manifest.json payload hash/size, artifacts/long-term-memory-1.3.30.zip, catalog entries (all lanes), release notes, and the builder version.
  • Updated browser and feedback-clarity regressions to cover the secondary-scope request and linked-title search under AND filtering.

Follow-up fixes on this branch

  • The secondary Current conversation/branch place now stays literal (chatOnlyLtmScope, plus groupId for a branch) instead of inheriting the primary character or persona, so "A AND (B OR A)" no longer collapses back to A.
  • An AND intersection with no memories now names the combined scope instead of showing the generic "no memories" copy.
  • Extended the browser regression to cover the empty intersection, and the feedback-clarity regression to assert the literal secondary scope and the new locale text.
  • The combined-scope and single-target empty labels now use targetDisplayLabel(target) for the primary place, so a chat with a chatName keeps its prefix and matches the scope header.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none (engine.min 2.4.1 and maxEngineExclusive unchanged)
  • New or changed permissions/entrypoints: none; permissions and entrypoints are unchanged
  • Restart, storage, update, or uninstall impact: none; no storage or lifecycle semantics changed

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

  • Local Push checks on commit b4bcc92eb3bae90008a67fbdd1c140f9cafef5ad (all passed):
    • test-fast.sh (Prettier + ESLint + whitespace)
    • node scripts/test-catalog-lanes.mjs
    • node scripts/validate-package-locales.mjs
    • node scripts/validate-package-locale-keys.mjs
    • node scripts/validate-catalog.mjs
    • node scripts/tests/catalog-release-notes.regression.mjs
    • npm run typecheck:packages
    • test-ltm.sh browser
    • test-ltm.sh feedback-clarity-ui
    • test-ltm.sh loading
  • LTM runtime checks used Marinara Engine revision 41d5d12cdba43efddd8d94d45657bef0fb8b07d7.
  • Publish proof captured with assertPublishProof; repository and Engine snapshots were identical before and after the checks.
  • Known coverage limit: the browser regression exercises literal secondary group/character targets and the empty intersection, but not a Current chat carrying character/persona context or a Current grouped branch.

Documentation impact

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

UI evidence (if applicable)

  • No screenshots attached; the added Memory Vault behaviors are covered by the browser and feedback-clarity regressions listed above.

Summary by CodeRabbit

  • New Features
    • Long-Term Memory 1.3.30 adds an optional second place selector to the Memory Vault. When both places are selected, the vault displays and bulk-selects only memories available in both.
    • Clear the second selection to return to the single-place view. The vault also shows a combined-scope label and explains when no memories match both places.

🔄 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/1125 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/28/2026 **Status:** ✅ Merged **Merged:** 9/28/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/1124-vault-and-filter` --- ### 📝 Commits (3) - [`43888d2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/43888d233e1d245e6cd335e379c0b04ddeacf20a) feat(long-term-memory): combine two Memory Vault places with AND (1.3.30) - [`8de24a7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8de24a781ea12fb7487219840368dc868c164f19) fix(long-term-memory): keep the second Memory Vault place literal and explain an empty AND - [`b4bcc92`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b4bcc92eb3bae90008a67fbdd1c140f9cafef5ad) fix(long-term-memory): use the display label for the primary scope entry ### 📊 Changes **15 files changed** (+371 additions, -119 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.30.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/client.js` (+26 -26) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+193 -49) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+4 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-browser.regression.ts` (+76 -3) 📝 `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+28 -1) </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 Closes #1124 ## Why this change - The Memory Vault could only scope to one place at a time, so users could not ask "which memories are available in both of these places?". - Issue #1124 asks for a second optional place selector whose selection combines with the first using AND. ## What changed - `packages/long-term-memory` (1.3.30): added a second optional place selector to the Memory Vault. Two selected places combine with AND so the list and bulk selection show only memories available in both; clearing the second place restores the normal single-place view. - Preserved primary-scope behavior for the secondary picker: the secondary list is built without inheriting the selected character, and current-chat entries keep the server-resolved scope. - Preserved linked-memory context while AND filtering: the query returns the intersection for the navigator and bulk selection plus the primary results as link context, so incoming links, link suggestions, and linked-title search still resolve. - Added `combineWithPlace`, `noSecondPlace`, `combinedScope`, and `noMemoriesInCombinedScope` locale keys. - Regenerated outputs: `client.js`, `manifest.json` payload hash/size, `artifacts/long-term-memory-1.3.30.zip`, catalog entries (all lanes), release notes, and the builder version. - Updated browser and feedback-clarity regressions to cover the secondary-scope request and linked-title search under AND filtering. ### Follow-up fixes on this branch - The secondary Current conversation/branch place now stays literal (`chatOnlyLtmScope`, plus `groupId` for a branch) instead of inheriting the primary character or persona, so "A AND (B OR A)" no longer collapses back to A. - An AND intersection with no memories now names the combined scope instead of showing the generic "no memories" copy. - Extended the browser regression to cover the empty intersection, and the feedback-clarity regression to assert the literal secondary scope and the new locale text. - The combined-scope and single-target empty labels now use `targetDisplayLabel(target)` for the primary place, so a chat with a `chatName` keeps its prefix and matches the scope header. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none (`engine.min` 2.4.1 and `maxEngineExclusive` unchanged) - New or changed permissions/entrypoints: none; permissions and entrypoints are unchanged - Restart, storage, update, or uninstall impact: none; no storage or lifecycle semantics changed ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 - Local Push checks on commit `b4bcc92eb3bae90008a67fbdd1c140f9cafef5ad` (all passed): - `test-fast.sh` (Prettier + ESLint + whitespace) - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-package-locales.mjs` - `node scripts/validate-package-locale-keys.mjs` - `node scripts/validate-catalog.mjs` - `node scripts/tests/catalog-release-notes.regression.mjs` - `npm run typecheck:packages` - `test-ltm.sh browser` - `test-ltm.sh feedback-clarity-ui` - `test-ltm.sh loading` - LTM runtime checks used Marinara Engine revision `41d5d12cdba43efddd8d94d45657bef0fb8b07d7`. - Publish proof captured with `assertPublishProof`; repository and Engine snapshots were identical before and after the checks. - Known coverage limit: the browser regression exercises literal secondary group/character targets and the empty intersection, but not a Current chat carrying character/persona context or a Current grouped branch. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - No screenshots attached; the added Memory Vault behaviors are covered by the browser and feedback-clarity regressions listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Long-Term Memory 1.3.30 adds an optional second place selector to the Memory Vault. When both places are selected, the vault displays and bulk-selects only memories available in both. * Clear the second selection to return to the single-place view. The vault also shows a combined-scope label and explains when no memories match both places. <!-- 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:08:03 +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#1307
No description provided.