[PR #1602] [MERGED] fix(hierarchical-maps): a Game Master move follows the route (1.6.0) #1601

Closed
opened 2026-10-24 04:02:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1602
Author: @kolacheee
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @kolacheee

Base: staging ← Head: claude/project-thread-d0wag0


📝 Commits (2)

  • c462af3 feat(hierarchical-maps): a Game Master move follows the route (1.6.0)
  • e2059fe fix(hierarchical-maps): say what the routed move guard checks

📊 Changes

13 files changed (+91 additions, -37 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.6.0.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/hierarchical-maps/CHANGELOG.md (+3 -0)
📝 packages/hierarchical-maps/manifest.json (+3 -3)
📝 packages/hierarchical-maps/server.mjs (+12 -12)
📝 packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/state-resolution.ts (+8 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/hierarchical-maps-lifecycle.regression.ts (+28 -2)

📄 Description

Linked issue

Closes #1601

Why this change

  • When the Game Master's reply takes the party somewhere more than one step away on the map (a boat to the next town), World Maps drops the move and the map stays put, so the map and the story drift apart. A move only applied when the destination was exactly one step away (inside, around, or linked).

What changed

  • hierarchical-maps 1.5.2 → 1.6.0. In spatial-context/state-resolution.ts, a Game Master move to an active place that is not one step away now applies when the shared resolveSpatialRoute finds a route over the same one-step moves. Places with no route are still refused, and one-step moves behave as before.
  • tests/hierarchical-maps-lifecycle.regression.ts: a harbor-to-deck move two steps apart (both inside the world, no link) and back. Its two message bulk-delete calls now expect the Engine's 200 trash summary instead of 204.
  • CHANGELOG.md 1.6.0 entry (the build requires one for a minor bump).
  • Generated outputs rebuilt with node scripts/build-feature-packages.mjs hierarchical-maps: server.mjs, manifest.json, artifacts/hierarchical-maps-1.6.0.zip, catalog/{,v2/,v3/}catalog.json and notes.json.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: none. Same range, same capability API 1.341, built against the pinned Engine commit 25f8df7b (unchanged engine-boundary.json).
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. No stored data changes; the move writes the same snapshot a one-step move writes.

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 1.5.2 unchanged against Engine 25f8df7b first: byte-identical to the committed artifact, so the 1.6.0 bundle diff is this change alone.
  • Lifecycle regression against Engine 25f8df7b (pnpm --filter @marinara-engine/server exec tsx …/hierarchical-maps-lifecycle.regression.ts): passes with the fix. With the source change reverted and the package rebuilt, it fails at the new assertion (currentLocationId stays lifecycle_harbor, expected lifecycle_deck_a).
  • npm run check, node scripts/test-catalog-lanes.mjs, node scripts/validate-package-locales.mjs, node scripts/validate-catalog.mjs, node scripts/tests/catalog-release-notes.regression.mjs, node scripts/typecheck-packages.mjs hierarchical-maps and git diff --check pass locally (boxes left for a human to tick).

Documentation impact

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

UI evidence (if applicable)

None: server-side movement only.


🔄 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/1602 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `claude/project-thread-d0wag0` --- ### 📝 Commits (2) - [`c462af3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c462af36dc0d7128186130990d165a90fef0ab3a) feat(hierarchical-maps): a Game Master move follows the route (1.6.0) - [`e2059fe`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e2059feb2103fc06eba45c54ffc8cf7afd7fd238) fix(hierarchical-maps): say what the routed move guard checks ### 📊 Changes **13 files changed** (+91 additions, -37 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.6.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/hierarchical-maps/CHANGELOG.md` (+3 -0) 📝 `packages/hierarchical-maps/manifest.json` (+3 -3) 📝 `packages/hierarchical-maps/server.mjs` (+12 -12) 📝 `packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/state-resolution.ts` (+8 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/hierarchical-maps-lifecycle.regression.ts` (+28 -2) </details> ### 📄 Description ## Linked issue Closes #1601 ## Why this change - When the Game Master's reply takes the party somewhere more than one step away on the map (a boat to the next town), World Maps drops the move and the map stays put, so the map and the story drift apart. A move only applied when the destination was exactly one step away (inside, around, or linked). ## What changed - `hierarchical-maps` 1.5.2 → 1.6.0. In `spatial-context/state-resolution.ts`, a Game Master move to an active place that is not one step away now applies when the shared `resolveSpatialRoute` finds a route over the same one-step moves. Places with no route are still refused, and one-step moves behave as before. - `tests/hierarchical-maps-lifecycle.regression.ts`: a harbor-to-deck move two steps apart (both inside the world, no link) and back. Its two message bulk-delete calls now expect the Engine's 200 trash summary instead of 204. - `CHANGELOG.md` 1.6.0 entry (the build requires one for a minor bump). - Generated outputs rebuilt with `node scripts/build-feature-packages.mjs hierarchical-maps`: `server.mjs`, `manifest.json`, `artifacts/hierarchical-maps-1.6.0.zip`, `catalog/{,v2/,v3/}catalog.json` and `notes.json`. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: none. Same range, same capability API 1.341, built against the pinned Engine commit 25f8df7b (unchanged `engine-boundary.json`). - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. No stored data changes; the move writes the same snapshot a one-step move writes. ## 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 1.5.2 unchanged against Engine 25f8df7b first: byte-identical to the committed artifact, so the 1.6.0 bundle diff is this change alone. - Lifecycle regression against Engine 25f8df7b (`pnpm --filter @marinara-engine/server exec tsx …/hierarchical-maps-lifecycle.regression.ts`): passes with the fix. With the source change reverted and the package rebuilt, it fails at the new assertion (`currentLocationId` stays `lifecycle_harbor`, expected `lifecycle_deck_a`). - `npm run check`, `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-package-locales.mjs`, `node scripts/validate-catalog.mjs`, `node scripts/tests/catalog-release-notes.regression.mjs`, `node scripts/typecheck-packages.mjs hierarchical-maps` and `git diff --check` pass locally (boxes left for a human to tick). ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) None: server-side movement only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:02:32 +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#1601
No description provided.