[PR #1616] [MERGED] fix(gacha-forge): paraphrase choices and narrate actions #1606

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

📋 Pull Request Information

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

Base: staging ← Head: fix/gacha-choice-semantics-1615


📝 Commits (4)

  • 34e6f04 chore: start Gacha choice semantics repair
  • e21a3f7 fix(gacha-forge): separate choice intent from performed beats
  • 80063d6 fix(gacha-forge): reject duplicate performed choices
  • 71213d7 chore(gacha-forge): include rebuilt choice repair artifact

📊 Changes

17 files changed (+361 additions, -66 deletions)

View changed files

➕ artifacts/gacha-forge-1.10.2.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/gacha-forge/CHANGELOG.md (+5 -0)
📝 packages/gacha-forge/README.md (+3 -1)
📝 packages/gacha-forge/bundle-patches.json (+13 -0)
📝 packages/gacha-forge/client.js (+9 -4)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+29 -7)
📝 packages/gacha-forge/src/player-choices-client.mjs (+7 -2)
📝 packages/gacha-forge/src/player-choices-server.mjs (+29 -7)
📝 tests/gacha-forge-player-choices.regression.mjs (+183 -7)
📝 tests/package-gacha-forge-choices.e2e.ts (+36 -9)

📄 Description

Linked issue

Closes #1615. Implementation owner: @SpicyMarinara (Codex). Separate from audio feature #1610.

Why this change

Choosing “pull your hoodie up” displayed it as a line spoken by the protagonist. Dialogue buttons also revealed the exact line before the player chose it.

What changed

  • Release Gacha Forge 1.10.2. Newly generated choice labels describe intent, such as “Apologize” or “Say that you trust them”. A separate structured selection holds the performed words or action.
  • Render physical actions as narration. Assign the protagonist speaker only to explicitly spoken selections. Legacy saved choices keep their original labels and canon, and display untyped selections as narration rather than guessing they were speech.
  • Validate performed beats, lengths and distinct options on the server. Preserve first-play canon, alternative small replays, immutable big choices and generation barriers. Future continuity includes only the selected performed beat and branch.
  • Rebuild source-owned client/server payloads, manifest, exact ZIP, all catalog lanes and release-note sidecars. Update the package README and patch notes.

Package and security validation

Package-owned client playback and server generation/normalization/continuity changed. Permissions, entrypoints, Engine compatibility (>=2.5.1 <4.0.0), capability API 1.376 and restart requirement are unchanged. This adds optional fields to existing beat documents; no host contract or storage migration is required. Choice submissions still contain IDs only; server-owned model text renders as text, not HTML.

Final ZIP: 7,891,486 bytes, SHA-256 d6ed53f8fdffe565b3c0f17533f480d822aad27e9169cdfa3c46f2b6d57eac96.

Validation

Exact logs, review dispositions, replayable lifecycle harness, desktop/mobile galleries and SHA256 manifest, all 18 published files raw-byte verified.

  • npm ci, full maintained-source npm run check (0 errors, 811 inherited warnings), catalog lanes, package locales, full catalog/archive/hash validation, release-note regression and git diff --check passed.
  • 38 shipped-module regression cases passed. Actual parser/routes plus the shipped client source section cover action/dialogue semantics, malformed output, legacy saves, selected-only continuity, replay canon, concurrent writes, permanent big choices and generation gates. The new failure reproduced before repair.
  • 18 browser cases passed across desktop Chromium, mobile Chromium and mobile WebKit emulation: intent labels, action Narration badge versus protagonist dialogue, keyboard/retry, resume/replay, locked fate, settings, long escaped labels in all five themes, and existing Units/fullscreen behavior. Six action/dialogue screenshots independently inspected without a concrete clipping/alignment defect.
  • Deterministic bundle rebuild and existing location/layout regressions passed. The real Engine package manager installed exact 1.10.1, updated to exact 1.10.2, preserved the saved world/settings through offline restart, then removed routes on uninstall/restart. Disposable storage and intercepted catalog/archive fetches; no provider or user data contacted.
  • Local CodeRabbit found one valid duplicate-selection defect. Reproduced it, added a narrow guard and regression, rebuilt and repeated affected validation. Its repair review completed with a procedural request for rebuilt artifacts/hashes and explicit security validation notes; these are supplied above. The final artifact-only commit changes no reviewed source. No zero-findings claim is made; ZIP bytes were independently validated rather than source-reviewed.

Manual verification notes

Browser scenes and UI persistence use synthetic fixtures; route tests independently exercise the actual shipped parser and revision-checked documents. These checks do not prove live-model storytelling quality or physical-device rendering. Interactive Download Agents update UI was not manually exercised; package-manager lifecycle was exercised programmatically.

  • Manually generate small and big choices with a live model and verify intent-label quality and selected action/dialogue presentation.
  • Manually verify choices on a physical phone and the interactive Download Agents update flow.

