[PR #149] [MERGED] feat(world-maps): select shared worlds during Game setup #833

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

📋 Pull Request Information

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

Base: staging ← Head: feature/4323-shared-world-game-setup


📝 Commits (6)

  • 15f5d79 feat: select shared worlds during Game setup
  • a000ac5 build: package World Maps 1.2.3
  • 61302bc test: preserve shared-world roleplay lifecycle
  • a93ccde Merge remote-tracking branch 'origin/feature/maps-connection-lines-retry' into local/pr149-stack
  • 5bb2763 Merge remote-tracking branch 'origin/staging' into feature/4323-shared-world-game-setup
  • 0664f26 fix(world-maps): require linked world revisions

📊 Changes

15 files changed (+304 additions, -81 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.2.3.zip (+0 -0)
📝 catalog/catalog.json (+10 -10)
📝 catalog/v2/catalog.json (+10 -10)
📝 catalog/v3/catalog.json (+1 -1)
📝 packages/hierarchical-maps/client.js (+25 -25)
📝 packages/hierarchical-maps/engine-boundary.json (+1 -1)
📝 packages/hierarchical-maps/manifest.json (+6 -6)
📝 packages/hierarchical-maps/server.mjs (+1 -1)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapLibrary.tsx (+27 -1)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+1 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts (+1 -0)
📝 packages/hierarchical-maps/src/engine/packages/server/src/routes/spatial-context.routes.ts (+7 -0)
📝 scripts/build-feature-packages.mjs (+55 -4)
📝 tests/hierarchical-maps-lifecycle.regression.ts (+60 -8)
📝 tests/spatial-context.e2e.ts (+99 -14)

📄 Description

Resolves #133

Why this change

Implements the World Maps half of Pasta-Devs/Marinara-Engine#4323. Game setup could use World Maps templates but had no way to select an existing account-owned shared world.

Companion Engine change: Pasta-Devs/Marinara-Engine#4329.

This change was originally stacked on feature/maps-connection-lines-retry / PR #148 so World Maps 1.2.3 followed the packaged 1.2.2 connection-line release. PR #148 has now merged, and this branch is refreshed against staging.

What changed

  • Add a setup-only Use shared world action to valid shared-world cards when the Engine advertises support.
  • Send a minimal selection payload containing the world ID and expected revision.
  • Apply the selection through a nonvisual package setup view before Game setup completes.
  • Reject stale shared-world selections with a recoverable conflict instead of silently linking a changed world.
  • Preserve the canonical shared-world definition and artwork while retaining chat-owned location, history, snapshot, binding, and discovery state.
  • Rebuild World Maps 1.2.3 source, manifest, catalogs, Engine boundary, and ZIP artifact.

User impact

Users can start a Game from an existing World Maps shared world without copying or mutating the canonical world. Older Engines do not receive the new setup action.

Validation

  • World Maps package build against Engine commit 655d7f922bb7f06e3ab5391bf877d2b5be928aa6
  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-catalog.mjs
  • unzip -t artifacts/hierarchical-maps-1.2.3.zip
  • Exact-artifact lifecycle regression, including Game setup linking, stale-selection rejection, Roleplay preservation, and canonical-world immutability
  • Focused desktop Chromium Playwright test passed for shared-world selection, pre-Start linking, initial location, and canonical-record immutability.

Manual verification

  • Install World Maps 1.2.3 with the companion Engine branch.
  • In Game setup, select a shared world and verify the selected world and starting location appear before Start.
  • Verify linking does not change the shared world's definition, revision, or artwork.
  • Change a shared world after selection and verify setup reports a recoverable stale-selection error.
  • Verify an older Engine exposes templates only.

Summary by CodeRabbit

  • New Features

    • Added support for selecting and using shared worlds during Game setup.
    • Added confirmation and validation when linking a shared world.
    • Added safeguards to detect changes to a shared world before linking.
  • Bug Fixes

    • Improved shared-world linking reliability while preserving canonical world data.
  • Chores

    • Updated the World Maps package to version 1.2.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/149 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/31/2026 **Status:** ✅ Merged **Merged:** 7/31/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `feature/4323-shared-world-game-setup` --- ### 📝 Commits (6) - [`15f5d79`](https://github.com/Pasta-Devs/Marinara-Agents/commit/15f5d79d52e1b65b3126adca40183e8a11f2b9a9) feat: select shared worlds during Game setup - [`a000ac5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a000ac5c67755d0d52a6544b3f75aa3d43658ffd) build: package World Maps 1.2.3 - [`61302bc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/61302bc28c6bf0896427b924e068fe7b6386283e) test: preserve shared-world roleplay lifecycle - [`a93ccde`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a93ccde15b2fcf37735ac041c2f781f85445cda6) Merge remote-tracking branch 'origin/feature/maps-connection-lines-retry' into local/pr149-stack - [`5bb2763`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5bb27635b5a557448369e1243832db17da6ed82e) Merge remote-tracking branch 'origin/staging' into feature/4323-shared-world-game-setup - [`0664f26`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0664f262f72e1401530352c37646b6a0828719f8) fix(world-maps): require linked world revisions ### 📊 Changes **15 files changed** (+304 additions, -81 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.2.3.zip` (+0 -0) 📝 `catalog/catalog.json` (+10 -10) 📝 `catalog/v2/catalog.json` (+10 -10) 📝 `catalog/v3/catalog.json` (+1 -1) 📝 `packages/hierarchical-maps/client.js` (+25 -25) 📝 `packages/hierarchical-maps/engine-boundary.json` (+1 -1) 📝 `packages/hierarchical-maps/manifest.json` (+6 -6) 📝 `packages/hierarchical-maps/server.mjs` (+1 -1) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapLibrary.tsx` (+27 -1) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+1 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts` (+1 -0) 📝 `packages/hierarchical-maps/src/engine/packages/server/src/routes/spatial-context.routes.ts` (+7 -0) 📝 `scripts/build-feature-packages.mjs` (+55 -4) 📝 `tests/hierarchical-maps-lifecycle.regression.ts` (+60 -8) 📝 `tests/spatial-context.e2e.ts` (+99 -14) </details> ### 📄 Description Resolves #133 ## Why this change Implements the World Maps half of Pasta-Devs/Marinara-Engine#4323. Game setup could use World Maps templates but had no way to select an existing account-owned shared world. Companion Engine change: Pasta-Devs/Marinara-Engine#4329. This change was originally stacked on `feature/maps-connection-lines-retry` / PR #148 so World Maps 1.2.3 followed the packaged 1.2.2 connection-line release. PR #148 has now merged, and this branch is refreshed against `staging`. ## What changed - Add a setup-only **Use shared world** action to valid shared-world cards when the Engine advertises support. - Send a minimal selection payload containing the world ID and expected revision. - Apply the selection through a nonvisual package setup view before Game setup completes. - Reject stale shared-world selections with a recoverable conflict instead of silently linking a changed world. - Preserve the canonical shared-world definition and artwork while retaining chat-owned location, history, snapshot, binding, and discovery state. - Rebuild World Maps 1.2.3 source, manifest, catalogs, Engine boundary, and ZIP artifact. ## User impact Users can start a Game from an existing World Maps shared world without copying or mutating the canonical world. Older Engines do not receive the new setup action. ## Validation - World Maps package build against Engine commit `655d7f922bb7f06e3ab5391bf877d2b5be928aa6` - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-catalog.mjs` - `unzip -t artifacts/hierarchical-maps-1.2.3.zip` - Exact-artifact lifecycle regression, including Game setup linking, stale-selection rejection, Roleplay preservation, and canonical-world immutability - Focused desktop Chromium Playwright test passed for shared-world selection, pre-Start linking, initial location, and canonical-record immutability. ## Manual verification - [ ] Install World Maps 1.2.3 with the companion Engine branch. - [ ] In Game setup, select a shared world and verify the selected world and starting location appear before Start. - [ ] Verify linking does not change the shared world's definition, revision, or artwork. - [ ] Change a shared world after selection and verify setup reports a recoverable stale-selection error. - [ ] Verify an older Engine exposes templates only. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for selecting and using shared worlds during Game setup. * Added confirmation and validation when linking a shared world. * Added safeguards to detect changes to a shared world before linking. * **Bug Fixes** * Improved shared-world linking reliability while preserving canonical world data. * **Chores** * Updated the World Maps package to version 1.2.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:26 +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#833
No description provided.