[GH-ISSUE #423] [Fix]: Long-Term Memory dedup comparison ceiling #215

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

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

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

Long-Term Memory deduplication compares an extracted unit with an entire same-target, same-section body. Large sections can dilute a duplicate fact's token similarity, leaving a blind spot once the existing section grows beyond the unit-sized comparison window.

Proposed package or change

Use a small bounded same-target, same-section comparison in the existing package deduplication boundary. Preserve exact matching and the existing note-and-section key. Add coverage for exact, near-duplicate, long-section-tail, cross-section, and cross-note behavior.

Why should this be optional?

This belongs to the optional Long-Term Memory package because it controls package-owned extraction deduplication.

Alternatives considered

Cross-note/cross-section semantic merging and embedding-based deduplication are out of scope without a product rule.

Additional context

Implements Batch E from scratch/long-term-memory-feedback-validity-plan.md on top of local Batch D staging.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Aug 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/423 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? Long-Term Memory deduplication compares an extracted unit with an entire same-target, same-section body. Large sections can dilute a duplicate fact's token similarity, leaving a blind spot once the existing section grows beyond the unit-sized comparison window. ## Proposed package or change Use a small bounded same-target, same-section comparison in the existing package deduplication boundary. Preserve exact matching and the existing note-and-section key. Add coverage for exact, near-duplicate, long-section-tail, cross-section, and cross-note behavior. ## Why should this be optional? This belongs to the optional Long-Term Memory package because it controls package-owned extraction deduplication. ## Alternatives considered Cross-note/cross-section semantic merging and embedding-based deduplication are out of scope without a product rule. ## Additional context Implements Batch E from `scratch/long-term-memory-feedback-validity-plan.md` on top of local Batch D staging. ## Template check - [ ] I DID NOT read this template and provide the requested details.
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#215
No description provided.