[PR #434] [MERGED] docs(game-mode): clarify HUD widget state crosses Scene Analysis boundary #4620

Closed
opened 2026-10-22 04:09:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/434
Author: @cha1latte
Created: 5/5/2026
Status: ✅ Merged
Merged: 5/5/2026
Merged by: @cha1latte

Base: main ← Head: docs/gm-scene-analysis-widget-clarification


📝 Commits (1)

  • 72ee045 docs(game-mode): clarify HUD widget state crosses Scene Analysis boundary

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 docs/GAME_MODE.md (+3 -1)

📄 Description

Why this change

  • The Scene Analysis section in docs/GAME_MODE.md says the main GM "does not see what the sidecar produces." That's true for backgrounds, music cues, and sprite expressions — but not for HUD widget values, which are persisted to game state and re-injected into every subsequent GM prompt.
  • Users designing widgets like a 0–100 "Kingdom Wealth" gauge can't tell from the docs whether the GM model is aware of widget changes Scene Analysis applied. The current wording suggests it isn't, when in fact it is.

What changed

  • docs/GAME_MODE.md — split the "GM doesn't see sidecar output" sentence into the general rule + a HUD-widget exception, with a Kingdom Wealth example showing how Scene Analysis updates flow into the next turn's GM prompt via persistent state.

Validation

  • pnpm check passes locally
  • Above manual verification completed (describe below)

Manual verification notes

  • Docs-only change; no runtime behavior modified.
  • Verify rendered Markdown reads cleanly on GitHub (link to #phase-2-gameplay-turn-by-turn anchor resolves, the new paragraph sits naturally between the bullet list and the local-sidecar paragraph).
  • Confirm the technical claim against the code: buildWidgetSummaryLines in packages/server/src/services/game/gm-prompts.ts reads widget.config values into the per-turn GM prompt regardless of the hasSceneModel flag, and Scene Analysis writes to that same widget.config state.

UI evidence (if applicable)

N/A — docs-only.


🔄 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/434 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/5/2026 **Status:** ✅ Merged **Merged:** 5/5/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `docs/gm-scene-analysis-widget-clarification` --- ### 📝 Commits (1) - [`72ee045`](https://github.com/Pasta-Devs/Marinara-Engine/commit/72ee045c22c9c22006cf2a12fc4d78b9ac485089) docs(game-mode): clarify HUD widget state crosses Scene Analysis boundary ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/GAME_MODE.md` (+3 -1) </details> ### 📄 Description ## Why this change - The Scene Analysis section in `docs/GAME_MODE.md` says the main GM "does **not** see what the sidecar produces." That's true for backgrounds, music cues, and sprite expressions — but not for HUD widget values, which are persisted to game state and re-injected into every subsequent GM prompt. - Users designing widgets like a 0–100 "Kingdom Wealth" gauge can't tell from the docs whether the GM model is aware of widget changes Scene Analysis applied. The current wording suggests it isn't, when in fact it is. ## What changed - `docs/GAME_MODE.md` — split the "GM doesn't see sidecar output" sentence into the general rule + a HUD-widget exception, with a Kingdom Wealth example showing how Scene Analysis updates flow into the next turn's GM prompt via persistent state. ## Validation - [x] `pnpm check` passes locally - [x] Above manual verification completed (describe below) ### Manual verification notes - Docs-only change; no runtime behavior modified. - Verify rendered Markdown reads cleanly on GitHub (link to `#phase-2-gameplay-turn-by-turn` anchor resolves, the new paragraph sits naturally between the bullet list and the local-sidecar paragraph). - Confirm the technical claim against the code: `buildWidgetSummaryLines` in `packages/server/src/services/game/gm-prompts.ts` reads `widget.config` values into the per-turn GM prompt regardless of the `hasSceneModel` flag, and Scene Analysis writes to that same `widget.config` state. ## UI evidence (if applicable) N/A — docs-only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:09:13 +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#4620
No description provided.