[GH-ISSUE #1292] [Issue]: RPG stats (persona/character attributes like STR/INT) are not included in the Game Mode GM model context #638

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

Originally created by @GetBeholder on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1292

Originally assigned to: @SpicyMarinara on GitHub.

Summary

RPG stats (attributes like STR, INT) that can be toggled on in the
persona/character menu do not appear to reach the GM model in Game Mode. Other
character-sheet content (abilities, strengths, weaknesses) is included, but the
attributes are not — so the GM cannot report, for example, a persona's INT score.
The reporter verified this across multiple newly created games and models.

Expected behavior

When RPG stats are enabled for a persona/character, their attributes should be
included in the model context so the GM can take them into account (e.g. correctly
report the party's INT). A maintainer (Marinara [MARI]) stated the stats are sent
to the model alongside character card info in both Roleplay and Game modes when
enabled — which is the intended behavior.

Actual behavior

The GM consistently cannot report a persona's attribute values (e.g. INT),
indicating the RPG attributes are omitted from the GM prompt even though
abilities/strengths/weaknesses are present. After patching it locally, the
reporter's GM became aware of the party's stats.

Steps to reproduce

  1. Create a persona/character and enable RPG stats with attributes (e.g. STR, INT).
  2. Start a new Game Mode session using that persona.
  3. Ask the GM about a specific attribute value (e.g. "what is my INT?").
  4. Observe the GM does not know the attribute value — the stats aren't in its
    context. (Reporter repeated this with different new games and models.)

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: not stated in this report; the reporter's tree still contains packages/server/src/routes/generate.routes.ts (the older Node backend, not present on refactor) — see Regression notes
  • Run mode: not specified
  • OS + version: not specified
  • Node + pnpm versions: not provided
  • Rust version, if relevant: not provided
  • Remote Runtime URL configured? not specified
  • Provider, model, or integration, if relevant: tested with multiple models (not specified)

Logs, screenshots, or video

The reporter attached an image (a code screenshot from inspecting the source). It
was referenced as "Image" but not provided here as a file or URL, so it is not
attached.

Regression notes

The reporter is running a tree that still contains
packages/server/src/routes/generate.routes.ts (the older Node backend), which
does not exist on the current refactor branch. Their self-fix targeted that
file, so it does not map directly to refactor; the refactor equivalent must be
verified (see triage pointer).

Additional context

Source: forum thread by Draugnim (1-Star), 5/24/26 7:17 AM (re-posted from another
forum), with input from Professor Xel and a response from maintainer Marinara
[MARI].

  • Professor Xel's read: RPG stats are stored and used by some mechanics, but the
    main GM prompt appears to omit them when converting the Game Mode character
    sheet into model context, even though abilities/strengths/weaknesses are
    included; possibly to avoid the GM doing math the agents handle — unconfirmed.
  • Marinara [MARI] (Chef): "They are sent to the model, they're just sent together
    with character card info... in both Roleplay and Game modes if you enable them."
    This conflicts with the reporter's repeated tests and self-fix, suggesting a
    version-specific bug or a path where the attributes are dropped.
  • Reporter's self-fix: adjusting packages/server/src/routes/generate.routes.ts
    made the GM aware of party stats. (That file is the old Node backend and is not
    present on refactor.)

Triage pointer for the refactor branch (from a scan, not from the reporter): RPG
attributes live in character.rpgStats.attributes ({ name, value }[]) per
src/engine/contracts/types/character.ts (L51-62) — a structured field separate
from the free-text description/extensions. The persona/character card text used in
prompts is built from description + active extensions
(getCharacterDescriptionWithExtensions,
src/engine/generation-core/prompt/character-description-extensions.ts), which
does not include rpgStats.attributes. The Game Mode GM prompt
(src/engine/modes/game/prompts/gm-prompts.ts) includes the "Full player persona
card", a statsSnapshot, and stat_block HUD widgets, but it is unclear whether
the persona's toggled rpgStats.attributes are carried into the GM context
through any of those. This should be verified on refactor: if
rpgStats.attributes are not serialized into the card text or the game prompt,
the same omission the reporter saw applies here. Because the card serialization is
shared, Roleplay mode may be affected too (per Mari, both modes should include
enabled stats).

Template check

Please uncheck 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 @GetBeholder on GitHub (May 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1292 Originally assigned to: @SpicyMarinara on GitHub. ## Summary RPG stats (attributes like STR, INT) that can be toggled on in the persona/character menu do not appear to reach the GM model in Game Mode. Other character-sheet content (abilities, strengths, weaknesses) is included, but the attributes are not — so the GM cannot report, for example, a persona's INT score. The reporter verified this across multiple newly created games and models. ## Expected behavior When RPG stats are enabled for a persona/character, their attributes should be included in the model context so the GM can take them into account (e.g. correctly report the party's INT). A maintainer (Marinara [MARI]) stated the stats are sent to the model alongside character card info in both Roleplay and Game modes when enabled — which is the intended behavior. ## Actual behavior The GM consistently cannot report a persona's attribute values (e.g. INT), indicating the RPG attributes are omitted from the GM prompt even though abilities/strengths/weaknesses are present. After patching it locally, the reporter's GM became aware of the party's stats. ## Steps to reproduce 1. Create a persona/character and enable RPG stats with attributes (e.g. STR, INT). 2. Start a new Game Mode session using that persona. 3. Ask the GM about a specific attribute value (e.g. "what is my INT?"). 4. Observe the GM does not know the attribute value — the stats aren't in its context. (Reporter repeated this with different new games and models.) ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [x] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: not stated in this report; the reporter's tree still contains `packages/server/src/routes/generate.routes.ts` (the older Node backend, not present on `refactor`) — see Regression notes - Run mode: not specified - OS + version: not specified - Node + pnpm versions: not provided - Rust version, if relevant: not provided - Remote Runtime URL configured? not specified - Provider, model, or integration, if relevant: tested with multiple models (not specified) ## Logs, screenshots, or video The reporter attached an image (a code screenshot from inspecting the source). It was referenced as "Image" but not provided here as a file or URL, so it is not attached. ## Regression notes The reporter is running a tree that still contains `packages/server/src/routes/generate.routes.ts` (the older Node backend), which does not exist on the current `refactor` branch. Their self-fix targeted that file, so it does not map directly to `refactor`; the refactor equivalent must be verified (see triage pointer). ## Additional context Source: forum thread by Draugnim (1-Star), 5/24/26 7:17 AM (re-posted from another forum), with input from Professor Xel and a response from maintainer Marinara [MARI]. - Professor Xel's read: RPG stats are stored and used by some mechanics, but the main GM prompt appears to omit them when converting the Game Mode character sheet into model context, even though abilities/strengths/weaknesses are included; possibly to avoid the GM doing math the agents handle — unconfirmed. - Marinara [MARI] (Chef): "They are sent to the model, they're just sent together with character card info... in both Roleplay and Game modes if you enable them." This conflicts with the reporter's repeated tests and self-fix, suggesting a version-specific bug or a path where the attributes are dropped. - Reporter's self-fix: adjusting `packages/server/src/routes/generate.routes.ts` made the GM aware of party stats. (That file is the old Node backend and is not present on `refactor`.) Triage pointer for the refactor branch (from a scan, not from the reporter): RPG attributes live in `character.rpgStats.attributes` (`{ name, value }[]`) per `src/engine/contracts/types/character.ts` (L51-62) — a structured field separate from the free-text description/extensions. The persona/character card text used in prompts is built from description + active extensions (`getCharacterDescriptionWithExtensions`, `src/engine/generation-core/prompt/character-description-extensions.ts`), which does not include `rpgStats.attributes`. The Game Mode GM prompt (`src/engine/modes/game/prompts/gm-prompts.ts`) includes the "Full player persona card", a `statsSnapshot`, and `stat_block` HUD widgets, but it is unclear whether the persona's toggled `rpgStats.attributes` are carried into the GM context through any of those. This should be verified on `refactor`: if `rpgStats.attributes` are not serialized into the card text or the game prompt, the same omission the reporter saw applies here. Because the card serialization is shared, Roleplay mode may be affected too (per Mari, both modes should include enabled stats). ## Template check Please uncheck 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-20 17:31:06 +07:00
  • closed this issue
  • added the
    shared
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Fixed on refactor in 8058f66dd4: Game Mode prompt assembly now includes RPG attributes and HP from persona/character game cards in the GM context. Added focused Vitest coverage and ran pnpm check.

<!-- gh-comment-id:4555718481 --> @SpicyMarinara commented on GitHub (May 27, 2026): Fixed on refactor in 8058f66dd4affb1e74e4bdbce3b7d4580554fb9b: Game Mode prompt assembly now includes RPG attributes and HP from persona/character game cards in the GM context. Added focused Vitest coverage and ran pnpm check.
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#638
No description provided.