[GH-ISSUE #74] [Issue]: Explain how to preserve location IDs when importing a replacement map #36

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

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

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

Once a Hierarchical Map has committed campaign history, importing a replacement that omits existing location IDs fails with:

Campaign history uses this map. Imported maps must retain every existing location ID.

That protection is necessary because messages, swipes, branches, and checkpoints reference stable location IDs. The current error explains the rule but does not tell users how to repair an externally edited or AI-generated replacement map.

Users have confirmed that preserving or remapping the existing IDs into the replacement map is an acceptable workflow. The missing piece is actionable guidance and diagnostics.

Proposed package or change

Keep the stable-ID protection and improve the blocked-import workflow:

  • explain that campaign history references location IDs rather than names;
  • recommend exporting the current map and using that export as the editing baseline;
  • explain that replacement entries may be renamed or rewritten while retaining the required IDs;
  • warn that assigning an old ID to a different conceptual place changes what historical snapshots resolve to;
  • show the number of required IDs missing from the imported map;
  • list or copy the missing IDs, with current location names where available;
  • provide concise step-by-step repair guidance beside the import error;
  • keep malformed-map validation separate from stable-ID compatibility errors;
  • keep ordinary imports without committed history unchanged; and
  • cover Roleplay and Game import behavior on desktop and mobile.

The package must not silently bypass the guard, discard snapshots, or overwrite campaign history. A future destructive map-history reset can remain a separate feature if users need it later.

Why should this be optional?

Stable-ID repair guidance is specific to the downloadable Hierarchical Maps import workflow. Engine should continue to provide only generic persistence and history contracts.

Alternatives considered

  • Removing the ID check would leave historical snapshots pointing at missing or unrelated locations.
  • A destructive reset is unnecessary for users who are willing to preserve or remap IDs.
  • Showing only the current generic error forces users to discover the repair process through trial and error.
  • Starting a new chat avoids the constraint but unnecessarily splits an ongoing campaign.

Additional context

User follow-up: they successfully imported a replacement by matching new entries to existing location IDs and requested clearer information about how to resolve the error.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/74 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? Once a Hierarchical Map has committed campaign history, importing a replacement that omits existing location IDs fails with: `Campaign history uses this map. Imported maps must retain every existing location ID.` That protection is necessary because messages, swipes, branches, and checkpoints reference stable location IDs. The current error explains the rule but does not tell users how to repair an externally edited or AI-generated replacement map. Users have confirmed that preserving or remapping the existing IDs into the replacement map is an acceptable workflow. The missing piece is actionable guidance and diagnostics. ## Proposed package or change Keep the stable-ID protection and improve the blocked-import workflow: - explain that campaign history references location IDs rather than names; - recommend exporting the current map and using that export as the editing baseline; - explain that replacement entries may be renamed or rewritten while retaining the required IDs; - warn that assigning an old ID to a different conceptual place changes what historical snapshots resolve to; - show the number of required IDs missing from the imported map; - list or copy the missing IDs, with current location names where available; - provide concise step-by-step repair guidance beside the import error; - keep malformed-map validation separate from stable-ID compatibility errors; - keep ordinary imports without committed history unchanged; and - cover Roleplay and Game import behavior on desktop and mobile. The package must not silently bypass the guard, discard snapshots, or overwrite campaign history. A future destructive map-history reset can remain a separate feature if users need it later. ## Why should this be optional? Stable-ID repair guidance is specific to the downloadable Hierarchical Maps import workflow. Engine should continue to provide only generic persistence and history contracts. ## Alternatives considered - Removing the ID check would leave historical snapshots pointing at missing or unrelated locations. - A destructive reset is unnecessary for users who are willing to preserve or remap IDs. - Showing only the current generic error forces users to discover the repair process through trial and error. - Starting a new chat avoids the constraint but unnecessarily splits an ongoing campaign. ## Additional context User follow-up: they successfully imported a replacement by matching new entries to existing location IDs and requested clearer information about how to resolve the error. ## Template check - [ ] I DID NOT read this template and provide the requested details.
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#36
No description provided.