[GH-ISSUE #2148] [Issue]: Game mode — GM party-morale context downgraded to a bare number (tier + directive dropped) #1058

Closed
opened 2026-10-21 05:25:59 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2148

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: minor. The GM prompt now receives party morale as a single plain line (Current party morale: N / 100.) instead of main's tier-aware <party_morale> block with a tier label and a narrative directive. Narration no longer adapts tone to morale beyond the raw number.

Expected behavior

As in main: formatMoraleContext emits <party_morale>\nMorale: <tier> (<value>/100)\n<tier directive>\n</party_morale> (e.g. broken -> "The party is demoralized. Fear and despair hang heavy. Arguments may break out.").

Actual behavior

prompt-assembly.ts:705-706 builds Current party morale: <value> / 100. with no tier name or directive. formatMoraleContext, MoraleState, and the tier descriptions table were dropped from the refactor morale service (grep party_morale/formatMoraleContext = 0).

Steps to reproduce

  1. Drive party morale to an extreme tier (e.g. "broken").
  2. Inspect the assembled GM prompt. Main: a <party_morale> block with tier + directive. Refactor: only Current party morale: X / 100.

Impact area

  • Game mode
  • React-free engine behavior, contracts, agents, or capability ports

Environment

  • Branch or commit: refactor @ 14894608
  • Run mode: Tauri desktop
  • Compared against: main @ c49f1d95 (legacy web app)

Regression notes

Worked in the legacy web app.

  • main: packages/server/src/services/game/morale.service.ts:104-115 (formatMoraleContext), wired at generate.routes.ts:4821-4824 -> gm-prompts.ts:493-494.
  • refactor: src/engine/generation/prompt-assembly.ts:705-706 (bare line); src/engine/modes/game/mechanics/morale.service.ts no longer defines formatMoraleContext.
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2148 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: minor.** The GM prompt now receives party morale as a single plain line (`Current party morale: N / 100.`) instead of main's tier-aware `<party_morale>` block with a tier label and a narrative directive. Narration no longer adapts tone to morale beyond the raw number. ## Expected behavior As in main: `formatMoraleContext` emits `<party_morale>\nMorale: <tier> (<value>/100)\n<tier directive>\n</party_morale>` (e.g. broken -> "The party is demoralized. Fear and despair hang heavy. Arguments may break out."). ## Actual behavior `prompt-assembly.ts:705-706` builds `Current party morale: <value> / 100.` with no tier name or directive. `formatMoraleContext`, `MoraleState`, and the tier descriptions table were dropped from the refactor morale service (grep `party_morale`/`formatMoraleContext` = 0). ## Steps to reproduce 1. Drive party morale to an extreme tier (e.g. "broken"). 2. Inspect the assembled GM prompt. Main: a `<party_morale>` block with tier + directive. Refactor: only `Current party morale: X / 100.` ## Impact area - [x] Game mode - [x] React-free engine behavior, contracts, agents, or capability ports ## Environment - Branch or commit: `refactor` @ `14894608` - Run mode: Tauri desktop - Compared against: `main` @ `c49f1d95` (legacy web app) ## Regression notes Worked in the legacy web app. - main: `packages/server/src/services/game/morale.service.ts:104-115` (`formatMoraleContext`), wired at `generate.routes.ts:4821-4824` -> `gm-prompts.ts:493-494`. - refactor: `src/engine/generation/prompt-assembly.ts:705-706` (bare line); `src/engine/modes/game/mechanics/morale.service.ts` no longer defines `formatMoraleContext`.
bsakaguchi 2026-10-21 05:25:59 +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#1058
No description provided.