🔄 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-Agents/pull/1616 **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/gacha-choice-semantics-1615` --- ### 📝 Commits (4) - [`34e6f04`](https://github.com/Pasta-Devs/Marinara-Agents/commit/34e6f045af0b4f87ace83d25f3e4fab457779ad8) chore: start Gacha choice semantics repair - [`e21a3f7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e21a3f78b5bc417024973a389198211be0a8e124) fix(gacha-forge): separate choice intent from performed beats - [`80063d6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/80063d680e821f4dcfe47c55f1006312da2248b4) fix(gacha-forge): reject duplicate performed choices - [`71213d7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/71213d7c47a4f147a6bc7385b256364831b13451) chore(gacha-forge): include rebuilt choice repair artifact ### 📊 Changes **17 files changed** (+361 additions, -66 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.10.2.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/gacha-forge/CHANGELOG.md` (+5 -0) 📝 `packages/gacha-forge/README.md` (+3 -1) 📝 `packages/gacha-forge/bundle-patches.json` (+13 -0) 📝 `packages/gacha-forge/client.js` (+9 -4) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+29 -7) 📝 `packages/gacha-forge/src/player-choices-client.mjs` (+7 -2) 📝 `packages/gacha-forge/src/player-choices-server.mjs` (+29 -7) 📝 `tests/gacha-forge-player-choices.regression.mjs` (+183 -7) 📝 `tests/package-gacha-forge-choices.e2e.ts` (+36 -9) </details> ### 📄 Description ## Linked issue Closes #1615. Implementation owner: @SpicyMarinara (Codex). Separate from audio feature #1610. ## Why this change Choosing “pull your hoodie up” displayed it as a line spoken by the protagonist. Dialogue buttons also revealed the exact line before the player chose it. ## What changed - Release Gacha Forge **1.10.2**. Newly generated choice labels describe intent, such as “Apologize” or “Say that you trust them”. A separate structured selection holds the performed words or action. - Render physical actions as narration. Assign the protagonist speaker only to explicitly spoken selections. Legacy saved choices keep their original labels and canon, and display untyped selections as narration rather than guessing they were speech. - Validate performed beats, lengths and distinct options on the server. Preserve first-play canon, alternative small replays, immutable big choices and generation barriers. Future continuity includes only the selected performed beat and branch. - Rebuild source-owned client/server payloads, manifest, exact ZIP, all catalog lanes and release-note sidecars. Update the package README and patch notes. ## Package and security validation Package-owned client playback and server generation/normalization/continuity changed. Permissions, entrypoints, Engine compatibility (`>=2.5.1 <4.0.0`), capability API 1.376 and restart requirement are unchanged. This adds optional fields to existing beat documents; no host contract or storage migration is required. Choice submissions still contain IDs only; server-owned model text renders as text, not HTML. Final ZIP: **7,891,486 bytes**, SHA-256 `d6ed53f8fdffe565b3c0f17533f480d822aad27e9169cdfa3c46f2b6d57eac96`. ## Validation [Exact logs, review dispositions, replayable lifecycle harness, desktop/mobile galleries and SHA256 manifest](https://gist.github.com/SpicyMarinara/a9f7d7f2c5ac465bf4a860b71247c348), all 18 published files raw-byte verified. - `npm ci`, full maintained-source `npm run check` (0 errors, 811 inherited warnings), catalog lanes, package locales, full catalog/archive/hash validation, release-note regression and `git diff --check` passed. - **38 shipped-module regression cases passed.** Actual parser/routes plus the shipped client source section cover action/dialogue semantics, malformed output, legacy saves, selected-only continuity, replay canon, concurrent writes, permanent big choices and generation gates. The new failure reproduced before repair. - **18 browser cases passed** across desktop Chromium, mobile Chromium and mobile WebKit emulation: intent labels, action Narration badge versus protagonist dialogue, keyboard/retry, resume/replay, locked fate, settings, long escaped labels in all five themes, and existing Units/fullscreen behavior. Six action/dialogue screenshots independently inspected without a concrete clipping/alignment defect. - Deterministic bundle rebuild and existing location/layout regressions passed. The real Engine package manager installed exact 1.10.1, updated to exact 1.10.2, preserved the saved world/settings through offline restart, then removed routes on uninstall/restart. Disposable storage and intercepted catalog/archive fetches; no provider or user data contacted. - Local CodeRabbit found one valid duplicate-selection defect. Reproduced it, added a narrow guard and regression, rebuilt and repeated affected validation. Its repair review completed with a procedural request for rebuilt artifacts/hashes and explicit security validation notes; these are supplied above. The final artifact-only commit changes no reviewed source. No zero-findings claim is made; ZIP bytes were independently validated rather than source-reviewed. ## Manual verification notes Browser scenes and UI persistence use synthetic fixtures; route tests independently exercise the actual shipped parser and revision-checked documents. These checks do not prove live-model storytelling quality or physical-device rendering. Interactive Download Agents update UI was not manually exercised; package-manager lifecycle was exercised programmatically. - [ ] Manually generate small and big choices with a live model and verify intent-label quality and selected action/dialogue presentation. - [ ] Manually verify choices on a physical phone and the interactive Download Agents update flow. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:02:35 +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-Agents#1606
No description provided.