[PR #1909] [MERGED] fix(long-term-memory): relate short and full names of LTM's own characters (1.5.13) #2024

Closed
opened 2026-11-07 16:38:50 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/local-character-name-relation


📝 Commits (7)

  • 08991ca fix(long-term-memory): relate short and full names of LTM's own characters (#1905)
  • 53f8951 Merge upstream/staging into fix(long-term-memory)/local-character-name-relation; release long-term-memory 1.5.12
  • 208c5f7 Merge upstream/staging into fix(long-term-memory)/local-character-name-relation; release long-term-memory 1.5.12
  • 810e998 fix(long-term-memory): type the source scope on mutable catalog identities (#1905)
  • ad84157 Merge upstream/staging into fix(long-term-memory)/local-character-name-relation; release long-term-memory 1.5.13
  • dbd0b42 fix(long-term-memory): relate local names on whole name parts, not camel-case splits (#1905)
  • 45823e6 Merge branch 'staging' into fix(long-term-memory)/local-character-name-relation

📊 Changes

17 files changed (+331 additions, -100 deletions)

View changed files

➕ artifacts/long-term-memory-1.5.13.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 (+44 -44)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/identity/subject-catalog.ts (+16 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/identity/subject-identity.ts (+37 -5)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/identity/subject-matching.ts (+27 -4)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/identity/subject-names.ts (+14 -3)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-extraction-graph.regression.ts (+122 -0)
📝 tests/long-term-memory-local-characters.regression.ts (+27 -3)

📄 Description

Pull request

Linked issue

Closes #1905

Why this change

When a chat calls one of Long-Term Memory's own characters by part of their name ("Preston" for "Preston Farraday", or the reverse), extraction started a second note instead of joining the existing one. The two names are now related on whole name parts (Hangul given-name suffix included), so the memory joins the saved character's note.

What changed

  • subject-names.ts: nameTokensRelated relates names in both directions on whole name parts.
  • subject-matching.ts: matchTrustedNameRelation falls back to LTM's own characters in the same chat family and skips source-name entries. One match gives local_name_relation; several go to review.
  • subject-identity.ts: a local binding is made only after the batch's longer names exist; two unrelated names that fit one saved character both go to review.
  • subject-catalog.ts: a source name does not create its own identity when a saved local note in the same chat relates to it.
  • Tests: new #1905 table in extraction-graph (12 rows plus a direct other-chat assert); local-characters #899 expectations flipped to the #1905 contract, plus a stray-word proof.
  • Affected package IDs: long-term-memory 1.5.12 (rebuilt manifest.json, server.mjs, artifact zip and catalog entries).

Known limits: the relation persists no alias (that would feed set_title and rename notes), and two partial names with no recorded alias are not merged across pieces.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; no new setting or stored field

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

Documentation impact

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

UI evidence (if applicable)

None; no UI change.

🤖 Generated with Claude Code


🔄 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/1909 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/local-character-name-relation` --- ### 📝 Commits (7) - [`08991ca`](https://github.com/Pasta-Devs/Marinara-Agents/commit/08991ca3706887625af1be698dafdaed8069ffe5) fix(long-term-memory): relate short and full names of LTM's own characters (#1905) - [`53f8951`](https://github.com/Pasta-Devs/Marinara-Agents/commit/53f895197ed272a4cfb98deb0c95b85f44d1b2b9) Merge upstream/staging into fix(long-term-memory)/local-character-name-relation; release long-term-memory 1.5.12 - [`208c5f7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/208c5f7872bb3776c3b2434f92f5a81cddc2c3ea) Merge upstream/staging into fix(long-term-memory)/local-character-name-relation; release long-term-memory 1.5.12 - [`810e998`](https://github.com/Pasta-Devs/Marinara-Agents/commit/810e998d38eab30903fa53337af9adca65d3ad17) fix(long-term-memory): type the source scope on mutable catalog identities (#1905) - [`ad84157`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ad84157985c681e8498c16b136a411e9058d80da) Merge upstream/staging into fix(long-term-memory)/local-character-name-relation; release long-term-memory 1.5.13 - [`dbd0b42`](https://github.com/Pasta-Devs/Marinara-Agents/commit/dbd0b42d8fd3bd13f1a9c6f26ef8025cda0a7963) fix(long-term-memory): relate local names on whole name parts, not camel-case splits (#1905) - [`45823e6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/45823e6b2c2039ce434e3f2d0232f884becccf13) Merge branch 'staging' into fix(long-term-memory)/local-character-name-relation ### 📊 Changes **17 files changed** (+331 additions, -100 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.5.13.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` (+44 -44) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/identity/subject-catalog.ts` (+16 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/identity/subject-identity.ts` (+37 -5) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/identity/subject-matching.ts` (+27 -4) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/identity/subject-names.ts` (+14 -3) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-extraction-graph.regression.ts` (+122 -0) 📝 `tests/long-term-memory-local-characters.regression.ts` (+27 -3) </details> ### 📄 Description # Pull request ## Linked issue Closes #1905 ## Why this change When a chat calls one of Long-Term Memory's own characters by part of their name ("Preston" for "Preston Farraday", or the reverse), extraction started a second note instead of joining the existing one. The two names are now related on whole name parts (Hangul given-name suffix included), so the memory joins the saved character's note. ## What changed - `subject-names.ts`: `nameTokensRelated` relates names in both directions on whole name parts. - `subject-matching.ts`: `matchTrustedNameRelation` falls back to LTM's own characters in the same chat family and skips source-name entries. One match gives `local_name_relation`; several go to review. - `subject-identity.ts`: a local binding is made only after the batch's longer names exist; two unrelated names that fit one saved character both go to review. - `subject-catalog.ts`: a source name does not create its own identity when a saved local note in the same chat relates to it. - Tests: new #1905 table in extraction-graph (12 rows plus a direct other-chat assert); local-characters #899 expectations flipped to the #1905 contract, plus a stray-word proof. - Affected package IDs: `long-term-memory` 1.5.12 (rebuilt `manifest.json`, `server.mjs`, artifact zip and catalog entries). Known limits: the relation persists no alias (that would feed `set_title` and rename notes), and two partial names with no recorded alias are not merged across pieces. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; no new setting or stored field ## 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 - ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) None; no UI change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:50 +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#2024
No description provided.