[GH-ISSUE #4495] [Issue]: Game Mode treats a model-expanded party name as a second character #2444

Closed
opened 2026-10-21 05:48:15 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @thetopham on GitHub (Aug 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4495

Originally assigned to: @thetopham on GitHub.

Summary

Game Mode can let the GM model expand a party character's canonical card name into a full-name/nickname speaker label taken from descriptive card text. Later narration may return to the saved card name, leaving two labels for one party member in Game Mode history and derived character context.

This was discovered through downstream image-generation diagnostics, but the conflicting identity labels originate in Game Mode narration rather than in Storyboard.

Expected behavior

  • Bracketed Game Mode speaker labels for party members should use the exact saved party/card name.
  • Descriptive text explaining a legal name, nickname, title, or alias should not create a second character identity.
  • A party member should remain one canonical character throughout narration history, Character Tracker state, and downstream consumers.
  • Derived visible-character rosters should contain the canonical party member once.

Actual behavior

The user's character library contained only two characters. The active party card used a short canonical name, while its description explained that the short name came from a longer name.

Earlier Game Mode narration emitted speaker tags shaped like:

[<full name "canonical short name">] [main] [expression]: "..."

A later Game Mode response correctly emitted:

[<canonical short name>] [main] [expression]: "..."

Downstream Game Mode character context then contained both labels as if they represented distinct visible characters:

Allowed visible characters: <canonical short name>, <persona>, <full name "canonical short name">, ...

The same saved appearance could consequently be resolved under both labels, giving an image model two named identities for one person.

Steps to reproduce

  1. Create a character card whose saved Name is a short name or nickname.
  2. In descriptive card text, explain that the character has a longer legal name but is commonly called the saved short name.
  3. Add that card as a Game Mode party member and play several turns.
  4. Inspect raw Game Mode responses and persisted narration history.
  5. Observe whether the GM sometimes emits the longer descriptive name in bracketed speaker tags and later emits the saved card name.
  6. Inspect Character Tracker or another derived Game Mode character roster and check whether both labels are treated as separate identities.

Environment

  • Marinara Engine version: Reporter version not provided; current origin/staging source inspected at 58d86d6ef5adbed1a07f0d3e4927bb02a5cd0fdb
  • Initial affected Game Mode history: reporter said it was generated with DeepSeek 4 Pro
  • Later diagnostic generation: the reporter switched Game Mode/agent models while testing; a supplied later log shows a different model returning the canonical short label
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

The reporter supplied debug logs showing all three stages:

Party card:
Name: <canonical short name>
Description: <longer name>, commonly called <canonical short name>, ...

Earlier assistant history:
[<full name "canonical short name">] [main] [expression]: "..."

Later raw Game Mode response:
[<canonical short name>] [main] [expression]: "..."

Derived Game Mode context:
Allowed visible characters: <canonical short name>, <persona>, <full name "canonical short name">, ...

The user's full runtime and database are on the user's PC and were not directly inspected. The exact persisted Character Tracker row has not been exported.

During the broader troubleshooting session, Storyboard also intermittently fell back to truncated narration (for example, a prompt ending mid-word) and later produced complete compact keyframes. That inconsistent planner/fallback behavior is a separate diagnostic thread: it does not explain why Game Mode history already contained two labels for one party member and is outside this issue's scope.

Additional context

This is not primarily a Storyboard planner defect. Storyboard received the conflicting labels from Game Mode character context and made the existing identity split visible in its debug prompt.

Suggested fix and regression boundary:

  • Treat saved party/card names or stable character IDs as canonical for Game Mode speaker labels.
  • Instruct the GM to use exact canonical party names in bracketed output, then validate or safely canonicalize returned speaker labels before persisting narration or updating tracker state.
  • Only canonicalize a descriptive alias when it resolves uniquely to one known party member; do not merge ambiguous names that could represent different people.
  • Prevent model-expanded aliases from being added as separate party, tracker, or visible-character identities.
  • Add a regression with a saved short card name, descriptive longer name, a model response using the longer-name/nickname label, and a later response using the short name. Assert that stored speaker identity and downstream character rosters contain only the canonical saved name.

Related: #4459 documented the downstream duplicate-subject symptom during Game Mode image generation, but did not isolate the Game Mode narration identity split.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Aug 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4495 Originally assigned to: @thetopham on GitHub. ## Summary Game Mode can let the GM model expand a party character's canonical card name into a full-name/nickname speaker label taken from descriptive card text. Later narration may return to the saved card name, leaving two labels for one party member in Game Mode history and derived character context. This was discovered through downstream image-generation diagnostics, but the conflicting identity labels originate in Game Mode narration rather than in Storyboard. ## Expected behavior - Bracketed Game Mode speaker labels for party members should use the exact saved party/card name. - Descriptive text explaining a legal name, nickname, title, or alias should not create a second character identity. - A party member should remain one canonical character throughout narration history, Character Tracker state, and downstream consumers. - Derived visible-character rosters should contain the canonical party member once. ## Actual behavior The user's character library contained only two characters. The active party card used a short canonical name, while its description explained that the short name came from a longer name. Earlier Game Mode narration emitted speaker tags shaped like: ```text [<full name "canonical short name">] [main] [expression]: "..." ``` A later Game Mode response correctly emitted: ```text [<canonical short name>] [main] [expression]: "..." ``` Downstream Game Mode character context then contained both labels as if they represented distinct visible characters: ```text Allowed visible characters: <canonical short name>, <persona>, <full name "canonical short name">, ... ``` The same saved appearance could consequently be resolved under both labels, giving an image model two named identities for one person. ## Steps to reproduce 1. Create a character card whose saved `Name` is a short name or nickname. 2. In descriptive card text, explain that the character has a longer legal name but is commonly called the saved short name. 3. Add that card as a Game Mode party member and play several turns. 4. Inspect raw Game Mode responses and persisted narration history. 5. Observe whether the GM sometimes emits the longer descriptive name in bracketed speaker tags and later emits the saved card name. 6. Inspect Character Tracker or another derived Game Mode character roster and check whether both labels are treated as separate identities. ## Environment - Marinara Engine version: Reporter version not provided; current `origin/staging` source inspected at `58d86d6ef5adbed1a07f0d3e4927bb02a5cd0fdb` - Initial affected Game Mode history: reporter said it was generated with DeepSeek 4 Pro - Later diagnostic generation: the reporter switched Game Mode/agent models while testing; a supplied later log shows a different model returning the canonical short label - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video The reporter supplied debug logs showing all three stages: ```text Party card: Name: <canonical short name> Description: <longer name>, commonly called <canonical short name>, ... Earlier assistant history: [<full name "canonical short name">] [main] [expression]: "..." Later raw Game Mode response: [<canonical short name>] [main] [expression]: "..." Derived Game Mode context: Allowed visible characters: <canonical short name>, <persona>, <full name "canonical short name">, ... ``` The user's full runtime and database are on the user's PC and were not directly inspected. The exact persisted Character Tracker row has not been exported. During the broader troubleshooting session, Storyboard also intermittently fell back to truncated narration (for example, a prompt ending mid-word) and later produced complete compact keyframes. That inconsistent planner/fallback behavior is a separate diagnostic thread: it does not explain why Game Mode history already contained two labels for one party member and is outside this issue's scope. ## Additional context This is not primarily a Storyboard planner defect. Storyboard received the conflicting labels from Game Mode character context and made the existing identity split visible in its debug prompt. Suggested fix and regression boundary: - Treat saved party/card names or stable character IDs as canonical for Game Mode speaker labels. - Instruct the GM to use exact canonical party names in bracketed output, then validate or safely canonicalize returned speaker labels before persisting narration or updating tracker state. - Only canonicalize a descriptive alias when it resolves uniquely to one known party member; do not merge ambiguous names that could represent different people. - Prevent model-expanded aliases from being added as separate party, tracker, or visible-character identities. - Add a regression with a saved short card name, descriptive longer name, a model response using the longer-name/nickname label, and a later response using the short name. Assert that stored speaker identity and downstream character rosters contain only the canonical saved name. Related: #4459 documented the downstream duplicate-subject symptom during Game Mode image generation, but did not isolate the Game Mode narration identity split. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:48:15 +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-Engine#2444
No description provided.