[GH-ISSUE #75] [Feature]: Add progressive, reviewed map creation and upkeep from campaign context #35

Closed
opened 2026-10-20 17:23:43 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

add automatic lorebook to locations so each location has its own lorebook history?

Hierarchical Maps currently asks users to provide substantial world structure up front or manually expand and edit it later. That works for planned worlds, but it does not fit campaigns whose setting is already present in Character Cards, lorebooks, or an existing chat and continues to emerge during roleplay.

For example, an established chat may already mention ten or more places, while a new campaign may begin with only two known locations and discover or refine the rest over time. Users expect Maps to cooperate with Lorebook/Session Keeper-style updates instead of requiring the complete hierarchy at creation time.

Proposed package or change

Add progressive, reviewed map creation and upkeep for Roleplay and Game:

  • when a chat has no hierarchy, offer Draft map from campaign context using user-selected Character Cards, setup context, relevant existing chat context, and selected lorebooks or Session Keeper lore;
  • show source provenance and the complete normal draft preview before the first map is enabled and saved;
  • support a manual check plus an optional configurable cadence, such as after the related Keeper updates or every configured number of accepted messages;
  • process only new or changed source material after the initial pass, with a durable watermark so the same context is not repeatedly proposed;
  • prepare a review batch that can propose a new location, match and attach lore to an existing location, refine public description or private model memory, reparent a location, add or change a route link, or report an ambiguous match;
  • provide Apply selected, per-item review, and dismiss controls, and apply accepted changes atomically against the expected map revision;
  • preserve stable location IDs and avoid duplicate places when aliases or alternate spellings refer to the same location;
  • keep current location, starting location, and pending destination unchanged unless the user separately accepts a valid movement action; and
  • expose per-chat modes such as Off, Suggest map changes (default), and a narrow Auto-link exact matches option while requiring review for structural changes.

Prefer structured spatial hints from existing Lorebook/Session Keeper results or deterministic matching before adding another inference call. If direct chat analysis is needed, keep its context bounded and make the source/cost visible. Maps logic and review UI remain package-owned; Engine should provide only generic context, lore-change, scheduling, transaction, or review-host contracts if required.

Why should this be optional?

Turning campaign knowledge into a reviewed spatial hierarchy is specific to the optional Hierarchical Maps package. Users who do not want spatial tracking should not pay the model, context, storage, or UI cost in the Engine core.

Alternatives considered

  • Requiring a complete world description up front does not fit discovery-driven roleplay or established chats.
  • Manual Expand with AI remains useful for deliberate authoring, but it makes users repeatedly restate facts already present in campaign context.
  • Silently converting every place mention into map canon would create duplicates, false hierarchy, unexpected route changes, and broken history.
  • Running a second background model after every turn is expensive and may duplicate Keeper work; reuse typed Keeper output or changed lore when possible.
  • Treating World Info as the map authority would blur lore facts, topology, travel validity, and current-location ownership.

Additional context

This is the issue-sized delivery slice from the maintainer's thetopham/Marinara-Engine developer roadmap at docs/development/hierarchical-maps-future-roadmap.md, Workstream 6: reviewed lore-to-map upkeep. That roadmap already separates responsibilities: Lorebook/Session Keeper owns durable campaign facts, Maps owns authoritative location identity and topology, and synchronization produces reviewed proposals rather than silent canon changes.

Example desired progression:

New chat: 2 known places -> roleplay discovers a settlement -> Keeper records it -> Maps proposes the settlement beneath the appropriate region -> user reviews and applies -> later details refine the same stable location.

Planning status: future roadmap. Recording this request does not supersede the current Hierarchical Maps recovery, compatibility, and release-sign-off gates.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/75 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? add automatic lorebook to locations so each location has its own lorebook history? Hierarchical Maps currently asks users to provide substantial world structure up front or manually expand and edit it later. That works for planned worlds, but it does not fit campaigns whose setting is already present in Character Cards, lorebooks, or an existing chat and continues to emerge during roleplay. For example, an established chat may already mention ten or more places, while a new campaign may begin with only two known locations and discover or refine the rest over time. Users expect Maps to cooperate with Lorebook/Session Keeper-style updates instead of requiring the complete hierarchy at creation time. ## Proposed package or change Add progressive, reviewed map creation and upkeep for Roleplay and Game: - when a chat has no hierarchy, offer **Draft map from campaign context** using user-selected Character Cards, setup context, relevant existing chat context, and selected lorebooks or Session Keeper lore; - show source provenance and the complete normal draft preview before the first map is enabled and saved; - support a manual check plus an optional configurable cadence, such as after the related Keeper updates or every configured number of accepted messages; - process only new or changed source material after the initial pass, with a durable watermark so the same context is not repeatedly proposed; - prepare a review batch that can propose a new location, match and attach lore to an existing location, refine public description or private model memory, reparent a location, add or change a route link, or report an ambiguous match; - provide **Apply selected**, per-item review, and dismiss controls, and apply accepted changes atomically against the expected map revision; - preserve stable location IDs and avoid duplicate places when aliases or alternate spellings refer to the same location; - keep current location, starting location, and pending destination unchanged unless the user separately accepts a valid movement action; and - expose per-chat modes such as **Off**, **Suggest map changes** (default), and a narrow **Auto-link exact matches** option while requiring review for structural changes. Prefer structured spatial hints from existing Lorebook/Session Keeper results or deterministic matching before adding another inference call. If direct chat analysis is needed, keep its context bounded and make the source/cost visible. Maps logic and review UI remain package-owned; Engine should provide only generic context, lore-change, scheduling, transaction, or review-host contracts if required. ## Why should this be optional? Turning campaign knowledge into a reviewed spatial hierarchy is specific to the optional Hierarchical Maps package. Users who do not want spatial tracking should not pay the model, context, storage, or UI cost in the Engine core. ## Alternatives considered - Requiring a complete world description up front does not fit discovery-driven roleplay or established chats. - Manual **Expand with AI** remains useful for deliberate authoring, but it makes users repeatedly restate facts already present in campaign context. - Silently converting every place mention into map canon would create duplicates, false hierarchy, unexpected route changes, and broken history. - Running a second background model after every turn is expensive and may duplicate Keeper work; reuse typed Keeper output or changed lore when possible. - Treating World Info as the map authority would blur lore facts, topology, travel validity, and current-location ownership. ## Additional context This is the issue-sized delivery slice from the maintainer's `thetopham/Marinara-Engine` developer roadmap at `docs/development/hierarchical-maps-future-roadmap.md`, **Workstream 6: reviewed lore-to-map upkeep**. That roadmap already separates responsibilities: Lorebook/Session Keeper owns durable campaign facts, Maps owns authoritative location identity and topology, and synchronization produces reviewed proposals rather than silent canon changes. Example desired progression: `New chat: 2 known places -> roleplay discovers a settlement -> Keeper records it -> Maps proposes the settlement beneath the appropriate region -> user reviews and applies -> later details refine the same stable location.` Planning status: future roadmap. Recording this request does not supersede the current Hierarchical Maps recovery, compatibility, and release-sign-off gates. ## 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-Agents#35
No description provided.