[PR #85] [CLOSED] Complete Hierarchical Maps 1.1.6 prompt and issue sweep #797

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/85
Author: @thetopham
Created: 7/18/2026
Status: ❌ Closed

Base: main ← Head: agent/maps-1.1.6-full-prompts-review-fixes


📝 Commits (8)

  • b315427 fix: clarify Maps transfer and hierarchy controls
  • 0fbfe02 build: publish Hierarchical Maps 1.1.6
  • 74ca6ed feat: expand Hierarchical Maps workflows
  • e8ae5a9 build: refresh Hierarchical Maps 1.1.6
  • 9b176dd build: target Engine 2.3.3 release
  • aa3021b fix: harden Maps sweep interactions
  • 34cb4b4 build: refresh verified Maps sweep artifact
  • a227ed1 feat: complete Maps prompt customization sweep

📊 Changes

24 files changed (+3390 additions, -461 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.1.6.zip (+0 -0)
📝 catalog/catalog.json (+12 -12)
📝 catalog/v2/catalog.json (+12 -12)
📝 catalog/v3/catalog.json (+1 -1)
📝 packages/hierarchical-maps/client.js (+57 -40)
📝 packages/hierarchical-maps/engine-boundary.json (+2 -2)
📝 packages/hierarchical-maps/manifest.json (+8 -8)
📝 packages/hierarchical-maps/server.mjs (+59 -48)
📝 packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx (+120 -2)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+294 -16)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapsHome.tsx (+216 -2)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx (+85 -10)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx (+23 -9)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx (+35 -6)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialMapAiBuilder.tsx (+537 -35)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-route-plans.ts (+304 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts (+57 -3)
➕ packages/hierarchical-maps/src/engine/packages/maps-shared/src/maps-model.ts (+492 -0)
📝 packages/hierarchical-maps/src/engine/packages/server/src/routes/spatial-context.routes.ts (+363 -130)
📝 packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/ai-draft.ts (+175 -62)

...and 4 more files

📄 Description

Linked issue

Closes #69
Closes #70
Closes #71
Closes #72
Closes #74
Closes #76
Closes #77

Supersedes the contributor-closed review snapshots #83 and #84.

Why this change

Hierarchical Maps showed only a short creator-guidance sentence even though generation sends substantially larger, mode-specific System and User messages. Users need to inspect and customize the real Roleplay and Game prompt templates, including the resolved chat/map context used for a particular generation.

This fresh PR also incorporates every still-applicable CodeRabbit finding from #84 so reviewers see the complete issue sweep, prompt implementation, and hardened artifact together.

What changed

  • Preserved the existing 1.1.6 sweep: corrected import/export icons, hierarchy-ordered expansion targets, drag/keyboard map arrangement, Auto/Template/Custom location vocabularies, stable-ID import repair guidance, and multi-step route planning.
  • Replaced the guidance-only prompt control with complete Roleplay or Game templates for new-map and expansion System/User messages.
  • Added validated ${variable} placeholders, built-in/custom/reset states, per-chat persistence, and backward migration from version 1 generation preferences.
  • Added an on-demand Full prompt view in the AI builder. It resolves the exact private setup, character, lore, hierarchy, and selected-map context for that run; users may copy it or edit the System/User messages for the next generation only.
  • Returned the exact prompt used with generated drafts and covered one-run prompt overrides without weakening generated-map validation.
  • Addressed #84 review findings around route replacement safety, malformed persisted routes, idempotent route reconciliation, pending-command races, hierarchy mapping repair, empty type labels, locale-independent IDs, saved-map import protection, cross-chat prompt state, raw type correlation, response typing, and missing assertions.
  • Rebuilt the Hierarchical Maps 1.1.6 client/server payloads, manifest, ZIP artifact, and all catalog lanes from the immutable Engine 2.3.3 release commit.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: no Engine source change; built against Engine 2.3.3 commit 858cfa431e07f6f558aa1e8826a2c9b024269ab7.
  • New or changed permissions/entrypoints: none.
  • Prompt privacy: resolved prompts are returned only on an authenticated chat-scoped package route, are labeled as private in the UI, and are not persisted unless the user saves a reusable template. One-run edits are sent only to the selected generation provider.
  • Restart, storage, update, or uninstall impact: package updates still require an Engine restart. Generation-preference version 1 metadata migrates to mode-appropriate version 2 templates without changing map IDs or campaign history.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Automated evidence completed against a clean Engine 2.3.3 host:

  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-catalog.mjs
  • git diff --check
  • Engine client ESLint with the package-owned source overlay
  • Exact-artifact lifecycle regression, including Roleplay and Game template persistence, full-prompt preview without a provider call, one-run override delivery, generation, expansion, history, branches, checkpoints, offline restart, uninstall/reinstall, backup, and restore
  • Focused desktop and mobile Playwright coverage for the prompt template editor/reset, exact resolved prompt preview/edit, map creation, expansion, and multi-step route recovery
  • Local Engine 2.3.3 installation on port 7860; health reports Maps 1.1.6 active and ready, with installed client/server hashes matching the rebuilt manifest

Manual reviewer checks still requested:

  • Manually verify Roleplay and Game template wording with real chat/card context.
  • Manually verify copying and editing the exact Full prompt before generation.
  • Manually verify map-node dragging with mouse and touch.
  • Manually verify a multi-hop route can be replaced, cancelled, and resumed one accepted owner turn at a time.

Documentation impact

  • No user documentation was changed in this package PR.
  • The UI explains reusable templates, named variables, private resolved context, and one-run edits inline.

UI evidence (if applicable)

No screenshots or recordings are attached. Reviewers can exercise the validated artifact from this draft branch on Engine 2.3.3.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/85 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/18/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `agent/maps-1.1.6-full-prompts-review-fixes` --- ### 📝 Commits (8) - [`b315427`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b3154278d71d38d3b222c84510b8ae41a40edc98) fix: clarify Maps transfer and hierarchy controls - [`0fbfe02`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0fbfe029a39b6c32f7f7b52ba16cccc76c962366) build: publish Hierarchical Maps 1.1.6 - [`74ca6ed`](https://github.com/Pasta-Devs/Marinara-Agents/commit/74ca6eda60ab24165293b286453f35fd084cd07c) feat: expand Hierarchical Maps workflows - [`e8ae5a9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e8ae5a90dd9da17371c314aa6dea71f5d3492aa9) build: refresh Hierarchical Maps 1.1.6 - [`9b176dd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9b176dd14b5440439c287df65c68a0d409041055) build: target Engine 2.3.3 release - [`aa3021b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/aa3021b1ebb6e58453d90bc254df00b279eed7da) fix: harden Maps sweep interactions - [`34cb4b4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/34cb4b412589d8ebb3999710b496e0a4ab568bb9) build: refresh verified Maps sweep artifact - [`a227ed1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a227ed14b8997d1c2999bcfa31598d0ef17e09ed) feat: complete Maps prompt customization sweep ### 📊 Changes **24 files changed** (+3390 additions, -461 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.1.6.zip` (+0 -0) 📝 `catalog/catalog.json` (+12 -12) 📝 `catalog/v2/catalog.json` (+12 -12) 📝 `catalog/v3/catalog.json` (+1 -1) 📝 `packages/hierarchical-maps/client.js` (+57 -40) 📝 `packages/hierarchical-maps/engine-boundary.json` (+2 -2) 📝 `packages/hierarchical-maps/manifest.json` (+8 -8) 📝 `packages/hierarchical-maps/server.mjs` (+59 -48) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx` (+120 -2) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+294 -16) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapsHome.tsx` (+216 -2) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx` (+85 -10) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx` (+23 -9) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx` (+35 -6) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialMapAiBuilder.tsx` (+537 -35) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-route-plans.ts` (+304 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts` (+57 -3) ➕ `packages/hierarchical-maps/src/engine/packages/maps-shared/src/maps-model.ts` (+492 -0) 📝 `packages/hierarchical-maps/src/engine/packages/server/src/routes/spatial-context.routes.ts` (+363 -130) 📝 `packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/ai-draft.ts` (+175 -62) _...and 4 more files_ </details> ### 📄 Description ## Linked issue Closes #69 Closes #70 Closes #71 Closes #72 Closes #74 Closes #76 Closes #77 Supersedes the contributor-closed review snapshots #83 and #84. ## Why this change Hierarchical Maps showed only a short creator-guidance sentence even though generation sends substantially larger, mode-specific System and User messages. Users need to inspect and customize the real Roleplay and Game prompt templates, including the resolved chat/map context used for a particular generation. This fresh PR also incorporates every still-applicable CodeRabbit finding from #84 so reviewers see the complete issue sweep, prompt implementation, and hardened artifact together. ## What changed - Preserved the existing 1.1.6 sweep: corrected import/export icons, hierarchy-ordered expansion targets, drag/keyboard map arrangement, Auto/Template/Custom location vocabularies, stable-ID import repair guidance, and multi-step route planning. - Replaced the guidance-only prompt control with complete Roleplay or Game templates for new-map and expansion System/User messages. - Added validated `${variable}` placeholders, built-in/custom/reset states, per-chat persistence, and backward migration from version 1 generation preferences. - Added an on-demand Full prompt view in the AI builder. It resolves the exact private setup, character, lore, hierarchy, and selected-map context for that run; users may copy it or edit the System/User messages for the next generation only. - Returned the exact prompt used with generated drafts and covered one-run prompt overrides without weakening generated-map validation. - Addressed #84 review findings around route replacement safety, malformed persisted routes, idempotent route reconciliation, pending-command races, hierarchy mapping repair, empty type labels, locale-independent IDs, saved-map import protection, cross-chat prompt state, raw type correlation, response typing, and missing assertions. - Rebuilt the Hierarchical Maps 1.1.6 client/server payloads, manifest, ZIP artifact, and all catalog lanes from the immutable Engine 2.3.3 release commit. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: no Engine source change; built against Engine 2.3.3 commit `858cfa431e07f6f558aa1e8826a2c9b024269ab7`. - New or changed permissions/entrypoints: none. - Prompt privacy: resolved prompts are returned only on an authenticated chat-scoped package route, are labeled as private in the UI, and are not persisted unless the user saves a reusable template. One-run edits are sent only to the selected generation provider. - Restart, storage, update, or uninstall impact: package updates still require an Engine restart. Generation-preference version 1 metadata migrates to mode-appropriate version 2 templates without changing map IDs or campaign history. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Automated evidence completed against a clean Engine 2.3.3 host: - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-catalog.mjs` - `git diff --check` - Engine client ESLint with the package-owned source overlay - Exact-artifact lifecycle regression, including Roleplay and Game template persistence, full-prompt preview without a provider call, one-run override delivery, generation, expansion, history, branches, checkpoints, offline restart, uninstall/reinstall, backup, and restore - Focused desktop and mobile Playwright coverage for the prompt template editor/reset, exact resolved prompt preview/edit, map creation, expansion, and multi-step route recovery - Local Engine 2.3.3 installation on port 7860; health reports Maps 1.1.6 active and ready, with installed client/server hashes matching the rebuilt manifest Manual reviewer checks still requested: - Manually verify Roleplay and Game template wording with real chat/card context. - Manually verify copying and editing the exact Full prompt before generation. - Manually verify map-node dragging with mouse and touch. - Manually verify a multi-hop route can be replaced, cancelled, and resumed one accepted owner turn at a time. ## Documentation impact - No user documentation was changed in this package PR. - The UI explains reusable templates, named variables, private resolved context, and one-run edits inline. ## UI evidence (if applicable) No screenshots or recordings are attached. Reviewers can exercise the validated artifact from this draft branch on Engine 2.3.3. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:31:03 +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#797
No description provided.