[PR #250] [MERGED] feat: add explicit World Maps travel modes #879

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/250
Author: @thetopham
Created: 8/5/2026
Status: ✅ Merged
Merged: 8/5/2026
Merged by: @thetopham

Base: staging ← Head: agent/4618-movement-modes-package


📝 Commits (6)

  • eaffe39 feat: add selectable world map travel modes
  • 74f9c93 fix: harden World Maps movement recovery
  • 8825c07 Merge remote-tracking branch 'origin/staging' into agent/4618-movement-modes-package
  • 32389d9 fix: harden hierarchical maps travel recovery
  • 401b5a3 fix: invalidate stale artwork previews
  • fb34cc0 fix: stop stale artwork generation races

📊 Changes

28 files changed (+2342 additions, -1478 deletions)

View changed files

📝 artifacts/hierarchical-maps-1.3.2.zip (+0 -0)
➕ artifacts/hierarchical-maps-1.3.3.zip (+0 -0)
📝 catalog/catalog.json (+10 -10)
📝 catalog/v2/catalog.json (+10 -10)
📝 catalog/v3/catalog.json (+10 -10)
📝 packages/hierarchical-maps/client.js (+56 -54)
📝 packages/hierarchical-maps/engine-boundary.json (+1 -1)
📝 packages/hierarchical-maps/manifest.json (+6 -6)
📝 packages/hierarchical-maps/server.mjs (+56 -55)
📝 packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx (+204 -206)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+476 -412)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx (+117 -58)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/use-map-confirmation.tsx (+100 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/pending-spatial-transitions.ts (+49 -1)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-route-plans.ts (+15 -236)
📝 packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts (+11 -2)
📝 packages/hierarchical-maps/src/engine/packages/maps-shared/src/runtime-prompt.ts (+59 -22)
📝 packages/hierarchical-maps/src/engine/packages/server/src/routes/spatial-context.routes.ts (+115 -52)
📝 packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/owner-turn.ts (+54 -4)
📝 packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/projection.ts (+10 -14)

...and 8 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #256

Related Engine issue: Pasta-Devs/Marinara-Engine#4618

Paired Engine PR: Pasta-Devs/Marinara-Engine#4623

Why this change

World Maps needs one server-validated movement contract for Roleplay and Game. Queued travel previously mixed stepwise and immediate semantics, could reconstruct route state from stale client data, and could turn unreachable assistant movement into topology changes.

What changed

  • Added World Maps support for step_by_step and travel_now route facts in <movement_this_turn>.
  • Rebased stepwise and already-applied recovery on authoritative spatial state and exact command IDs.
  • Removed implicit link creation from unreachable movement and guidance; explicit link discovery now requires outgoing, incoming, or both direction.
  • Canonicalized directed link endpoint pairs without silently upgrading one-way links.
  • Added consistent in-app replacement confirmation, final-target route metadata, accessible cancel focus, and stale artwork-prompt protection.
  • Rebuilt hierarchical-maps source snapshots, client/server bundles, manifest, hierarchical-maps-1.3.3.zip, and every catalog lane against Engine 00986ff5bfdcd5705d70c7fca8d8ade86665b217.
  • Expanded exact-artifact lifecycle and UI-contract regression coverage.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: requires Marinara Engine >=2.4.1 <4.0.0; paired Engine PR required for the complete movement contract
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: normal package update and existing restart requirement; no storage migration or uninstall behavior change

Automated validation performed

  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-catalog.mjs
  • node tests/world-maps-ui-contract.regression.mjs
  • git diff --check
  • MARINARA_ENGINE_ROOT=/tmp/Marinara-Engine-4618-coderabbit pnpm --filter @marinara-engine/server exec tsx /tmp/Marinara-Agents-4618-coderabbit/tests/hierarchical-maps-lifecycle.regression.ts
  • Exact ZIP SHA-256: 7ada2bcdf14e0efda22725c947c331c1227029ad2c9e5278819cc2e0686c4475

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

  • Manually install or update World Maps 1.3.3 in the paired Engine build.
  • In Roleplay and Game, queue a multi-node route and verify Step by step advances one location per accepted typed or CYOA turn.
  • Switch to Travel now and verify one accepted typed or CYOA turn reaches the validated destination.
  • Verify failed generation leaves the route retryable and a one-way wrong-way route is rejected without changing topology.
  • Edit artwork prompts, change the map or image settings, and verify generation remains blocked until Refresh prompts is explicitly confirmed.

Documentation impact

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

UI evidence (if applicable)

Pending manual browser review after exact local installation.

Summary by CodeRabbit

  • New Features
    • Added separate Step by step and Travel now movement options.
    • Pending travel now shows progress, supports cancellation, replacement confirmation, and unavailable-route warnings.
    • Added accessible confirmation dialogs for potentially disruptive map actions.
    • Added improved recovery for interrupted or ambiguous movement commands.
    • Artwork previews now identify stale edits and require refresh before generation.
  • Bug Fixes
    • Improved route validation, travel progress tracking, location discovery, and map-link handling.
    • Prevented unreachable destinations from creating unintended links or transitions.
  • Updates
    • Updated Hierarchical Maps to version 1.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/250 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/5/2026 **Status:** ✅ Merged **Merged:** 8/5/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `agent/4618-movement-modes-package` --- ### 📝 Commits (6) - [`eaffe39`](https://github.com/Pasta-Devs/Marinara-Agents/commit/eaffe39fa64d38772d1deae1953d8895efe4f14f) feat: add selectable world map travel modes - [`74f9c93`](https://github.com/Pasta-Devs/Marinara-Agents/commit/74f9c93f2a0353ecd7c28d9a24b5e6023082789e) fix: harden World Maps movement recovery - [`8825c07`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8825c07d57f74d88174dfb27a4ef7d30093832f8) Merge remote-tracking branch 'origin/staging' into agent/4618-movement-modes-package - [`32389d9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/32389d99001490fe2a8a4b62da63647e7e2fdda4) fix: harden hierarchical maps travel recovery - [`401b5a3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/401b5a3c8bdace5811c718c79183af8befdddc8f) fix: invalidate stale artwork previews - [`fb34cc0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fb34cc0dfcdbcb6d88bcadc400cea16fa4ed33f2) fix: stop stale artwork generation races ### 📊 Changes **28 files changed** (+2342 additions, -1478 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/hierarchical-maps-1.3.2.zip` (+0 -0) ➕ `artifacts/hierarchical-maps-1.3.3.zip` (+0 -0) 📝 `catalog/catalog.json` (+10 -10) 📝 `catalog/v2/catalog.json` (+10 -10) 📝 `catalog/v3/catalog.json` (+10 -10) 📝 `packages/hierarchical-maps/client.js` (+56 -54) 📝 `packages/hierarchical-maps/engine-boundary.json` (+1 -1) 📝 `packages/hierarchical-maps/manifest.json` (+6 -6) 📝 `packages/hierarchical-maps/server.mjs` (+56 -55) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx` (+204 -206) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+476 -412) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx` (+117 -58) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/use-map-confirmation.tsx` (+100 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/pending-spatial-transitions.ts` (+49 -1) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-route-plans.ts` (+15 -236) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts` (+11 -2) 📝 `packages/hierarchical-maps/src/engine/packages/maps-shared/src/runtime-prompt.ts` (+59 -22) 📝 `packages/hierarchical-maps/src/engine/packages/server/src/routes/spatial-context.routes.ts` (+115 -52) 📝 `packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/owner-turn.ts` (+54 -4) 📝 `packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/projection.ts` (+10 -14) _...and 8 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #256 Related Engine issue: Pasta-Devs/Marinara-Engine#4618 Paired Engine PR: Pasta-Devs/Marinara-Engine#4623 ## Why this change World Maps needs one server-validated movement contract for Roleplay and Game. Queued travel previously mixed stepwise and immediate semantics, could reconstruct route state from stale client data, and could turn unreachable assistant movement into topology changes. ## What changed - Added World Maps support for `step_by_step` and `travel_now` route facts in `<movement_this_turn>`. - Rebased stepwise and already-applied recovery on authoritative spatial state and exact command IDs. - Removed implicit link creation from unreachable movement and guidance; explicit link discovery now requires `outgoing`, `incoming`, or `both` direction. - Canonicalized directed link endpoint pairs without silently upgrading one-way links. - Added consistent in-app replacement confirmation, final-target route metadata, accessible cancel focus, and stale artwork-prompt protection. - Rebuilt `hierarchical-maps` source snapshots, client/server bundles, manifest, `hierarchical-maps-1.3.3.zip`, and every catalog lane against Engine `00986ff5bfdcd5705d70c7fca8d8ade86665b217`. - Expanded exact-artifact lifecycle and UI-contract regression coverage. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: requires Marinara Engine `>=2.4.1 <4.0.0`; paired Engine PR required for the complete movement contract - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: normal package update and existing restart requirement; no storage migration or uninstall behavior change ## Automated validation performed - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-catalog.mjs` - `node tests/world-maps-ui-contract.regression.mjs` - `git diff --check` - `MARINARA_ENGINE_ROOT=/tmp/Marinara-Engine-4618-coderabbit pnpm --filter @marinara-engine/server exec tsx /tmp/Marinara-Agents-4618-coderabbit/tests/hierarchical-maps-lifecycle.regression.ts` - Exact ZIP SHA-256: `7ada2bcdf14e0efda22725c947c331c1227029ad2c9e5278819cc2e0686c4475` ## 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 - [ ] 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 - Manually install or update World Maps 1.3.3 in the paired Engine build. - In Roleplay and Game, queue a multi-node route and verify Step by step advances one location per accepted typed or CYOA turn. - Switch to Travel now and verify one accepted typed or CYOA turn reaches the validated destination. - Verify failed generation leaves the route retryable and a one-way wrong-way route is rejected without changing topology. - Edit artwork prompts, change the map or image settings, and verify generation remains blocked until Refresh prompts is explicitly confirmed. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Pending manual browser review after exact local installation. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added separate **Step by step** and **Travel now** movement options. * Pending travel now shows progress, supports cancellation, replacement confirmation, and unavailable-route warnings. * Added accessible confirmation dialogs for potentially disruptive map actions. * Added improved recovery for interrupted or ambiguous movement commands. * Artwork previews now identify stale edits and require refresh before generation. * **Bug Fixes** * Improved route validation, travel progress tracking, location discovery, and map-link handling. * Prevented unreachable destinations from creating unintended links or transitions. * **Updates** * Updated Hierarchical Maps to version 1.3.3. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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:54 +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#879
No description provided.