[GH-ISSUE #1042] [Issue]: LTM targets must preserve distinct subject identity through normalization #534

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

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

Originally assigned to: @Promansis on GitHub.

Summary

Distinct long-term memory subjects and relationship pairs can collapse onto the same display-name-derived target, and later normalization can rewrite a target that was already resolved. Generated IDs can also exceed storage limits after server-side prefix/suffix processing.

Affected package

long-term-memory (server-side target selection, normalization, and ID generation)

Expected behavior

  • Distinct characters always retain distinct target identities, regardless of matching or similar display names.
  • Distinct relationship pairs retain distinct targets and cannot receive one another's facts.
  • Normalization preserves an already-resolved target rather than deriving a different ID from its display name or stripping a section suffix again.
  • Generated IDs, including provider IDs after server-added prefixes/suffixes, remain within storage limits.

Actual behavior

Distinct characters can resolve to different subject keys but collapse to one target such as char_alex; relationship pairs can collapse similarly. A resolved target such as char_alice_voice can later be rewritten to char_alice. A valid provider event ID can exceed the storage limit after server processing.

Steps to reproduce

  1. Use synthetic distinct characters with colliding display-name target IDs, and distinct relationship pairs with overlapping names.
  2. Run target selection through structured normalization and compilation; compare final target IDs and assigned facts.
  3. Provide a provider event ID near the storage limit and inspect the server-generated ID length.

Environment

  • Marinara Engine version: current staging baseline
  • Package version: 1.3.14 at investigation time
  • Install type: source
  • OS + version: n/a — deterministic server-side logic
  • Browser or app shell: n/a

Logs, screenshots, or video

Use synthetic regression fixtures only; no private chat, vault, or user data.

Additional context

  • Target branch: staging.
  • Related prior issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/899 (closed; earlier extraction/backfill scope).
  • Keep resolution policy and legacy repair/recovery work in separate issues.
  • Acceptance: separate subjects and relationship pairs keep distinct targets and facts end to end; resolved targets remain stable through normalization; generated IDs never exceed storage limits.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Sep 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1042 Originally assigned to: @Promansis on GitHub. ## Summary Distinct long-term memory subjects and relationship pairs can collapse onto the same display-name-derived target, and later normalization can rewrite a target that was already resolved. Generated IDs can also exceed storage limits after server-side prefix/suffix processing. ## Affected package `long-term-memory` (server-side target selection, normalization, and ID generation) ## Expected behavior - Distinct characters always retain distinct target identities, regardless of matching or similar display names. - Distinct relationship pairs retain distinct targets and cannot receive one another's facts. - Normalization preserves an already-resolved target rather than deriving a different ID from its display name or stripping a section suffix again. - Generated IDs, including provider IDs after server-added prefixes/suffixes, remain within storage limits. ## Actual behavior Distinct characters can resolve to different subject keys but collapse to one target such as `char_alex`; relationship pairs can collapse similarly. A resolved target such as `char_alice_voice` can later be rewritten to `char_alice`. A valid provider event ID can exceed the storage limit after server processing. ## Steps to reproduce 1. Use synthetic distinct characters with colliding display-name target IDs, and distinct relationship pairs with overlapping names. 2. Run target selection through structured normalization and compilation; compare final target IDs and assigned facts. 3. Provide a provider event ID near the storage limit and inspect the server-generated ID length. ## Environment - Marinara Engine version: current staging baseline - Package version: 1.3.14 at investigation time - Install type: source - OS + version: n/a — deterministic server-side logic - Browser or app shell: n/a ## Logs, screenshots, or video Use synthetic regression fixtures only; no private chat, vault, or user data. ## Additional context - Target branch: `staging`. - Related prior issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/899 (closed; earlier extraction/backfill scope). - Keep resolution policy and legacy repair/recovery work in separate issues. - Acceptance: separate subjects and relationship pairs keep distinct targets and facts end to end; resolved targets remain stable through normalization; generated IDs never exceed storage limits. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:22 +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#534
No description provided.