[GH-ISSUE #2154] [Issue]: Game mode — legacy revelations session-summary field dropped at conclude (continuity-fact loss) #1064

Closed
opened 2026-10-21 05:26:12 +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/2154

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: minor (legacy/edge case). When a conclusion model emits continuity facts under the legacy key revelations (instead of keyDiscoveries), they are silently discarded at session conclude — they never reach next-session recaps or the Session History UI.

Expected behavior

As in main: the persistence normalizer folds a legacy revelations array into keyDiscoveries (at both persist time and stored-read time) via the dedupe pipeline.

Actual behavior

normalizeSessionSummaryPayload reads only keyDiscoveries/characterMoments/littleDetails/npcUpdates and never reads record.revelations; the built SessionSummary has no ...record spread, so revelations is dropped before persistence. The downstream defensive reads (gm-prompts.ts:113, GameSessionHistory.tsx:239) only see the already-stripped summary.

Steps to reproduce

  1. Conclude a session whose conclusion JSON puts facts under revelations: ["..."] (legacy schema) with empty keyDiscoveries.
  2. Inspect the persisted gamePreviousSessionSummaries: no revelations, and keyDiscoveries does not contain the fact.
  3. Next-session recap / Session History omits it. Main would surface it under keyDiscoveries.

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/routes/game.routes.ts:1104/:1074 -> session-summary-normalization.ts:37 (merges legacyRevelations into keyDiscoveries).
  • refactor: src/features/modes/game/api/game-api.ts:967-998 (omits record.revelations); src/engine/modes/game/state/session-summary-normalization.ts:1-6 dropped legacyRevelations. Fix: re-add legacyRevelations to the dedupe input + interface.
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2154 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: minor (legacy/edge case).** When a conclusion model emits continuity facts under the legacy key `revelations` (instead of `keyDiscoveries`), they are silently discarded at session conclude — they never reach next-session recaps or the Session History UI. ## Expected behavior As in main: the persistence normalizer folds a legacy `revelations` array into `keyDiscoveries` (at both persist time and stored-read time) via the dedupe pipeline. ## Actual behavior `normalizeSessionSummaryPayload` reads only `keyDiscoveries`/`characterMoments`/`littleDetails`/`npcUpdates` and never reads `record.revelations`; the built `SessionSummary` has no `...record` spread, so `revelations` is dropped before persistence. The downstream defensive reads (`gm-prompts.ts:113`, `GameSessionHistory.tsx:239`) only see the already-stripped summary. ## Steps to reproduce 1. Conclude a session whose conclusion JSON puts facts under `revelations: ["..."]` (legacy schema) with empty `keyDiscoveries`. 2. Inspect the persisted `gamePreviousSessionSummaries`: no `revelations`, and `keyDiscoveries` does not contain the fact. 3. Next-session recap / Session History omits it. Main would surface it under `keyDiscoveries`. ## 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/routes/game.routes.ts:1104/:1074` -> `session-summary-normalization.ts:37` (merges `legacyRevelations` into `keyDiscoveries`). - refactor: `src/features/modes/game/api/game-api.ts:967-998` (omits `record.revelations`); `src/engine/modes/game/state/session-summary-normalization.ts:1-6` dropped `legacyRevelations`. Fix: re-add `legacyRevelations` to the dedupe input + interface.
bsakaguchi 2026-10-21 05:26:12 +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#1064
No description provided.