[PR #220] [MERGED] Release World Maps 1.3.1 fixes and movement reconciliation #862

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

📋 Pull Request Information

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

Base: staging ← Head: agent/4433-impersonate-map-bridge


📝 Commits (10+)

  • 6265724 fix(world-maps): reconcile explicit movement events
  • 75a8b39 fix(world-maps): preserve advanced route review state
  • 2ffeab6 fix(world-maps): harden movement reconciliation
  • b66076a test(world-maps): cover idempotent impersonate retry
  • 4403825 test(world-maps): exercise impersonate command path
  • a38ab7a fix(world-maps): harden rejection message lookup
  • c58f4f5 fix(world-maps): preflight repeated owner moves
  • 46bc527 fix(world-maps): require command-scoped movement commits
  • 1482be8 fix(maps): replace rejected artwork safely
  • 92ce0fa feat(maps): clarify portable lore imports

📊 Changes

29 files changed (+2262 additions, -313 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+3 -0)
➕ artifacts/hierarchical-maps-1.3.1.zip (+0 -0)
📝 catalog/catalog.json (+9 -9)
📝 catalog/v2/catalog.json (+9 -9)
📝 catalog/v3/catalog.json (+9 -9)
📝 packages/hierarchical-maps/client.js (+56 -54)
📝 packages/hierarchical-maps/manifest.json (+5 -5)
📝 packages/hierarchical-maps/server.mjs (+69 -67)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+152 -92)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx (+51 -2)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/PortableLoreImportDialog.tsx (+77 -6)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx (+1 -5)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/location-artwork.ts (+100 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/pending-spatial-transitions.ts (+14 -2)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/portable-lore.ts (+195 -2)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-route-plans.ts (+19 -5)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-workspace-refresh.ts (+22 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts (+5 -2)
📝 packages/hierarchical-maps/src/engine/packages/server/src/routes/spatial-context.routes.ts (+87 -12)
➕ packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/map-json-response.ts (+247 -0)

...and 9 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 issues

Closes #216
Closes #217
Closes #218
Closes #219
Closes #221

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

Merged Engine host contract: Pasta-Devs/Marinara-Engine#4535

Paired Engine directive cleanup: Pasta-Devs/Marinara-Engine#4545

This release consolidates the reviewed changes from #222, #224, #225, and #227. Those PRs must not be merged separately because each contains an obsolete generated World Maps 1.3.0 snapshot.

Why this change

  • World Maps 1.3.1 is the single release vehicle for the queued movement bridge and four adjacent 1.3.0 fixes.
  • Keeping independently generated package snapshots would make merge order overwrite bundles, hashes, and catalog entries.
  • Source and regression changes remain reviewable while every generated output is rebuilt once from the combined source.

What changed

  • Reconcile queued movement from authoritative committed, rejected, and spatial refresh events, including Roleplay guided and impersonate paths.
  • Replace rejected or dangling location artwork without overwriting concurrent assignments, reference toggles, map-background positions, archive state, or unrelated draft edits.
  • Preview portable-lore reuse/import outcomes, create collision-safe provenance-labelled lorebooks, preserve explicit ambiguity choices, and report exact import results.
  • Distinguish truncated map JSON from malformed JSON, attempt one syntax-only repair for malformed responses, and return actionable diagnostics.
  • Refresh every cached linked shared-world query while preserving dirty local drafts and template editors.
  • Explicitly close the map workspace before opening linked lore and cover clean/dirty navigation paths.
  • Keep the export dialog above displayed map artwork through an inline z-index that does not depend on host Tailwind scanning.
  • Rebuild World Maps 1.3.1 client payload, manifest hashes, ZIP, and all catalog lanes from package-owned source.

Package and security impact

  • Affected package ID: hierarchical-maps
  • Engine compatibility remains >=2.3.5 <4.0.0.
  • New permissions or entrypoints: none.
  • Existing executable client/server entrypoints were rebuilt from package-owned source.
  • The update requires the existing restart. Storage keys and uninstall behavior are unchanged.
  • Engine PR #4545 prevents package-owned movement directives from appearing during streaming, inline-thinking replacement, or impersonated message persistence.

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

Automated evidence:

  • Focused artwork replacement/concurrent-edit regression passes.
  • Focused malformed/truncated JSON repair and diagnostics regression passes.
  • node tests/world-maps-ui-contract.regression.mjs passes.
  • node scripts/test-catalog-lanes.mjs passes.
  • node scripts/validate-catalog.mjs passes: 31 packages; v2, v3, and legacy lanes valid.
  • Exact-artifact lifecycle regression passes against Engine PR #4545 head e8e62c79d8f026f274117206ebb84d3f7630f6a7, including update, guided queue isolation, generated impersonate cleanup, impersonate success/failure/stale rejection, offline restart, uninstall/reinstall, backup, and restore.
  • Earlier GitHub catalog/triage checks passed; current-head checks remain authoritative in the checks tab.

Review follow-up:

  • b700b447a fixes prose-brace JSON classification, route-contract boundaries, and concurrent artwork rebasing.
  • c82af3faf uses strict artwork patch assertions and removes the redundant export-overlay Tailwind z-index while retaining the required inline style.
  • Every current inline CodeRabbit thread was replied to and resolved. The latest outside-diff z-index finding was answered in the PR conversation without manually triggering another review.

Exact artifacts

  • PR head: c82af3fafb435a32b4a1cfd082fcbba01dd89057
  • World Maps version: 1.3.1
  • ZIP SHA-256: 7c296732b9c4a1fd30f507794a3d96645d67378e14ef7ea156df41096fae614b (346,571 bytes)
  • Client SHA-256: cc74f11979213c6f6fed54db60493bd9b84e069082126865741afcdcdf1e5773 (961,106 bytes)
  • Server SHA-256: ea0af5f7c206aff577db94a2ee854b21d79c2e79776bb74bcd70ceb4f512ee76 (354,473 bytes)

Local review installation

  • The exact Engine e8e62c79d and World Maps c82af3faf files are staged in the locked local review environment.
  • World Maps was schema-normalized, verified, dry-run installed, then installed through Engine's package manager from the immutable PR-head artifact URL.
  • Installed client/server payload hashes match the exact values above.
  • World Maps currently reports restart-required / pending because host approval for the service start is still outstanding.
  • Health, active/ready state, and served-file hashes must be recorded after that approved restart.

Manual verification notes

  • Recheck guided, regenerated, continued, and impersonated movement turns for directive visibility and queue isolation.
  • Recheck that post-processing text rewrites cannot persist, emit, or apply a spatial directive introduced by the rewrite agent.
  • Recheck artwork replacement while changing assignments, toggles, background position, archive state, and unrelated draft content during generation.
  • Recheck portable-lore outcome previews, explicit ambiguity choices, reuse, and separate-copy import.
  • Recheck malformed JSON repair versus token-truncated Max Output Tokens guidance.
  • Recheck clean and dirty shared-world refresh, linked-lore navigation, and export overlay hit-testing above displayed artwork.

Documentation impact

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

UI evidence

  • Earlier live desktop Chromium covered clean/dirty linked-lore navigation and export-dialog stacking above displayed artwork.
  • Current-head agent-operated browser verification remains separate from the user's manual review and must be rerun after service start.

Summary by CodeRabbit

  • New Features
    • Improved map artwork management, including missing-artwork recovery and warnings for conflicting image assignments.
    • Added clearer portable lore import previews, collision-safe naming, provenance details, and reuse/import summaries.
    • Added automatic recovery for incomplete or malformed generated map data with clearer diagnostics.
    • Improved shared-world refresh behavior and spatial transition review messages.
  • Bug Fixes
    • Fixed stale transition handling, duplicate movement responses, export dialog layering, linked-lore navigation, and refresh consistency.
    • Upgraded Hierarchical Maps to version 1.3.1.
  • Tests
    • Expanded coverage for artwork, lore imports, map generation, navigation, refreshes, and movement workflows.

🔄 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/220 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/3/2026 **Status:** ✅ Merged **Merged:** 8/4/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `agent/4433-impersonate-map-bridge` --- ### 📝 Commits (10+) - [`6265724`](https://github.com/Pasta-Devs/Marinara-Agents/commit/62657242907c0295efdd59db8074f664d7002c7c) fix(world-maps): reconcile explicit movement events - [`75a8b39`](https://github.com/Pasta-Devs/Marinara-Agents/commit/75a8b392b9b113929c4b9ce425fa4749bd01ae59) fix(world-maps): preserve advanced route review state - [`2ffeab6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2ffeab6adc03b0c068477fa3c345f6d0afd54b2e) fix(world-maps): harden movement reconciliation - [`b66076a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b66076a9e30e2c51f338a930c1517dd71c787088) test(world-maps): cover idempotent impersonate retry - [`4403825`](https://github.com/Pasta-Devs/Marinara-Agents/commit/44038259c4f4898ef3e856ec53a9e1fa353cd95c) test(world-maps): exercise impersonate command path - [`a38ab7a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a38ab7a425a159d9369f94ba8344face278330ad) fix(world-maps): harden rejection message lookup - [`c58f4f5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c58f4f5300a9bee6f50cad20619709c008a69c67) fix(world-maps): preflight repeated owner moves - [`46bc527`](https://github.com/Pasta-Devs/Marinara-Agents/commit/46bc5278a403bdf4b1dac4482534ec5313b22808) fix(world-maps): require command-scoped movement commits - [`1482be8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1482be8fea20d6ed49a8974cb12d6b7443e622f7) fix(maps): replace rejected artwork safely - [`92ce0fa`](https://github.com/Pasta-Devs/Marinara-Agents/commit/92ce0fa7cc0bfab29eab7d5285ee04eb647684ed) feat(maps): clarify portable lore imports ### 📊 Changes **29 files changed** (+2262 additions, -313 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) ➕ `artifacts/hierarchical-maps-1.3.1.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -9) 📝 `catalog/v2/catalog.json` (+9 -9) 📝 `catalog/v3/catalog.json` (+9 -9) 📝 `packages/hierarchical-maps/client.js` (+56 -54) 📝 `packages/hierarchical-maps/manifest.json` (+5 -5) 📝 `packages/hierarchical-maps/server.mjs` (+69 -67) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+152 -92) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx` (+51 -2) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/PortableLoreImportDialog.tsx` (+77 -6) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/SpatialContextRuntimeBar.tsx` (+1 -5) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/location-artwork.ts` (+100 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/pending-spatial-transitions.ts` (+14 -2) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/portable-lore.ts` (+195 -2) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-route-plans.ts` (+19 -5) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-workspace-refresh.ts` (+22 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts` (+5 -2) 📝 `packages/hierarchical-maps/src/engine/packages/server/src/routes/spatial-context.routes.ts` (+87 -12) ➕ `packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/map-json-response.ts` (+247 -0) _...and 9 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 issues Closes #216 Closes #217 Closes #218 Closes #219 Closes #221 Related Engine issue: Pasta-Devs/Marinara-Engine#4433 Merged Engine host contract: Pasta-Devs/Marinara-Engine#4535 Paired Engine directive cleanup: Pasta-Devs/Marinara-Engine#4545 This release consolidates the reviewed changes from #222, #224, #225, and #227. Those PRs must not be merged separately because each contains an obsolete generated World Maps 1.3.0 snapshot. ## Why this change - World Maps 1.3.1 is the single release vehicle for the queued movement bridge and four adjacent 1.3.0 fixes. - Keeping independently generated package snapshots would make merge order overwrite bundles, hashes, and catalog entries. - Source and regression changes remain reviewable while every generated output is rebuilt once from the combined source. ## What changed - Reconcile queued movement from authoritative committed, rejected, and spatial refresh events, including Roleplay guided and impersonate paths. - Replace rejected or dangling location artwork without overwriting concurrent assignments, reference toggles, map-background positions, archive state, or unrelated draft edits. - Preview portable-lore reuse/import outcomes, create collision-safe provenance-labelled lorebooks, preserve explicit ambiguity choices, and report exact import results. - Distinguish truncated map JSON from malformed JSON, attempt one syntax-only repair for malformed responses, and return actionable diagnostics. - Refresh every cached linked shared-world query while preserving dirty local drafts and template editors. - Explicitly close the map workspace before opening linked lore and cover clean/dirty navigation paths. - Keep the export dialog above displayed map artwork through an inline z-index that does not depend on host Tailwind scanning. - Rebuild World Maps 1.3.1 client payload, manifest hashes, ZIP, and all catalog lanes from package-owned source. ## Package and security impact - Affected package ID: `hierarchical-maps` - Engine compatibility remains `>=2.3.5 <4.0.0`. - New permissions or entrypoints: none. - Existing executable client/server entrypoints were rebuilt from package-owned source. - The update requires the existing restart. Storage keys and uninstall behavior are unchanged. - Engine PR #4545 prevents package-owned movement directives from appearing during streaming, inline-thinking replacement, or impersonated message persistence. ## Validation - [x] `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 Automated evidence: - Focused artwork replacement/concurrent-edit regression passes. - Focused malformed/truncated JSON repair and diagnostics regression passes. - `node tests/world-maps-ui-contract.regression.mjs` passes. - `node scripts/test-catalog-lanes.mjs` passes. - `node scripts/validate-catalog.mjs` passes: 31 packages; v2, v3, and legacy lanes valid. - Exact-artifact lifecycle regression passes against Engine PR #4545 head `e8e62c79d8f026f274117206ebb84d3f7630f6a7`, including update, guided queue isolation, generated impersonate cleanup, impersonate success/failure/stale rejection, offline restart, uninstall/reinstall, backup, and restore. - Earlier GitHub catalog/triage checks passed; current-head checks remain authoritative in the checks tab. Review follow-up: - `b700b447a` fixes prose-brace JSON classification, route-contract boundaries, and concurrent artwork rebasing. - `c82af3faf` uses strict artwork patch assertions and removes the redundant export-overlay Tailwind z-index while retaining the required inline style. - Every current inline CodeRabbit thread was replied to and resolved. The latest outside-diff z-index finding was answered in the PR conversation without manually triggering another review. ### Exact artifacts - PR head: `c82af3fafb435a32b4a1cfd082fcbba01dd89057` - World Maps version: `1.3.1` - ZIP SHA-256: `7c296732b9c4a1fd30f507794a3d96645d67378e14ef7ea156df41096fae614b` (346,571 bytes) - Client SHA-256: `cc74f11979213c6f6fed54db60493bd9b84e069082126865741afcdcdf1e5773` (961,106 bytes) - Server SHA-256: `ea0af5f7c206aff577db94a2ee854b21d79c2e79776bb74bcd70ceb4f512ee76` (354,473 bytes) ### Local review installation - The exact Engine `e8e62c79d` and World Maps `c82af3faf` files are staged in the locked local review environment. - World Maps was schema-normalized, verified, dry-run installed, then installed through Engine's package manager from the immutable PR-head artifact URL. - Installed client/server payload hashes match the exact values above. - World Maps currently reports `restart-required` / `pending` because host approval for the service start is still outstanding. - Health, active/ready state, and served-file hashes must be recorded after that approved restart. ### Manual verification notes - Recheck guided, regenerated, continued, and impersonated movement turns for directive visibility and queue isolation. - Recheck that post-processing text rewrites cannot persist, emit, or apply a spatial directive introduced by the rewrite agent. - Recheck artwork replacement while changing assignments, toggles, background position, archive state, and unrelated draft content during generation. - Recheck portable-lore outcome previews, explicit ambiguity choices, reuse, and separate-copy import. - Recheck malformed JSON repair versus token-truncated Max Output Tokens guidance. - Recheck clean and dirty shared-world refresh, linked-lore navigation, and export overlay hit-testing above displayed artwork. ## Documentation impact - [x] No documentation changes needed - [ ] Updated README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence - Earlier live desktop Chromium covered clean/dirty linked-lore navigation and export-dialog stacking above displayed artwork. - Current-head agent-operated browser verification remains separate from the user's manual review and must be rerun after service start. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved map artwork management, including missing-artwork recovery and warnings for conflicting image assignments. * Added clearer portable lore import previews, collision-safe naming, provenance details, and reuse/import summaries. * Added automatic recovery for incomplete or malformed generated map data with clearer diagnostics. * Improved shared-world refresh behavior and spatial transition review messages. * **Bug Fixes** * Fixed stale transition handling, duplicate movement responses, export dialog layering, linked-lore navigation, and refresh consistency. * Upgraded Hierarchical Maps to version 1.3.1. * **Tests** * Expanded coverage for artwork, lore imports, map generation, navigation, refreshes, and movement workflows. <!-- 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:44 +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#862
No description provided.