[GH-ISSUE #3564] [Feature]: Add hierarchical maps and spatial context #1928

Closed
opened 2026-10-21 05:43:53 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

Roleplay and Game models can lose spatial orientation because locations are currently represented as flat or mode-specific state. Creators cannot define nested regions, buildings, floors, rooms, and local maps as one stable hierarchy, and injecting every place description would waste prompt context.

Proposed solution

Add a shared hierarchical map and spatial-context system for Roleplay and Game:

  • Store an author-defined hierarchy separately from runtime location state.
  • Track one authoritative current scene location in the MVP.
  • Inject only the current location description, private model memory, breadcrumb, and reachable destinations into prompts.
  • Validate movement as a revisioned, idempotent transition rather than accepting free-form location patches.
  • Preserve location state across reloads, swipes, regeneration, branches, and Game checkpoints.
  • Provide map, layer, and list presentations for nested locations.
  • Allow existing Game maps, grid cells, and nodes to bind explicitly to stable hierarchy location IDs.
  • Preserve unbound Game map movement as tactical party-position state.

The first implementation package will add the shared TypeScript/Zod contracts and pure graph, breadcrumb, destination, archive, and transition helpers. Persistence, prompt integration, authoring UI, and runtime UI will follow as focused packages.

The implementation plan is documented in docs/development/hierarchical-locations-prd-v3.md.

Alternatives considered

Keeping existing Game maps completely independent was also considered, but it would preserve competing sources of named location truth. Explicit stable-ID bindings provide integration without replacing the current tactical map system.

Additional context

The MVP supports Roleplay and Game only. Conversation projection, lorebook attachments, creator templates, model-requested movement, and per-character positions are later phases.

Owner: @thetopham
Branch: hierarchical-locations
Target: staging

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3564 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? Roleplay and Game models can lose spatial orientation because locations are currently represented as flat or mode-specific state. Creators cannot define nested regions, buildings, floors, rooms, and local maps as one stable hierarchy, and injecting every place description would waste prompt context. ## Proposed solution Add a shared hierarchical map and spatial-context system for Roleplay and Game: - Store an author-defined hierarchy separately from runtime location state. - Track one authoritative current scene location in the MVP. - Inject only the current location description, private model memory, breadcrumb, and reachable destinations into prompts. - Validate movement as a revisioned, idempotent transition rather than accepting free-form location patches. - Preserve location state across reloads, swipes, regeneration, branches, and Game checkpoints. - Provide map, layer, and list presentations for nested locations. - Allow existing Game maps, grid cells, and nodes to bind explicitly to stable hierarchy location IDs. - Preserve unbound Game map movement as tactical party-position state. The first implementation package will add the shared TypeScript/Zod contracts and pure graph, breadcrumb, destination, archive, and transition helpers. Persistence, prompt integration, authoring UI, and runtime UI will follow as focused packages. The implementation plan is documented in `docs/development/hierarchical-locations-prd-v3.md`. ## Alternatives considered Keeping existing Game maps completely independent was also considered, but it would preserve competing sources of named location truth. Explicit stable-ID bindings provide integration without replacing the current tactical map system. ## Additional context The MVP supports Roleplay and Game only. Conversation projection, lorebook attachments, creator templates, model-requested movement, and per-character positions are later phases. Owner: @thetopham Branch: `hierarchical-locations` Target: `staging` ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:43:53 +07:00
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#1928
No description provided.