[GH-ISSUE #3606] [Issue]: Recurring characters lose tracked stats and avatar #1951

Closed
opened 2026-10-21 05:44:06 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3606

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The Character Tracking Agent does not consistently preserve stat values and avatars when a recurring character returns after being out of focus for several scenes.

Expected behavior

When scene focus returns to a recurring character, the agent should restore the character's tracked stats and original avatar. Information defined in the character card should be appended to the generation context.

Actual behavior

When scene focus returned to the main character, only the character's name remained correct. The tracked stats were missing and the avatar had changed.

Steps to reproduce

  1. Start an RP with a main character whose stats and stat values are defined in the initial scene or character card.
  2. Continue through scenes that push the main character into the background.
  3. Shift scene focus back to the same main character.
  4. Observe that the name is retained, but the stats are missing and the avatar is different.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs, screenshots, or video were provided.

Additional context

The maintainer noted that details may change if the character was absent from the tracker context during generation. However, the avatar should have remained the same and character card information should have been appended. The model may have ignored the appended information.

Discord thread: Character Tracking Agent Stat Tracking on Recurring Entities
Discord thread link: https://discord.com/channels/1417099416812392641/1526561161150206113
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (5 messages)
[2026-07-14T12:09:02.953Z] m;aemoifmpfmmafe: Hi, I wonder how does the Character Tracking Agent manages Stat Tracking for Recurring Characters, both defined within the character cards and generated by the models.

I just had a RP where the main character defined within the scene initial had all of the stats & stat values correctly defined. The RP had scenes where the main characters are pushed into the background. When the RP shifts the scene focus back to the same main character, only the name is correct, but the stats are missing and the avatars are different.
[Discord message: https://discord.com/channels/1417099416812392641/1526561161150206113/1526561161150206113]

[2026-07-14T12:24:20.298Z] Marinara: If the tracker didn't have them in the context when generating, it's no wonder they might have changed stuff for them. Though the avatar should have stayed the same.
[Discord message: https://discord.com/channels/1417099416812392641/1526561161150206113/1526565008773742642]

[2026-07-14T12:25:15.482Z] Marinara: The character card info should have been appended though.
[Discord message: https://discord.com/channels/1417099416812392641/1526561161150206113/1526565240232349736]

[2026-07-14T12:25:21.499Z] Marinara: Your model might have just ignored it.
[Discord message: https://discord.com/channels/1417099416812392641/1526561161150206113/1526565265469472949]

[2026-07-14T12:25:37.208Z] Marinara: I'll investigate.
[Discord message: https://discord.com/channels/1417099416812392641/1526561161150206113/1526565331357929503]

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 @SpicyMarinara on GitHub (Jul 14, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3606 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The Character Tracking Agent does not consistently preserve stat values and avatars when a recurring character returns after being out of focus for several scenes. ## Expected behavior When scene focus returns to a recurring character, the agent should restore the character's tracked stats and original avatar. Information defined in the character card should be appended to the generation context. ## Actual behavior When scene focus returned to the main character, only the character's name remained correct. The tracked stats were missing and the avatar had changed. ## Steps to reproduce 1. Start an RP with a main character whose stats and stat values are defined in the initial scene or character card. 2. Continue through scenes that push the main character into the background. 3. Shift scene focus back to the same main character. 4. Observe that the name is retained, but the stats are missing and the avatar is different. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video were provided. ## Additional context The maintainer noted that details may change if the character was absent from the tracker context during generation. However, the avatar should have remained the same and character card information should have been appended. The model may have ignored the appended information. Discord thread: Character Tracking Agent Stat Tracking on Recurring Entities Discord thread link: https://discord.com/channels/1417099416812392641/1526561161150206113 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (5 messages)</summary> ```text [2026-07-14T12:09:02.953Z] m;aemoifmpfmmafe: Hi, I wonder how does the Character Tracking Agent manages Stat Tracking for Recurring Characters, both defined within the character cards and generated by the models. I just had a RP where the main character defined within the scene initial had all of the stats & stat values correctly defined. The RP had scenes where the main characters are pushed into the background. When the RP shifts the scene focus back to the same main character, only the name is correct, but the stats are missing and the avatars are different. [Discord message: https://discord.com/channels/1417099416812392641/1526561161150206113/1526561161150206113] [2026-07-14T12:24:20.298Z] Marinara: If the tracker didn't have them in the context when generating, it's no wonder they might have changed stuff for them. Though the avatar should have stayed the same. [Discord message: https://discord.com/channels/1417099416812392641/1526561161150206113/1526565008773742642] [2026-07-14T12:25:15.482Z] Marinara: The character card info should have been appended though. [Discord message: https://discord.com/channels/1417099416812392641/1526561161150206113/1526565240232349736] [2026-07-14T12:25:21.499Z] Marinara: Your model might have just ignored it. [Discord message: https://discord.com/channels/1417099416812392641/1526561161150206113/1526565265469472949] [2026-07-14T12:25:37.208Z] Marinara: I'll investigate. [Discord message: https://discord.com/channels/1417099416812392641/1526561161150206113/1526565331357929503] ``` </details> ## 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:44:06 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Jul 14, 2026):

I get it for NPCs but for characters with character cards? These should be included in context for generations.

<!-- gh-comment-id:4969127700 --> @SpicyMarinara commented on GitHub (Jul 14, 2026): I get it for NPCs but for characters with character cards? These should be included in context for generations.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 14, 2026):

Claimed by @SpicyMarinara. Implementing the confirmed root-cause repair: include card RPG stats in tracker lore, recover returning characters from historical snapshots, merge omitted dynamic fields without overriding fresh values, enforce card-backed avatar/crop by stable ID with unique-name fallback, and share the same enrichment path with agent retries.

<!-- gh-comment-id:4969219708 --> @SpicyMarinara commented on GitHub (Jul 14, 2026): Claimed by @SpicyMarinara. Implementing the confirmed root-cause repair: include card RPG stats in tracker lore, recover returning characters from historical snapshots, merge omitted dynamic fields without overriding fresh values, enforce card-backed avatar/crop by stable ID with unique-name fallback, and share the same enrichment path with agent retries.
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#1951
No description provided.