[PR #8187] [MERGED] fix(game): keep final narration free of private planning #8145

Closed
opened 2026-10-24 04:10:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8187
Author: @SpicyMarinara
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/game-planning-narration-8185


📝 Commits (5)

  • 5e93d12 chore: begin isolated Game narration planning repair
  • 06c8343 fix(game): strip planning from final narration and safe empty replies
  • 9fc0e13 fix(game): preserve explicitly GM-directed planning answers
  • 63da02d fix(game): keep dice rewrites aligned with GM-directed answers
  • 815a6e4 Merge remote-tracking branch 'origin/staging' into fix/game-planning-narration-8185

📊 Changes

4 files changed (+207 additions, -7 deletions)

View changed files

📝 packages/server/src/routes/generate.routes.ts (+10 -3)
📝 packages/server/src/services/game/gm-planning.ts (+3 -3)
➕ scripts/regressions/game-final-planning.regression.ts (+188 -0)
📝 scripts/regressions/game-gm-turn-roller-party.regression.ts (+6 -1)

📄 Description

Linked issue

Closes #8185

Why this change

Game replies can display leading Plan: paragraphs, including after a reply is rewritten using real dice results. A reply containing only planning also falls back to saving that planning as narration.

What changed

  • A Game reply containing only labeled planning now uses the existing empty-response error instead of saving that plan as scene text.
  • Keep recognized leading planning with the turn's thinking for both the first reply and the post-roll correction.
  • Preserve normal prose, explicit out-of-character answers addressed to the GM, Roleplay and impersonation. A GM-directed answer remains an answer when dice results require a correction.
  • Integrate the merged payment fix from #8184, preserving its partial purchase receipt, all already-applied costs, genuinely additional consequences and existing command execution.

Validation

Runnable fixture, before/after logs, exact source hashes and local review. All 12 published raw files were verified byte-for-byte.

  • Final integrated 815a6e47d against actual staging 28b68a26c: server noEmit, 13 actual planning-route controls, all six actual payment-route groups, main prompt regression, GM turn/roller-party, scoped format and diff checks pass. Both real-route suites ran on the same combined source.

  • Earlier immutable 63da02d4c: full pnpm check, seven shell smokes and three compiled startup cases pass. One pre-existing HomeProfessorMari hook-dependency warning remains. The later manual integration is limited to the shared post-roll prompt literal on an independently tested staging base; focused integration proof covers it.

  • Two legitimate local-review findings were reproduced through actual routing/outbound requests and fixed. The final four-file staging integration review completed with zero findings.

  • Retained environmental attempts: one full build stopped on ENOSPC; sparse-checkout runs stopped on missing canonical docs before successful unchanged replays. No source or assertions were changed for those replays.

  • Manually verify a live Game model reply that begins with planning followed by a scene.

  • Manually verify a direct question to the GM, including one requiring real dice results.

  • Build and run a container with the final branch. The local Docker daemon socket was unavailable.

Proof boundary

Deterministic fixtures use actual Fastify routing and disposable Engine storage with local model stubs. They cover finalized SSE content/replacement and saved narration; the existing transient provider-token stream is unchanged. Browser startup checks use emulation. No paid/live model or physical-device validation is claimed.

Docs and release impact

No release version or changelog changes. This restores existing Game narration behavior without changing setup or a public API.


🔄 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/8187 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/game-planning-narration-8185` --- ### 📝 Commits (5) - [`5e93d12`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5e93d12016d111df7c2c0e04346baf9a34d96d52) chore: begin isolated Game narration planning repair - [`06c8343`](https://github.com/Pasta-Devs/Marinara-Engine/commit/06c834318c1d98fbdedfd42e1898a8eef06bf983) fix(game): strip planning from final narration and safe empty replies - [`9fc0e13`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9fc0e13d54b68d25f4435472ef58da90ee025da3) fix(game): preserve explicitly GM-directed planning answers - [`63da02d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/63da02d4c40c7ebb88c59975828657dbabbd299f) fix(game): keep dice rewrites aligned with GM-directed answers - [`815a6e4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/815a6e47d2ecba294509426a320750b02101aec2) Merge remote-tracking branch 'origin/staging' into fix/game-planning-narration-8185 ### 📊 Changes **4 files changed** (+207 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate.routes.ts` (+10 -3) 📝 `packages/server/src/services/game/gm-planning.ts` (+3 -3) ➕ `scripts/regressions/game-final-planning.regression.ts` (+188 -0) 📝 `scripts/regressions/game-gm-turn-roller-party.regression.ts` (+6 -1) </details> ### 📄 Description ## Linked issue Closes #8185 ## Why this change Game replies can display leading `Plan:` paragraphs, including after a reply is rewritten using real dice results. A reply containing only planning also falls back to saving that planning as narration. ## What changed - A Game reply containing only labeled planning now uses the existing empty-response error instead of saving that plan as scene text. - Keep recognized leading planning with the turn's thinking for both the first reply and the post-roll correction. - Preserve normal prose, explicit out-of-character answers addressed to the GM, Roleplay and impersonation. A GM-directed answer remains an answer when dice results require a correction. - Integrate the merged payment fix from #8184, preserving its partial purchase receipt, all already-applied costs, genuinely additional consequences and existing command execution. ## Validation [Runnable fixture, before/after logs, exact source hashes and local review](https://gist.github.com/SpicyMarinara/92a3ac2c1c13d3742f791bb92a26e77e). All 12 published raw files were verified byte-for-byte. - Final integrated `815a6e47d` against actual staging `28b68a26c`: server noEmit, 13 actual planning-route controls, all six actual payment-route groups, main prompt regression, GM turn/roller-party, scoped format and diff checks pass. Both real-route suites ran on the same combined source. - Earlier immutable `63da02d4c`: full `pnpm check`, seven shell smokes and three compiled startup cases pass. One pre-existing HomeProfessorMari hook-dependency warning remains. The later manual integration is limited to the shared post-roll prompt literal on an independently tested staging base; focused integration proof covers it. - Two legitimate local-review findings were reproduced through actual routing/outbound requests and fixed. The final four-file staging integration review completed with zero findings. - Retained environmental attempts: one full build stopped on ENOSPC; sparse-checkout runs stopped on missing canonical docs before successful unchanged replays. No source or assertions were changed for those replays. - [ ] Manually verify a live Game model reply that begins with planning followed by a scene. - [ ] Manually verify a direct question to the GM, including one requiring real dice results. - [ ] Build and run a container with the final branch. The local Docker daemon socket was unavailable. ### Proof boundary Deterministic fixtures use actual Fastify routing and disposable Engine storage with local model stubs. They cover finalized SSE content/replacement and saved narration; the existing transient provider-token stream is unchanged. Browser startup checks use emulation. No paid/live model or physical-device validation is claimed. ## Docs and release impact No release version or changelog changes. This restores existing Game narration behavior without changing setup or a public API. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi changed title from [PR #8187] fix(game): keep final narration free of private planning to [PR #8187] [MERGED] fix(game): keep final narration free of private planning 2026-10-25 04:04:25 +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#8145
No description provided.