[GH-ISSUE #1035] [Issue]: Prevent imported LTM sources from forking character identities #529

Closed
opened 2026-10-20 17:28:21 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Sep 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1035

Originally assigned to: @Promansis on GitHub.

Summary

Long-Term Memory 1.3.11 still forks equivalent character name variants when imported source notes pre-populate the trusted subject catalog. The same production catalog path can also reject the full name with Dropped a candidate whose subject matches more than one trusted roster identity.

Affected package

long-term-memory

Expected behavior

Source-visible short, first-name, and full-name variants for one character should resolve to one trusted subject and one memory target. A source-derived local identity that duplicates a roster identity should not compete with it. Genuinely distinct characters sharing a name must continue to fail closed.

Actual behavior

buildTrustedLtmSubjectCatalog creates local-character entries for each proper-name surface found in imported source notes before subject-name canonicalization runs. With a roster character named Ashleigh Kestrel, a source containing Ash, Ashleigh, and Ashleigh Kestrel creates local identities for those forms. The short forms target separate memories, while the full name collides with the roster identity and is dropped as ambiguous.

Without a matching roster character, all three forms remain separate local subjects and memory targets.

Steps to reproduce

  1. Build a trusted LTM catalog with one roster character named Ashleigh Kestrel and a Roleplay source note containing Ash, Ashleigh, and Ashleigh Kestrel.
  2. Resolve three character_fact candidates whose subjectNames use those respective source-visible forms.
  3. Observe separate local targets for Ash and Ashleigh, plus an ambiguous_subject_identity rejection for Ashleigh Kestrel competing with the roster and source-derived identities.

Environment

  • Marinara Engine version: 2.4.1 package build baseline
  • Package version: 1.3.11
  • Install type: source/test fixture
  • OS + version: Linux
  • Browser or app shell: Engine package host

Logs, screenshots, or video

Synthetic reproduction on current upstream/staging (48c3b3cb) produced the exact reported diagnostic. No private chat data is included.

Additional context

Follow-up to #1026 and merged PR #1032. The existing long-term-memory-local-characters.regression.ts name-variant cases use hand-built catalogs and pass; coverage must exercise production catalog construction with imported source notes.

The fix should preserve fail-closed handling for genuinely ambiguous identities. Existing persisted duplicate memories require separate safe reconciliation and are outside this issue unless explicitly scoped in.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Sep 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1035 Originally assigned to: @Promansis on GitHub. ## Summary Long-Term Memory 1.3.11 still forks equivalent character name variants when imported source notes pre-populate the trusted subject catalog. The same production catalog path can also reject the full name with `Dropped a candidate whose subject matches more than one trusted roster identity.` ## Affected package `long-term-memory` ## Expected behavior Source-visible short, first-name, and full-name variants for one character should resolve to one trusted subject and one memory target. A source-derived local identity that duplicates a roster identity should not compete with it. Genuinely distinct characters sharing a name must continue to fail closed. ## Actual behavior `buildTrustedLtmSubjectCatalog` creates local-character entries for each proper-name surface found in imported source notes before subject-name canonicalization runs. With a roster character named `Ashleigh Kestrel`, a source containing `Ash`, `Ashleigh`, and `Ashleigh Kestrel` creates local identities for those forms. The short forms target separate memories, while the full name collides with the roster identity and is dropped as ambiguous. Without a matching roster character, all three forms remain separate local subjects and memory targets. ## Steps to reproduce 1. Build a trusted LTM catalog with one roster character named `Ashleigh Kestrel` and a Roleplay source note containing `Ash`, `Ashleigh`, and `Ashleigh Kestrel`. 2. Resolve three `character_fact` candidates whose `subjectNames` use those respective source-visible forms. 3. Observe separate local targets for `Ash` and `Ashleigh`, plus an `ambiguous_subject_identity` rejection for `Ashleigh Kestrel` competing with the roster and source-derived identities. ## Environment - Marinara Engine version: 2.4.1 package build baseline - Package version: 1.3.11 - Install type: source/test fixture - OS + version: Linux - Browser or app shell: Engine package host ## Logs, screenshots, or video Synthetic reproduction on current `upstream/staging` (`48c3b3cb`) produced the exact reported diagnostic. No private chat data is included. ## Additional context Follow-up to #1026 and merged PR #1032. The existing `long-term-memory-local-characters.regression.ts` name-variant cases use hand-built catalogs and pass; coverage must exercise production catalog construction with imported source notes. The fix should preserve fail-closed handling for genuinely ambiguous identities. Existing persisted duplicate memories require separate safe reconciliation and are outside this issue unless explicitly scoped in. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:21 +07:00
  • closed this issue
  • added the
    bug
    label
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#529
No description provided.