[GH-ISSUE #2014] [Feature]: Long-Term Memory: show a Slurp / Advanced Memory origin chip in the Memory Vault #1874

Closed
opened 2026-11-07 16:37:17 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

Long-Term Memory now receives memories from other packages (Slurp, through the intake service) and from Advanced Memory scene recaps. The Memory Vault does not show where a memory came from:

  • A Vault row shows only the memory's type and status chips.
  • The memory editor shows the origin only as "Extracted from: ", inside the collapsed Linked memories panel. For a Slurp record that title is the character's name, so it never says Slurp.
  • Only the source record itself, reached through the Sources toggle, says "From Slurp". An Advanced Memory recap's source record reads "Chat summary: ", the same as an ordinary chat summary.

So users cannot tell, while browsing, which memories another agent or Advanced Memory added.

Proposed package or change

Add one origin chip, shown only for these two origins:

  • Slurp: the memory's source note has provenance.kind === "package_record".
  • Advanced Memory: the memory's source note has provenance.kind === "advanced_memory".

The chip appears on the Vault row, next to the type and status chips, and in the memory editor header under the title (for both regular memories and source records). A memory's origin comes from its own provenance when it is a source note; otherwise it comes from the source note named by its extracted_from link. Memories from chats, characters or lorebooks get no chip, so nothing changes for them.

Example: a character memory Slurp added for Alice now reads Character · Active · Slurp in the list, instead of Character · Active.

Minimal fix

  • packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsx: one small helper that maps a note to its origin label key (its own provenance.kind for type === "source", otherwise the first extracted_from link's target in notesById with package_record or advanced_memory provenance; else none). Pass the localized label to <VaultRow> as originLabel, and render the same chip in the editor header (source-readonly header near provenanceSourceLabel() and the regular editor header under the title).
  • .../vault/VaultRow.tsx: optional originLabel?: string prop that renders a third chip with the existing chip classes.
  • .../locales/en.json and ko.json: ui.longTermMemory.memoryvault.originSlurp ("Slurp") and ui.longTermMemory.memoryvault.originAdvancedMemory ("Advanced Memory"; use the Engine's Korean term for Advanced Memory).
  • packages/long-term-memory/CHANGELOG.md: a line under ## Unreleased.
  • Regression: extend tests/long-term-memory-feedback-clarity-ui.regression.mjs so it asserts that VaultRow renders originLabel, that the vault derives it from extracted_from plus the package_record and advanced_memory provenance kinds, and that both locale keys exist.

Behavior to preserve: existing chips, row memoization (pass a plain string), source-record header text and Open in Sources button, all filters.

Non-goals: relabelling Advanced Memory source records ("Chat summary"), an origin filter, per-section attribution of lines Slurp appended to existing memories, a caller-generic label for future intake callers, and server or schema changes.

Why should this be optional?

It is a display change inside the optional Long-Term Memory package. No Engine change is needed.

Alternatives considered

  • Relabelling the Advanced Memory source record and adding an origin filter. Deferred; the chip is the smallest visible fix.
  • Tag-based detection (imported_advanced_memory, package_record tags). Provenance is the typed field, so it is preferred.

Additional context

Found while reviewing the Slurp intake (#1992) and Advanced Memory import (#1970) surfaces.

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 (Nov 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2014 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? Long-Term Memory now receives memories from other packages (Slurp, through the intake service) and from Advanced Memory scene recaps. The Memory Vault does not show where a memory came from: - A Vault row shows only the memory's type and status chips. - The memory editor shows the origin only as "Extracted from: <source title>", inside the collapsed **Linked memories** panel. For a Slurp record that title is the character's name, so it never says Slurp. - Only the source record itself, reached through the **Sources** toggle, says "From Slurp". An Advanced Memory recap's source record reads "Chat summary: <chat>", the same as an ordinary chat summary. So users cannot tell, while browsing, which memories another agent or Advanced Memory added. ## Proposed package or change Add one origin chip, shown only for these two origins: - **Slurp**: the memory's source note has `provenance.kind === "package_record"`. - **Advanced Memory**: the memory's source note has `provenance.kind === "advanced_memory"`. The chip appears on the Vault row, next to the type and status chips, and in the memory editor header under the title (for both regular memories and source records). A memory's origin comes from its own provenance when it is a source note; otherwise it comes from the source note named by its `extracted_from` link. Memories from chats, characters or lorebooks get no chip, so nothing changes for them. Example: a character memory Slurp added for Alice now reads `Character · Active · Slurp` in the list, instead of `Character · Active`. ## Minimal fix - `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsx`: one small helper that maps a note to its origin label key (its own `provenance.kind` for `type === "source"`, otherwise the first `extracted_from` link's target in `notesById` with `package_record` or `advanced_memory` provenance; else none). Pass the localized label to `<VaultRow>` as `originLabel`, and render the same chip in the editor header (source-readonly header near `provenanceSourceLabel()` and the regular editor header under the title). - `.../vault/VaultRow.tsx`: optional `originLabel?: string` prop that renders a third chip with the existing chip classes. - `.../locales/en.json` and `ko.json`: `ui.longTermMemory.memoryvault.originSlurp` ("Slurp") and `ui.longTermMemory.memoryvault.originAdvancedMemory` ("Advanced Memory"; use the Engine's Korean term for Advanced Memory). - `packages/long-term-memory/CHANGELOG.md`: a line under `## Unreleased`. - Regression: extend `tests/long-term-memory-feedback-clarity-ui.regression.mjs` so it asserts that `VaultRow` renders `originLabel`, that the vault derives it from `extracted_from` plus the `package_record` and `advanced_memory` provenance kinds, and that both locale keys exist. Behavior to preserve: existing chips, row memoization (pass a plain string), source-record header text and **Open in Sources** button, all filters. Non-goals: relabelling Advanced Memory source records ("Chat summary"), an origin filter, per-section attribution of lines Slurp appended to existing memories, a caller-generic label for future intake callers, and server or schema changes. ## Why should this be optional? It is a display change inside the optional Long-Term Memory package. No Engine change is needed. ## Alternatives considered - Relabelling the Advanced Memory source record and adding an origin filter. Deferred; the chip is the smallest visible fix. - Tag-based detection (`imported_advanced_memory`, `package_record` tags). Provenance is the typed field, so it is preferred. ## Additional context Found while reviewing the Slurp intake (#1992) and Advanced Memory import (#1970) surfaces. ## 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-11-07 16:37:17 +07:00
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#1874
No description provided.