[GH-ISSUE #6749] [Feature]: Optional Decision model for Advanced Memory scene detection and recall #3782

Closed
opened 2026-10-21 06:07:09 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Sep 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6749

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Advanced Memory in Roleplay currently uses a generative helper for scene boundaries and text/embedding similarity for recall. An optional Decision connection such as TypeSafe Jev could evaluate scene boundaries and select relevant scene recaps and original excerpts, while the existing summary helper continues writing and consolidating summaries.

Proposed solution

  • Rename the Roleplay feature to Advanced Memory, removing its Alpha labels in settings, setup, and documentation.
  • Add an off-by-default toggle inside Advanced Memory. Enabling it reveals a connection selector for a saved Decision connection, including direct TypeSafe and OpenRouter Jev.
  • Use the selected connection for scene boundary decisions and batched relevance judgments over eligible scene summaries and excerpts. Keep summaries with the existing generative helper.
  • Permit recall without embeddings through bounded decision batches. Preserve character knowledge/visibility rules, manual corrections, source IDs, context budgets, cancellation, and compatible swipe/continuation memory reuse.
  • Keep the existing behavior when disabled. On an unavailable connection or failed decision request, retain the existing scene/recall fallback and make setup problems clear.
  • Update English docs and UI copy, translated documentation packs and applicable UI translations. Add focused server and browser regression coverage.

Alternatives considered

Keep the current text/embedding retrieval unchanged; or use Jev only to rerank an existing shortlist. Batching eligible scene recaps also permits an embedding-free path, with original excerpts evaluated within selected scenes. A large-context generative router is a separate product from Jev's typed Decisions API.

Additional context

Requested and owned by @SpicyMarinara. Codex is implementing this feature against staging; a draft PR will track the work.

Current direct TypeSafe API limits are 64K total request tokens and 32K for state plus the longest question. Implementation must bound requests rather than assume Jev Router's advertised 1M chat context applies to decision calls.

Related open PRs #6744 and #6746 concern ordinary semantic summary retrieval and embedding-index rebuilding; this feature belongs to the separate Advanced Memory path.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6749 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Advanced Memory in Roleplay currently uses a generative helper for scene boundaries and text/embedding similarity for recall. An optional Decision connection such as TypeSafe Jev could evaluate scene boundaries and select relevant scene recaps and original excerpts, while the existing summary helper continues writing and consolidating summaries. ## Proposed solution - Rename the Roleplay feature to Advanced Memory, removing its Alpha labels in settings, setup, and documentation. - Add an off-by-default toggle inside Advanced Memory. Enabling it reveals a connection selector for a saved Decision connection, including direct TypeSafe and OpenRouter Jev. - Use the selected connection for scene boundary decisions and batched relevance judgments over eligible scene summaries and excerpts. Keep summaries with the existing generative helper. - Permit recall without embeddings through bounded decision batches. Preserve character knowledge/visibility rules, manual corrections, source IDs, context budgets, cancellation, and compatible swipe/continuation memory reuse. - Keep the existing behavior when disabled. On an unavailable connection or failed decision request, retain the existing scene/recall fallback and make setup problems clear. - Update English docs and UI copy, translated documentation packs and applicable UI translations. Add focused server and browser regression coverage. ## Alternatives considered Keep the current text/embedding retrieval unchanged; or use Jev only to rerank an existing shortlist. Batching eligible scene recaps also permits an embedding-free path, with original excerpts evaluated within selected scenes. A large-context generative router is a separate product from Jev's typed Decisions API. ## Additional context Requested and owned by @SpicyMarinara. Codex is implementing this feature against staging; a draft PR will track the work. Current direct TypeSafe API limits are 64K total request tokens and 32K for state plus the longest question. Implementation must bound requests rather than assume Jev Router's advertised 1M chat context applies to decision calls. - https://docs.typesafe.ai/models - https://docs.typesafe.ai/cookbooks/semantic_find - https://openrouter.ai/blog/insights/what-is-jev/ Related open PRs #6744 and #6746 concern ordinary semantic summary retrieval and embedding-index rebuilding; this feature belongs to the separate Advanced Memory path. ## Template check - [ ] I DID NOT read this template and provide the requested details.
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-Engine#3782
No description provided.