mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1026] [Issue]: Canonicalize LTM character subject name variants #525
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#525
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?
Originally created by @Promansis on GitHub (Sep 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1026
Originally assigned to: @Promansis on GitHub.
Summary
Long-Term Memory extraction does not consistently resolve abbreviated, first-name-only, full-name, and minor spelling variants to one character subject. Some variants normalize successfully, while others become separate provisional identities or are rejected as ambiguous.
Affected package
long-term-memory(server-side subject identity resolution during extraction)Expected behavior
Equivalent references to one character should resolve to one canonical subject and one canonical memory target. This includes configured aliases, first-name/full-name forms, and supported minor spelling variations. Genuinely ambiguous names must fail closed and identify the competing trusted identities.
Subject identity normalization should happen before downstream deduplication and should not change the behavior of genuinely distinct characters.
Actual behavior
The resolver handles exact names, unique aliases, and limited fuzzy matches, but source-visible unknown names can create provisional local-character keys from the surface form. As a result, abbreviated and full-name references can produce different subject keys/target note IDs. Ambiguous first names are rejected, and the current diagnostics do not consistently make the competing identities actionable.
The supplied LTM debug trace contains repeated
subject_identity_normalizedwarnings andambiguous_subject_identitydiagnostics during extraction.Steps to reproduce
subjectKeys, canonical target note IDs, and diagnostics.Environment
stagingcompatibility rangelong-term-memorystaging buildLogs, screenshots, or video
The investigation used
scratch/ltm-debug-log.jsonl; it contains private extraction identifiers and is not attached. Regression fixtures should be synthetic and contain no private chat data.Additional context
Related historical identity work: #899. This issue is limited to canonical subject resolution and diagnostics. It should not change memory deduplication thresholds or availability/retrieval semantics; those are separate issues. The focused regression owner is
tests/long-term-memory-local-characters.regression.tsplus the identity cases intests/long-term-memory-extraction-graph.regression.ts.Template check