[GH-ISSUE #1043] [Issue]: LTM legacy identity conflicts need recoverable repair #533

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/1043

Originally assigned to: @Promansis on GitHub.

Summary

Legacy long-term memory identity conflicts and duplicates can select the wrong note or leave facts and links without a recoverable repair path. Surface conflicts instead of selecting or merging automatically, and provide explicit, data-preserving repair choices.

Affected package

long-term-memory (server-side legacy identity lookup and repair)

Expected behavior

  • Conflicting legacy ID/title identities are not selected automatically.
  • Duplicate local/roster identities do not make short-name and full-name lookup inconsistently select one legacy note or fail without explaining the conflict.
  • Duplicate identities are never merged automatically. A user can preview and explicitly confirm a merge that preserves facts, links, provenance, and conflicts.
  • Ambiguous link remapping provides scoped choices and remains recoverable rather than only emitting a warning.

Actual behavior

Existing local/roster duplicates can cause a short form to select one legacy note while the full form is ambiguous. A note whose ID and title refer to different identities can be selected during extraction even though repair detects the conflict. Ambiguous link remapping can warn without providing a complete recoverable choice path.

Steps to reproduce

  1. Create synthetic legacy notes with duplicate local/roster names and resolve short-name and full-name references.
  2. Create a note whose legacy ID identifies one subject while its title identifies another; attempt extraction and repair.
  3. Create an ambiguous relationship/link remap and inspect whether a scoped choice can be made and resumed.

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 general subject resolution policy and target-ID/normalization integrity in separate issues.
  • Acceptance: conflicts are surfaced with no silent selection or merge; explicit preview/confirmation preserves facts, links, provenance, and conflicts; unresolved link choices remain available for later recovery.

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/1043 Originally assigned to: @Promansis on GitHub. ## Summary Legacy long-term memory identity conflicts and duplicates can select the wrong note or leave facts and links without a recoverable repair path. Surface conflicts instead of selecting or merging automatically, and provide explicit, data-preserving repair choices. ## Affected package `long-term-memory` (server-side legacy identity lookup and repair) ## Expected behavior - Conflicting legacy ID/title identities are not selected automatically. - Duplicate local/roster identities do not make short-name and full-name lookup inconsistently select one legacy note or fail without explaining the conflict. - Duplicate identities are never merged automatically. A user can preview and explicitly confirm a merge that preserves facts, links, provenance, and conflicts. - Ambiguous link remapping provides scoped choices and remains recoverable rather than only emitting a warning. ## Actual behavior Existing local/roster duplicates can cause a short form to select one legacy note while the full form is ambiguous. A note whose ID and title refer to different identities can be selected during extraction even though repair detects the conflict. Ambiguous link remapping can warn without providing a complete recoverable choice path. ## Steps to reproduce 1. Create synthetic legacy notes with duplicate local/roster names and resolve short-name and full-name references. 2. Create a note whose legacy ID identifies one subject while its title identifies another; attempt extraction and repair. 3. Create an ambiguous relationship/link remap and inspect whether a scoped choice can be made and resumed. ## 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 general subject resolution policy and target-ID/normalization integrity in separate issues. - Acceptance: conflicts are surfaced with no silent selection or merge; explicit preview/confirmation preserves facts, links, provenance, and conflicts; unresolved link choices remain available for later recovery. ## 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#533
No description provided.