[GH-ISSUE #57] [Issue]: AI map creation leaves route graphs disconnected #22

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

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

Originally assigned to: @thetopham on GitHub.

Summary

Hierarchical Maps 1.1.0 can create or expand a hierarchy without creating the practical travel links implied by the generated world. Houses, cities, dungeons, and ordered floors therefore contain locations that are nested correctly but are not connected as a believable route graph.

Affected package

hierarchical-maps

Expected behavior

AI map creation should use the world semantics it generated to infer a sparse, believable, connected travel graph:

  • adjacent floors connect through stairs, elevators, ladders, or equivalent routes;
  • rooms connect through doors, halls, stairs, and entrances;
  • city districts connect through roads, gates, bridges, or transit;
  • dungeon areas connect through corridors, passages, locks, or hidden routes; and
  • an AI expansion connects its new locations into the existing local graph.

Hierarchy answers what contains a location. Direct links answer where travel is possible. Map and layer groups should not become complete all-to-all graphs, but ordinary reachable locations should not be isolated.

Actual behavior

The create prompt says to use links only when parent/child movement cannot express travel, so the model commonly returns links: [] for most siblings. The expansion prompt additionally allows link targets only among newly generated locations, preventing AI-generated links from attaching new locations to existing siblings.

The normalizer preserves valid model-generated links, so this is a generation and expansion-contract problem rather than link loss during parsing.

Steps to reproduce

  1. Install and activate Hierarchical Maps 1.1.0 on a compatible Engine 3.2.2 build.
  2. Open the full-screen hierarchical map editor and choose Create with AI, or select a location and choose Expand with AI.
  3. Generate a house, city, dungeon, or multi-floor structure.
  4. Continue to the editor and inspect Direct links for the generated locations.
  5. Observe that many logical neighbors are unlinked and expansions do not connect new locations to existing siblings.

Environment

  • Marinara Engine version: 3.2.2
  • Package version: 1.1.0
  • Install type: source checkout using the normal package manager
  • OS + version: Linux (version not recorded)
  • Browser or app shell: not required for the server-side generation diagnosis

Logs, screenshots, or video

Source diagnosis:

  • create prompt: Use links only for meaningful travel that parent and child movement cannot express.
  • expansion prompt: Other parentKey and targetKey values may refer only to new keys in this response.
  • expansion prompt: Use links only between new locations when parent and child movement cannot express the route.

No screenshot or recording was captured.

Additional context

Follow-up to merged PR #52. This issue is a prerequisite for future route preview and Travel modes, but it does not implement Travel now, narrated travel, waypoints, or goal travel. The canonical Engine implementation plan still lists those modes as blocked pending human recovery sign-off.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/57 Originally assigned to: @thetopham on GitHub. ## Summary Hierarchical Maps 1.1.0 can create or expand a hierarchy without creating the practical travel links implied by the generated world. Houses, cities, dungeons, and ordered floors therefore contain locations that are nested correctly but are not connected as a believable route graph. ## Affected package `hierarchical-maps` ## Expected behavior AI map creation should use the world semantics it generated to infer a sparse, believable, connected travel graph: - adjacent floors connect through stairs, elevators, ladders, or equivalent routes; - rooms connect through doors, halls, stairs, and entrances; - city districts connect through roads, gates, bridges, or transit; - dungeon areas connect through corridors, passages, locks, or hidden routes; and - an AI expansion connects its new locations into the existing local graph. Hierarchy answers what contains a location. Direct links answer where travel is possible. Map and layer groups should not become complete all-to-all graphs, but ordinary reachable locations should not be isolated. ## Actual behavior The create prompt says to use links only when parent/child movement cannot express travel, so the model commonly returns `links: []` for most siblings. The expansion prompt additionally allows link targets only among newly generated locations, preventing AI-generated links from attaching new locations to existing siblings. The normalizer preserves valid model-generated links, so this is a generation and expansion-contract problem rather than link loss during parsing. ## Steps to reproduce 1. Install and activate Hierarchical Maps 1.1.0 on a compatible Engine 3.2.2 build. 2. Open the full-screen hierarchical map editor and choose **Create with AI**, or select a location and choose **Expand with AI**. 3. Generate a house, city, dungeon, or multi-floor structure. 4. Continue to the editor and inspect **Direct links** for the generated locations. 5. Observe that many logical neighbors are unlinked and expansions do not connect new locations to existing siblings. ## Environment - Marinara Engine version: 3.2.2 - Package version: 1.1.0 - Install type: source checkout using the normal package manager - OS + version: Linux (version not recorded) - Browser or app shell: not required for the server-side generation diagnosis ## Logs, screenshots, or video Source diagnosis: - create prompt: `Use links only for meaningful travel that parent and child movement cannot express.` - expansion prompt: `Other parentKey and targetKey values may refer only to new keys in this response.` - expansion prompt: `Use links only between new locations when parent and child movement cannot express the route.` No screenshot or recording was captured. ## Additional context Follow-up to merged PR #52. This issue is a prerequisite for future route preview and Travel modes, but it does not implement **Travel now**, narrated travel, waypoints, or goal travel. The canonical Engine implementation plan still lists those modes as blocked pending human recovery sign-off. ## 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#22
No description provided.