[PR #1306] [MERGED] feat(long-term-memory): 1.4.25 — show which embedding source recall uses #1397

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1306
Author: @Promansis
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @Promansis

Base: staging ← Head: feature(long-term-memory)/embedding-source-visibility


📝 Commits (3)

  • 83634ab feat(long-term-memory): 1.4.25 — show which embedding source recall uses
  • 22e9be3 Merge upstream/staging into feature(long-term-memory)/embedding-source-visibility
  • 8e15336 Merge branch 'staging' into feature(long-term-memory)/embedding-source-visibility

📊 Changes

21 files changed (+269 additions, -105 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.25.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 (+4 -0)
📝 packages/long-term-memory/client.js (+20 -20)
📝 packages/long-term-memory/docs/ARCHITECTURE.md (+22 -0)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+33 -33)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx (+25 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+18 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx (+4 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+5 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts (+16 -3)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts (+4 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-browser.regression.ts (+30 -0)

...and 1 more files

📄 Description

Pull request

Linked issue

Closes #1304

Why this change

  • Long-Term Memory never said which embedding source recall uses, so users with Korean, Japanese, Chinese or mixed-language vaults could not tell they were on the English-only built-in MiniLM model, or where to change it. The "Extraction connection" setting also looks like the place to do so, but it only drives extraction.
  • After an embedding source change, embeddingsAvailable stayed true while the saved vectors no longer matched the source, so the health line read "available" when recall would re-embed.

What changed

  • Package: long-term-memory 1.4.25, on top of staging's 1.4.24 (#1305).
  • GET /status reports indexes.embeddingSource (the label recall embeds with now) and indexes.indexedEmbeddingSource (the label stored with the vectors). embeddingsAvailable now also requires the stored spaceId to match the current adapter's spaceId, and an adapter that is missing or fails to resolve counts as unavailable.
  • The Activity health line and the vault health popover name the source. A "source changed" note shows when the saved vectors do not match the current source. It follows embeddingsAvailable, not label text, because a renamed connection keeps its spaceId while a switched sidecar model keeps its label.
  • Memory Settings explains under "Extraction connection" that it only drives extraction. The popover and docs/ARCHITECTURE.md say which connection drives recall embeddings, that MiniLM is English-only, to use a multilingual model such as BAAI/bge-m3 (no prefixes), that switching re-embeds, and that keyword/BM25 lanes only match within one language.
  • Regressions: the routes scenario builds the index under one source, switches to another, and asserts unavailable plus both labels; the browser scenario asserts the Activity health line and the note both ways (same labels over unavailable vectors shows it; different labels over available vectors does not).
  • Generated outputs rebuilt with the builders: packages/long-term-memory/{client.js,server.mjs,manifest.json}, catalog/**, artifacts/long-term-memory-1.4.25.zip.
  • Not included: an "Embedding connection" picker, any Engine change, a new default model, query/document prefixes (#1302).

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; minEngineVersion is unchanged and no Engine change is needed.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. The change adds two optional status fields and changes how embeddingsAvailable is computed; no stored data or settings change.

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 automated proof on 22e9be3b9 against Engine 2039583ca; not an install-through-Engine check, and the boxes above are left for a human.

  • test-ltm.sh routes, runtime, browser, feedback-clarity-ui, loading
  • npm run check (0 errors), git diff --check, test-catalog-lanes, validate-package-locales, validate-catalog, catalog-release-notes regression, typecheck-packages long-term-memory
  • The new routes and browser cases were each shown to fail under the old availability/label rule.
  • Read-only review of the diff plus a follow-up review of the repair: the one major (note compared labels, not the embedding space) and three nits were repaired.
  • Not run: test-ci.sh, test-ltm.sh all, a live install.

Documentation impact

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

packages/long-term-memory/docs/ARCHITECTURE.md and the package CHANGELOG are updated.

UI evidence (if applicable)

No screenshots yet.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Long-Term Memory now shows the active embedding source and identifies when saved embeddings were created with a different source. Mismatched embeddings are marked unavailable until they are refreshed during recall or reindexing.
    • Memory Settings clarifies which connection is used for extraction and which is used for recall embeddings.
  • Documentation
    • Added guidance on embedding-source changes and model language support, including recommendations for multilingual vaults and the built-in model’s English-language limitation.
  • Chores
    • Updated Long-Term Memory to version 1.4.25.

🔄 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/1306 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/11/2026 **Status:** ✅ Merged **Merged:** 10/11/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/embedding-source-visibility` --- ### 📝 Commits (3) - [`83634ab`](https://github.com/Pasta-Devs/Marinara-Agents/commit/83634ab0d132b45da6a8733cf22f9a3562644635) feat(long-term-memory): 1.4.25 — show which embedding source recall uses - [`22e9be3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/22e9be3b9c64071fd605e366bc7868fb9e7fecf7) Merge upstream/staging into feature(long-term-memory)/embedding-source-visibility - [`8e15336`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8e15336a82880f65415be5800d75fe4a1e657357) Merge branch 'staging' into feature(long-term-memory)/embedding-source-visibility ### 📊 Changes **21 files changed** (+269 additions, -105 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.25.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` (+4 -0) 📝 `packages/long-term-memory/client.js` (+20 -20) 📝 `packages/long-term-memory/docs/ARCHITECTURE.md` (+22 -0) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+33 -33) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx` (+25 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+18 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx` (+4 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+5 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts` (+16 -3) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts` (+4 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-browser.regression.ts` (+30 -0) _...and 1 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1304 ## Why this change - Long-Term Memory never said which embedding source recall uses, so users with Korean, Japanese, Chinese or mixed-language vaults could not tell they were on the English-only built-in MiniLM model, or where to change it. The "Extraction connection" setting also looks like the place to do so, but it only drives extraction. - After an embedding source change, `embeddingsAvailable` stayed true while the saved vectors no longer matched the source, so the health line read "available" when recall would re-embed. ## What changed - Package: `long-term-memory` 1.4.25, on top of staging's 1.4.24 (#1305). - `GET /status` reports `indexes.embeddingSource` (the label recall embeds with now) and `indexes.indexedEmbeddingSource` (the label stored with the vectors). `embeddingsAvailable` now also requires the stored `spaceId` to match the current adapter's `spaceId`, and an adapter that is missing or fails to resolve counts as unavailable. - The Activity health line and the vault health popover name the source. A "source changed" note shows when the saved vectors do not match the current source. It follows `embeddingsAvailable`, not label text, because a renamed connection keeps its `spaceId` while a switched sidecar model keeps its label. - Memory Settings explains under "Extraction connection" that it only drives extraction. The popover and `docs/ARCHITECTURE.md` say which connection drives recall embeddings, that MiniLM is English-only, to use a multilingual model such as `BAAI/bge-m3` (no prefixes), that switching re-embeds, and that keyword/BM25 lanes only match within one language. - Regressions: the routes scenario builds the index under one source, switches to another, and asserts unavailable plus both labels; the browser scenario asserts the Activity health line and the note both ways (same labels over unavailable vectors shows it; different labels over available vectors does not). - Generated outputs rebuilt with the builders: `packages/long-term-memory/{client.js,server.mjs,manifest.json}`, `catalog/**`, `artifacts/long-term-memory-1.4.25.zip`. - Not included: an "Embedding connection" picker, any Engine change, a new default model, query/document prefixes (#1302). ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; `minEngineVersion` is unchanged and no Engine change is needed. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. The change adds two optional status fields and changes how `embeddingsAvailable` is computed; no stored data or settings change. ## 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 automated proof on `22e9be3b9` against Engine `2039583ca`; not an install-through-Engine check, and the boxes above are left for a human. - `test-ltm.sh` routes, runtime, browser, feedback-clarity-ui, loading - `npm run check` (0 errors), `git diff --check`, `test-catalog-lanes`, `validate-package-locales`, `validate-catalog`, `catalog-release-notes` regression, `typecheck-packages long-term-memory` - The new routes and browser cases were each shown to fail under the old availability/label rule. - Read-only review of the diff plus a follow-up review of the repair: the one major (note compared labels, not the embedding space) and three nits were repaired. - Not run: `test-ci.sh`, `test-ltm.sh all`, a live install. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation `packages/long-term-memory/docs/ARCHITECTURE.md` and the package CHANGELOG are updated. ## UI evidence (if applicable) No screenshots yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Long-Term Memory now shows the active embedding source and identifies when saved embeddings were created with a different source. Mismatched embeddings are marked unavailable until they are refreshed during recall or reindexing. * Memory Settings clarifies which connection is used for extraction and which is used for recall embeddings. * **Documentation** * Added guidance on embedding-source changes and model language support, including recommendations for multilingual vaults and the built-in model’s English-language limitation. * **Chores** * Updated Long-Term Memory to version 1.4.25. <!-- 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:10:23 +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#1397
No description provided.