[PR #168] [MERGED] fix: purge retired visual_novel mode from captured sources and feature runtimes #838

Closed
opened 2026-10-20 17:31:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/168
Author: @kolacheee
Created: 7/31/2026
Status: ✅ Merged
Merged: 7/31/2026
Merged by: @kolacheee

Base: staging ← Head: fix/167-visual-novel-runtime-residue


📝 Commits (2)

  • 6430f80 fix: purge retired visual_novel mode from captured sources and feature runtimes
  • 2e7c4a3 fix: support legacy visual_novel chats in the World Maps home panel

📊 Changes

57 files changed (+923 additions, -807 deletions)

View changed files

➕ artifacts/chess-1.0.4.zip (+0 -0)
➕ artifacts/conversation-calls-1.0.7.zip (+0 -0)
➕ artifacts/eightball-1.0.4.zip (+0 -0)
➕ artifacts/hierarchical-maps-1.2.4.zip (+0 -0)
➕ artifacts/long-term-memory-1.0.5.zip (+0 -0)
➕ artifacts/poker-1.0.4.zip (+0 -0)
➕ artifacts/rock-paper-scissors-1.0.4.zip (+0 -0)
➕ artifacts/tic-tac-toe-1.0.4.zip (+0 -0)
➕ artifacts/uno-1.0.4.zip (+0 -0)
📝 catalog/catalog.json (+61 -61)
📝 catalog/v2/catalog.json (+61 -61)
📝 catalog/v3/catalog.json (+37 -37)
📝 packages/chess/client.js (+29 -29)
📝 packages/chess/manifest.json (+3 -3)
📝 packages/conversation-calls/client.js (+29 -29)
📝 packages/conversation-calls/manifest.json (+5 -5)
📝 packages/conversation-calls/server.mjs (+149 -149)
📝 packages/eightball/client.js (+29 -29)
📝 packages/eightball/manifest.json (+3 -3)
📝 packages/hierarchical-maps/client.js (+46 -46)

...and 37 more files

📄 Description

Closes #167.

Why this change

Follow-up to #165/#166. The retired visual_novel chat mode was still baked into the catalog below the modeAllowlist layer: in the captured Engine sources (sources/engine/), the package-owned source trees of the two schemaVersion-2 features, and the compiled client.js/server.mjs runtimes of all nine feature packages. Nothing was broken today, but any future rebuild from those stale sources could quietly reintroduce the retired mode into shipped metadata — reopening exactly the startup crash #166 closed.

What changed

Captured sources (sources/engine/):

  • Refreshed the chat/chat-preset DB schemas and the chat.schema.js / capability-package.schema.js Zod schemas from the current post-retirement Engine (import-compatible 1:1 file refreshes — the capture mechanism, applied by hand).
  • Applied the Engine's own #4369 retirement edits to three captured files whose fresh counterparts have since diverged in imports (chat.store.ts Exclude<> cleanup, generate-route-utils.ts roleplay predicate, game-asset-generation.ts sourceMode union) — mirroring the merged Engine changes line-for-line rather than pulling in unrelated new code.
  • Removed the visual_novel entries from the captured chat-mode constants (chat-modes.js, chat-mode-capabilities.js, including the now-orphaned VISUAL_NOVEL_DEFAULT_AGENT_IDS) and from the seven captured agent manifests, aligning them with the #166 agents.json fix.

Package-owned source:

  • long-term-memory: removed visual_novel from the LTM mode enum, extraction-mode lists, per-mode defaults (prompts/streams/descriptions/recall style), mode labels, the extraction-template picker, the sources-workspace filter, and the two locale keys. Legacy vaults stay loadable: ltmModeSchema now folds the retired value to roleplay before the enum parse, the settings normalizer folds visual_novel keys in activePromptTemplateIdsByMode/systemPromptsByMode into roleplay, and the summary normalizer keeps accepting it as roleplay-family — the same approach as the Engine's retired-chat-mode migration.
  • hierarchical-maps: the mode-label helper now shows legacy visual_novel chats as "Roleplay".

Rebuilt all nine feature runtimes with patch bumps: chess/eightball/poker/rock-paper-scissors/tic-tac-toe/uno 1.0.3→1.0.4, conversation-calls 1.0.6→1.0.7, hierarchical-maps 1.2.3→1.2.4, long-term-memory 1.0.4→1.0.5.

What deliberately remains (and why grep is not zero)

The only visual_novel references left anywhere are legacy-tolerance folds, mirroring the Engine's own end state:

  • the Engine's modeAllowlist fold from capability-package.schema.js (refreshed verbatim, embedded in the bundles),
  • LTM's mode/settings folds and roleplay-family predicate (commented in source),
  • the maps legacy label branch (commented in source).

These are the code that handles old data — stable 2.3.5 Engines without the Engine-side migration can still hand these packages visual_novel values from un-migrated chats and vaults, and dropping the folds would trade a cosmetic grep win for real parse failures.

Build notes

  • Rebuilt against the current Engine staging checkout. builtAgainst provenance for the schemaVersion-2 packages is preserved by the builder and validation passes.
  • chess.js@^1.4.0 no longer exists anywhere in the Engine's dependency tree (it was dropped when turn-games moved to this catalog), so the chess server bundle was built with a scratch-installed chess.js@1.4.0. This means the chess package is currently not rebuildable from a clean Engine + Agents checkout without manually providing that dependency — worth deciding whether to vendor or document it (happy to file a follow-up).
  • This Windows build environment lacks Info-ZIP zip and cannot spawn pnpm from Node, so the builders' zip step ran through Python's zipfile and pnpm exec esbuild was invoked as the Engine's esbuild directly (same binary, same flags, plus NODE_PATH covering the pnpm workspace node_modules). All artifacts pass validate-catalog (hashes, sizes, zip contents, generated-JS syntax).

Validation

  • node scripts/test-catalog-lanes.mjs — passes
  • node scripts/validate-catalog.mjs — passes (31 packages, v2=31, v3=6; legacy=v2)
  • git diff --check — clean

Summary by CodeRabbit

  • New Features

    • Updated package releases for games, Calls, Long-Term Memory, and World Maps.
    • Refreshed package catalogs and downloadable artifact information.
  • Bug Fixes

    • Retired Visual Novel mode from Long-Term Memory configuration and interface options.
    • Existing Visual Novel data is now recognized as Roleplay for compatibility.
    • Updated mode labels to display “Roleplay” for legacy Visual Novel conversations.

🔄 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/168 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/31/2026 **Status:** ✅ Merged **Merged:** 7/31/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `fix/167-visual-novel-runtime-residue` --- ### 📝 Commits (2) - [`6430f80`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6430f806b43f3b5a759ac563b550d0e6469eb00a) fix: purge retired visual_novel mode from captured sources and feature runtimes - [`2e7c4a3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2e7c4a30a00f349c515807049b29bb608030a87c) fix: support legacy visual_novel chats in the World Maps home panel ### 📊 Changes **57 files changed** (+923 additions, -807 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/chess-1.0.4.zip` (+0 -0) ➕ `artifacts/conversation-calls-1.0.7.zip` (+0 -0) ➕ `artifacts/eightball-1.0.4.zip` (+0 -0) ➕ `artifacts/hierarchical-maps-1.2.4.zip` (+0 -0) ➕ `artifacts/long-term-memory-1.0.5.zip` (+0 -0) ➕ `artifacts/poker-1.0.4.zip` (+0 -0) ➕ `artifacts/rock-paper-scissors-1.0.4.zip` (+0 -0) ➕ `artifacts/tic-tac-toe-1.0.4.zip` (+0 -0) ➕ `artifacts/uno-1.0.4.zip` (+0 -0) 📝 `catalog/catalog.json` (+61 -61) 📝 `catalog/v2/catalog.json` (+61 -61) 📝 `catalog/v3/catalog.json` (+37 -37) 📝 `packages/chess/client.js` (+29 -29) 📝 `packages/chess/manifest.json` (+3 -3) 📝 `packages/conversation-calls/client.js` (+29 -29) 📝 `packages/conversation-calls/manifest.json` (+5 -5) 📝 `packages/conversation-calls/server.mjs` (+149 -149) 📝 `packages/eightball/client.js` (+29 -29) 📝 `packages/eightball/manifest.json` (+3 -3) 📝 `packages/hierarchical-maps/client.js` (+46 -46) _...and 37 more files_ </details> ### 📄 Description Closes #167. ## Why this change Follow-up to #165/#166. The retired `visual_novel` chat mode was still baked into the catalog below the `modeAllowlist` layer: in the captured Engine sources (`sources/engine/`), the package-owned source trees of the two schemaVersion-2 features, and the compiled `client.js`/`server.mjs` runtimes of all nine feature packages. Nothing was broken today, but any future rebuild from those stale sources could quietly reintroduce the retired mode into shipped metadata — reopening exactly the startup crash #166 closed. ## What changed **Captured sources (`sources/engine/`):** - Refreshed the chat/chat-preset DB schemas and the `chat.schema.js` / `capability-package.schema.js` Zod schemas from the current post-retirement Engine (import-compatible 1:1 file refreshes — the capture mechanism, applied by hand). - Applied the Engine's own #4369 retirement edits to three captured files whose fresh counterparts have since diverged in imports (`chat.store.ts` `Exclude<>` cleanup, `generate-route-utils.ts` roleplay predicate, `game-asset-generation.ts` sourceMode union) — mirroring the merged Engine changes line-for-line rather than pulling in unrelated new code. - Removed the `visual_novel` entries from the captured chat-mode constants (`chat-modes.js`, `chat-mode-capabilities.js`, including the now-orphaned `VISUAL_NOVEL_DEFAULT_AGENT_IDS`) and from the seven captured agent manifests, aligning them with the #166 `agents.json` fix. **Package-owned source:** - `long-term-memory`: removed `visual_novel` from the LTM mode enum, extraction-mode lists, per-mode defaults (prompts/streams/descriptions/recall style), mode labels, the extraction-template picker, the sources-workspace filter, and the two locale keys. **Legacy vaults stay loadable:** `ltmModeSchema` now folds the retired value to `roleplay` before the enum parse, the settings normalizer folds `visual_novel` keys in `activePromptTemplateIdsByMode`/`systemPromptsByMode` into `roleplay`, and the summary normalizer keeps accepting it as roleplay-family — the same approach as the Engine's retired-chat-mode migration. - `hierarchical-maps`: the mode-label helper now shows legacy `visual_novel` chats as "Roleplay". **Rebuilt all nine feature runtimes** with patch bumps: chess/eightball/poker/rock-paper-scissors/tic-tac-toe/uno 1.0.3→1.0.4, conversation-calls 1.0.6→1.0.7, hierarchical-maps 1.2.3→1.2.4, long-term-memory 1.0.4→1.0.5. ## What deliberately remains (and why grep is not zero) The only `visual_novel` references left anywhere are **legacy-tolerance folds**, mirroring the Engine's own end state: - the Engine's `modeAllowlist` fold from `capability-package.schema.js` (refreshed verbatim, embedded in the bundles), - LTM's mode/settings folds and roleplay-family predicate (commented in source), - the maps legacy label branch (commented in source). These are the code that *handles* old data — stable 2.3.5 Engines without the Engine-side migration can still hand these packages `visual_novel` values from un-migrated chats and vaults, and dropping the folds would trade a cosmetic grep win for real parse failures. ## Build notes - Rebuilt against the current Engine `staging` checkout. `builtAgainst` provenance for the schemaVersion-2 packages is preserved by the builder and validation passes. - `chess.js@^1.4.0` no longer exists anywhere in the Engine's dependency tree (it was dropped when turn-games moved to this catalog), so the chess server bundle was built with a scratch-installed `chess.js@1.4.0`. **This means the chess package is currently not rebuildable from a clean Engine + Agents checkout without manually providing that dependency** — worth deciding whether to vendor or document it (happy to file a follow-up). - This Windows build environment lacks Info-ZIP `zip` and cannot spawn `pnpm` from Node, so the builders' `zip` step ran through Python's `zipfile` and `pnpm exec esbuild` was invoked as the Engine's esbuild directly (same binary, same flags, plus NODE_PATH covering the pnpm workspace `node_modules`). All artifacts pass `validate-catalog` (hashes, sizes, zip contents, generated-JS syntax). ## Validation - [x] `node scripts/test-catalog-lanes.mjs` — **passes** - [x] `node scripts/validate-catalog.mjs` — **passes** (`31 packages`, `v2=31, v3=6; legacy=v2`) - [x] `git diff --check` — clean <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Updated package releases for games, Calls, Long-Term Memory, and World Maps. * Refreshed package catalogs and downloadable artifact information. * **Bug Fixes** * Retired Visual Novel mode from Long-Term Memory configuration and interface options. * Existing Visual Novel data is now recognized as Roleplay for compatibility. * Updated mode labels to display “Roleplay” for legacy Visual Novel conversations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:31:29 +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#838
No description provided.