[GH-ISSUE #2097] [Feature]: Include lorebook context in Conversation schedule generation #1023

Closed
opened 2026-10-21 05:25:18 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @cha1latte on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2097

Originally assigned to: @cha1latte on GitHub.

What problem does this solve?

Conversation schedule generation currently feels too disconnected from lorebook context. If a character's job site, school, city, culture, obligations, or world rules live in a lorebook, users may need to copy that information into the character card or force it into chat context before regenerating schedules. That is clunky, easy to forget, and breaks immersion.

This especially affects setups where a chat uses a world/city lorebook and a character also has lorebook-backed facts that should naturally shape their weekly routine.

Proposed behavior

When Conversation schedules are generated, include a capped, schedule-focused context block from lorebooks that are already relevant to the chat and character. The scheduler should use that context for durable routine facts such as work, school, location, commute, social obligations, sleep patterns, cultural constraints, and recurring responsibilities.

For a first pass, this should not add a separate scheduler-specific lorebook picker or editable Schedule Planner prompt. The useful default should be: if lorebook context is already active for the chat/character, schedule generation can consider it.

Suggested v1 boundaries:

  • Include relevant active chat lorebook context during schedule generation.
  • Include character-linked lorebook context if that is already straightforward in the current data model.
  • Cap the injected context so large lorebooks do not overwhelm the schedule prompt.
  • Phrase the prompt so lorebook facts are used only when they are relevant to the character's weekly routine.
  • Do not add per-entry schedule filters, prompt debugging, or a full Schedule Planner configuration panel in the first slice.

Expected owner or impact area

  • App shell, navigation, startup, or providers
  • Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Refactor branch considerations

Keep the scheduler owned by Conversation/Chat mode. Avoid turning this into a broad agent configuration redesign or a UI-heavy settings surface for the first slice.

The implementation should preserve the engine boundary: schedule prompt assembly belongs in React-free engine code, while any future UI controls should stay in the Conversation settings surface.

Alternatives considered

  • Use the existing global "Schedule generation preferences" text box. This helps with manual guidance, but it still requires users to restate facts already stored in lorebooks.
  • Add an editable Schedule Planner prompt. That may be useful later, but it is a power-user feature and does not solve the common expectation that active lorebooks should simply inform schedules.
  • Add per-entry or per-character scheduler filters. This would be more configurable, but it is a larger settings surface and should not be required for the first useful version.

Additional context

Original request context:

  • Reporter: DSBwizzardRole
  • OS: Windows 11, accessed locally or via TailScale on Windows 11/Android
  • Version: 1.6.1
  • Install: native installer .exe
  • Related modes: Chat/RP

Example use case: a character has lorebook information about their job site, and the chat/world has a lorebook describing the city they live in. Schedule generation should be able to use those facts to produce a more believable weekly routine without the user copying lorebook details into the character card or chat messages first.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (Jun 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2097 Originally assigned to: @cha1latte on GitHub. ## What problem does this solve? Conversation schedule generation currently feels too disconnected from lorebook context. If a character's job site, school, city, culture, obligations, or world rules live in a lorebook, users may need to copy that information into the character card or force it into chat context before regenerating schedules. That is clunky, easy to forget, and breaks immersion. This especially affects setups where a chat uses a world/city lorebook and a character also has lorebook-backed facts that should naturally shape their weekly routine. ## Proposed behavior When Conversation schedules are generated, include a capped, schedule-focused context block from lorebooks that are already relevant to the chat and character. The scheduler should use that context for durable routine facts such as work, school, location, commute, social obligations, sleep patterns, cultural constraints, and recurring responsibilities. For a first pass, this should not add a separate scheduler-specific lorebook picker or editable Schedule Planner prompt. The useful default should be: if lorebook context is already active for the chat/character, schedule generation can consider it. Suggested v1 boundaries: - Include relevant active chat lorebook context during schedule generation. - Include character-linked lorebook context if that is already straightforward in the current data model. - Cap the injected context so large lorebooks do not overwhelm the schedule prompt. - Phrase the prompt so lorebook facts are used only when they are relevant to the character's weekly routine. - Do not add per-entry schedule filters, prompt debugging, or a full Schedule Planner configuration panel in the first slice. ## Expected owner or impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge - [x] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Refactor branch considerations Keep the scheduler owned by Conversation/Chat mode. Avoid turning this into a broad agent configuration redesign or a UI-heavy settings surface for the first slice. The implementation should preserve the engine boundary: schedule prompt assembly belongs in React-free engine code, while any future UI controls should stay in the Conversation settings surface. ## Alternatives considered - Use the existing global "Schedule generation preferences" text box. This helps with manual guidance, but it still requires users to restate facts already stored in lorebooks. - Add an editable Schedule Planner prompt. That may be useful later, but it is a power-user feature and does not solve the common expectation that active lorebooks should simply inform schedules. - Add per-entry or per-character scheduler filters. This would be more configurable, but it is a larger settings surface and should not be required for the first useful version. ## Additional context Original request context: - Reporter: DSBwizzardRole - OS: Windows 11, accessed locally or via TailScale on Windows 11/Android - Version: 1.6.1 - Install: native installer .exe - Related modes: Chat/RP Example use case: a character has lorebook information about their job site, and the chat/world has a lorebook describing the city they live in. Schedule generation should be able to use those facts to produce a more believable weekly routine without the user copying lorebook details into the character card or chat messages first. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:25:18 +07:00
Author
Owner

@cha1latte commented on GitHub (Jun 3, 2026):

Professor Marinara Says: This is real new feature work, with one adjacent existing helper already in place. Conversation already has global "Schedule generation preferences" for broad steering, but the schedule generator itself does not appear to consume active lorebook/world-book context today. That means users still have to copy durable routine facts out of lorebooks and into cards, chat, or the global preference box if they want those facts to shape generated schedules.

Labeling this normal-scope because the issue is now narrowed to the most useful first slice: reuse already-relevant lorebook context during Conversation schedule generation, with caps and without adding a separate Schedule Planner configuration panel.

<!-- gh-comment-id:4617242172 --> @cha1latte commented on GitHub (Jun 3, 2026): Professor Marinara Says: This is real new feature work, with one adjacent existing helper already in place. Conversation already has global "Schedule generation preferences" for broad steering, but the schedule generator itself does not appear to consume active lorebook/world-book context today. That means users still have to copy durable routine facts out of lorebooks and into cards, chat, or the global preference box if they want those facts to shape generated schedules. Labeling this `normal-scope` because the issue is now narrowed to the most useful first slice: reuse already-relevant lorebook context during Conversation schedule generation, with caps and without adding a separate Schedule Planner configuration panel.
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#1023
No description provided.