[PR #35] [MERGED] Restore Hierarchical Maps recovery flows and authoritative spatial state #777

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/35
Author: @thetopham
Created: 7/15/2026
Status: ✅ Merged
Merged: 7/15/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/hierarchical-maps-workspace-interactions


📝 Commits (5)

  • 4b4c3cd Fix Maps workspace interactions and panes
  • 9fa5444 Restore in-game hierarchical Maps UI
  • 18fe50f Reconcile Game setup and hierarchical maps
  • 59a0802 Make hierarchical locations authoritative in Game prompts
  • ea062de Enforce hierarchical map turn authority

📊 Changes

19 files changed (+1427 additions, -241 deletions)

View changed files

📝 artifacts/hierarchical-maps-1.0.3.zip (+0 -0)
➕ artifacts/hierarchical-maps-1.0.4.zip (+0 -0)
➕ artifacts/hierarchical-maps-1.0.5.zip (+0 -0)
➕ artifacts/hierarchical-maps-1.0.6.zip (+0 -0)
📝 catalog/catalog.json (+9 -9)
📝 packages/hierarchical-maps/client.js (+69 -35)
📝 packages/hierarchical-maps/manifest.json (+5 -5)
📝 packages/hierarchical-maps/server.mjs (+142 -139)
📝 scripts/build-feature-packages.mjs (+47 -7)
📝 scripts/validate-catalog.mjs (+14 -0)
📝 sources/engine/packages/client/src/components/game/GameWorldMap.tsx (+8 -1)
📝 sources/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+5 -2)
📝 sources/engine/packages/client/src/features/spatial-context/components/SpatialMapAiBuilder.tsx (+1 -1)
📝 sources/engine/packages/server/src/routes/spatial-context.routes.ts (+37 -1)
📝 sources/engine/packages/server/src/services/spatial-context/ai-draft.ts (+35 -0)
📝 sources/engine/packages/server/src/services/spatial-context/definition.service.ts (+15 -1)
📝 sources/engine/packages/server/src/services/spatial-context/game-map-binding.ts (+196 -0)
📝 sources/engine/packages/server/src/services/spatial-context/projection.ts (+37 -3)
📝 tests/spatial-context.e2e.ts (+807 -37)

📄 Description

Linked issue

Closes #34

Why this change

  • Restore the complete Hierarchical Maps editor and in-game map experience after the feature moved from Engine core into the downloadable Agents repository.
  • Prevent Game local maps, generated prose, and generated commands from competing with the hierarchical map as the authoritative story location.
  • Preserve Roleplay and Game behavior without making Maps part of the main Engine payload.

What changed

  • Updated package ID hierarchical-maps and rebuilt its generated client/server payloads, manifest, immutable artifact, and catalog release metadata through 1.0.6.
  • Restored the full-screen authoring workspace, supporting panes, and stable desktop/mobile interaction behavior.
  • Restored the in-game hierarchical world map and the Game World / Local relationship.
  • Reconciled Game setup maps with hierarchical locations and made the hierarchy authoritative for world position while retaining the Game map as local/tactical detail.
  • Enforced generated-turn authority for Roleplay and Game: generated prose, bracketed commands, local party markers, and [map_update] cannot move the hierarchical location.
  • Reconciled the downloadable package store after successful and stale Roleplay owner turns.
  • Added focused workspace, setup, runtime-map, prompt, cleanup, and map-authority regressions.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: remains compatible with Marinara Engine 2.3.x (>=2.3.0 <2.4.0)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: package update still requires restart; storage and uninstall behavior are unchanged

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

  • Rebuilt Maps 1.0.6 with Node 24, installed the exact artifact into Marinara Engine 2.3.0, and restarted the local service.
  • node scripts/validate-catalog.mjs reports 29 valid packages; git diff --check passes.
  • Focused Playwright coverage passes for Game setup bindings and skip cleanup on desktop/mobile.
  • Focused Playwright coverage passes for Roleplay commit/stale-turn reconciliation on desktop/mobile.
  • Generated-turn coverage passes for Roleplay authority and Game local-map-only updates; Game prompt scoping also passes.
  • The three actionable CodeRabbit threads were addressed in ea062de and resolved with test evidence.
  • No screenshots or recordings are included. Offline restart and uninstall remain manual verification gaps.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

  • Verified locally through focused desktop and mobile Playwright interaction coverage. No screenshots or recordings are included.

