mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1292] [Issue]: RPG stats (persona/character attributes like STR/INT) are not included in the Game Mode GM model context #638
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#638
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
context. (Reporter repeated this with different new games and models.)
Impact area
Environment
packages/server/src/routes/generate.routes.ts(the older Node backend, not present onrefactor) — see Regression notesLogs, 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), whichdoes not exist on the current
refactorbranch. Their self-fix targeted thatfile, so it does not map directly to
refactor; the refactor equivalent must beverified (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].
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.
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.
packages/server/src/routes/generate.routes.tsmade 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 }[]) persrc/engine/contracts/types/character.ts(L51-62) — a structured field separatefrom 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), whichdoes not include
rpgStats.attributes. The Game Mode GM prompt(
src/engine/modes/game/prompts/gm-prompts.ts) includes the "Full player personacard", a
statsSnapshot, andstat_blockHUD widgets, but it is unclear whetherthe persona's toggled
rpgStats.attributesare carried into the GM contextthrough any of those. This should be verified on
refactor: ifrpgStats.attributesare 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:
@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.