[PR #1937] [MERGED] Otome Hearth: LI intimacy preferences, MC role, and uncensored story memory #2040

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

📋 Pull Request Information

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

Base: staging ← Head: feat/otome-intimacy-preferences-1936


📝 Commits (7)

  • 1d64f06 chore(otome): begin optional adult preference feature #1936
  • 6efe0e3 feat(otome-forge): Otome Hearth 0.3.0 — love interests' intimacy preferences and the protagonist's role (#1936)
  • 3e41d8c fix(otome-forge): an SFW story's bible edit cannot add an intimacy block
  • e14f97d feat(otome-forge): show and edit a love interest's intimacy block in the bible
  • 96e593a style(otome-forge): format BibleView
  • c26302e fix(otome-forge): clearing the intimacy lists sticks; an overshoot is trimmed
  • 33513d2 feat(otome-forge): story memory keeps an NSFW story as it was written

📊 Changes

42 files changed (+1308 additions, -321 deletions)

View changed files

➕ artifacts/otome-forge-0.3.0.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+10 -0)
📝 packages/otome-forge/README.md (+42 -32)
📝 packages/otome-forge/client.js (+50 -47)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+136 -131)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-run.ts (+2 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+15 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/BibleView.tsx (+23 -4)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/ForgeProgress.tsx (+68 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/setup/ContentStep.tsx (+25 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+15 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/content.ts (+18 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+3 -0)

...and 22 more files

📄 Description

Linked issue

Closes #1936.

Why this change

  • Love interests' own tastes: NSFW stories can give love interests individual intimacy preferences without every scene revolving around them.
  • Your role: the protagonist needs an optional Sub, Dom or Switch preference of their own.
  • Existing casts: they should gain the missing details through an explicit action, not a destructive rewrite.
  • Story memory (maintainer): summaries were SFW whatever the Heat ("remove the prompt that makes summary SFW"). A chapter remembered only as its summary lost how intimate and dark scenes went, and a Veil was never mentioned at all.
  • Planner wording (maintainer, while reviewing the prompts):
    • Not every love interest is a monster.
    • Two sentences started lowercase.
    • A date inside a chapter always went wrong. The main story should allow good outcomes too.

What changed

otome-forge 0.3.0 (staging-only).

  • Eligibility: only an NSFW story writes or reads any of this, meaning Heat Fade or Explicit, which enforceContent keeps only behind the 18+ confirmation (intimacyOpen). SFW, Dark-romance-only and image-rating-only stories never do.
  • The intimacy block: optional in every bible, with preferences (what they are into, kinks included) and attractions, a handful each.
    • It sets no limits of its own. The player's Heat, Darkness and Lines & Veils, including the consent toggles, decide what a scene may hold.
    • A new NSFW bible is asked for it, and checkBible keeps it trimmed, or drops it in a story that may not have it.
  • Older casts: each love interest's card on Your cast gets Add intimacy preferences when their bible lacks the block. It calls POST /runs/:run/lis/:li/intimacy:
    • 1 call on the Planning connection, cancellable, with the usual prompt logging and output budget (no 4096 cap);
    • writes that block alone and keeps every other bible field, the story and the progress;
    • never runs twice (a second press reads the block back without a call);
    • a bible edit that doesn't carry the block keeps it.
  • Privacy in the view: the run view says only that the block exists (intimacy: true). Its text stays in the spoiler-gated bible.
  • Clearing: in an NSFW story, a bible edit that empties both lists removes the block, and the cast offers to add it again (Dottore). Before, the route restored the stored block.
  • Overshoot: IntimacySchema is bounded at 4x the handful, so a reply or edit with more than 6 items is trimmed by normalizeIntimacy instead of failing the bible step (Dottore).
  • After the fill: the cached bible is refreshed, so a bible read before the fill shows the block, and a focused "added" status takes the button's place (multi-agent review).
  • The bible view (from Codex's draft): an Intimacy block with Into and Drawn to, one per line, readable and editable. It shows only in an NSFW story whose bible has the block; in an SFW story it stays hidden and kept. Saving refreshes the run, so the cast's button follows.
  • Prompt use:
    • Scenes (so also dates, Character Stories and the prologue), chapter, route, repair, Memory and Date Night planners, and Memories banner plans get the block as its own line beside the love interest's card. It's brought in when a scene turns intimate and fits, not in every scene. Wardrobe banners plan looks and don't get it; their Snapshots share the call (CodeRabbit).
    • bibleBlock no longer sends it inside the bible's JSON, so an SFW story's prompts never carry it, even for a bible kept from before Heat was lowered.
  • The protagonist's role: an optional Sub, Dom or Switch beside Heat, in setup and Settings → Content. It's unspecified by default, and it's dropped when Heat goes to SFW or 18+ is withdrawn. The NSFW content contract states it as the protagonist's preference, never a rule for every scene, and never the love interests'.
  • Planner wording:
    • "each is a human, even if inside a monster" in all four planners;
    • "Kind moment" and "Kind confrontation" capitalized;
    • a chapter's date moment goes as hoped unless the story gives it a reason to stumble, as Date Night already does.
  • Story memory: the summary contract (chapter summaries and Messages' Close and remember) now follows the story.
    • An NSFW story's summaries get the adult-fiction line and record intimacy, violence and darkness plainly, as the story told them. The "neutral, non-explicit", "intimacy is named, never described" and "no sexual detail" rules are gone.
    • Lines are never written. A Veil is recorded only as having happened off the page, where before it could not be mentioned.
    • An SFW story keeps its own SFW Heat. Only the period tracker's data stays out of memory, per its privacy rule ("nothing about anyone's health or body" is narrowed to that).
    • Home, notes and Snapshots still stay SFW. Home's note may now recall an NSFW memory detail, and its own SFW contract governs what it writes.
  • Docs and release: the README's content section and costs table, CHANGELOG 0.3.0, and a rebuilt bundle, preview catalogs and zip.

Package and security impact

  • Affected package IDs: otome-forge (0.3.0, staging-only).
  • Engine compatibility impact: none (Capability API unchanged).
  • New or changed permissions/entrypoints: one route, POST /api/otome-forge/runs/:run/lis/:li/intimacy.
  • Restart, storage, update, or uninstall impact: an optional intimacy field on bibles and mcRole on content. Older documents read as before.

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:

  • These pass: npm run test:otome-forge (459 + 12, including the new tests/otome-forge-intimacy.regression.ts), the strict typecheck, npm run check, both locale validators and git diff --check.
  • The new regression fails if the bible's JSON carries the block.
  • SFW digests were retaken for the three planners only; scene, CG, confrontation and banner prompts are byte-identical.
  • Latest head: npm run test:otome-forge (459 + 12), the strict typecheck, both locale validators, ESLint and Prettier on the changed files, and git diff --check pass. The 12 intimacy browser tests (role picker, cast fill with retry, bible block; desktop and mobile, dark and light) pass against the real Engine.
  • Mutation checks: dropping the clear flag, the loose schema bound, the summary's adult branch, or the fill's bible refresh each fails its new test.
  • npm run check and the full 320-test browser suite were not rerun locally for the latest head; CI runs both. The full suite last passed locally before the intimacy browser tests were added.
  • Local CodeRabbit: 1 finding (the banner planner's tastes reach the call that writes Snapshots). Fixed.
  • Multi-agent review (server data, prompt leaks and censoring wording, client UI, tests; each finding checked by two refuters): 8 candidates. Fixed: the stale bible after the fill (confirmed), and the unfocused success (split). Refuted with code reasons: the bible API returning a kept block in SFW stories (the view hides it, the design keeps it); a fill finishing after Heat is lowered (it leaves the same kept-block state); and two test-coverage gaps. The overshoot test that could not fail was hardened anyway. The first run had 10 timeouts with 5 workers on a loaded machine; those 10 pass when rerun with 2 workers. All 308 have not passed in a single run.
  • validate-catalog was not run locally: the sparse worktree leaves out other packages' zips, so CI covers it.

Please verify by hand:

  • Manually verify the role picker appears beside Heat only with NSFW Heat, in setup and in Settings → Content, on phone and desktop, and that choosing SFW clears it.
  • Manually verify a new NSFW story's bibles include intimacy preferences, and an SFW story's never do.
  • Manually verify Add intimacy preferences on Your cast for an older NSFW story: it fills only that part, the rest of the bible and your progress are unchanged, and the button goes away.
  • Manually verify, with debug mode on, that intimate scenes draw on the preferences now and then and that the consent toggles still decide what happens.
  • Manually verify a chapter's date can go well.
  • Manually verify the bible's Intimacy block (behind Show spoilers) shows Into and Drawn to in an NSFW story, saves edits, and is hidden in an SFW story.
  • Manually verify, with debug mode on, that a chapter summary in an NSFW story records what happened in intimate and dark scenes plainly, and that an SFW story's summaries are unchanged.

Owner: @SpicyMarinara (Codex started it; finished by Claude). Codex's earlier head, c48c462d0, is replaced by this version and kept on the local branch backup/otome-intimacy-codex-c48c462d0.

🤖 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/1937 **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:** `feat/otome-intimacy-preferences-1936` --- ### 📝 Commits (7) - [`1d64f06`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1d64f06e31ffb9d6d682a1fdaa13b0967ef974e2) chore(otome): begin optional adult preference feature #1936 - [`6efe0e3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6efe0e3e5f6d298bd67667e3eabd842073b2eeb6) feat(otome-forge): Otome Hearth 0.3.0 — love interests' intimacy preferences and the protagonist's role (#1936) - [`3e41d8c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3e41d8c122be6712d302f02d9976d7b6ebc32b33) fix(otome-forge): an SFW story's bible edit cannot add an intimacy block - [`e14f97d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e14f97df869de4a7f75b90de552e3c3089b44bbb) feat(otome-forge): show and edit a love interest's intimacy block in the bible - [`96e593a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/96e593a77816334af0672906090594f9b116c495) style(otome-forge): format BibleView - [`c26302e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c26302e1d36349a6de2234acfa2a650eb9d8b18b) fix(otome-forge): clearing the intimacy lists sticks; an overshoot is trimmed - [`33513d2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/33513d247f064490c01a5492de7fab43d515f6dd) feat(otome-forge): story memory keeps an NSFW story as it was written ### 📊 Changes **42 files changed** (+1308 additions, -321 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.3.0.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+10 -0) 📝 `packages/otome-forge/README.md` (+42 -32) 📝 `packages/otome-forge/client.js` (+50 -47) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+136 -131) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-run.ts` (+2 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+15 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/BibleView.tsx` (+23 -4) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/ForgeProgress.tsx` (+68 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/setup/ContentStep.tsx` (+25 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+15 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/content.ts` (+18 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+3 -0) _...and 22 more files_ </details> ### 📄 Description ## Linked issue Closes #1936. ## Why this change - **Love interests' own tastes:** NSFW stories can give love interests individual intimacy preferences without every scene revolving around them. - **Your role:** the protagonist needs an optional Sub, Dom or Switch preference of their own. - **Existing casts:** they should gain the missing details through an explicit action, not a destructive rewrite. - **Story memory (maintainer):** summaries were SFW whatever the Heat ("remove the prompt that makes summary SFW"). A chapter remembered only as its summary lost how intimate and dark scenes went, and a Veil was never mentioned at all. - **Planner wording (maintainer, while reviewing the prompts):** - Not every love interest is a monster. - Two sentences started lowercase. - A date inside a chapter always went wrong. The main story should allow good outcomes too. ## What changed `otome-forge` 0.3.0 (staging-only). - **Eligibility:** only an NSFW story writes or reads any of this, meaning Heat Fade or Explicit, which `enforceContent` keeps only behind the 18+ confirmation (`intimacyOpen`). SFW, Dark-romance-only and image-rating-only stories never do. - **The intimacy block:** optional in every bible, with `preferences` (what they are into, kinks included) and `attractions`, a handful each. - It sets no limits of its own. The player's Heat, Darkness and Lines & Veils, including the consent toggles, decide what a scene may hold. - A new NSFW bible is asked for it, and `checkBible` keeps it trimmed, or drops it in a story that may not have it. - **Older casts:** each love interest's card on **Your cast** gets **Add intimacy preferences** when their bible lacks the block. It calls `POST /runs/:run/lis/:li/intimacy`: - 1 call on the Planning connection, cancellable, with the usual prompt logging and output budget (no 4096 cap); - writes that block alone and keeps every other bible field, the story and the progress; - never runs twice (a second press reads the block back without a call); - a bible edit that doesn't carry the block keeps it. - **Privacy in the view:** the run view says only that the block exists (`intimacy: true`). Its text stays in the spoiler-gated bible. - **Clearing:** in an NSFW story, a bible edit that empties both lists removes the block, and the cast offers to add it again (Dottore). Before, the route restored the stored block. - **Overshoot:** `IntimacySchema` is bounded at 4x the handful, so a reply or edit with more than 6 items is trimmed by `normalizeIntimacy` instead of failing the bible step (Dottore). - **After the fill:** the cached bible is refreshed, so a bible read before the fill shows the block, and a focused "added" status takes the button's place (multi-agent review). - **The bible view** (from Codex's draft): an **Intimacy** block with **Into** and **Drawn to**, one per line, readable and editable. It shows only in an NSFW story whose bible has the block; in an SFW story it stays hidden and kept. Saving refreshes the run, so the cast's button follows. - **Prompt use:** - Scenes (so also dates, Character Stories and the prologue), chapter, route, repair, Memory and Date Night planners, and Memories banner plans get the block as its own line beside the love interest's card. It's brought in when a scene turns intimate and fits, not in every scene. Wardrobe banners plan looks and don't get it; their Snapshots share the call (CodeRabbit). - `bibleBlock` no longer sends it inside the bible's JSON, so an SFW story's prompts never carry it, even for a bible kept from before Heat was lowered. - **The protagonist's role:** an optional Sub, Dom or Switch beside Heat, in setup and Settings → Content. It's unspecified by default, and it's dropped when Heat goes to SFW or 18+ is withdrawn. The NSFW content contract states it as the protagonist's preference, never a rule for every scene, and never the love interests'. - **Planner wording:** - "each is a human, even if inside a monster" in all four planners; - "Kind moment" and "Kind confrontation" capitalized; - a chapter's date moment goes as hoped unless the story gives it a reason to stumble, as Date Night already does. - **Story memory:** the `summary` contract (chapter summaries and Messages' Close and remember) now follows the story. - An NSFW story's summaries get the adult-fiction line and record intimacy, violence and darkness plainly, as the story told them. The "neutral, non-explicit", "intimacy is named, never described" and "no sexual detail" rules are gone. - Lines are never written. A Veil is recorded only as having happened off the page, where before it could not be mentioned. - An SFW story keeps its own SFW Heat. Only the period tracker's data stays out of memory, per its privacy rule ("nothing about anyone's health or body" is narrowed to that). - Home, notes and Snapshots still stay SFW. Home's note may now recall an NSFW memory detail, and its own SFW contract governs what it writes. - **Docs and release:** the README's content section and costs table, CHANGELOG 0.3.0, and a rebuilt bundle, preview catalogs and zip. ## Package and security impact - Affected package IDs: `otome-forge` (0.3.0, staging-only). - Engine compatibility impact: none (Capability API unchanged). - New or changed permissions/entrypoints: one route, `POST /api/otome-forge/runs/:run/lis/:li/intimacy`. - Restart, storage, update, or uninstall impact: an optional `intimacy` field on bibles and `mcRole` on content. Older documents read as before. ## 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: - These pass: `npm run test:otome-forge` (459 + 12, including the new `tests/otome-forge-intimacy.regression.ts`), the strict typecheck, `npm run check`, both locale validators and `git diff --check`. - The new regression fails if the bible's JSON carries the block. - SFW digests were retaken for the three planners only; scene, CG, confrontation and banner prompts are byte-identical. - Latest head: `npm run test:otome-forge` (459 + 12), the strict typecheck, both locale validators, ESLint and Prettier on the changed files, and `git diff --check` pass. The 12 intimacy browser tests (role picker, cast fill with retry, bible block; desktop and mobile, dark and light) pass against the real Engine. - Mutation checks: dropping the clear flag, the loose schema bound, the summary's adult branch, or the fill's bible refresh each fails its new test. - `npm run check` and the full 320-test browser suite were not rerun locally for the latest head; CI runs both. The full suite last passed locally before the intimacy browser tests were added. - Local CodeRabbit: 1 finding (the banner planner's tastes reach the call that writes Snapshots). Fixed. - Multi-agent review (server data, prompt leaks and censoring wording, client UI, tests; each finding checked by two refuters): 8 candidates. Fixed: the stale bible after the fill (confirmed), and the unfocused success (split). Refuted with code reasons: the bible API returning a kept block in SFW stories (the view hides it, the design keeps it); a fill finishing after Heat is lowered (it leaves the same kept-block state); and two test-coverage gaps. The overshoot test that could not fail was hardened anyway. The first run had 10 timeouts with 5 workers on a loaded machine; those 10 pass when rerun with 2 workers. All 308 have not passed in a single run. - `validate-catalog` was not run locally: the sparse worktree leaves out other packages' zips, so CI covers it. Please verify by hand: - [ ] Manually verify the role picker appears beside Heat only with NSFW Heat, in setup and in Settings → Content, on phone and desktop, and that choosing SFW clears it. - [ ] Manually verify a new NSFW story's bibles include intimacy preferences, and an SFW story's never do. - [ ] Manually verify **Add intimacy preferences** on Your cast for an older NSFW story: it fills only that part, the rest of the bible and your progress are unchanged, and the button goes away. - [ ] Manually verify, with debug mode on, that intimate scenes draw on the preferences now and then and that the consent toggles still decide what happens. - [ ] Manually verify a chapter's date can go well. - [ ] Manually verify the bible's Intimacy block (behind Show spoilers) shows Into and Drawn to in an NSFW story, saves edits, and is hidden in an SFW story. - [ ] Manually verify, with debug mode on, that a chapter summary in an NSFW story records what happened in intimate and dark scenes plainly, and that an SFW story's summaries are unchanged. Owner: @SpicyMarinara (Codex started it; finished by Claude). Codex's earlier head, c48c462d0, is replaced by this version and kept on the local branch `backup/otome-intimacy-codex-c48c462d0`. 🤖 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:38:58 +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#2040
No description provided.