[PR #224] [CLOSED] feat(maps): clarify portable lore import outcomes #864

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/224
Author: @thetopham
Created: 8/3/2026
Status: ❌ Closed

Base: staging ← Head: feature/217-portable-lore-import-outcomes


📝 Commits (1)

  • e469757 feat(maps): clarify portable lore imports

📊 Changes

10 files changed (+437 additions, -73 deletions)

View changed files

📝 artifacts/hierarchical-maps-1.3.0.zip (+0 -0)
📝 catalog/catalog.json (+5 -5)
📝 catalog/v2/catalog.json (+5 -5)
📝 catalog/v3/catalog.json (+5 -5)
📝 packages/hierarchical-maps/client.js (+53 -51)
📝 packages/hierarchical-maps/manifest.json (+2 -2)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+17 -4)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/PortableLoreImportDialog.tsx (+66 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/portable-lore.ts (+194 -1)
📝 tests/map-lore-portability.regression.ts (+90 -0)

📄 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 #217

Why this change

  • World Map portable-lore imports could create indistinguishable same-named lorebooks, while the confirmation and success states did not say which books would be reused or created.

What changed

  • Give imported lorebook copies a collision-safe <original> - <map> (World Map) name without renaming reused library books.
  • Show the exact expected reused/created entry and lorebook outcome for both import strategies, updating as ambiguous choices are resolved.
  • Persist World Map provenance on created copies and list concrete reused and created lorebook names after import.
  • Preserve the zero-new-lorebook path when every entry is reused.
  • Rebuilt hierarchical-maps 1.3.0 client payload, manifest hashes, ZIP artifact, and all catalog lanes.
  • Extended the portable-lore regression for naming collisions, exact outcomes, provenance, and fully reused imports.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: none; package compatibility range is unchanged.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: created imports use distinct names plus provenance metadata; reused lorebooks remain untouched, and existing package lifecycle behavior is 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

Automated verification notes

  • pnpm --filter @marinara-engine/server exec tsx /tmp/marinara-agents-217/tests/map-lore-portability.regression.ts
  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-catalog.mjs
  • git diff --check
  • unzip -t artifacts/hierarchical-maps-1.3.0.zip
  • Generated client bundle contains the expected-outcome UI and concrete post-import result text.

Manual verification notes

  • Live Engine installation and user review are pending; no manual-test checkbox is claimed by the automated checks above.

Documentation impact

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

UI evidence (if applicable)

  • Pending live installation and review.

🔄 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/224 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/3/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `feature/217-portable-lore-import-outcomes` --- ### 📝 Commits (1) - [`e469757`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e469757ea901dd5e53d5aac4aed78b22b09d065c) feat(maps): clarify portable lore imports ### 📊 Changes **10 files changed** (+437 additions, -73 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/hierarchical-maps-1.3.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+5 -5) 📝 `catalog/v2/catalog.json` (+5 -5) 📝 `catalog/v3/catalog.json` (+5 -5) 📝 `packages/hierarchical-maps/client.js` (+53 -51) 📝 `packages/hierarchical-maps/manifest.json` (+2 -2) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+17 -4) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/PortableLoreImportDialog.tsx` (+66 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/portable-lore.ts` (+194 -1) 📝 `tests/map-lore-portability.regression.ts` (+90 -0) </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 #217 ## Why this change - World Map portable-lore imports could create indistinguishable same-named lorebooks, while the confirmation and success states did not say which books would be reused or created. ## What changed - Give imported lorebook copies a collision-safe `<original> - <map> (World Map)` name without renaming reused library books. - Show the exact expected reused/created entry and lorebook outcome for both import strategies, updating as ambiguous choices are resolved. - Persist World Map provenance on created copies and list concrete reused and created lorebook names after import. - Preserve the zero-new-lorebook path when every entry is reused. - Rebuilt `hierarchical-maps` 1.3.0 client payload, manifest hashes, ZIP artifact, and all catalog lanes. - Extended the portable-lore regression for naming collisions, exact outcomes, provenance, and fully reused imports. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: none; package compatibility range is unchanged. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: created imports use distinct names plus provenance metadata; reused lorebooks remain untouched, and existing package lifecycle behavior is 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` ### Automated verification notes - `pnpm --filter @marinara-engine/server exec tsx /tmp/marinara-agents-217/tests/map-lore-portability.regression.ts` - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-catalog.mjs` - `git diff --check` - `unzip -t artifacts/hierarchical-maps-1.3.0.zip` - Generated client bundle contains the expected-outcome UI and concrete post-import result text. ### Manual verification notes - Live Engine installation and user review are pending; no manual-test checkbox is claimed by the automated checks above. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Pending live installation and review. --- <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#864
No description provided.