[GH-ISSUE #77] [Feature]: Let Set destination plan multi-step routes to distant locations #38

Closed
opened 2026-10-20 17:23:44 +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/77

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

Hierarchical Maps lets users browse and inspect locations beyond their current position, but Set destination is limited to the immediately reachable parent, child, or linked node. Selecting a farther location therefore ends in a browse-only state even when a valid path exists through several connected locations.

Users must manually remember the final target, choose one intermediate destination, send a turn, reopen or browse the map again, and repeat for every hop. This makes houses, cities, towers, dungeons, and other deeply nested maps tedious to navigate and makes the visible world map feel less capable than its route graph.

Proposed package or change

Extend Set destination with multi-step target and route planning for Roleplay and Game:

  • keep Set destination as the direct action for an adjacent reachable location;
  • when the selected location is not adjacent but is reachable, offer Plan route or Set target instead of Browse only from here;
  • compute the default route using the fewest valid graph connections across active parent/child edges and available direct links;
  • show an inline route preview with the current location, every intermediate step, final target, hop count, and authored link labels where available;
  • save a typed route plan containing the final target, planned location IDs, expected current location, and expected map revision;
  • stage only the first hop through the existing one-hop pending spatial-transition contract;
  • after each accepted owner turn commits a hop, revalidate the remaining route and automatically stage the next valid hop for the following turn;
  • show persistent progress such as Route to Observatory · 2 of 4 steps in Story Location and the Roleplay/Game world-map surface;
  • allow Cancel route, Change target, and explicit review before replacing another queued destination or route plan;
  • stop automatic next-hop staging and mark the plan Needs review when the current location changes unexpectedly, the map revision changes, or a step becomes hidden, blocked, archived, missing, or disconnected; and
  • keep server-side movement authoritative by recomputing or validating the route and validating every committed hop for revision, reachability, and idempotency.

The first slice should use the shortest route by connection count. Waypoints, authored distance/time weights, scenic routing, Travel now, journey narration, and model-selected destinations can remain separate follow-ups.

This is automatic route guidance, not unattended automatic travel. It must not submit messages, run model turns, or silently commit several locations. Each hop still moves with an accepted owner turn and creates the normal spatial history state.

Maps owns the route planner, target/progress UI, validation rules, and package tests. If durable route-plan state or an atomic history contract requires a new generic host capability, coordinate a paired Marinara Engine issue rather than putting map-specific behavior in Engine core.

Why should this be optional?

Multi-step spatial routing and target progress are specific to the downloadable Hierarchical Maps package. Marinara Engine should provide only generic persistence, history, or transaction contracts that optional packages can reuse.

Alternatives considered

  • Keeping one-hop selection only is safe but forces repetitive map interaction and makes distant browsable locations non-actionable.
  • Committing the final target immediately would act like teleportation and skip intermediate route validation and history.
  • Automatically generating one model turn per hop would be slow, costly, and capable of running the story without the user; unattended multi-turn travel remains out of scope.
  • Client-only route calculation without authoritative validation could follow stale or blocked paths.
  • Adding fast travel, narration, waypoints, scenic metadata, and route goals in one issue would make the first useful improvement too large to review and prove safely.

Additional context

Current package behavior resolves only immediate parent, child, and available linked locations through resolveSpatialDestinations(...). Both the Roleplay runtime bar and Game world map show Set destination only when the selected node appears in that one-hop result; otherwise the world map displays Browse only from here.

This is the first issue-sized slice of thetopham/Marinara-Engine developer roadmap docs/development/hierarchical-maps-future-roadmap.md, Workstream 3: destination planning with player-controlled pace. The roadmap explicitly calls for selecting any reachable destination and preserving one-hop validation for stepwise travel while postponing unattended automatic multi-turn travel.

Related prerequisite: #57 improved AI-generated route connectivity. This request consumes the authored graph; it does not change map-generation link policy.

User report: the map can be browsed normally, but Set destination is limited to the next connected node or location instead of accepting a farther target and planning the route to it.

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/77 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? Hierarchical Maps lets users browse and inspect locations beyond their current position, but **Set destination** is limited to the immediately reachable parent, child, or linked node. Selecting a farther location therefore ends in a browse-only state even when a valid path exists through several connected locations. Users must manually remember the final target, choose one intermediate destination, send a turn, reopen or browse the map again, and repeat for every hop. This makes houses, cities, towers, dungeons, and other deeply nested maps tedious to navigate and makes the visible world map feel less capable than its route graph. ## Proposed package or change Extend **Set destination** with multi-step target and route planning for Roleplay and Game: - keep **Set destination** as the direct action for an adjacent reachable location; - when the selected location is not adjacent but is reachable, offer **Plan route** or **Set target** instead of `Browse only from here`; - compute the default route using the fewest valid graph connections across active parent/child edges and available direct links; - show an inline route preview with the current location, every intermediate step, final target, hop count, and authored link labels where available; - save a typed route plan containing the final target, planned location IDs, expected current location, and expected map revision; - stage only the first hop through the existing one-hop pending spatial-transition contract; - after each accepted owner turn commits a hop, revalidate the remaining route and automatically stage the next valid hop for the following turn; - show persistent progress such as `Route to Observatory · 2 of 4 steps` in Story Location and the Roleplay/Game world-map surface; - allow **Cancel route**, **Change target**, and explicit review before replacing another queued destination or route plan; - stop automatic next-hop staging and mark the plan **Needs review** when the current location changes unexpectedly, the map revision changes, or a step becomes hidden, blocked, archived, missing, or disconnected; and - keep server-side movement authoritative by recomputing or validating the route and validating every committed hop for revision, reachability, and idempotency. The first slice should use the shortest route by connection count. Waypoints, authored distance/time weights, scenic routing, `Travel now`, journey narration, and model-selected destinations can remain separate follow-ups. This is automatic route guidance, not unattended automatic travel. It must not submit messages, run model turns, or silently commit several locations. Each hop still moves with an accepted owner turn and creates the normal spatial history state. Maps owns the route planner, target/progress UI, validation rules, and package tests. If durable route-plan state or an atomic history contract requires a new generic host capability, coordinate a paired Marinara Engine issue rather than putting map-specific behavior in Engine core. ## Why should this be optional? Multi-step spatial routing and target progress are specific to the downloadable Hierarchical Maps package. Marinara Engine should provide only generic persistence, history, or transaction contracts that optional packages can reuse. ## Alternatives considered - Keeping one-hop selection only is safe but forces repetitive map interaction and makes distant browsable locations non-actionable. - Committing the final target immediately would act like teleportation and skip intermediate route validation and history. - Automatically generating one model turn per hop would be slow, costly, and capable of running the story without the user; unattended multi-turn travel remains out of scope. - Client-only route calculation without authoritative validation could follow stale or blocked paths. - Adding fast travel, narration, waypoints, scenic metadata, and route goals in one issue would make the first useful improvement too large to review and prove safely. ## Additional context Current package behavior resolves only immediate parent, child, and available linked locations through `resolveSpatialDestinations(...)`. Both the Roleplay runtime bar and Game world map show **Set destination** only when the selected node appears in that one-hop result; otherwise the world map displays `Browse only from here`. This is the first issue-sized slice of `thetopham/Marinara-Engine` developer roadmap `docs/development/hierarchical-maps-future-roadmap.md`, **Workstream 3: destination planning with player-controlled pace**. The roadmap explicitly calls for selecting any reachable destination and preserving one-hop validation for stepwise travel while postponing unattended automatic multi-turn travel. Related prerequisite: #57 improved AI-generated route connectivity. This request consumes the authored graph; it does not change map-generation link policy. User report: the map can be browsed normally, but **Set destination** is limited to the next connected node or location instead of accepting a farther target and planning the route to it. 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#38
No description provided.