🔄 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/35 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/15/2026 **Status:** ✅ Merged **Merged:** 7/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/hierarchical-maps-workspace-interactions` --- ### 📝 Commits (5) - [`4b4c3cd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4b4c3cdcf72b6c2f07c4c9abc4339f2c64705266) Fix Maps workspace interactions and panes - [`9fa5444`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9fa5444167b8445176e40ef27be0cf562e5e6a04) Restore in-game hierarchical Maps UI - [`18fe50f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/18fe50f322faf75dbebd5856c971ff1ee7dfb37f) Reconcile Game setup and hierarchical maps - [`59a0802`](https://github.com/Pasta-Devs/Marinara-Agents/commit/59a0802f45d775247fd786dcb6e63ea29750ee80) Make hierarchical locations authoritative in Game prompts - [`ea062de`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ea062de49c58f207c803ab4dad0c1ef695faabdf) Enforce hierarchical map turn authority ### 📊 Changes **19 files changed** (+1427 additions, -241 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/hierarchical-maps-1.0.3.zip` (+0 -0) ➕ `artifacts/hierarchical-maps-1.0.4.zip` (+0 -0) ➕ `artifacts/hierarchical-maps-1.0.5.zip` (+0 -0) ➕ `artifacts/hierarchical-maps-1.0.6.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -9) 📝 `packages/hierarchical-maps/client.js` (+69 -35) 📝 `packages/hierarchical-maps/manifest.json` (+5 -5) 📝 `packages/hierarchical-maps/server.mjs` (+142 -139) 📝 `scripts/build-feature-packages.mjs` (+47 -7) 📝 `scripts/validate-catalog.mjs` (+14 -0) 📝 `sources/engine/packages/client/src/components/game/GameWorldMap.tsx` (+8 -1) 📝 `sources/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+5 -2) 📝 `sources/engine/packages/client/src/features/spatial-context/components/SpatialMapAiBuilder.tsx` (+1 -1) 📝 `sources/engine/packages/server/src/routes/spatial-context.routes.ts` (+37 -1) 📝 `sources/engine/packages/server/src/services/spatial-context/ai-draft.ts` (+35 -0) 📝 `sources/engine/packages/server/src/services/spatial-context/definition.service.ts` (+15 -1) 📝 `sources/engine/packages/server/src/services/spatial-context/game-map-binding.ts` (+196 -0) 📝 `sources/engine/packages/server/src/services/spatial-context/projection.ts` (+37 -3) 📝 `tests/spatial-context.e2e.ts` (+807 -37) </details> ### 📄 Description ## Linked issue Closes #34 ## Why this change - Restore the complete Hierarchical Maps editor and in-game map experience after the feature moved from Engine core into the downloadable Agents repository. - Prevent Game local maps, generated prose, and generated commands from competing with the hierarchical map as the authoritative story location. - Preserve Roleplay and Game behavior without making Maps part of the main Engine payload. ## What changed - Updated package ID `hierarchical-maps` and rebuilt its generated client/server payloads, manifest, immutable artifact, and catalog release metadata through 1.0.6. - Restored the full-screen authoring workspace, supporting panes, and stable desktop/mobile interaction behavior. - Restored the in-game hierarchical world map and the Game `World` / `Local` relationship. - Reconciled Game setup maps with hierarchical locations and made the hierarchy authoritative for world position while retaining the Game map as local/tactical detail. - Enforced generated-turn authority for Roleplay and Game: generated prose, bracketed commands, local party markers, and `[map_update]` cannot move the hierarchical location. - Reconciled the downloadable package store after successful and stale Roleplay owner turns. - Added focused workspace, setup, runtime-map, prompt, cleanup, and map-authority regressions. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: remains compatible with Marinara Engine 2.3.x (`>=2.3.0 <2.4.0`) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: package update still requires restart; storage and uninstall behavior are unchanged ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] 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 - Rebuilt Maps 1.0.6 with Node 24, installed the exact artifact into Marinara Engine 2.3.0, and restarted the local service. - `node scripts/validate-catalog.mjs` reports 29 valid packages; `git diff --check` passes. - Focused Playwright coverage passes for Game setup bindings and skip cleanup on desktop/mobile. - Focused Playwright coverage passes for Roleplay commit/stale-turn reconciliation on desktop/mobile. - Generated-turn coverage passes for Roleplay authority and Game local-map-only updates; Game prompt scoping also passes. - The three actionable CodeRabbit threads were addressed in `ea062de` and resolved with test evidence. - No screenshots or recordings are included. Offline restart and uninstall remain manual verification gaps. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Verified locally through focused desktop and mobile Playwright interaction coverage. No screenshots or recordings are included. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:30:51 +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#777
No description provided.