[PR #8331] [MERGED] fix(game): one bag is the whole party's, and nobody makes what their sheet does not give #8303

Closed
opened 2026-10-27 06:07:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8331
Author: @kolacheee
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @kolacheee

Base: staging ← Head: claude/project-thread-r412n9


📝 Commits (2)

  • a3e0814 fix(game): one bag is the whole party's, and nobody makes what their sheet does not give
  • 1b17931 Word the ability line for any ruleset and fix its comment

📊 Changes

2 files changed (+67 additions, -0 deletions)

View changed files

📝 packages/server/src/services/game/gm-prompts.ts (+25 -0)
📝 scripts/regressions/game-ruleset-money.regression.ts (+42 -0)

📄 Description

Linked issue

Closes #8330

Why this change

  • When the party has only one bag, the GM was told whose it was but not that it is the only one. Asked for an item nobody has, models pulled it out of a companion's "pack" that doesn't exist.
  • Told there was none, Claude models then had a character make the light or fire with an ability no sheet gives them.

What changed

  • When a party has one bag, the inventory block names it as the party's one pack: PARTY PACK when the player directs the whole party, <Name>'s PACK when they have a character of their own. The block then says nobody has a bag of their own, that its purse is the party's only money, and that an item it does not list is not there, so the GM says so in the story and writes no tag.
  • With sheets shown, one more line says nobody makes light, fire or an item with an ability their sheet doesn't list, and a limited ability is spent with its [sheet:] tag.
  • A player playing alone without a party sees the inventory as before.

Validation

  • pnpm check passes locally: server tsc --noEmit and Prettier on the changed files pass. The full check was not run.
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually (described below)
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths): not applicable, no UI change
  • Above manual verification completed (described below)
  • Read and followed CONTRIBUTING.md

game-ruleset-money gains assertions for both pack headings, the purse sentence with and without money, the solo player's unchanged line, and the abilities line with and without sheets. 355 regressions matching game, gm-, party, inventory and prompt pass.

Manual verification notes

  • Real Game Mode turns on a 5e game (13 turns in), run against a copy of the data with the same wording. The models were Gemini 3.5 Flash-Lite, Claude Sonnet 5.5, Claude Haiku 5.5 and GPT-5.6 Terra. Each layout got 9 scenarios, with a blind model judge scoring every reply. The final round had 430 scored turns.
  • Asking for a torch nobody carries: replies with no invented torch and no invented fire went from 1 of 18 to 17 of 18 for Sonnet, Haiku and Terra. Haiku's one miss took a torch from a wall bracket in the scene. Flash-Lite didn't respond to the wording.
  • Real abilities still work: Cure Wounds spent its slot and healed on the sheet in every run on both layouts. An action with a consequence still led to a check or a fight in 11 of 12 replies on both layouts.
  • The judge's pooled sheet-consistency score rose from 3.42 to 3.62, format drift was flat, and the cached share of the prompt was unchanged.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8331 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `claude/project-thread-r412n9` --- ### 📝 Commits (2) - [`a3e0814`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3e0814a17e8e73fc3bb6cd141570b1a2eb37f62) fix(game): one bag is the whole party's, and nobody makes what their sheet does not give - [`1b17931`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1b17931fb2033b6f26e660d7c4343602fa99f192) Word the ability line for any ruleset and fix its comment ### 📊 Changes **2 files changed** (+67 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/game/gm-prompts.ts` (+25 -0) 📝 `scripts/regressions/game-ruleset-money.regression.ts` (+42 -0) </details> ### 📄 Description ## Linked issue Closes #8330 ## Why this change - When the party has only one bag, the GM was told whose it was but not that it is the only one. Asked for an item nobody has, models pulled it out of a companion's "pack" that doesn't exist. - Told there was none, Claude models then had a character make the light or fire with an ability no sheet gives them. ## What changed - When a party has one bag, the inventory block names it as the party's one pack: `PARTY PACK` when the player directs the whole party, `<Name>'s PACK` when they have a character of their own. The block then says nobody has a bag of their own, that its purse is the party's only money, and that an item it does not list is not there, so the GM says so in the story and writes no tag. - With sheets shown, one more line says nobody makes light, fire or an item with an ability their sheet doesn't list, and a limited ability is spent with its `[sheet:]` tag. - A player playing alone without a party sees the inventory as before. ## Validation - [ ] `pnpm check` passes locally: server `tsc --noEmit` and Prettier on the changed files pass. The full check was not run. - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually (described below) - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths): not applicable, no UI change - [x] Above manual verification completed (described below) - [x] Read and followed `CONTRIBUTING.md` `game-ruleset-money` gains assertions for both pack headings, the purse sentence with and without money, the solo player's unchanged line, and the abilities line with and without sheets. 355 regressions matching game, gm-, party, inventory and prompt pass. ### Manual verification notes - Real Game Mode turns on a 5e game (13 turns in), run against a copy of the data with the same wording. The models were Gemini 3.5 Flash-Lite, Claude Sonnet 5.5, Claude Haiku 5.5 and GPT-5.6 Terra. Each layout got 9 scenarios, with a blind model judge scoring every reply. The final round had 430 scored turns. - Asking for a torch nobody carries: replies with no invented torch and no invented fire went from 1 of 18 to 17 of 18 for Sonnet, Haiku and Terra. Haiku's one miss took a torch from a wall bracket in the scene. Flash-Lite didn't respond to the wording. - Real abilities still work: Cure Wounds spent its slot and healed on the sheet in every run on both layouts. An action with a consequence still led to a check or a fight in 11 of 12 replies on both layouts. - The judge's pooled sheet-consistency score rose from 3.42 to 3.62, format drift was flat, and the cached share of the prompt was unchanged. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:07:30 +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#8303
No description provided.