[GH-ISSUE #161] [Issue]: Making a detached chat map shared creates an ambiguous duplicate world #80

Closed
opened 2026-10-20 17:24:10 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @thetopham on GitHub (Jul 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/161

Originally assigned to: @thetopham on GitHub.

Summary

World Maps can silently create duplicate shared-world records with the same friendly name when a chat map is made shared, detached into an independent copy, and then made shared again. The library then shows multiple worlds with indistinguishable names, making it unclear which canonical world a chat should use.

Affected package

World Maps (hierarchical-maps) v1.2.3

Expected behavior

Creating a shared world from a chat map should handle existing identity and name collisions explicitly:

  • If the independent map retains trustworthy provenance for the exact shared-world ID it was detached from, offer to relink to that existing world or deliberately create a separate copy.
  • Never infer identity from friendly name alone; unrelated worlds may legitimately share a name.
  • If no trustworthy identity match exists but the proposed name is already used, warn before creation and require a distinct name or automatically suggest a clear suffix such as (copy).
  • The confirmation should explain whether the action will relink, publish to an existing canonical world, or create a new canonical world.
  • The library should make same-name records distinguishable using provenance, creation/update time, linked-chat count, or another stable identity cue.

Actual behavior

Reported sequence:

  1. Create a map in a new Roleplay chat.
  2. Make that chat map a shared world.
  3. Detach/unlink the chat so it keeps an independent copy.
  4. Make that independent map shared again.
  5. Observe two shared-world records with the same friendly name.

No collision warning, relink option, or copy suffix distinguishes the newly created world from the original.

Steps to reproduce

  1. Install or update World Maps to v1.2.3.
  2. Create and save a map in a new Roleplay chat.
  3. Select Make shared and complete the create-and-link flow.
  4. Detach the chat using Fork independent / unlink-and-keep-copy.
  5. Select Make shared again.
  6. Open the shared-world library.
  7. Observe duplicate canonical worlds with the same generated friendly name.

Environment

  • Marinara Engine version: v2.3.5
  • Engine build: a121d12
  • Package version: World Maps v1.2.3
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

A screenshot was provided in the original beta-review conversation but is not attached to this issue yet.

Additional context

The current Make shared flow always derives ${chat name} world, creates a new capability document, and then links it. Creation does not check prior shared-world provenance or existing friendly names.

Do not automatically relink based only on a matching name. The safe contract is exact ID/provenance matching when available, with an explicit collision flow otherwise.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/161 Originally assigned to: @thetopham on GitHub. ## Summary World Maps can silently create duplicate shared-world records with the same friendly name when a chat map is made shared, detached into an independent copy, and then made shared again. The library then shows multiple worlds with indistinguishable names, making it unclear which canonical world a chat should use. ## Affected package World Maps (`hierarchical-maps`) v1.2.3 ## Expected behavior Creating a shared world from a chat map should handle existing identity and name collisions explicitly: - If the independent map retains trustworthy provenance for the exact shared-world ID it was detached from, offer to relink to that existing world or deliberately create a separate copy. - Never infer identity from friendly name alone; unrelated worlds may legitimately share a name. - If no trustworthy identity match exists but the proposed name is already used, warn before creation and require a distinct name or automatically suggest a clear suffix such as **(copy)**. - The confirmation should explain whether the action will relink, publish to an existing canonical world, or create a new canonical world. - The library should make same-name records distinguishable using provenance, creation/update time, linked-chat count, or another stable identity cue. ## Actual behavior Reported sequence: 1. Create a map in a new Roleplay chat. 2. Make that chat map a shared world. 3. Detach/unlink the chat so it keeps an independent copy. 4. Make that independent map shared again. 5. Observe two shared-world records with the same friendly name. No collision warning, relink option, or copy suffix distinguishes the newly created world from the original. ## Steps to reproduce 1. Install or update World Maps to v1.2.3. 2. Create and save a map in a new Roleplay chat. 3. Select **Make shared** and complete the create-and-link flow. 4. Detach the chat using **Fork independent** / unlink-and-keep-copy. 5. Select **Make shared** again. 6. Open the shared-world library. 7. Observe duplicate canonical worlds with the same generated friendly name. ## Environment - Marinara Engine version: v2.3.5 - Engine build: a121d12 - Package version: World Maps v1.2.3 - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video A screenshot was provided in the original beta-review conversation but is not attached to this issue yet. ## Additional context The current **Make shared** flow always derives `${chat name} world`, creates a new capability document, and then links it. Creation does not check prior shared-world provenance or existing friendly names. Do not automatically relink based only on a matching name. The safe contract is exact ID/provenance matching when available, with an explicit collision flow otherwise. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@thetopham commented on GitHub (Jul 31, 2026):

I’m folding the safe no-provenance collision fix into the active World Maps 1.2.4 draft, PR #164, on fix/world-maps-route-sync-160. The detached map does not currently retain a trustworthy former shared-world ID, so this change will not relink by friendly name. It will refresh the canonical-world list, choose an explicit case-insensitive (copy) / (copy N) name when needed, and explain that a separate canonical world is being created.

<!-- gh-comment-id:5147617438 --> @thetopham commented on GitHub (Jul 31, 2026): I’m folding the safe no-provenance collision fix into the active World Maps 1.2.4 draft, PR #164, on `fix/world-maps-route-sync-160`. The detached map does not currently retain a trustworthy former shared-world ID, so this change will not relink by friendly name. It will refresh the canonical-world list, choose an explicit case-insensitive `(copy)` / `(copy N)` name when needed, and explain that a separate canonical world is being created.
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#80
No description provided.