mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1751] [Feature]: Long-Term Memory: mark imported notes whose source is gone as outdated #1732
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#1732
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 (Oct 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1751
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
When you import a source into Long-Term Memory (a chat's summaries or messages, a lorebook, a character), it becomes a source note, and memories are extracted from it. If that source later disappears, the note stays and nothing tells you. Its memories keep being recalled in chats, even though the text they came from is gone.
This happens because the import preview only reports freshness for sources that still exist. It matches each current candidate to an existing source note (
existingMatcherinsources/interop.ts) and reportsnew,current,source_updated,context_updatedorextraction_incomplete(LtmInteropPreviewFreshness, sharedschema/sources.ts). A note whose source has gone matches no candidate, so it never appears in the preview at all.Cases that leave such a note behind today:
:part:Npieces. A branch chat can also miss deduplication against a parent chat whose pieces were cut differently. #1747 already keeps pieces stable when an earlier message changes; these are the cases it leaves.Example: you import a lorebook, then delete its "Old capital" entry because the story moved on. The "Old capital" note and its memories stay in the vault and keep showing up in recall. The Sources screen never mentions it.
Proposed package or change
Package:
long-term-memory. Server and UI change, no Engine change.When a preview covers a whole source (a chat, a lorebook, the character list), report the source notes with that provenance kind and source id that no candidate matched as outdated. For each one the Sources screen offers:
Nothing is removed automatically.
Questions to settle before implementing:
LtmInteropPreviewFreshnessvalue (outdated), or a separateoutdatedlist in the preview response? A new enum value is a schema change that the client, and any saved preview or restored task, must accept. A separate list leaves the existing rows unchanged.Why should this be optional?
It lives in the Long-Term Memory package, which is already optional. Within the package it adds no setting: it only reports what is already true and asks before removing anything.
Alternatives considered
Additional context
Follow-up from the Dottore review of #1747 (LTM 1.5.0). It was left out of that PR because it covers every source kind, not only chat messages.
Proof: a regression for each source kind that imports a source, deletes it (or its entry), previews, and expects the note reported as outdated. A paged or filtered preview must not report it.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: