mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1934] [Feature]: Long-Term Memory: register the runtime service host-only #1829
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#1829
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 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1934
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Long-Term Memory registers
long-term-memory:runtimewithapi.registerService, and any installed package can read it throughruntime.services.get. That service gives recall for any chat id,recordPromptAcceptedandwithVaultMutation(the vault lock). Only the Engine should call it: generation (long-term-memory-runtime.ts) and backup restore (backup.routes.ts). Slurp and Noodle readlong-term-memory:recall, which stays open to packages.Engine #8413 (Capability API 1.388, closes Pasta-Devs/Marinara-Engine#8408) added
api.registerService(key, service, { hostOnly: true }): a host-only service still reaches the Engine, but packages getnullfromservices.get.Proposed package or change
Long-Term Memory registers
long-term-memory:runtimewith{ hostOnly: true }.long-term-memory:recallstays as it is.No
engine.minbump: an Engine before 1.388 ignores the third argument, so the service keeps working there and stays readable as it is today. Server only, no UI, no permission change. Patch release.Minimal fix
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/server-entry.ts: widen the localApi.registerServicetype withoptions?: { hostOnly?: boolean }and pass{ hostOnly: true }on thelong-term-memory:runtimeregistration (~line 39).packages/long-term-memory/docs/ARCHITECTURE.md(~line 15): say the runtime service is host-only from Capability API 1.388.tests/long-term-memory-runtime.regression.ts, the fakeapi.registerService(~line 244) records each key's options; assertlong-term-memory:runtimeis registeredhostOnly: trueandlong-term-memory:recallis not.packages/long-term-memory/CHANGELOG.mdunder## Unreleased.Non-goals: a key-prefix rule in the Engine; changing
long-term-memory:recall; Slurp and Noodle.Why should this be optional?
It is part of the existing optional Long-Term Memory package; it narrows who can call a service the package already registers.
Alternatives considered
Raising
engine.minto the first Engine with API 1.388. Not needed, since older Engines ignore the option, and no release has it yet (latest v2.5.1).Additional context
Tracker SN-7 (design note Q8). Engine side: Pasta-Devs/Marinara-Engine#8408, Pasta-Devs/Marinara-Engine#8413.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: