[GH-ISSUE #7465] [Issue]: Game Mode: empty purses, runaway tool rounds, sheet dumps in GM prompts, and flaky game e2e specs #4159

Closed
opened 2026-10-21 06:11:57 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7465

Originally assigned to: @kolacheee on GitHub.

Summary

A tracking issue for a set of Game Mode fixes that ship together:

  • In a game with money, an empty purse was left out of the Game Master's prompt, so it could narrate a purchase the Engine then refused.
  • A Game Mode turn and an agent run used the general MAX_TOOL_ROUNDS of 100, so a model that kept asking for a roll (for example through a proxy that loses tool results) could make up to a hundred paid requests in one turn. The loop's last request, sent without tools, also used a shape that native Anthropic and Gemini connections cannot carry.
  • The end-of-session, recruit and character-sheet prompts pasted each party member's whole ruleset sheet, which the model never edits there.
  • Some end-to-end specs failed for reasons of their own: a coin spec raced its two toasts, the tool controls spec ran short of time for its reloads, headless Chromium's first audio device could stall a page for many seconds, the NPC portrait spec waited less after a reload than on first load, and the storage writer lock test missed the watcher under pnpm -s.

Expected behavior

The Game Master is told when a purse is empty; a Game Mode turn makes a handful of tool rounds at most and its final request is valid on every provider; GM prompts carry only what the model needs; the game e2e specs pass on their own.

Actual behavior

See the summary.

Steps to reproduce

  1. Start a Game Mode game with a ruleset that has coins, with an empty bag, and ask to buy something: the Game Master narrates the purchase and the Engine refuses it.
  2. Point a game at a model or proxy that keeps calling the dice tool: one turn makes up to 100 requests.
  3. Run the game e2e specs on a Linux machine: toast checks race the audio stall.

Environment

  • Marinara Engine version: staging (2.5.0)
  • Install type: source
  • OS + version: Linux
  • Browser or app shell: Chromium

Logs, screenshots, or video

Not applicable.

Additional context

Fixed together in one PR, linked below.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Oct 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7465 Originally assigned to: @kolacheee on GitHub. ## Summary A tracking issue for a set of Game Mode fixes that ship together: - In a game with money, an empty purse was left out of the Game Master's prompt, so it could narrate a purchase the Engine then refused. - A Game Mode turn and an agent run used the general `MAX_TOOL_ROUNDS` of 100, so a model that kept asking for a roll (for example through a proxy that loses tool results) could make up to a hundred paid requests in one turn. The loop's last request, sent without tools, also used a shape that native Anthropic and Gemini connections cannot carry. - The end-of-session, recruit and character-sheet prompts pasted each party member's whole ruleset sheet, which the model never edits there. - Some end-to-end specs failed for reasons of their own: a coin spec raced its two toasts, the tool controls spec ran short of time for its reloads, headless Chromium's first audio device could stall a page for many seconds, the NPC portrait spec waited less after a reload than on first load, and the storage writer lock test missed the watcher under `pnpm -s`. ## Expected behavior The Game Master is told when a purse is empty; a Game Mode turn makes a handful of tool rounds at most and its final request is valid on every provider; GM prompts carry only what the model needs; the game e2e specs pass on their own. ## Actual behavior See the summary. ## Steps to reproduce 1. Start a Game Mode game with a ruleset that has coins, with an empty bag, and ask to buy something: the Game Master narrates the purchase and the Engine refuses it. 2. Point a game at a model or proxy that keeps calling the dice tool: one turn makes up to 100 requests. 3. Run the game e2e specs on a Linux machine: toast checks race the audio stall. ## Environment - Marinara Engine version: staging (2.5.0) - Install type: source - OS + version: Linux - Browser or app shell: Chromium ## Logs, screenshots, or video Not applicable. ## Additional context Fixed together in one PR, linked below. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:11:57 +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#4159
No description provided.