mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #2175] [MERGED] feat(otome-forge): a personality quiz to play while a chapter is planned (0.17.0) #2170
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#2170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2175
Author: @SpicyMarinara
Created: 11/7/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/otome-quiz📝 Commits (6)
fd010a0feat(otome-forge): a personality quiz to play while a chapter is planned (0.17.0)19b7e7dMerge origin/staging into feat/otome-quiz (0.17.0 after the arc fix's 0.13.1)4949514fix(otome-forge): quiz review fixes (18+ tags, SFW refill prompt, waits and focus)5f12ce5fix(otome-forge): quiz statements keep their own emphasis3fdb40cMerge origin/staging into feat/otome-quiz (0.17.0 after touch's 0.14.0)55d7209Merge origin/staging into feat/otome-quiz (0.17.0 after grievances' 0.16.0)📊 Changes
36 files changed (+2759 additions, -616 deletions)
View changed files
➕
artifacts/otome-forge-0.17.0.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -6)📝
packages/otome-forge/CHANGELOG.md(+6 -0)📝
packages/otome-forge/README.md(+5 -3)📝
packages/otome-forge/client.js(+354 -327)📝
packages/otome-forge/manifest.json(+5 -5)📝
packages/otome-forge/server.mjs(+176 -167)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json(+19 -1)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/setup/ReviewStep.tsx(+2 -1)➕
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/story/PersonalityQuiz.tsx(+247 -0)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/story/StoryHome.tsx(+76 -51)➕
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/quiz.ts(+56 -0)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts(+28 -1)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/generation.ts(+16 -5)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/ids.ts(+7 -0)...and 16 more files
📄 Description
Pull request
Linked issue
Closes #2174
Why this change
The maintainer asked for a personality quiz to play while a chapter is planned. It's modelled on online BDSM, relationship and personality tests. The player answers statements from strongly disagree (1) to strongly agree (5), then compares their answers with how each love interest answered. The love interests' answers come from their bibles and are never sent with model calls. Sexual and kink statements are hidden when NSFW is off.
The waits also change. "What happened so far" shows only while an arc is planned. Other chapter-planning waits offer the quiz, and Who said what? stays on scene writing.
What changed
In detail (package
otome-forge, 0.17.0):Statements: 100 original starting statements in
S/minigames/quiz-statements.ts, each with a stable id, a category and an 18+ flag: 32 18+, 20 love, 20 together and 28 temperament. They are asked interleaved.Storage: a separate
${R}:quizrun document holds the statements, each love interest's 1–5 score and the player's answers. It is never stored in the bible, which is serialized into prompts. A regression proves a stored marker never reaches a chapter prompt. A structural guard proves onlyminigames/quiz.tsreads the document.Scoring: one background call in the maintainer's line format,
<statement>: <name> <score> | <name> <score> | …, with tolerant parsing:Kai: 5/Kai (5)forms;The prompts (
quizScoreMessages,quizRefillMessages) are logged in debug mode.When scoring runs:
setup/forge.tsqueues it after every bible is written.GET /runs/:run) callsensureQuizScores, which queues one call for whatever is missing: an older story, a newcomer, or 18+ statements after Heat goes NSFW.Refill: answering the last visible statement queues one call that writes 50 new statements together with every love interest's score.
[18+]-tagged lines are dropped while Heat is SFW, and the prompt asks for none then.Agreement: computed with no model call, as the mean of 1 − |yours − theirs| / 4, shown as "N% alike" for each love interest.
Loading screens (
StoryHome.tsx):Play flow (
PersonalityQuiz.tsx): like Who said what?. Play comes first, focus moves only after the player's own action, and the reveal is announced politely. Each answer is saved as it's given, and the first answer is final.Setup and docs: the setup screen's cost line counts the quiz call. The README covers the waits, the costs and what is stored.
Generated outputs rebuilt:
client.js,server.mjs,manifest.json,artifacts/otome-forge-0.17.0.zipand the catalogs. Staging is merged in after #2173.Package and security impact
otome-forge(0.17.0)minEngineVersionis unchanged.GET /runs/:run/quizandPOST /runs/:run/quiz/answer.quizdocument. Removing the package removes its data like other run documents.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdAgent runs, for the record (not a substitute for the boxes above):
npm run test:otome-forgeafter the staging merge: 809 passed, 0 failed.otome-forge-quiz.regression.ts(14 tests) and one setup test.node scripts/typecheck-packages.mjs otome-forge: clean. ESLint and Prettier on the changed sources: clean.Browser, before the staging merge: the reader "waits" tests, 12 passed, including the new quiz test on phone and desktop. The presentation file passed 130.
Local review:
[18+]tag is found wherever the model puts it: in bold, in quotes, at the end, or before a colon.Manual verification notes
Documentation impact
packages/otome-forge/README.mdandCHANGELOG.mdare updated. The 100 starting statements are English; refilled statements are written in the story's language.UI evidence (if applicable)
The browser test captures the quiz on desktop and phone (artifacts of the package browser run).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #2175] feat(otome-forge): a personality quiz to play while a chapter is planned (0.17.0)to [PR #2175] [MERGED] feat(otome-forge): a personality quiz to play while a chapter is planned (0.17.0)