[GH-ISSUE #89] [Feature]: Add editable Maps runtime turn prompts to Agent settings #44

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

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

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

Hierarchical Maps exposes the prompts used to create or expand a map, but the Agent settings screen does not show or let users edit the separate system message that the package injects into each Roleplay or Game model request. Users therefore cannot inspect or tailor how current location context, private model context, available destinations, and each mode's authority rule are presented to the model.

The Edit Map workspace also repeats the Location types editor even though that configuration now belongs in the Hierarchical Maps Agent settings screen.

Proposed package or change

  • Add an editable Turn prompt insert section to Hierarchical Maps Agent settings.
  • Provide separate global Roleplay and Game templates in the same Hierarchical Maps agent settings record used by the generation prompt library, with live resolved previews from the production formatter.
  • Expose validated variables for the current path, location ID, visible and private context, destinations, mode, and application-owned authority instruction.
  • Keep the outer <spatial_context> wrapper and required authority/context variables application-controlled so edited templates cannot remove the runtime contract.
  • Clearly distinguish live, inactive, unsaved-preview, and example states.
  • Keep the editable template textarea tall enough to review normal inserts without excessive scrolling.
  • Explain that current-location lore is injected separately and that Game map state remains local/tactical.
  • Remove the redundant Location types control and panel from Edit Map while keeping location-type editing in Agent settings.
  • Publish the result as Hierarchical Maps 1.1.7 with rebuilt package payloads, artifact, and catalog metadata.

The package continues to support Roleplay and Game chats and requires both client and server package entrypoints.

Why should this be optional?

Hierarchical location state, its runtime projection, and the Agent settings UI are owned by the downloadable hierarchical-maps package. Keeping the templates, formatter, and runtime injection package-local ensures the optional feature remains removable and prevents Engine core from duplicating package-specific prompt behavior.

Alternatives considered

  • Extending the existing map-creation prompt preview was rejected because creation prompts and per-turn runtime context are different provider requests.
  • Keeping the turn insert read-only was rejected because it still prevents users from tailoring the per-request spatial instructions.
  • Keeping two Location types editors was rejected because the duplicate control obscures which screen owns map-wide configuration.
  • Maintaining a separate UI-only formatter was rejected because it could drift from the actual server insert.

Additional context

The runtime insert is one system message added once per model request before visible history; it is not persisted into every chat message. The edited templates are saved globally in the Hierarchical Maps agent settings and apply to every matching Roleplay or Game chat. The same shared formatter resolves both the Agent-screen preview and the server injection path.

Originally created by @thetopham on GitHub (Jul 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/89 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? Hierarchical Maps exposes the prompts used to create or expand a map, but the Agent settings screen does not show or let users edit the separate system message that the package injects into each Roleplay or Game model request. Users therefore cannot inspect or tailor how current location context, private model context, available destinations, and each mode's authority rule are presented to the model. The Edit Map workspace also repeats the Location types editor even though that configuration now belongs in the Hierarchical Maps Agent settings screen. ## Proposed package or change - Add an editable Turn prompt insert section to Hierarchical Maps Agent settings. - Provide separate global Roleplay and Game templates in the same Hierarchical Maps agent settings record used by the generation prompt library, with live resolved previews from the production formatter. - Expose validated variables for the current path, location ID, visible and private context, destinations, mode, and application-owned authority instruction. - Keep the outer `<spatial_context>` wrapper and required authority/context variables application-controlled so edited templates cannot remove the runtime contract. - Clearly distinguish live, inactive, unsaved-preview, and example states. - Keep the editable template textarea tall enough to review normal inserts without excessive scrolling. - Explain that current-location lore is injected separately and that Game map state remains local/tactical. - Remove the redundant Location types control and panel from Edit Map while keeping location-type editing in Agent settings. - Publish the result as Hierarchical Maps 1.1.7 with rebuilt package payloads, artifact, and catalog metadata. The package continues to support Roleplay and Game chats and requires both client and server package entrypoints. ## Why should this be optional? Hierarchical location state, its runtime projection, and the Agent settings UI are owned by the downloadable `hierarchical-maps` package. Keeping the templates, formatter, and runtime injection package-local ensures the optional feature remains removable and prevents Engine core from duplicating package-specific prompt behavior. ## Alternatives considered - Extending the existing map-creation prompt preview was rejected because creation prompts and per-turn runtime context are different provider requests. - Keeping the turn insert read-only was rejected because it still prevents users from tailoring the per-request spatial instructions. - Keeping two Location types editors was rejected because the duplicate control obscures which screen owns map-wide configuration. - Maintaining a separate UI-only formatter was rejected because it could drift from the actual server insert. ## Additional context The runtime insert is one system message added once per model request before visible history; it is not persisted into every chat message. The edited templates are saved globally in the Hierarchical Maps agent settings and apply to every matching Roleplay or Game chat. The same shared formatter resolves both the Agent-screen preview and the server injection path.
bsakaguchi 2026-10-20 17:23:47 +07:00
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#44
No description provided.