mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #2010] feat(slurp2): tell Long-Term Memory about your Creators (SN-4) #1872
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#1872
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 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2010
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Slurp knows things about its Creators that the user decided are true: facts written by hand in the continuity editor, facts promoted out of a DM thread, couples and friendships between Creators, and how a storyline ended. None of it reaches Engine chats. A character who is dating another Creator on Slurp has never heard of them in a roleplay. Since SN-3, Slurp reads Long-Term Memory, but nothing flows the other way.
Tracker: SN-4.
Proposed package or change
When the user allows it, Slurp tells Long-Term Memory about one record at a time, as it happens, through
long-term-memory:intake. A record is{ recordId, characterIds, text }: a fact about one Creator, a couple or bond between two, or how a storyline ended. No sweep, no backfill. Records go straight into memory without Review (decided 2026-10-30).excludeFrom: ["slurp2"], so its own records don't come back as memories (SN-5).slurp2only, a patch release (0.4.x, decided 2026-10-31) with a CHANGELOG entry and a new setting, off by default.Minimal fix
P =
packages/slurp2/src/engine/packages/server/src/slp, C =packages/slurp2/src/engine/packages/client/src/slp.recordIdinto the note id and keepsslurp2:<recordId>as provenance (max 120 characters), so any short string works.fact:<id>, textsubject: text, ortextalone. A fact's text is already at most 500 characters (LTM accepts 1-1000).couple:<sorted member ids>, both character ids. "A and B are together." After a breakup: "A and B were together until ."bond:<kind>:<sorted ids>, both character ids. "A and B are friends" (roommates, coworkers, exes, family). When a bond ends, itsendingis added.storyline:<projectId>, the Creator's id. The project title and the ending stage's outcome text (slurpStageOutcomes,modules/projects/slp-project-storyline.ts:274).expiresAt; boundary and business facts;beat:facts; thread- and fan-private records, requests, proposals and events; records in conversation, roleplay or game reality; rivalries and collabs; couples with the player's persona; life moments.PUT /long-term-memory/settings, as the read offer does today (SlpEngineLinkPanel.tsx:24-33). New keys inC/locales/en.json, plusde,koandplper the locale rule.packages/slurp2/CHANGELOG.md, next patch): Slurp can tell Long-Term Memory what is true about your Creators, so chats know it too. Off by default, and Slurp's own facts no longer come back as memories.Non-goals: backfill; a share button in the promote dialog; persona-sourced Creators; showing send status in Slurp; retracting when a Creator account is deleted.
Regression proof
New
tests/slurp2-ltm-intake.regression.ts(repo-roottests/), with a fakelong-term-memory:intakeservice in the capability registry (astests/slurp2-ltm-recall.regression.tsfakes recall), five cases:shareWithMemoryoff, nothing is called.creator_publicinterest fact sends onesubmitwithcaller: "slurp2",recordId: "fact:<id>"and the Creator's character id; athread_privatefact sends nothing.thread_privateretracts; the retract route retracts.togethersends one record with both character ids.Update
tests/slurp2-ltm-recall.regression.tsforexcludeFrom: ["slurp2"]. The existing offer test gains the setting key: the read offer still writes onlylongTermMemoryShareWithPackages, the add offer onlylongTermMemoryAcceptFromPackages.Why should this be optional?
Slurp's new switch is off by default, and so is Long-Term Memory's "Other Agents can add memories". Turning on either one offers to turn on the other, so the user agrees once and in one place. Nothing from fans or DM threads is ever sent.
Alternatives considered
slurp2:postsservice and extracts (D3). Dropped 2026-10-29: posts are Slurp's own repetition problem, and the ledger is already extracted.Additional context
Follows #1841 (SN-3, Slurp reads recall). Needs the two LTM issues above released, because an older LTM has no intake service. Slurp then sends nothing: the service is missing, which is the same as off.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
Local trace
Anchors:
promoteSlurpContinuityFact(data/continuity/slp-continuity-storage.ts:489-523): newactivefact withsource: "user",contribution: "manual";SLURP_PROMOTION_TARGETSare the three Creator-wide audiences (:431).slp-continuity-routes.ts:99/114(create,realityScope: "slurp"),:182(edit),:200(retract; no hard delete),:219/226(promote).modules/continuity/slp-continuity-rules.ts:29-49.slurp2.creator-ties,{ ties, deals, couples, bonds }, written only bymutateSlurpCreatorTies(slp-creator-ties-storage.ts:15, 46-68).modules/projects/slp-creator-couples.ts, "together" at :400/:413/:672/:706, breakup at :536. Player couples are inslp-player-couple.ts.SlurpBond(modules/projects/slp-creator-bonds.ts:57-72):origin,endedAt,ending.slp-projects-storage-1.ts:450, 476.slp-ltm-recall.ts:74-83(getCapabilityServiceimport at :10); testtests/slurp2-ltm-recall.regression.ts.offerSlurpMemories) reads GET/api/slurp2/settingsand PATCHes{ shareWithMemory: true }, so the new setting must be in the GET body and accepted by PATCH (slp-settings-routes.ts:60, :148).For the worker to check: the
SlurpCoupleshape (id, members, display-name lookup); whetherslp-projects-storage-1.tshas the settings reader in scope; where a completed project's ending outcome text is read.Decided by the user: 2026-10-30, the switches offer each other, records skip Review, the echo filter is on LTM's side. 2026-10-31, patch release; one record kind
{ recordId, characterIds, text }.