[GH-ISSUE #76] [Feature]: Expose the Hierarchical Maps generation prompt and customization #37

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/76

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

Hierarchical Maps uses a real package-owned prompt to create and expand maps, but users cannot see that built-in prompt or configure a reusable default. Opening the installed package through the generic Agent editor can instead show an empty prompt field that is not wired to Maps generation, making the feature look unfinished and leaving users unsure what instructions and context the Map agent actually receives.

Per-run Instructions are useful, but they do not expose the package's normal generation behavior or give creators a persistent place for world-building guidance they want applied to every map draft and expansion.

Proposed package or change

Add a package-owned Generation prompt section to the Hierarchical Maps home/settings for Roleplay and Game:

  • show the current built-in user-facing generation prompt or customizable prompt layer;
  • clearly distinguish reusable creator guidance from the package's locked schema, validation, stable-ID, safety, and output-format requirements;
  • provide Use built-in default, Customize, and Reset to default behavior;
  • document whether the setting applies to initial drafts, expansions, or both;
  • keep existing per-run instructions available as a temporary addition rather than silently overwriting the saved default;
  • show placeholders or source descriptions for dynamic campaign context without storing private resolved chat content in global settings;
  • provide a truthful preview of the effective prompt layers before generation, with the final resolved prompt still available through existing debug logging;
  • version or safely migrate saved overrides when the package's required prompt contract changes; and
  • include the saved setting in the package's normal backup, restore, update, and reinstall behavior where appropriate.

The customizable field must not allow users to accidentally remove the strict JSON contract, location-ID rules, expansion boundary, or other instructions required for a valid map. The package should compose creator guidance with those locked requirements server-side.

This UI and prompt composition belong in Hierarchical Maps. If a generic package-settings contribution or preference store is required, coordinate a paired Engine contract instead of routing Maps back through the normal pipeline-agent prompt editor.

Why should this be optional?

Map-generation instructions, schema constraints, and world-building defaults are specific to the downloadable Hierarchical Maps package. Users who do not install Maps should not receive another Engine-level prompt surface or configuration path.

Alternatives considered

  • Reusing the generic Agent prompt field would remain misleading unless it is genuinely wired to Maps, and it would blur feature-backed and pipeline-agent execution models.
  • Keeping the prompt entirely hidden prevents users from understanding or adapting generation behavior.
  • Making the entire raw system/output prompt freely editable would cause invalid output and make package upgrades brittle.
  • Keeping only per-run instructions requires users to repeat persistent world-building preferences and still does not show the built-in default.

Additional context

The current package server builds draft and expansion prompts through buildSpatialMapDraftPrompt(...) and can log the final prompt in debug mode. The requested surface should expose a supported user-facing customization layer, not leak private runtime context or make debug logging the normal configuration UI.

This also matches the maintainer's thetopham/Marinara-Engine developer roadmap at docs/development/hierarchical-maps-future-roadmap.md, Workstream 2, which proposes reusable world-building guidance and an advanced package-owned generation-prompt override with a visible default and reset behavior.

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/76 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? Hierarchical Maps uses a real package-owned prompt to create and expand maps, but users cannot see that built-in prompt or configure a reusable default. Opening the installed package through the generic Agent editor can instead show an empty prompt field that is not wired to Maps generation, making the feature look unfinished and leaving users unsure what instructions and context the Map agent actually receives. Per-run **Instructions** are useful, but they do not expose the package's normal generation behavior or give creators a persistent place for world-building guidance they want applied to every map draft and expansion. ## Proposed package or change Add a package-owned **Generation prompt** section to the Hierarchical Maps home/settings for Roleplay and Game: - show the current built-in user-facing generation prompt or customizable prompt layer; - clearly distinguish reusable creator guidance from the package's locked schema, validation, stable-ID, safety, and output-format requirements; - provide **Use built-in default**, **Customize**, and **Reset to default** behavior; - document whether the setting applies to initial drafts, expansions, or both; - keep existing per-run instructions available as a temporary addition rather than silently overwriting the saved default; - show placeholders or source descriptions for dynamic campaign context without storing private resolved chat content in global settings; - provide a truthful preview of the effective prompt layers before generation, with the final resolved prompt still available through existing debug logging; - version or safely migrate saved overrides when the package's required prompt contract changes; and - include the saved setting in the package's normal backup, restore, update, and reinstall behavior where appropriate. The customizable field must not allow users to accidentally remove the strict JSON contract, location-ID rules, expansion boundary, or other instructions required for a valid map. The package should compose creator guidance with those locked requirements server-side. This UI and prompt composition belong in Hierarchical Maps. If a generic package-settings contribution or preference store is required, coordinate a paired Engine contract instead of routing Maps back through the normal pipeline-agent prompt editor. ## Why should this be optional? Map-generation instructions, schema constraints, and world-building defaults are specific to the downloadable Hierarchical Maps package. Users who do not install Maps should not receive another Engine-level prompt surface or configuration path. ## Alternatives considered - Reusing the generic Agent prompt field would remain misleading unless it is genuinely wired to Maps, and it would blur feature-backed and pipeline-agent execution models. - Keeping the prompt entirely hidden prevents users from understanding or adapting generation behavior. - Making the entire raw system/output prompt freely editable would cause invalid output and make package upgrades brittle. - Keeping only per-run instructions requires users to repeat persistent world-building preferences and still does not show the built-in default. ## Additional context The current package server builds draft and expansion prompts through `buildSpatialMapDraftPrompt(...)` and can log the final prompt in debug mode. The requested surface should expose a supported user-facing customization layer, not leak private runtime context or make debug logging the normal configuration UI. This also matches the maintainer's `thetopham/Marinara-Engine` developer roadmap at `docs/development/hierarchical-maps-future-roadmap.md`, Workstream 2, which proposes reusable world-building guidance and an advanced package-owned generation-prompt override with a visible default and reset behavior. 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#37
No description provided.