[PR #8525] [MERGED] Multiplayer: the Game Master never voices a seated player's character #8651

Closed
opened 2026-11-07 16:46:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/room-gm-guest-voice


📝 Commits (1)

  • 1549a7d fix(multiplayer): the Game Master never voices a seated player's character

📊 Changes

3 files changed (+51 additions, -4 deletions)

View changed files

📝 packages/server/src/services/generation/game-gm-prompt-runtime.ts (+2 -1)
📝 packages/server/src/services/multiplayer/generation-policy.ts (+24 -2)
📝 scripts/regressions/multiplayer-generation-policy.regression.ts (+25 -1)

📄 Description

Linked issue

Follows #6790 (secure multiplayer). This is a fix from a two-player Game room playtest; no separate issue was opened.

Why this change

In a shared Game, the Game Master wrote dialogue and actions for a seated guest's hero: [Guest Hero] [main] [thinking]: "Look at the sheer number of armed guards…", both in the opening and after a fight. The GM prompt listed every room guest among the party it "also plays", and that contradicted the room roster's rule.

What changed

  • Room guests are no longer added to the party names the Game Master plays. Their cards still appear, marked "Human-controlled persona".
  • The room roster names each player's bound game character when it differs from their persona ("Alex controls Rowan and plays the game character Guest Hero").
  • The roster lists everyone played by a person and forbids lines labelled with those names.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Every multiplayer-* regression passes, and multiplayer-generation-policy has the new roster and prompt checks. So do the other regressions that read the GM prompt runtime or the generation policy (prompt, decision-conditionals, game-ruleset-gm-reference and the world-kit ones). persona-card-dialogue can't load here because mmd-parser isn't installed in this checkout; this change doesn't touch it. pnpm check wasn't run in full.

Manual verification notes

Checked in a two-machine room playtest, on the same change in our working branch: with a guest seated, the opening narration and the narration after a fight gave no lines to the guest's Guest Hero.

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/8525 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `fix/room-gm-guest-voice` --- ### 📝 Commits (1) - [`1549a7d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1549a7d0e8812c19876defcb500178318be248d2) fix(multiplayer): the Game Master never voices a seated player's character ### 📊 Changes **3 files changed** (+51 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/generation/game-gm-prompt-runtime.ts` (+2 -1) 📝 `packages/server/src/services/multiplayer/generation-policy.ts` (+24 -2) 📝 `scripts/regressions/multiplayer-generation-policy.regression.ts` (+25 -1) </details> ### 📄 Description ## Linked issue Follows #6790 (secure multiplayer). This is a fix from a two-player Game room playtest; no separate issue was opened. ## Why this change In a shared Game, the Game Master wrote dialogue and actions for a seated guest's hero: `[Guest Hero] [main] [thinking]: "Look at the sheer number of armed guards…"`, both in the opening and after a fight. The GM prompt listed every room guest among the party it "also plays", and that contradicted the room roster's rule. ## What changed - Room guests are no longer added to the party names the Game Master plays. Their cards still appear, marked "Human-controlled persona". - The room roster names each player's bound game character when it differs from their persona ("Alex controls Rowan and plays the game character Guest Hero"). - The roster lists everyone played by a person and forbids lines labelled with those names. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` Every `multiplayer-*` regression passes, and `multiplayer-generation-policy` has the new roster and prompt checks. So do the other regressions that read the GM prompt runtime or the generation policy (prompt, decision-conditionals, game-ruleset-gm-reference and the world-kit ones). `persona-card-dialogue` can't load here because `mmd-parser` isn't installed in this checkout; this change doesn't touch it. `pnpm check` wasn't run in full. ### Manual verification notes Checked in a two-machine room playtest, on the same change in our working branch: with a guest seated, the opening narration and the narration after a fight gave no lines to the guest's Guest Hero. ## 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-11-07 16:46:15 +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#8651
No description provided.