mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1841] [Feature]: Slurp: use Long-Term Memory's recall for Creator posts and DM replies, with a choice of whole memories or relevant parts #1780
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#1780
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 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1841
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Slurp Creators can draw on what Long-Term Memory knows about them ("What your other Agents know"), but the way in is old:
slp-agent-memory-source.tslists a character's memories throughlong-term-memory:storageand pastes at most two sentences into the flavour brief. That read skips Long-Term Memory's subject, mode and persona rules, ignores what the post or DM is about, never reaches DMs, and keeps alive a service Long-Term Memory wants to remove (tracker SN-6). Long-Term Memory has had a service built for this since 1.4.84,long-term-memory:recall.Tracker: SN-3.
Proposed package or change
Slurp reads memories through
long-term-memory:recallfor each post plan and each DM reply, and shows them in the existing "What you already know" block as "From your memory". The user picks whole memories (default) or the parts that fit what is being written.slurp2only, minor bump with a CHANGELOG entry. Nothing changes in the Engine or Long-Term Memory (whole mode isissues/ltm-recall-whole-memories.md; without it LTM answers ranked).Decisions (joint note, 2026-10-29): keep one switch, "What your other Agents know" (no split, no first-time confirmation; it stays on by default as today); whole or ranked is a user choice, default whole; a DM with the player's persona includes persona memories only when the persona's Slurp page is set to Linked identity (
open); thread notes and fan-side records stay in Slurp.Minimal fix
P =
packages/slurp2/src/engine/packages/server/src/slp, C =packages/slurp2/src/engine/packages/client/src/slp.P/data/creators/slp-ltm-recall.ts, called once inplanSlurpPost(after the beat is known, before the continuity block at ~362) and once per DM reply (beside thefan_threadcontinuity at ~572).characterIdsis the Creator's character source id; a persona-sourced Creator passes its persona aspersonaId. Synthetic fans get Creator memories only. Lines aretitle: textwith whitespace collapsed; nothing is stored. The preview (P/features/feed/slp-prompt-preview-service.ts:116) builds the same block, so it shows the memories too.slurpContinuityInstructiongets an optionalmemories: string[]rendered as a "From your memory:" group (at most 6), with the existing reference-data line. Today it returns""without facts or events; with memories it renders."ok" | "missing" | "off" | "error", or none yet). NewGET /settings/memory-statusbesideGET /settings(P/features/settings/slp-settings-routes.ts:59) returns it.memoryRecall: "whole" | "relevant"inP/modules/settings/slp-settings.ts(schema besideflavourFromAgentsat :308, default"whole"beside :572) and inC/features/settings/slp-settings-contract.tsandslp-settings-defaults.ts(enginegroup, afterflavourFromAgents). An older saved settings file without it reads as"whole".SlpEngineLinkPanel.tsx(~89-93), under the "What your other Agents know" switch and only while it is on: a two-option choice and one status line, using the panel's existing controls.C/locales/en.json;de,ko,plper the package's locale rule (runnode scripts/validate-package-locales.mjs).memoryLinesand thelong-term-memory:storageread inslp-agent-memory-source.ts, and its call inslp-flavour-source.ts:135-138keeps only the tracker lines. Memories now come through the continuity block, so the flavour brief no longer repeats them.packages/slurp2/CHANGELOG.md, new minor version): Creators' posts and DM replies use what Long-Term Memory remembers about them, whole memories by default, or only the parts that fit; the status line says when Long-Term Memory is missing or not sharing; persona memories reach a DM only when that persona's Slurp page uses Linked identity.slurp2_continuity_linksrows (fromType: "ltm_note") for freshness, results in the reference pool, and the echo filter (SN-5). Thread notes and fan-side records are not touched.Regression proof
tests/slurp-continuity-prompt.regression.ts:"".New
tests/slurp2-ltm-recall.regression.ts, with a fake recall service registered through the capability registry:caller: "slurp2", the Creator's character id,mode: "roleplay",whole: trueby default andwhole: falsewithmemoryRecall: "relevant", and its sections reachcontinuityInstruction;hintedorflavourFromAgents: falsemakes no call;"missing", anullresult"off", a throw"error", and each leaves the plan without memories;openpage passespersonaId; with ahintedpage, a fan voice or a synthetic fan it doesn't.Update
tests/slurp2-life-moments.regression.ts:321-363(it asserts the storage read),tests/host-runtime-overlay.regression.mjs:237-255, 281-283andtests/slurp2-steering-flavour.regression.tsto the new path. Mutations that must fail: dropping the disclosure gate, passingpersonaIdfor ahintedpage, and ignoringmemoryRecall.Why should this be optional?
It sits behind the existing "What your other Agents know" switch and Creator disclosure, and does nothing without Long-Term Memory. Long-Term Memory's "Other Agents can read memories" switch stops it from the other side, and its Sharing table shows Slurp's reads.
Alternatives considered
listNotes: no subject, mode or persona rules, no DMs, and it blocks SN-6.Additional context
Follows #1567 (recall service) and #1805 (Sharing table). Pairs with
issues/ltm-recall-whole-memories.md(whole mode) andissues/noodle-ltm-recall.md(SN-2); no file overlap with either. Once a Slurp release with this is out, Long-Term Memory removeslong-term-memory:storage(SN-6).Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
Local trace
8c1a195ec(Slurp 0.4.8). Anchors re-checked at that tip:planSlurpPostbeat at 162, continuity at 362, purpose at 384; DMdisclosureMode478,viewerPageAccount485,fan_threadcontinuity 572; flavour gateslp-flavour-source.ts:136.open | hinted | secret(shared/src/slp/slp-social.types.ts:24); the UI labelsopen"Linked identity".capability-service-registry.service.jsis not inscripts/server-engine-modules-baseline.jsonfor slurp2 and Slurp already imports it, so no baseline change.