[GH-ISSUE #72] [Feature]: Support map-specific location types and hierarchy templates #32

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

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

Hierarchical Maps documentation and intended use cases describe many world-specific hierarchies, but the editor and generation schema expose only six fixed location kinds: Region, Settlement, Place, Building, Floor, and Room. Users cannot represent types such as City, District, Neighborhood, Street, Shop, Planet, Deck, Chamber, or Boss Arena as actual reusable location types.

The AI also starts from one fixed vocabulary instead of choosing a hierarchy that fits the campaign. A city, house, dungeon, tower, and star system should not all be generated from the same implied level sequence.

Examples that should be expressible include:

  • World → Region → City → District → Building → Room
  • City → Neighborhood → Street → Shop
  • House → Floor → Room
  • Dungeon or Tower → Floors 1–25 → Rooms and Boss Arenas
  • Star System → Planet → Settlement

Proposed package or change

Support map-specific, user-editable location types and AI-selected hierarchy profiles:

  • let users add, rename, and reuse types within a map;
  • offer Auto, Template, and Custom hierarchy setup modes;
  • in Auto mode, let the AI infer or create a hierarchy vocabulary from campaign context and user instructions before it creates locations;
  • show the proposed hierarchy profile, such as Star System → Planet → Settlement, and let the user review or edit it before applying the generated map;
  • seed useful templates for World, City, House, Dungeon/Tower, and Star System structures;
  • store stable map-level type IDs and user-facing labels instead of relying only on depth variables such as level1 and level2;
  • allow locations at the same depth to use different types, such as Room, Shop, Street, Landmark, and Boss Arena;
  • preserve an internal semantic base kind where existing AI, icon, route, and presentation behavior needs compatibility;
  • require generated locations to reference declared map-level type IDs while retaining a valid semantic base kind;
  • make expansions reuse the map's established type registry unless the user explicitly asks to add a new type;
  • allow flexible nesting rather than enforcing one universal type chain;
  • show custom type names throughout the editor, runtime map, breadcrumbs, and previews;
  • include the map's custom vocabulary and hierarchy profile in AI draft and expansion prompts;
  • preserve custom types through import/export, update, backup, and restore; and
  • migrate existing maps by deriving stable type IDs and labels from their current built-in kinds without changing visible behavior.

Validation must reject undefined type IDs, duplicate type IDs, invalid semantic base kinds, cyclic location parents, and malformed hierarchy profiles. Templates guide generation but do not become rigid depth constraints.

Most implementation belongs in the downloadable Maps package. If persistence requires extending the shared strict spatial schema, coordinate a paired generic Engine contract change rather than storing custom labels in unrelated fields.

Why should this be optional?

Custom spatial taxonomy, templates, AI hierarchy selection, and authoring UI are Maps-specific functionality. The lightweight Engine should own only any generic compatible schema or capability contract needed to persist package data safely.

Alternatives considered

  • Treating City or Planet only as a location name does not represent its type and makes the UI/documentation inconsistent.
  • Allowing arbitrary values directly in the existing kind field would break strict validation and semantic behavior.
  • Globally renaming the six built-in labels is insufficient because different maps need different vocabularies and depths.
  • Using only numbered depth variables cannot represent different types at the same level or branches that skip a level.
  • A per-location display label without reusable map-level types would create repetitive editing and inconsistent terminology.

Additional context

The current shared schema is strict and the AI prompt explicitly requires one of the six built-in kinds. This feature needs compatibility, migration, AI-generation, expansion, import/export, and backup proof in addition to UI coverage.

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/72 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? Hierarchical Maps documentation and intended use cases describe many world-specific hierarchies, but the editor and generation schema expose only six fixed location kinds: **Region**, **Settlement**, **Place**, **Building**, **Floor**, and **Room**. Users cannot represent types such as City, District, Neighborhood, Street, Shop, Planet, Deck, Chamber, or Boss Arena as actual reusable location types. The AI also starts from one fixed vocabulary instead of choosing a hierarchy that fits the campaign. A city, house, dungeon, tower, and star system should not all be generated from the same implied level sequence. Examples that should be expressible include: - World → Region → City → District → Building → Room - City → Neighborhood → Street → Shop - House → Floor → Room - Dungeon or Tower → Floors 1–25 → Rooms and Boss Arenas - Star System → Planet → Settlement ## Proposed package or change Support map-specific, user-editable location types and AI-selected hierarchy profiles: - let users add, rename, and reuse types within a map; - offer **Auto**, **Template**, and **Custom** hierarchy setup modes; - in Auto mode, let the AI infer or create a hierarchy vocabulary from campaign context and user instructions before it creates locations; - show the proposed hierarchy profile, such as `Star System → Planet → Settlement`, and let the user review or edit it before applying the generated map; - seed useful templates for World, City, House, Dungeon/Tower, and Star System structures; - store stable map-level type IDs and user-facing labels instead of relying only on depth variables such as `level1` and `level2`; - allow locations at the same depth to use different types, such as Room, Shop, Street, Landmark, and Boss Arena; - preserve an internal semantic base kind where existing AI, icon, route, and presentation behavior needs compatibility; - require generated locations to reference declared map-level type IDs while retaining a valid semantic base kind; - make expansions reuse the map's established type registry unless the user explicitly asks to add a new type; - allow flexible nesting rather than enforcing one universal type chain; - show custom type names throughout the editor, runtime map, breadcrumbs, and previews; - include the map's custom vocabulary and hierarchy profile in AI draft and expansion prompts; - preserve custom types through import/export, update, backup, and restore; and - migrate existing maps by deriving stable type IDs and labels from their current built-in kinds without changing visible behavior. Validation must reject undefined type IDs, duplicate type IDs, invalid semantic base kinds, cyclic location parents, and malformed hierarchy profiles. Templates guide generation but do not become rigid depth constraints. Most implementation belongs in the downloadable Maps package. If persistence requires extending the shared strict spatial schema, coordinate a paired generic Engine contract change rather than storing custom labels in unrelated fields. ## Why should this be optional? Custom spatial taxonomy, templates, AI hierarchy selection, and authoring UI are Maps-specific functionality. The lightweight Engine should own only any generic compatible schema or capability contract needed to persist package data safely. ## Alternatives considered - Treating City or Planet only as a location name does not represent its type and makes the UI/documentation inconsistent. - Allowing arbitrary values directly in the existing `kind` field would break strict validation and semantic behavior. - Globally renaming the six built-in labels is insufficient because different maps need different vocabularies and depths. - Using only numbered depth variables cannot represent different types at the same level or branches that skip a level. - A per-location display label without reusable map-level types would create repetitive editing and inconsistent terminology. ## Additional context The current shared schema is strict and the AI prompt explicitly requires one of the six built-in kinds. This feature needs compatibility, migration, AI-generation, expansion, import/export, and backup proof in addition to UI coverage. ## 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#32
No description provided.