[PR #1296] [MERGED] fix(long-term-memory): 1.4.23 — recall Korean short keywords and particles (#1295) #1389

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/1295-korean-recall


📝 Commits (2)

  • 51adb40 fix(long-term-memory): 1.4.23 — recall Korean short keywords and particles (#1295)
  • b3f376c fix(long-term-memory): exclude Hangul aliases from BM25 document length (#1295)

📊 Changes

18 files changed (+301 additions, -108 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.23.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 (+52 -52)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/bm25.ts (+39 -7)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/chunking.ts (+7 -1)
➕ packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/hangul-lexical.ts (+48 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/keyword-extract.ts (+14 -6)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-index-keys.regression.ts (+68 -1)
📝 tests/long-term-memory-routes.regression.ts (+1 -1)
📝 tests/long-term-memory-runtime.regression.ts (+28 -0)

📄 Description

Linked issue

Closes #1295

Why this change

Korean memories that use short two-syllable nouns or particles were hard to recall whenever semantic retrieval was unavailable. normalizeKeywordToken dropped every token shorter than three characters, so 반지, 서래, 무진 and 선물 never entered the keyword index, and BM25 kept 반지를/그림 선물 distinct from 반지/그림선물, leaving the lexical lane without a matching term.

What changed

  • packages/long-term-memory 1.4.23: new hangul-lexical.ts (Hangul detection + trailing-particle strip), two-syllable Hangul nouns admitted in keyword-extract.ts, and particle-stem / adjacent-Hangul bigram aliases in bm25.ts.
  • chunking.ts: CURRENT_LTM_CHUNK_FORMAT_VERSION 4 -> 5 is folded into each chunk sourceHash, so existing vaults rebuild their recall indexes once through the normal locked freshness check.
  • Rebuilt generated outputs from source: server.mjs, manifest.json, catalog/catalog.json + v2/v3 lanes and notes.json, artifacts/long-term-memory-1.4.23.zip.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none (engine.min 2.4.1 unchanged, capabilityApi unchanged)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: existing vaults rebuild their recall indexes once on update (chunk format-version bump); no data loss, the stale index is quarantined before rebuild

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 were run on commit 51adb40dd (not a substitute for the human boxes above): npm run check; git diff --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; LTM index-keys, runtime and routes regressions. Manifest server.mjs sha256/bytes and the catalog artifact sha256/bytes were recomputed and match the committed files. No English lexical behavior is intended to change.

Documentation impact

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

UI evidence (if applicable)

Not applicable: no UI changes.

Summary by CodeRabbit

  • New Features
    • Improved Korean memory recall: two-syllable nouns are recognized, particle-attached queries match stored terms, and compounds match with or without a space.
  • Improvements
    • Existing memory vaults rebuild their recall indexes once after upgrading to version 1.4.23.

🔄 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/1296 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/10/2026 **Status:** ✅ Merged **Merged:** 10/10/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/1295-korean-recall` --- ### 📝 Commits (2) - [`51adb40`](https://github.com/Pasta-Devs/Marinara-Agents/commit/51adb40dd9453327d37ce8ddf65de4102e3bd5bd) fix(long-term-memory): 1.4.23 — recall Korean short keywords and particles (#1295) - [`b3f376c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b3f376c60b926b363e2073e565ad8f03147542ec) fix(long-term-memory): exclude Hangul aliases from BM25 document length (#1295) ### 📊 Changes **18 files changed** (+301 additions, -108 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.23.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` (+52 -52) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/bm25.ts` (+39 -7) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/chunking.ts` (+7 -1) ➕ `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/hangul-lexical.ts` (+48 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/keyword-extract.ts` (+14 -6) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-index-keys.regression.ts` (+68 -1) 📝 `tests/long-term-memory-routes.regression.ts` (+1 -1) 📝 `tests/long-term-memory-runtime.regression.ts` (+28 -0) </details> ### 📄 Description ## Linked issue Closes #1295 ## Why this change Korean memories that use short two-syllable nouns or particles were hard to recall whenever semantic retrieval was unavailable. `normalizeKeywordToken` dropped every token shorter than three characters, so `반지`, `서래`, `무진` and `선물` never entered the keyword index, and BM25 kept `반지를`/`그림 선물` distinct from `반지`/`그림선물`, leaving the lexical lane without a matching term. ## What changed - `packages/long-term-memory` 1.4.23: new `hangul-lexical.ts` (Hangul detection + trailing-particle strip), two-syllable Hangul nouns admitted in `keyword-extract.ts`, and particle-stem / adjacent-Hangul bigram aliases in `bm25.ts`. - `chunking.ts`: `CURRENT_LTM_CHUNK_FORMAT_VERSION` 4 -> 5 is folded into each chunk `sourceHash`, so existing vaults rebuild their recall indexes once through the normal locked freshness check. - Rebuilt generated outputs from source: `server.mjs`, `manifest.json`, `catalog/catalog.json` + `v2`/`v3` lanes and `notes.json`, `artifacts/long-term-memory-1.4.23.zip`. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none (`engine.min` 2.4.1 unchanged, `capabilityApi` unchanged) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: existing vaults rebuild their recall indexes once on update (chunk format-version bump); no data loss, the stale index is quarantined before rebuild ## 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 were run on commit 51adb40dd (not a substitute for the human boxes above): `npm run check`; `git diff --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`; LTM `index-keys`, `runtime` and `routes` regressions. Manifest `server.mjs` sha256/bytes and the catalog artifact sha256/bytes were recomputed and match the committed files. No English lexical behavior is intended to change. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not applicable: no UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved Korean memory recall: two-syllable nouns are recognized, particle-attached queries match stored terms, and compounds match with or without a space. * **Improvements** * Existing memory vaults rebuild their recall indexes once after upgrading to version 1.4.23. <!-- 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:16 +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#1389
No description provided.