mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1440] [MERGED] fix(long-term-memory): match one-syllable Korean names across particles (1.4.46) #1463
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1463
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1440
Author: @Promansis
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1438-korean-one-syllable-names📝 Commits (3)
249c663fix(long-term-memory): match one-syllable Korean names with particles in BM25 recall (#1438)c1f0edcchore(long-term-memory): release 1.4.46 (#1438)2be1ff3fix(long-term-memory): keep a bare-name-only BM25 index searchable (#1438)📊 Changes
17 files changed (+196 additions, -89 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.46.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(+36 -36)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/bm25.ts(+43 -7)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/chunking.ts(+3 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/hangul-lexical.ts(+13 -0)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts(+7 -2)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-index-keys.regression.ts(+49 -1)📝
tests/long-term-memory-routes.regression.ts(+1 -1)📄 Description
Linked issue
Closes #1438
Why this change
A one-syllable Korean character or persona name such as 린 never matched across particles in recall. A memory that says 린이 웃었다 was not found for 린은 뭐 했지?. There were two reasons:
That two-syllable floor stays. Lowering it everywhere would merge ordinary words such as 나는 → 나 and 그는 → 그. Instead, a word may drop to one syllable only when it is a known name.
What changed
hangul-lexical.tsaddshangulNameSyllable. It reuses the existing final-consonant particle rule, so 린는 and 린로 don't fold.stripHangulParticleis unchanged.bm25.tsaddsltmHangulNameSyllablesand anamesargument totokenizeLtmText, andsearchLtmBm25gets an optionalnameSyllables.ponytail:comment records the known limit: a name that exists only in Engine, with no character memory yet, is not seen.characternotes, so they count.retrieval.tsbuilds the names from every character chunk, not only the allowed ones. That way the query and the stored index always use the same names.chunking.ts:CURRENT_LTM_CHUNK_FORMAT_VERSIONgoes from 5 to 6, so stored recall indexes rebuild once and pick up the aliases.long-term-memory1.4.46: CHANGELOG entry, version, manifest, rebuiltserver.mjs, artifact and catalog entries.Not in this PR, as the issue's Minimal fix says:
subject-identity.ts. It still refuses one-syllable names during extraction.Package and security impact
long-term-memoryrecall.json) once after the update, through the existing locked freshness check. Embeddings are reused by text hash, so the rebuild re-embeds nothing. Notes are not touched.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
These checks were run by the coding agent, not by a person. Engine checkout
2039583ca, Nodev24.15.0.tests/long-term-memory-index-keys.regression.tsgains a #1438 case. Its fixtures are a character chunk titled 린, the memories 린이 웃었다, 린에게 반지를 줬다 and 린, 괜찮아?, the unrelated 나는 시장에 갔다, and a second index without the character chunk. It checks:searchLtmBm25returns[]for 린은 뭐 했지? against those memories.After: the test exits 0.
retrieveLongTermMemorywith BM25 only and recalled exactly the three 린 memories. The probe is not committed.test-ltm.sh index-keys,runtimeandroutes(which asserts format version 6), plusreconciliation-recall,local-characters,storage,branch-recallandcandidate-reconciliation.c1f0edc69, these all passed:test-fast.sh(npm run check,git diff --check) andtypecheck-packages long-term-memory.test-catalog-lanes,validate-package-locales,validate-catalogandcatalog-release-notes.test-ltm.sh index-keys,runtimeandroutes, plusreconciliation-recall.test-ltm.sh installationfor the 1.4.46 artifact. Hosted CI runs the full Long-Term Memory regression list.Documentation impact
UI evidence (if applicable)
None. Nothing changes on screen.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.