[PR #2055] [MERGED] feat(otome-forge): love interests may be genuinely evil; side with one when they disagree (0.6.22) #2093

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2055
Author: @SpicyMarinara
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/otome-evil-lis


📝 Commits (10+)

  • bbb3d85 feat(otome-forge): love interests may be genuinely evil, stories may have real villains (0.6.22)
  • 5800309 fix(otome-forge): the shared rules keep whatever red lines a love interest has, so none are invented
  • b5a7688 feat(otome-forge): scenes see a love interest's darkness; Angst and Dark let a love interest be the villain (#2054)
  • cab6ca4 feat(otome-forge): now and then, side with one love interest when they disagree (#2046)
  • 49ec4f7 chore(otome-forge): release 0.6.23
  • 0d247f6 fix(otome-forge): a love interest's darkness names what they are, never a secret's events
  • dd044b8 Merge staging (0.6.20) into feat/otome-evil-lis; rebuild 0.6.22
  • fcc7866 Merge feat/otome-side-with-2046 (#2046) into feat/otome-evil-lis: one PR, one release (0.6.22)
  • 7fbaa09 fix(otome-forge): the scene card names darkness after the red lines, so a card cut to fit keeps them
  • e088da5 Merge staging (0.6.21) into feat/otome-evil-lis; keep both node fields (sideWith, judgment); rebuild 0.6.22

📊 Changes

42 files changed (+1433 additions, -367 deletions)

View changed files

➕ artifacts/otome-forge-0.6.22.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 (+7 -0)
📝 packages/otome-forge/README.md (+3 -2)
📝 packages/otome-forge/client.js (+92 -75)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+147 -140)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts (+31 -7)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+4 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ChoicePills.tsx (+21 -5)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx (+34 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+18 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/economy.ts (+7 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+17 -0)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/content-contract.ts (+5 -5)

...and 22 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #2054
Closes #2046

Why this change

This PR now covers two issues, released together as one 0.6.22 at the maintainer's request: #2054 (love interests may be genuinely evil) and #2046 (side with one love interest). #2046's PR, #2056, was merged into this branch and closed.

#2054, love interests may be genuinely evil: Some love interests are meant to be monsters the player tames into falling in love, for example Genshin Impact's Fatui Harbingers. Playing on Opus 5.5, the maintainer found that chapters never explore that these love interests are evil. Three prompt lines pushed the other way:

  • No villains allowed. The world plan (P2) said "Rivals still respect, owe or need each other; nobody is simply a villain." That also kept real villains out of the story, not only love interests.
  • A forced code of honour. The character bible asked for red lines "what they will never do, from their own integrity", which gave every love interest a code of honour, even a bad one.
  • Nothing said the opposite. No prompt said a love interest may be genuinely evil, or that taming them is the point.

An audit of every prompt that shapes a love interest found more lines pulling the same way. The maintainer picked which ones to change, listed below:

  • "A human inside a monster." The chapter, route, repair and Character Story planners call each love interest "a human, even if inside a monster", which reads as a decent person in a monster shell.
  • Writers never see the darkness. Every scene, climax and phone reply gets the love interest's red lines and moral code, but never the darkness their bible lists.
  • Something better under the mask. The bible assumes something better is under the mask.
  • No-sanitizing wording only with NSFW Heat. "Cruelty and violence are not sanitized" was only in the NSFW-Heat Angst contract. Under Angst and Dark, a love interest could only "have a dark side".

#2046, side with one love interest: The maintainer asked for a new kind of choice in chapters with several love interests. Now and then, when they argue or want to handle something differently, the player sides with one of them. That raises affection with the one picked and lowers it with the others. It should be rare: at most once every 3-4 chapters.

Today a pick can only ever lower affection (the hostile −15), so nothing let a choice reward the love interest the player backs.

What changed

Package: otome-forge (Otome Hearth) 0.6.22. The #2054 changes are:

  • the maintainer's three requested changes;
  • the two red-lines wordings that would contradict "or none at all";
  • the audit changes the maintainer chose.

Requested changes

  • setup/prompts.ts, world plan: the line "Rivals still respect, owe or need each other; nobody is simply a villain." is removed.

  • setup/prompts.ts, bible: the moral code and red lines are now described as:

    moralCode: the code they live by, true to who they are: firm for a good person, far looser for a bad one, or none at all. redLines: what that code forbids them, if anything ([] when nothing does).

  • writing-rules.ts: one new shared writing rule, right after "Every cruelty has a reason the love interest believes…":

    A love interest may be genuinely evil, a monster or a villain, as dark as this story's Darkness allows: taming them is the point, so never soften them before the story earns it.

    "as dark as this story's Darkness allows" was added after review. The rule reaches Gentle stories too, whose contract says "No menace on the page", so the Darkness setting decides how far a villain goes.

    The shared rules block goes to the bible writer, the arc and chapter planners, every scene writer, the climaxes, phone replies, home lines, wishes and banners, items and the mini-games.

  • writing-rules.ts: "…and the love interest keeps their red lines." becomes "…and the love interest keeps whatever red lines they have." The bible writer also gets this rule, and the old wording would have pushed it to invent red lines for a character who has none.

  • content-contract.ts: Dark romance's "red lines they keep" becomes "whatever red lines they keep", since a love interest may now have none.

Audit changes the maintainer chose

  • Planners (story/prompts.ts chapter, route and repair; items/prompts.ts Character Story and Extra Story): "each is a human, even if inside a monster" becomes "each is a human, even if a monster". They still say every love interest is "capable of earned, character-consistent change".

  • scene-card.ts: the card every scene, climax, phone reply, home line, Read Me, Read Him and banner gets now names the love interest's darkness: "Darkness: …", next to "Red lines: …". An empty list adds nothing, so old bibles produce the same card.

  • setup/prompts.ts, bible:

    • mask.presents is "the face they show, which may hide something kinder or something worse".
    • darkness.kinds is "the kinds of darkness in them, as dark as the card or archetype makes them within this story's Darkness, never softened: what they are (cruelty, a hunger for control), never a secret's events, which belong in secrets". The Gentle rule still keeps them interpersonal.
  • writing-rules.ts: a new rule after "not automatic redemption or a replacement personality":

    Falling for the protagonist does not make a monster good or secretly kind at once; as affection grows and they come to know the protagonist, they may become a better partner to them, in their own way.

    It keeps the maintainer's point that a love interest naturally becomes a better partner as affection grows. It brings back neither of the removed 0.5.x phrases, "softens toward the protagonist…" and "changed toward the protagonist only"; the regression still forbids both.

  • content-contract.ts:

    • Angst (the default) now reads: "Danger is aimed at the world, at the love interests' pasts and at their enemies, never at the protagonist. Cruelty and violence are not sanitized within the Lines and Veils below, and always have consequences. A love interest may be a villain to everyone else: cold, ruthless with others or frightening, but never threatens or harms the protagonist." The no-sanitizing sentence moved here from the NSFW-Heat Angst addition, so NSFW-Heat Angst reads as before, without saying it twice.
    • Dark romance: "even a love interest can be a villain, have a dark side or break down under pressure".
    • Gentle: unchanged.

What didn't change:

  • The content settings still decide what's allowed: Heat, Darkness, and Lines & Veils.
  • Gentle still has no menace on the page, and the proof checks that it never mentions villains or sanitizing.
  • Angst still keeps danger away from the protagonist, ending "never threatens or harms the protagonist", and its Lines and Veils are unchanged.
  • Under Dark, refusing is still always an option, and the story never ends the protagonist's life.
  • No consent, "non-graphic" or softening wording was added anywhere.

Side with one love interest (#2046)

How often (story/chapters.ts, sideWithOpen)

  • The earliest is main chapter 4. After that, at most one every four main chapters (SIDE_WITH_GAP = 3 chapters complete in between).
  • The count reads the stored main-chapter plans, so there's no new state field and no migration.
  • Stories already in progress count from before chapter 1: one past chapter 4 may get one in its next chapter, but only if the planner finds a real disagreement.
  • A ponytail: comment notes the ceiling: a planned side-with scene that was eased off before the pick still uses up the gap.

The plan (P5)

  • Only while a side-with scene is open, the chapter planner gets one optional rule: when 2 to 4 love interests share a beat node and the story gives them a real disagreement, it may mark that node sideWith, and its guide names what they disagree on. "Never invent one to use it."
  • Otherwise the planner prompt is byte-identical.
  • normalizeChapterPlan keeps the first mark that fits: a main chapter's beat node with 2-4 love interests. It drops any other mark without a repair turn, so the scene is never forced.
  • The mark is stored on the node and stripped from the player's view.

The scene (P6)

  • On a marked node, the narrator plays the disagreement out, each love interest pressing their own view. It offers exactly one small choice, with one option per love interest present, each with a backs id. There's no stay-out or split-the-difference option.
  • Labels use the same player-addressed voice as Confrontations and Closers. No softening wording was added.
  • readSideWith checks the reply: one choice, one option per love interest present, none missing or unknown. A miss costs the usual one repair turn, which names what's missing.
  • Only an option that names someone in backs marks the choice, so an empty "backs": null on another choice is ignored.

Affection (code only, never the model's reply)

  • sideWithEffects replaces any effects the model gave that choice:
    • the one backed gets trust +1 and +30 affection, uncapped by the daily cap;
    • each one passed over gets tension +1 and −10 affection, never below their level floor (affectionFloorOf), so no level, route stage or unlocked story is lost.
  • Trust is never lowered, so the hostile −15 never stacks on top.
  • A pick applies once, on first play; replays change nothing.
  • SIDE_WITH_AFFECTION lives in shared/economy.ts beside the other pinned numbers.

Canon

  • The pick is an ordinary small choice, so it reaches the played path, summaries and memory.
  • The irrevocable decisions block names it: "sided with Kai over Mireille".

Reader UI

  • The choice panel says Side with one of them, and each option shows the name it backs, in the accessible name too.
  • After the pick, polite toasts say +30 affection with … and −10 affection with … in each love interest's colour. There's no toast for one held at a level floor, and none on a replay.
  • On a replay, the first pick's label keeps room beside both badges on phones, and a badge that doesn't fit wraps under the label.
  • English strings: 3 new keys. The "Between you" affection hint now mentions siding with someone. The README rewards section lists the new numbers.

Release: one release, 0.6.22, for both issues, at the maintainer's request: #2056 (side with) was merged into this branch and closed. The branch is up to date with staging (0.6.21). The rebuilt client.js, server.mjs, manifest, preview catalogs and artifacts/otome-forge-0.6.22.zip agree.

With 0.6.21 merged, two files had a node field from each side, judgment and sideWith: api-types.ts ChapterNode and schemas/story.ts NodeSchema. chapters.ts and prompts.ts each had a context flag or block from each side. Every conflict kept both. The combined build passes all 602 Otome TypeScript regressions, 12 .mjs regressions and the full reader browser suite, 62/62.

Package and security impact

  • Affected package IDs: otome-forge (0.6.21 → 0.6.22).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none. POST …/choose also returns affection, the per-love-interest point change, for the side-with toasts.
  • Restart, storage, update, or uninstall impact:
    • Bibles and world plans already written are not rewritten.
    • The writing rules, planner wording, scene card and contract reach every story already in progress. A bible that already lists darkness shows it on the card at once.
    • The bible and world-plan changes apply to stories and love interests created from now on.
    • Chapter nodes and beats gain optional sideWith fields. Older saves read unchanged.

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

What the agent ran locally:

  • Regression suites: on the combined branch, all 602 Otome TypeScript regressions and 12 .mjs regressions pass, and so does the full reader browser suite (62/62, desktop and mobile Chromium).

  • Typecheck: 0 strict errors in 88 server and 139 client files.

  • Other checks: Prettier and git diff --check pass.

  • Package files: the rebuilt zip's size and SHA-256 match all three preview catalogs and the manifest. The committed blob is the full 1,828,793-byte archive.

  • New proofs. All three fail with the source change reverted.

    • otome-forge-knowledge.regression.ts, #2054:
      • the bible, the scene writer and the chapter planner carry the evil rule and the love rule;
      • the world plan no longer says "nobody is simply a villain";
      • the bible asks for the new moral code, mask and darkness wording, and not "from their own integrity";
      • the shared rule reads "keeps whatever red lines they have";
      • no prompt says "even if inside a monster".
    • otome-forge-scene-card.regression.ts: the card names a love interest's darkness beside their red lines, and leaves it out when there is none.
    • otome-forge-contract.regression.ts:
      • Angst carries the no-sanitizing and villain-to-everyone-else wording and still ends "never threatens or harms the protagonist";
      • Dark lets a love interest be the villain;
      • Gentle keeps "No menace on the page." and never mentions villains or sanitizing.
  • Pinned SFW prompts:

    • The SFW digests in otome-forge-sfw-defaults.regression.ts and otome-forge-seasons.regression.ts were retaken, with a note in each file. Every story and banner prompt carries the writing rules and the Angst contract, so all of them moved.
    • The pinned exact Angst contract changes only by the two new sentences. The Gentle, home, summary and care contracts are unchanged.
  • Local CodeRabbit:

    • The shared "keeps their red lines" rule could make the bible writer invent red lines. Fixed above, with a regression check.
    • A "13-byte zip" finding didn't hold: each commit's zip blob is the full archive and matches its catalog entries.
    • The scene card now shows darkness at every stage, so a darkness entry that restated a secret ("secretly killed the prince") would surface it before its stage. Fixed at the source: the bible keeps darkness.kinds to what they are ("cruelty, a hunger for control"), never a secret's events, which stay in secrets, gated by stage. The knowledge proof pins the wording.
  • Side-with proofs, each checked to fail without its change:

    • otome-forge-chapters.regression.ts:
      • one every four main chapters at most, from chapter 4, counted from the stored plans;
      • the plan keeps one valid mark and drops every other, never as a repair;
      • the planner rule appears only while a side-with scene is open;
      • POST /chapters/next keeps a mark in chapter 4 and not in chapter 5 after one in chapter 2.
    • otome-forge-beats.regression.ts:
      • the reply needs one small choice backing each love interest present;
      • the P6 rule appears only on a marked main-chapter node;
      • the game sets the effects (a reply's affection 999 and trust −1 are ignored);
      • the pick moves affection once, and the decisions block names it.
    • otome-forge-state-caps.regression.ts:
      • the one backed gains past the daily cap;
      • one passed over never loses a level or a story;
      • a replay changes nothing.
  • Browser (package-otome-forge-reader.e2e.ts, desktop and mobile Chromium):

    • "Side with: the choice says so, names whom each option backs, and shows the affection it moved";
    • "Side with on a replay: the first pick's label keeps its room beside both badges", at 320 px, 390 px and on desktop.
    • The surrounding choice and replay tests also pass: 8/8.
  • Independent reviews: three review agents (logic and canon, UX and accessibility, proofs and build) found five defects. All are fixed with proofs:

    • an empty backs on another choice refused a valid reply;
    • an empty protagonist name in the rule;
    • replay badges collapsing the label on phones;
    • a race in the e2e;
    • an accessible-name gap.
  • Side-with CodeRabbit: no findings.

  • CodeRabbit on the combined branch: one finding, fixed. The "genuinely evil" rule conflicted with Gentle's "No menace on the page"; it now reads "as dark as this story's Darkness allows". The SFW digests were retaken for it.

  • CodeRabbit on the scene card: the card is trimmed from the end when it runs long, so Darkness now comes after Red lines and Moral code, and a trimmed card keeps the boundaries it kept before. The scene-card proof pins the order.

For a human to verify:

  • Start a new story with a love interest who is a villain in canon, such as a Fatui Harbinger. Manually verify the hidden bible's moral code is loose or none, and its red lines follow it or are empty.
  • Play a few chapters. Manually verify that love interest acts on their evil in the story, toward others, and toward the protagonist under Dark romance, instead of being softened from the start.
  • In the same story, manually verify the world plan can include a genuine villain, not only rivals who respect each other.
  • With Darkness set to Gentle, manually verify there's still no menace on the page. With Angst, manually verify danger is still never aimed at the protagonist.
  • With a real model, play a story to main chapter 4 or later with two love interests in a chapter. Manually verify that a chapter can get a side-with scene when they disagree, and that the three chapters after one never get another. Check the chapter-plan debug log for the SIDE WITH rule.
  • Manually verify the scene plays the argument out and offers one option per love interest present, worded to you, with no stay-out option.
  • Pick one. Manually verify you see "+30 affection with …" and "−10 affection with …" for each one passed over, and that Story → Between you shows the new points without a reload.
  • Replay that chapter. Manually verify the panel shows "Side with one of them" and "Your first choice", with no affection toasts, and that affection doesn't change.
  • Manually verify the next chapter's debug prompts list "sided with … over …" among the irrevocable decisions.
  • With a screen reader, manually verify each option is announced with the name it backs, and the toasts are announced.
  • Manually verify the panel and toasts in the Midnight and Pearl looks on a phone and a desktop, including a long love-interest name.

Documentation impact

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

The package README's rewards section and the CHANGELOG describe both changes.

🤖 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/2055 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/otome-evil-lis` --- ### 📝 Commits (10+) - [`bbb3d85`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bbb3d85ca3a1f887712009b1c225dccf29163d71) feat(otome-forge): love interests may be genuinely evil, stories may have real villains (0.6.22) - [`5800309`](https://github.com/Pasta-Devs/Marinara-Agents/commit/58003092e5e8bae2ce7bfb4d372d62f3645c8b02) fix(otome-forge): the shared rules keep whatever red lines a love interest has, so none are invented - [`b5a7688`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b5a768813681401f2908ab77d2d12a37f93d0723) feat(otome-forge): scenes see a love interest's darkness; Angst and Dark let a love interest be the villain (#2054) - [`cab6ca4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cab6ca484a25bfab29a47c500c76eec30a2c1e35) feat(otome-forge): now and then, side with one love interest when they disagree (#2046) - [`49ec4f7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/49ec4f7861562430c926413f568f8a66dc052aad) chore(otome-forge): release 0.6.23 - [`0d247f6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0d247f61cfb05bd0178d13c4905e9699c01b21f9) fix(otome-forge): a love interest's darkness names what they are, never a secret's events - [`dd044b8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/dd044b83c8642d5e10febf3d471548fdd2a0d538) Merge staging (0.6.20) into feat/otome-evil-lis; rebuild 0.6.22 - [`fcc7866`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fcc7866bf5dba6a71e21767ad935f9e0e47966a9) Merge feat/otome-side-with-2046 (#2046) into feat/otome-evil-lis: one PR, one release (0.6.22) - [`7fbaa09`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7fbaa0952459ac4cef720c6be20f9d7f9174e1ac) fix(otome-forge): the scene card names darkness after the red lines, so a card cut to fit keeps them - [`e088da5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e088da5cf425c7bca1f1eccb0a372a53e886e50b) Merge staging (0.6.21) into feat/otome-evil-lis; keep both node fields (sideWith, judgment); rebuild 0.6.22 ### 📊 Changes **42 files changed** (+1433 additions, -367 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.6.22.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` (+7 -0) 📝 `packages/otome-forge/README.md` (+3 -2) 📝 `packages/otome-forge/client.js` (+92 -75) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+147 -140) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts` (+31 -7) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+4 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ChoicePills.tsx` (+21 -5) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx` (+34 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+18 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/economy.ts` (+7 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+17 -0) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/content-contract.ts` (+5 -5) _...and 22 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #2054 Closes #2046 ## Why this change This PR now covers two issues, released together as one 0.6.22 at the maintainer's request: **#2054** (love interests may be genuinely evil) and **#2046** (side with one love interest). #2046's PR, #2056, was merged into this branch and closed. **#2054, love interests may be genuinely evil:** Some love interests are meant to be monsters the player tames into falling in love, for example Genshin Impact's Fatui Harbingers. Playing on Opus 5.5, the maintainer found that chapters never explore that these love interests are evil. Three prompt lines pushed the other way: - **No villains allowed.** The world plan (P2) said "Rivals still respect, owe or need each other; nobody is simply a villain." That also kept real villains out of the story, not only love interests. - **A forced code of honour.** The character bible asked for red lines "what they will never do, from their own integrity", which gave every love interest a code of honour, even a bad one. - **Nothing said the opposite.** No prompt said a love interest may be genuinely evil, or that taming them is the point. An audit of every prompt that shapes a love interest found more lines pulling the same way. The maintainer picked which ones to change, listed below: - **"A human inside a monster."** The chapter, route, repair and Character Story planners call each love interest "a human, even if inside a monster", which reads as a decent person in a monster shell. - **Writers never see the darkness.** Every scene, climax and phone reply gets the love interest's red lines and moral code, but never the darkness their bible lists. - **Something better under the mask.** The bible assumes something better is under the mask. - **No-sanitizing wording only with NSFW Heat.** "Cruelty and violence are not sanitized" was only in the NSFW-Heat Angst contract. Under Angst and Dark, a love interest could only "have a dark side". **#2046, side with one love interest:** The maintainer asked for a new kind of choice in chapters with several love interests. Now and then, when they argue or want to handle something differently, the player sides with one of them. That raises affection with the one picked and lowers it with the others. It should be rare: at most once every 3-4 chapters. Today a pick can only ever lower affection (the hostile −15), so nothing let a choice reward the love interest the player backs. ## What changed Package: `otome-forge` (Otome Hearth) **0.6.22**. The #2054 changes are: - the maintainer's three requested changes; - the two red-lines wordings that would contradict "or none at all"; - the audit changes the maintainer chose. **Requested changes** - **`setup/prompts.ts`, world plan:** the line "Rivals still respect, owe or need each other; nobody is simply a villain." is removed. - **`setup/prompts.ts`, bible:** the moral code and red lines are now described as: > moralCode: the code they live by, true to who they are: firm for a good person, far looser for a bad one, or none at all. redLines: what that code forbids them, if anything ([] when nothing does). - **`writing-rules.ts`:** one new shared writing rule, right after "Every cruelty has a reason the love interest believes…": > A love interest may be genuinely evil, a monster or a villain, as dark as this story's Darkness allows: taming them is the point, so never soften them before the story earns it. "as dark as this story's Darkness allows" was added after review. The rule reaches Gentle stories too, whose contract says "No menace on the page", so the Darkness setting decides how far a villain goes. The shared rules block goes to the bible writer, the arc and chapter planners, every scene writer, the climaxes, phone replies, home lines, wishes and banners, items and the mini-games. - **`writing-rules.ts`:** "…and the love interest keeps their red lines." becomes "…and the love interest keeps whatever red lines they have." The bible writer also gets this rule, and the old wording would have pushed it to invent red lines for a character who has none. - **`content-contract.ts`:** Dark romance's "red lines they keep" becomes "whatever red lines they keep", since a love interest may now have none. **Audit changes the maintainer chose** - **Planners** (`story/prompts.ts` chapter, route and repair; `items/prompts.ts` Character Story and Extra Story): "each is a human, even if inside a monster" becomes "each is a human, even if a monster". They still say every love interest is "capable of earned, character-consistent change". - **`scene-card.ts`:** the card every scene, climax, phone reply, home line, Read Me, Read Him and banner gets now names the love interest's darkness: "Darkness: …", next to "Red lines: …". An empty list adds nothing, so old bibles produce the same card. - **`setup/prompts.ts`, bible:** - `mask.presents` is "the face they show, which may hide something kinder or something worse". - `darkness.kinds` is "the kinds of darkness in them, as dark as the card or archetype makes them within this story's Darkness, never softened: what they are (cruelty, a hunger for control), never a secret's events, which belong in secrets". The Gentle rule still keeps them interpersonal. - **`writing-rules.ts`:** a new rule after "not automatic redemption or a replacement personality": > Falling for the protagonist does not make a monster good or secretly kind at once; as affection grows and they come to know the protagonist, they may become a better partner to them, in their own way. It keeps the maintainer's point that a love interest naturally becomes a better partner as affection grows. It brings back neither of the removed 0.5.x phrases, "softens toward the protagonist…" and "changed toward the protagonist only"; the regression still forbids both. - **`content-contract.ts`:** - **Angst** (the default) now reads: "Danger is aimed at the world, at the love interests' pasts and at their enemies, never at the protagonist. Cruelty and violence are not sanitized within the Lines and Veils below, and always have consequences. A love interest may be a villain to everyone else: cold, ruthless with others or frightening, but never threatens or harms the protagonist." The no-sanitizing sentence moved here from the NSFW-Heat Angst addition, so NSFW-Heat Angst reads as before, without saying it twice. - **Dark romance:** "even a love interest can be a villain, have a dark side or break down under pressure". - **Gentle:** unchanged. **What didn't change:** - The content settings still decide what's allowed: Heat, Darkness, and Lines & Veils. - Gentle still has no menace on the page, and the proof checks that it never mentions villains or sanitizing. - Angst still keeps danger away from the protagonist, ending "never threatens or harms the protagonist", and its Lines and Veils are unchanged. - Under Dark, refusing is still always an option, and the story never ends the protagonist's life. - No consent, "non-graphic" or softening wording was added anywhere. **Side with one love interest (#2046)** *How often (`story/chapters.ts`, `sideWithOpen`)* - The earliest is main chapter 4. After that, at most one every four main chapters (`SIDE_WITH_GAP = 3` chapters complete in between). - The count reads the stored main-chapter plans, so there's no new state field and no migration. - Stories already in progress count from before chapter 1: one past chapter 4 may get one in its next chapter, but only if the planner finds a real disagreement. - A `ponytail:` comment notes the ceiling: a planned side-with scene that was eased off before the pick still uses up the gap. *The plan (P5)* - Only while a side-with scene is open, the chapter planner gets one optional rule: when 2 to 4 love interests share a beat node and the story gives them a real disagreement, it may mark that node `sideWith`, and its guide names what they disagree on. "Never invent one to use it." - Otherwise the planner prompt is byte-identical. - `normalizeChapterPlan` keeps the first mark that fits: a main chapter's beat node with 2-4 love interests. It drops any other mark without a repair turn, so the scene is never forced. - The mark is stored on the node and stripped from the player's view. *The scene (P6)* - On a marked node, the narrator plays the disagreement out, each love interest pressing their own view. It offers exactly one small choice, with one option per love interest present, each with a `backs` id. There's no stay-out or split-the-difference option. - Labels use the same player-addressed voice as Confrontations and Closers. No softening wording was added. - `readSideWith` checks the reply: one choice, one option per love interest present, none missing or unknown. A miss costs the usual one repair turn, which names what's missing. - Only an option that names someone in `backs` marks the choice, so an empty `"backs": null` on another choice is ignored. *Affection (code only, never the model's reply)* - `sideWithEffects` replaces any effects the model gave that choice: - the one backed gets trust +1 and **+30 affection**, uncapped by the daily cap; - each one passed over gets tension +1 and **−10 affection**, never below their level floor (`affectionFloorOf`), so no level, route stage or unlocked story is lost. - Trust is never lowered, so the hostile −15 never stacks on top. - A pick applies once, on first play; replays change nothing. - `SIDE_WITH_AFFECTION` lives in `shared/economy.ts` beside the other pinned numbers. *Canon* - The pick is an ordinary small choice, so it reaches the played path, summaries and memory. - The irrevocable decisions block names it: "sided with Kai over Mireille". *Reader UI* - The choice panel says **Side with one of them**, and each option shows the name it backs, in the accessible name too. - After the pick, polite toasts say **+30 affection with …** and **−10 affection with …** in each love interest's colour. There's no toast for one held at a level floor, and none on a replay. - On a replay, the first pick's label keeps room beside both badges on phones, and a badge that doesn't fit wraps under the label. - English strings: 3 new keys. The "Between you" affection hint now mentions siding with someone. The README rewards section lists the new numbers. **Release:** one release, 0.6.22, for both issues, at the maintainer's request: #2056 (side with) was merged into this branch and closed. The branch is up to date with staging (0.6.21). The rebuilt `client.js`, `server.mjs`, manifest, preview catalogs and `artifacts/otome-forge-0.6.22.zip` agree. With 0.6.21 merged, two files had a node field from each side, `judgment` and `sideWith`: `api-types.ts` `ChapterNode` and `schemas/story.ts` `NodeSchema`. `chapters.ts` and `prompts.ts` each had a context flag or block from each side. Every conflict kept both. The combined build passes all 602 Otome TypeScript regressions, 12 `.mjs` regressions and the full reader browser suite, 62/62. ## Package and security impact - Affected package IDs: `otome-forge` (0.6.21 → 0.6.22). - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. `POST …/choose` also returns `affection`, the per-love-interest point change, for the side-with toasts. - Restart, storage, update, or uninstall impact: - Bibles and world plans already written are not rewritten. - The writing rules, planner wording, scene card and contract reach every story already in progress. A bible that already lists darkness shows it on the card at once. - The bible and world-plan changes apply to stories and love interests created from now on. - Chapter nodes and beats gain optional `sideWith` fields. Older saves read unchanged. ## 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 What the agent ran locally: - **Regression suites:** on the combined branch, all 602 Otome TypeScript regressions and 12 `.mjs` regressions pass, and so does the full reader browser suite (62/62, desktop and mobile Chromium). - **Typecheck:** 0 strict errors in 88 server and 139 client files. - **Other checks:** Prettier and `git diff --check` pass. - **Package files:** the rebuilt zip's size and SHA-256 match all three preview catalogs and the manifest. The committed blob is the full 1,828,793-byte archive. - **New proofs.** All three fail with the source change reverted. - `otome-forge-knowledge.regression.ts`, #2054: - the bible, the scene writer and the chapter planner carry the evil rule and the love rule; - the world plan no longer says "nobody is simply a villain"; - the bible asks for the new moral code, mask and darkness wording, and not "from their own integrity"; - the shared rule reads "keeps whatever red lines they have"; - no prompt says "even if inside a monster". - `otome-forge-scene-card.regression.ts`: the card names a love interest's darkness beside their red lines, and leaves it out when there is none. - `otome-forge-contract.regression.ts`: - Angst carries the no-sanitizing and villain-to-everyone-else wording and still ends "never threatens or harms the protagonist"; - Dark lets a love interest be the villain; - Gentle keeps "No menace on the page." and never mentions villains or sanitizing. - **Pinned SFW prompts:** - The SFW digests in `otome-forge-sfw-defaults.regression.ts` and `otome-forge-seasons.regression.ts` were retaken, with a note in each file. Every story and banner prompt carries the writing rules and the Angst contract, so all of them moved. - The pinned exact Angst contract changes only by the two new sentences. The Gentle, home, summary and care contracts are unchanged. - **Local CodeRabbit:** - The shared "keeps their red lines" rule could make the bible writer invent red lines. Fixed above, with a regression check. - A "13-byte zip" finding didn't hold: each commit's zip blob is the full archive and matches its catalog entries. - The scene card now shows darkness at every stage, so a darkness entry that restated a secret ("secretly killed the prince") would surface it before its stage. Fixed at the source: the bible keeps `darkness.kinds` to what they are ("cruelty, a hunger for control"), never a secret's events, which stay in `secrets`, gated by stage. The knowledge proof pins the wording. - **Side-with proofs**, each checked to fail without its change: - `otome-forge-chapters.regression.ts`: - one every four main chapters at most, from chapter 4, counted from the stored plans; - the plan keeps one valid mark and drops every other, never as a repair; - the planner rule appears only while a side-with scene is open; - `POST /chapters/next` keeps a mark in chapter 4 and not in chapter 5 after one in chapter 2. - `otome-forge-beats.regression.ts`: - the reply needs one small choice backing each love interest present; - the P6 rule appears only on a marked main-chapter node; - the game sets the effects (a reply's affection 999 and trust −1 are ignored); - the pick moves affection once, and the decisions block names it. - `otome-forge-state-caps.regression.ts`: - the one backed gains past the daily cap; - one passed over never loses a level or a story; - a replay changes nothing. - **Browser** (`package-otome-forge-reader.e2e.ts`, desktop and mobile Chromium): - "Side with: the choice says so, names whom each option backs, and shows the affection it moved"; - "Side with on a replay: the first pick's label keeps its room beside both badges", at 320 px, 390 px and on desktop. - The surrounding choice and replay tests also pass: 8/8. - **Independent reviews:** three review agents (logic and canon, UX and accessibility, proofs and build) found five defects. All are fixed with proofs: - an empty `backs` on another choice refused a valid reply; - an empty protagonist name in the rule; - replay badges collapsing the label on phones; - a race in the e2e; - an accessible-name gap. - **Side-with CodeRabbit:** no findings. - **CodeRabbit on the combined branch:** one finding, fixed. The "genuinely evil" rule conflicted with Gentle's "No menace on the page"; it now reads "as dark as this story's Darkness allows". The SFW digests were retaken for it. - **CodeRabbit on the scene card:** the card is trimmed from the end when it runs long, so Darkness now comes after Red lines and Moral code, and a trimmed card keeps the boundaries it kept before. The scene-card proof pins the order. For a human to verify: - Start a new story with a love interest who is a villain in canon, such as a Fatui Harbinger. Manually verify the hidden bible's moral code is loose or none, and its red lines follow it or are empty. - Play a few chapters. Manually verify that love interest acts on their evil in the story, toward others, and toward the protagonist under Dark romance, instead of being softened from the start. - In the same story, manually verify the world plan can include a genuine villain, not only rivals who respect each other. - With Darkness set to Gentle, manually verify there's still no menace on the page. With Angst, manually verify danger is still never aimed at the protagonist. - With a real model, play a story to main chapter 4 or later with two love interests in a chapter. Manually verify that a chapter can get a side-with scene when they disagree, and that the three chapters after one never get another. Check the chapter-plan debug log for the SIDE WITH rule. - Manually verify the scene plays the argument out and offers one option per love interest present, worded to you, with no stay-out option. - Pick one. Manually verify you see "+30 affection with …" and "−10 affection with …" for each one passed over, and that Story → Between you shows the new points without a reload. - Replay that chapter. Manually verify the panel shows "Side with one of them" and "Your first choice", with no affection toasts, and that affection doesn't change. - Manually verify the next chapter's debug prompts list "sided with … over …" among the irrevocable decisions. - With a screen reader, manually verify each option is announced with the name it backs, and the toasts are announced. - Manually verify the panel and toasts in the Midnight and Pearl looks on a phone and a desktop, including a long love-interest name. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The package README's rewards section and the CHANGELOG describe both changes. 🤖 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:26 +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#2093
No description provided.