[PR #1956] [MERGED] Otome Hearth 0.5.3: the protagonist knows only what the story shows; canon worlds, minor characters and rest #2048

Closed
opened 2026-11-07 16:39:02 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-knowledge-setting-1955


📝 Commits (3)

  • b49e9b1 fix(otome-forge): the protagonist knows only what the story shows; canon worlds, minor characters, rest (#1955)
  • 6534c9f fix(otome-forge): a moment or the climax always has its love interest, even when a beat may not (#1955)
  • e066e4f Merge staging (0.5.2: banners follow the Heat) into 0.5.3

📊 Changes

19 files changed (+362 additions, -166 deletions)

View changed files

➕ artifacts/otome-forge-0.5.3.zip (+0 -0)
📝 catalog/preview/catalog.json (+6 -6)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+6 -6)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+6 -6)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+6 -0)
📝 packages/otome-forge/README.md (+3 -1)
📝 packages/otome-forge/manifest.json (+3 -3)
📝 packages/otome-forge/server.mjs (+104 -104)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/setup/prompts.ts (+2 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/chapters.ts (+3 -0)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/prompts.ts (+11 -0)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/writing-rules.ts (+5 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/otome-forge-chapters.regression.ts (+17 -0)
➕ tests/otome-forge-knowledge.regression.ts (+148 -0)
📝 tests/otome-forge-sfw-defaults.regression.ts (+23 -20)

📄 Description

Pull request

Linked issue

Closes #1955

Why this change

From the maintainer's playtest:

  • What she knows: on only their second talk, Dottore spoke of his segments and the protagonist knew what they were, though she is new to this world. She also knew of his motion sickness, which he never told her.
  • Rest: the main story never lets her sleep or rest.
  • Setting: a story set in an existing world (for example Teyvat from Genshin Impact) must stay that world.
  • Other people: other characters may appear, and she doesn't need to be with a love interest all the time.

The causes:

  • What she knows:
    • The planners read each love interest's whole bible, and every scene, message and note gets their card (voice, mask, tells).
    • Nothing told a prompt that these are for writing them, not what the protagonist knows. The only line about her knowledge was the card's revealed secrets.
  • Setting: the world plan asked only for "the place, its order, and what makes it strange or dangerous", and no prompt kept an existing world's canon.
  • Rest and other people: no planner mentioned time passing, minor characters, or a node without a love interest, while "The Lead is in most nodes" pulled the other way.

What changed

otome-forge 0.5.3 (staging-only).

  • Writing rules (writing-rules.ts, in every prompt that writes story or a love interest's words, and in the bible prompt):
    • The protagonist knows only what the story has shown them and what their own persona would know. A newcomer to this world knows none of its people, places, customs or terms yet.
    • A card or bible is for writing a character, never what the protagonist knows. A love interest's past, body, habits, powers and words for their world reach the protagonist only on the page, when they are told, see it or find it out. Until then the protagonist doesn't understand them, and nobody talks to them as if they do.
    • In an existing world from a game, book, film or show, its canon holds: places, peoples, powers, history and terms, never renamed, replaced or reinvented.
  • The world plan (P2, setup/prompts.ts):
    • When the premise or a love interest's card sets the story in an existing world, the setting is that world, named as it is, with its canon intact.
    • The mystery, pieces and web fit its canon.
    • Surprise me still writes an original premise.
  • The chapter planner (P5, story/prompts.ts):
    • Named minor characters (friends, family, rivals, officials, locals) get real parts.
    • A node may be the protagonist's alone or with others, with no love interest (cast [], already allowed by the plan check).
  • Time to rest (P5, P10, P11):
    • Time passes as in a life, and the protagonist eats, rests and sleeps.
    • After a night, a long day or an exhausting stretch, a node or part of one goes to rest: settling down, sleep, waking up. It may be shared or interrupted.
    • Route and repair chapters keep their love interest in every node.
  • Unchanged:
    • The shared kit, so Gacha Forge is not affected.
    • Character Stories stay private to their love interest, and dates stay a love interest and the protagonist.
  • Docs and release: the README (setup's premise line, and two lines in The story), CHANGELOG 0.5.3, and the rebuilt bundle, manifest, catalogs, notes and 0.5.3 zip.

Order: this is 0.5.3, after #1952's 0.5.2. If #1952 merges first, I'll merge staging into this branch and rebuild; the conflicts are only the CHANGELOG, the version line and the generated files.

Package and security impact

  • Affected package IDs: otome-forge (0.5.3, staging-only).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none. Prompt text only.
  • Restart, storage, update, or uninstall impact:
    • None.
    • Stories in progress follow the new rules from their next prompt.
    • An existing world's saved setting is not rewritten, so a story already set up keeps the setting it has.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Agent-side checks:

  • Pass: npm run test:otome-forge (490 + 12), the strict typecheck, npm run check, git diff --check, test-catalog-lanes, validate-package-locales and catalog-release-notes.
  • tests/otome-forge-knowledge.regression.ts (new):
    • The knowledge, newcomer and canon rules reach a main-chapter scene, the chapter plan, a Home note, a Messages reply, a banner plan and the bible prompt.
    • The world plan names an existing world, while Surprise me stays original.
    • P5 carries the minor-characters and no-love-interest line.
    • P5, P10 and P11 carry the rest rule, and the route and repair plans never get the no-love-interest line.
    • All three tests fail on staging's prompts.
  • tests/otome-forge-sfw-defaults.regression.ts: every story and banner digest is taken again (Angst and Gentle), as its header asks when an SFW prompt changes on purpose. Every one carries the writing rules.
  • Not run locally: validate-catalog, because the sparse worktree leaves out other packages' zips (CI runs it), and the browser suite (CI runs it; no UI changed).
  • Local CodeRabbit: 0 findings.
  • Independent multi-agent review (four lenses: knowledge leaks, canon world, structure rules, release): 6 findings raised, all 6 refuted on verification.
    • Existing gaps this change doesn't make worse: P17 and the look lines have no WORLD block, and the prologue's "own life in this world" wording.
    • Covered by story recall: once chapter 1 exists, its canon carries the newcomer framing in every later prompt.
    • Not a defect: canon characters as minor characters fall under "keep to its canon".

Please verify by hand:

  • Manually verify, in a new story whose persona is new to the world, that a love interest's terms (like Dottore's segments) puzzle the protagonist until someone explains them, and that she never mentions a habit or condition nobody told her about.
  • Manually verify that a new story with a premise in Teyvat keeps Teyvat's places, peoples and terms in its setting and scenes.
  • Manually verify, over two or three main chapters, that minor characters appear, at least one scene has no love interest, and the protagonist rests or sleeps after a long day or a night.
  • Manually verify that a route chapter still keeps its love interest in every scene.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

Owner: @SpicyMarinara (made by Claude).

🤖 Generated with Claude Code


🔄 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/1956 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-knowledge-setting-1955` --- ### 📝 Commits (3) - [`b49e9b1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b49e9b18e3e6679587df3d98cf7a09228ace93f8) fix(otome-forge): the protagonist knows only what the story shows; canon worlds, minor characters, rest (#1955) - [`6534c9f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6534c9fe2108da59b836ceb7ad32b1c797328a64) fix(otome-forge): a moment or the climax always has its love interest, even when a beat may not (#1955) - [`e066e4f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e066e4f5572f15f8a8ff3c2f709426f3838a8bc2) Merge staging (0.5.2: banners follow the Heat) into 0.5.3 ### 📊 Changes **19 files changed** (+362 additions, -166 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.5.3.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+6 -6) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+6 -6) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+6 -6) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+6 -0) 📝 `packages/otome-forge/README.md` (+3 -1) 📝 `packages/otome-forge/manifest.json` (+3 -3) 📝 `packages/otome-forge/server.mjs` (+104 -104) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/setup/prompts.ts` (+2 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/chapters.ts` (+3 -0) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/prompts.ts` (+11 -0) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/writing-rules.ts` (+5 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/otome-forge-chapters.regression.ts` (+17 -0) ➕ `tests/otome-forge-knowledge.regression.ts` (+148 -0) 📝 `tests/otome-forge-sfw-defaults.regression.ts` (+23 -20) </details> ### 📄 Description # Pull request ## Linked issue Closes #1955 ## Why this change From the maintainer's playtest: - **What she knows:** on only their second talk, Dottore spoke of his segments and the protagonist knew what they were, though she is new to this world. She also knew of his motion sickness, which he never told her. - **Rest:** the main story never lets her sleep or rest. - **Setting:** a story set in an existing world (for example Teyvat from Genshin Impact) must stay that world. - **Other people:** other characters may appear, and she doesn't need to be with a love interest all the time. The causes: - **What she knows:** - The planners read each love interest's whole bible, and every scene, message and note gets their card (voice, mask, tells). - Nothing told a prompt that these are for *writing* them, not what the protagonist knows. The only line about her knowledge was the card's revealed secrets. - **Setting:** the world plan asked only for "the place, its order, and what makes it strange or dangerous", and no prompt kept an existing world's canon. - **Rest and other people:** no planner mentioned time passing, minor characters, or a node without a love interest, while "The Lead is in most nodes" pulled the other way. ## What changed `otome-forge` 0.5.3 (staging-only). - **Writing rules** (`writing-rules.ts`, in every prompt that writes story or a love interest's words, and in the bible prompt): - The protagonist knows only what the story has shown them and what their own persona would know. A newcomer to this world knows none of its people, places, customs or terms yet. - A card or bible is for writing a character, never what the protagonist knows. A love interest's past, body, habits, powers and words for their world reach the protagonist only on the page, when they are told, see it or find it out. Until then the protagonist doesn't understand them, and nobody talks to them as if they do. - In an existing world from a game, book, film or show, its canon holds: places, peoples, powers, history and terms, never renamed, replaced or reinvented. - **The world plan (P2, `setup/prompts.ts`):** - When the premise or a love interest's card sets the story in an existing world, the setting is that world, named as it is, with its canon intact. - The mystery, pieces and web fit its canon. - **Surprise me** still writes an original premise. - **The chapter planner (P5, `story/prompts.ts`):** - Named minor characters (friends, family, rivals, officials, locals) get real parts. - A node may be the protagonist's alone or with others, with no love interest (`cast []`, already allowed by the plan check). - **Time to rest (P5, P10, P11):** - Time passes as in a life, and the protagonist eats, rests and sleeps. - After a night, a long day or an exhausting stretch, a node or part of one goes to rest: settling down, sleep, waking up. It may be shared or interrupted. - Route and repair chapters keep their love interest in every node. - **Unchanged:** - The shared kit, so Gacha Forge is not affected. - Character Stories stay private to their love interest, and dates stay a love interest and the protagonist. - **Docs and release:** the README (setup's premise line, and two lines in The story), CHANGELOG 0.5.3, and the rebuilt bundle, manifest, catalogs, notes and 0.5.3 zip. **Order:** this is 0.5.3, after #1952's 0.5.2. If #1952 merges first, I'll merge staging into this branch and rebuild; the conflicts are only the CHANGELOG, the version line and the generated files. ## Package and security impact - Affected package IDs: `otome-forge` (0.5.3, staging-only). - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. Prompt text only. - Restart, storage, update, or uninstall impact: - None. - Stories in progress follow the new rules from their next prompt. - An existing world's saved setting is not rewritten, so a story already set up keeps the setting it has. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Agent-side checks: - **Pass:** `npm run test:otome-forge` (490 + 12), the strict typecheck, `npm run check`, `git diff --check`, `test-catalog-lanes`, `validate-package-locales` and `catalog-release-notes`. - **`tests/otome-forge-knowledge.regression.ts` (new):** - The knowledge, newcomer and canon rules reach a main-chapter scene, the chapter plan, a Home note, a Messages reply, a banner plan and the bible prompt. - The world plan names an existing world, while Surprise me stays original. - P5 carries the minor-characters and no-love-interest line. - P5, P10 and P11 carry the rest rule, and the route and repair plans never get the no-love-interest line. - All three tests fail on staging's prompts. - **`tests/otome-forge-sfw-defaults.regression.ts`:** every story and banner digest is taken again (Angst and Gentle), as its header asks when an SFW prompt changes on purpose. Every one carries the writing rules. - **Not run locally:** `validate-catalog`, because the sparse worktree leaves out other packages' zips (CI runs it), and the browser suite (CI runs it; no UI changed). - **Local CodeRabbit:** 0 findings. - **Independent multi-agent review** (four lenses: knowledge leaks, canon world, structure rules, release): 6 findings raised, all 6 refuted on verification. - **Existing gaps this change doesn't make worse:** P17 and the look lines have no WORLD block, and the prologue's "own life in this world" wording. - **Covered by story recall:** once chapter 1 exists, its canon carries the newcomer framing in every later prompt. - **Not a defect:** canon characters as minor characters fall under "keep to its canon". Please verify by hand: - [ ] Manually verify, in a new story whose persona is new to the world, that a love interest's terms (like Dottore's segments) puzzle the protagonist until someone explains them, and that she never mentions a habit or condition nobody told her about. - [ ] Manually verify that a new story with a premise in Teyvat keeps Teyvat's places, peoples and terms in its setting and scenes. - [ ] Manually verify, over two or three main chapters, that minor characters appear, at least one scene has no love interest, and the protagonist rests or sleeps after a long day or a night. - [ ] Manually verify that a route chapter still keeps its love interest in every scene. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Owner: @SpicyMarinara (made by Claude). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:39:02 +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#2048
No description provided.