[GH-ISSUE #111] [Feature]: Add Long-Term Memory Agent package #54

Closed
opened 2026-10-20 17:23:53 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @Promansis on GitHub.

This was generated by AI during triage.

What problem does this solve?

Marinara Engine does not currently offer an optional first-party package for durable, scoped memory across long-running chats. Important details can fall outside the active context window, while users lack a dedicated workflow to extract, review, organize, import, recall, back up, and maintain durable memories without adding this substantial feature to the lightweight Engine core.

Proposed package or change

Add Long-Term Memory 1.0.0 as an official downloadable Agent package.

The package should:

  • extract durable memories from chat summaries, character records, and lorebooks;
  • store data in a package-owned vault with chat, persona, and global scopes;
  • provide review, source-management, maintenance, import/export, and backup workflows;
  • recall relevant context during generation with configurable placement and limits;
  • support Conversation, Roleplay, Visual Novel, and Game modes;
  • provide package-owned client UI and privileged server routes;
  • use Marinara Engine capability API 1.6 and require Engine 2.3.5 or later within the 2.3 release line;
  • preserve package data across restart, offline restart, uninstall, and reinstall;
  • ship reproducible source, manifest, generated bundles, artifact, catalog metadata, artwork, documentation, and focused regressions.

This is the initial public release. Earlier development artifact versions were private testing iterations and should not be published or treated as upgrade baselines.

Why should this be optional?

Long-Term Memory adds substantial server-side extraction, indexing, storage, retrieval, maintenance, and client UI functionality. Keeping it in the downloadable catalog preserves Marinara Engine's lightweight default installation and lets users opt into the additional storage, generation calls, routes, UI, and restart requirement only when they want durable memory.

Alternatives considered

  • Keep the implementation in Engine core. Rejected because it increases the default runtime and maintenance surface for users who do not need durable memory.
  • Rely only on the existing prompt context or chat summaries. Rejected because those do not provide scoped durable records, source reconciliation, review workflows, retrieval controls, or package-owned backup behavior.
  • Publish the development-version artifact history. Rejected because those versions were internal testing builds, not legacy public releases.

Additional context

  • Proposed release version: 1.0.0
  • Package ID: long-term-memory
  • Engine range: >=2.3.5 <2.4.0
  • Capability API: 1.6
  • Engine implementation baseline: 4e651e9c63722b40ebd5b785cbf22541e3095f39
  • Release branch: Promansis:release/long-term-memory-1.0.0

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Jul 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/111 Originally assigned to: @Promansis on GitHub. > *This was generated by AI during triage.* ## What problem does this solve? Marinara Engine does not currently offer an optional first-party package for durable, scoped memory across long-running chats. Important details can fall outside the active context window, while users lack a dedicated workflow to extract, review, organize, import, recall, back up, and maintain durable memories without adding this substantial feature to the lightweight Engine core. ## Proposed package or change Add **Long-Term Memory 1.0.0** as an official downloadable Agent package. The package should: - extract durable memories from chat summaries, character records, and lorebooks; - store data in a package-owned vault with chat, persona, and global scopes; - provide review, source-management, maintenance, import/export, and backup workflows; - recall relevant context during generation with configurable placement and limits; - support Conversation, Roleplay, Visual Novel, and Game modes; - provide package-owned client UI and privileged server routes; - use Marinara Engine capability API 1.6 and require Engine 2.3.5 or later within the 2.3 release line; - preserve package data across restart, offline restart, uninstall, and reinstall; - ship reproducible source, manifest, generated bundles, artifact, catalog metadata, artwork, documentation, and focused regressions. This is the initial public release. Earlier development artifact versions were private testing iterations and should not be published or treated as upgrade baselines. ## Why should this be optional? Long-Term Memory adds substantial server-side extraction, indexing, storage, retrieval, maintenance, and client UI functionality. Keeping it in the downloadable catalog preserves Marinara Engine's lightweight default installation and lets users opt into the additional storage, generation calls, routes, UI, and restart requirement only when they want durable memory. ## Alternatives considered - Keep the implementation in Engine core. Rejected because it increases the default runtime and maintenance surface for users who do not need durable memory. - Rely only on the existing prompt context or chat summaries. Rejected because those do not provide scoped durable records, source reconciliation, review workflows, retrieval controls, or package-owned backup behavior. - Publish the development-version artifact history. Rejected because those versions were internal testing builds, not legacy public releases. ## Additional context - Proposed release version: `1.0.0` - Package ID: `long-term-memory` - Engine range: `>=2.3.5 <2.4.0` - Capability API: `1.6` - Engine implementation baseline: `4e651e9c63722b40ebd5b785cbf22541e3095f39` - Release branch: `Promansis:release/long-term-memory-1.0.0` ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@RemanenetSpy commented on GitHub (Jul 26, 2026):

Hey! I saw this issue about building an optional durable memory package for Marinara Engine to handle scoped long-term memory extraction and retrieval.

We were building something very similar and ran into the exact same issues with trying to handle extraction, indexing, and supersession (invalidating stale memories) without bloating the core engine runtime.

We ended up building an external API layer called Smriti specifically for this. It handles all the heavy lifting off-engine. You pass it raw chat text, and it uses an SVO (Subject-Verb-Object) parser to decompose it into structured temporal events (with alid_from and alid_to timestamps), stored in a dual-calendar Postgres/pgvector backend.

Crucially, it natively supports strict scope boundaries (chat, persona, global) just like you outlined in your specs, and handles automatic fact-supersession without slow LLM calls.

Instead of building all the storage, extraction, and vector retrieval infrastructure from scratch for the long-term-memory package, you could potentially just wrap the Smriti API endpoints (/ingest and /query). It keeps the Engine core incredibly lightweight while giving your users instant durable memory.

Just wanted to share in case it saves you guys a ton of backend engineering time!

<!-- gh-comment-id:5084644804 --> @RemanenetSpy commented on GitHub (Jul 26, 2026): Hey! I saw this issue about building an optional durable memory package for Marinara Engine to handle scoped long-term memory extraction and retrieval. We were building something very similar and ran into the exact same issues with trying to handle extraction, indexing, and supersession (invalidating stale memories) without bloating the core engine runtime. We ended up building an external API layer called **[Smriti](https://smriti-kaal.vercel.app/)** specifically for this. It handles all the heavy lifting off-engine. You pass it raw chat text, and it uses an SVO (Subject-Verb-Object) parser to decompose it into structured temporal events (with alid_from and alid_to timestamps), stored in a dual-calendar Postgres/pgvector backend. Crucially, it natively supports strict scope boundaries (chat, persona, global) just like you outlined in your specs, and handles automatic fact-supersession without slow LLM calls. Instead of building all the storage, extraction, and vector retrieval infrastructure from scratch for the long-term-memory package, you could potentially just wrap the Smriti API endpoints (/ingest and /query). It keeps the Engine core incredibly lightweight while giving your users instant durable memory. Just wanted to share in case it saves you guys a ton of backend engineering time!
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#54
No description provided.