[GH-ISSUE #527] [Feature]: Add recursive XYZ spatial locations to World Maps #267

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

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

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

World Maps is already hierarchical: regions can contain towns, towns can contain buildings, buildings can contain floors, and floors can contain rooms. That hierarchy answers what is inside what, but World Maps is still missing semantic spatial locations such as XYZ coordinates that answer where each child is inside its parent.

The existing normalized placement field supports visual XY arrangement on a map. It is presentation metadata rather than a recursive spatial model: it does not provide a child with a bounded local coordinate space, signed elevation, stacked locations, or a nested spatial address across region, town, building, floor, and room scales.

Proposed package or change

Extend the downloadable World Maps (hierarchical-maps) package with optional recursive local XYZ coordinate spaces:

  • A location may occupy an integer (x, y, z) position inside its parent.
  • The same location may own a new bounded XYZ grid for its children.
  • X/Y represent position within the current local map and Z represents signed elevation or floor level.
  • Zooming into a child resets the viewport to that child's coordinate space instead of attempting to flatten the complete hierarchy into one global grid.
  • The initial renderer uses one 2D Z slice at a time, with explicit above/below navigation.
  • Nested browsing and zooming never move the authoritative story location.
  • Existing hierarchy and Direct Links remain authoritative for movement; coordinates do not introduce tactical movement, pathfinding, physics, or travel-time rules.
  • Existing List, Map, Layers, normalized placement, imports, and saved definitions remain compatible.

The full planning document defines the proposed contracts, compatibility boundary, editor and runtime behavior, AI generation behavior, tests, assumptions, and deferred scope:

github.com/Pasta-Devs/Marinara-Agents@38e79dfb06/packages/hierarchical-maps/XYZ-SPATIAL-LOCATIONS-PLAN.md

Supported modes remain Roleplay and Game. World Maps owns the package UI, prompts, normalization, and generated artifacts. Any required shared spatial schema or capability API change should land in Marinara Engine first as a paired host contract.

Why should this be optional?

Recursive XYZ authoring, browsing, prompt projection, and map generation extend the downloadable World Maps capability. Users who do not install World Maps do not need its schema, UI, server behavior, or generated package payload in the lightweight Engine core. Engine should expose only the shared capability contract needed to host the package safely.

Alternatives considered

  • Keep the current visual XY placement only. This arranges markers but does not create semantic, nested spatial locations or elevation.
  • Use one global XYZ grid. Region, town, building, and room grids represent incompatible scales, so flattening them would produce arbitrary global coordinates and impractically large maps.
  • Treat hierarchy depth as Z. Hierarchy represents containment and zoom scale; Z should represent physical elevation or floor level within one local space.
  • Build a tactical 3D simulation. Party tokens, terrain, collision, weighted travel, and pathfinding are much larger systems and are intentionally outside this proposal.
  • Start with an isometric renderer. A 2D slice view is simpler, accessible on mobile, and sufficient to establish the coordinate model before considering isometric presentation.

Additional context

This issue is planning only. No World Maps implementation or package artifact change is included in the linked branch.

Related but distinct: #198 tracks inconsistent rendering of today's normalized visual placement between editor and runtime surfaces. This proposal adds semantic recursive XYZ locations; it does not replace the need for one canonical visual projection.

Planning branch: docs/world-maps-xyz-spatial-locations

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Aug 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/527 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? World Maps is already hierarchical: regions can contain towns, towns can contain buildings, buildings can contain floors, and floors can contain rooms. That hierarchy answers **what is inside what**, but World Maps is still missing semantic spatial locations such as XYZ coordinates that answer **where each child is inside its parent**. The existing normalized `placement` field supports visual XY arrangement on a map. It is presentation metadata rather than a recursive spatial model: it does not provide a child with a bounded local coordinate space, signed elevation, stacked locations, or a nested spatial address across region, town, building, floor, and room scales. ## Proposed package or change Extend the downloadable World Maps (`hierarchical-maps`) package with optional recursive local XYZ coordinate spaces: - A location may occupy an integer `(x, y, z)` position inside its parent. - The same location may own a new bounded XYZ grid for its children. - X/Y represent position within the current local map and Z represents signed elevation or floor level. - Zooming into a child resets the viewport to that child's coordinate space instead of attempting to flatten the complete hierarchy into one global grid. - The initial renderer uses one 2D Z slice at a time, with explicit above/below navigation. - Nested browsing and zooming never move the authoritative story location. - Existing hierarchy and Direct Links remain authoritative for movement; coordinates do not introduce tactical movement, pathfinding, physics, or travel-time rules. - Existing List, Map, Layers, normalized placement, imports, and saved definitions remain compatible. The full planning document defines the proposed contracts, compatibility boundary, editor and runtime behavior, AI generation behavior, tests, assumptions, and deferred scope: https://github.com/Pasta-Devs/Marinara-Agents/blob/38e79dfb06d01eec8715b11bdedb866bf66292c3/packages/hierarchical-maps/XYZ-SPATIAL-LOCATIONS-PLAN.md Supported modes remain Roleplay and Game. World Maps owns the package UI, prompts, normalization, and generated artifacts. Any required shared spatial schema or capability API change should land in Marinara Engine first as a paired host contract. ## Why should this be optional? Recursive XYZ authoring, browsing, prompt projection, and map generation extend the downloadable World Maps capability. Users who do not install World Maps do not need its schema, UI, server behavior, or generated package payload in the lightweight Engine core. Engine should expose only the shared capability contract needed to host the package safely. ## Alternatives considered - **Keep the current visual XY placement only.** This arranges markers but does not create semantic, nested spatial locations or elevation. - **Use one global XYZ grid.** Region, town, building, and room grids represent incompatible scales, so flattening them would produce arbitrary global coordinates and impractically large maps. - **Treat hierarchy depth as Z.** Hierarchy represents containment and zoom scale; Z should represent physical elevation or floor level within one local space. - **Build a tactical 3D simulation.** Party tokens, terrain, collision, weighted travel, and pathfinding are much larger systems and are intentionally outside this proposal. - **Start with an isometric renderer.** A 2D slice view is simpler, accessible on mobile, and sufficient to establish the coordinate model before considering isometric presentation. ## Additional context This issue is planning only. No World Maps implementation or package artifact change is included in the linked branch. Related but distinct: #198 tracks inconsistent rendering of today's normalized visual placement between editor and runtime surfaces. This proposal adds semantic recursive XYZ locations; it does not replace the need for one canonical visual projection. Planning branch: [`docs/world-maps-xyz-spatial-locations`](https://github.com/Pasta-Devs/Marinara-Agents/tree/docs/world-maps-xyz-spatial-locations) ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:25:55 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 25, 2026):

@thetopham I am landing your completed planning artifact during the maintainer release-cleanup sweep. The issue explicitly scopes this as planning-only, so PR #577 (opening now) will merge only the plan document into staging; it does not claim recursive XYZ is implemented.

<!-- gh-comment-id:5409676259 --> @SpicyMarinara commented on GitHub (Aug 25, 2026): @thetopham I am landing your completed planning artifact during the maintainer release-cleanup sweep. The issue explicitly scopes this as planning-only, so PR #577 (opening now) will merge only the plan document into staging; it does not claim recursive XYZ is implemented.
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#267
No description provided.