[PR #1793] [MERGED] feat(otome-forge): 0.0.2 world setup, cast, bibles and content settings (M1) #1968

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

📋 Pull Request Information

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

Base: staging ← Head: feat/otome-forge-m1


📝 Commits (8)

  • 90deec7 feat(otome-forge): 0.0.2 world setup, cast, bibles and content settings (M1, #1781)
  • 2aca9e6 fix(otome-forge): hold a forge job across the write that queues a retry or a paint
  • 5525b48 Merge remote-tracking branch 'origin/staging' into feat/otome-forge-m1
  • 53d0241 fix(otome-forge): M1 review fixes and the browser workflow's shared build
  • 962f41f ci(otome-forge): let the browser fixture install a package still in no catalog
  • 73d3b81 test(otome-forge): allow the host's 1px edge in the phone full-bleed check
  • 9b2c3f6 Merge remote-tracking branch 'origin/staging' into feat/otome-forge-m1
  • e403181 build(otome-forge): rebuild on the kit options from M0b

📊 Changes

86 files changed (+13850 additions, -242 deletions)

View changed files

➕ .github/workflows/otome-forge-browser.yml (+90 -0)
📝 README.md (+1 -1)
➕ artifacts/otome-forge-0.0.2.zip (+0 -0)
📝 package.json (+1 -0)
📝 packages/otome-forge/CHANGELOG.md (+8 -0)
📝 packages/otome-forge/README.md (+6 -2)
📝 packages/otome-forge/client.js (+586 -108)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+38 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/OtomeForgeView.tsx (+122 -21)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/api.ts (+9 -0)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/AgeGateDialog.tsx (+103 -0)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/Avatar.tsx (+28 -0)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/CostHint.tsx (+31 -0)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/Dialog.tsx (+93 -0)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/PromptReviewDialog.tsx (+96 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/Stage.tsx (+24 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/TopBar.tsx (+2 -11)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-engine-resources.ts (+161 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-index.ts (+10 -4)

...and 66 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.

Linked issue

Fixes #1792 (milestone M1 of #1781, Otome Forge release 1).

Why this change

The maintainer asked for Otome Forge to be built: a character-driven otome game with flawed, dynamic love interests, angst, opt-in dark romance and an NSFW/SFW switch behind an 18+ gate. This milestone lets a player create a world. Everything later (chapters, Home, the phone, banners, mini-games) reads what this creates: the world plan, the cast's character bibles and the content settings.

What changed

otome-forge 0.0.2 (still in no catalog):

  • Setup wizard:

    • premise, with "Surprise me";
    • a protagonist from an Engine persona, with pronouns, traits and a goal;
    • 2–5 love interests from character cards (paged) or six archetypes, each with their own pronouns. The archetypes are Brilliant Monster, Gilded Tyrant, Gentle Liar, Loyal Blade, Ruined Saint and Laughing Stranger;
    • content settings and connections, with Edit opening the Engine's connection;
    • a review step with cost hints.

    The draft stays in this browser until the story is made.

  • Forge:

    • a world plan: a central mystery whose pieces each love interest hides for his own reason, and the web of history, stance and debt between them;

    • one character bible per love interest. Its fields:

      • age (at least 18);
      • wound, lie, want, need and fear;
      • mask, tells and true self;
      • flaws, moral code and red lines;
      • kinds of darkness;
      • voice, including how he cares, gets angry and gets jealous;
      • secrets, each with the arc stage that reveals it;
      • look lines.

      It is derived from the card and never contradicts it. A minor or a school role is refused after one repair turn.

    • Text steps run while the player watches. A failed step waits for Retry and says why. A step left running by a restart shows as stopped.

    • Base looks are painted only after the player taps "Paint the cast", go through prompt review when that Engine setting is on, and are never repainted on their own. A world made without images can add them later from Settings.

  • Bibles: hidden behind "Show spoilers". A form editor checks the rules the server enforces and names the one that fails. "Card canon wins" is noted.

  • Content settings, enforced on the server:

    • Heat: SFW (default), NSFW fade or NSFW explicit;
    • Darkness: Gentle, Angst (default) or Dark romance;
    • Lines & Veils: a catalog plus the player's own entries;
    • an image rating, separate from Heat.

    One 18+ confirmation ("I am 18 or older. Love interests are always adults. This is fiction.") is stored with a timestamp and unlocks NSFW Heat, Dark romance and image ratings above SFW. Only raising a setting asks for it. Revoking it returns every world to SFW, Angst and SFW images. Non-consent is a Line the player may change only under Dark with NSFW and the gate; pregnancy is a default Line.

  • Generation core:

    • structured JSON with zod and exactly one repair turn;
    • a refusal is reported as declined, a malformed reply as bad-format;
    • every call gets at least 8192 output tokens plus headroom, capped by the connection;
    • every prompt is logged through debugOverride with redaction when Debug mode or DEBUG_AGENTS is on;
    • a per-run serial queue that re-checks the cache, and background admission.
    • The content contract and the knowledge boundary reach every prompt that writes story. A 150–250-token scene card shows unrevealed secrets only as tells.
  • Run admin: a world picker; activate; delete (removes every document of the run and its gallery images); settings for content, images, connections and language. A Privacy & data screen covers backups and exports, ADMIN_SECRET and what stays in this browser. A Debug screen.

  • CI: tests/package-otome-forge.e2e.ts and .github/workflows/otome-forge-browser.yml.

Choices made for the maintainer to confirm

  • Lines & Veils defaults for Gentle and Angst are a proposal; the design only listed Dark's.
  • Outside Dark, items aimed at the protagonist (violence toward the protagonist, dubious consent, non-consent) stay fixed Lines.
  • That limit is named violence-to-protagonist, so it assumes no gender.

Package and security impact

  • Affected package IDs: otome-forge (in no catalog).
  • Engine compatibility impact: Capability API 1.386, unchanged.
  • New or changed permissions/entrypoints: none beyond routes, storage, ui.
  • Restart, storage, update, or uninstall impact: new documents under otome-forge:. Deleting a world removes all of them and its gallery images.

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:

  • Build: the package build is byte-identical on a second run, and the client and server host gates pass.
  • Checks that pass: npm run check, npm run typecheck:packages, the strict typecheck (26 server and shared files, 47 client files), npm run test:otome-forge (57 + 5 tests), validate-package-locales, validate-package-locale-keys, test-catalog-lanes and git diff --check.
  • validate-catalog passed with the catalog's zips materialized in this sparse worktree; it shows otome-forge in no catalog.
  • The regressions cover:
    • generation: one repair turn, declined versus bad-format, redacted prompt logs, no duplicate writes from the queue, background requeue;
    • the content contract;
    • setup: 2–5 love interests, the gate on create and settings, bible rules, card fields in prompts, the otome-forge: prefix, paint consent and no repaint, a stale running step becoming stopped;
    • the scene card: an unrevealed truth never appears.
  • A Chromium smoke ran the built client against the built server, with a scripted model and image provider. It covered:
    • a world with two card love interests and one archetype reaching ready;
    • the 18+ dialog when Explicit is picked;
    • the spoiler gate and editor;
    • a world with no images;
    • painting only after the tap;
    • prompt review;
    • focus surviving a host redraw;
    • no polling while a step waits on Retry.
  • An implementation workflow built this with three agents (core, setup and art, client) and a lead. An adversarial review then confirmed 26 findings (several duplicates), all fixed here. Among them:
    • an edited image prompt could drop the adult tags;
    • token budgets left reasoning models no room;
    • a gated draft was quietly lowered to SFW;
    • Retry skipped prompt review;
    • polling never stopped while a step waited on Retry;
    • assorted accessibility fixes.
  • CodeRabbit (local) raised one finding: a retry or paint consent could be taken for a stopped job between its write and its scheduling. Today's Engine store commits synchronously, so that window cannot open (the review's verifier showed this), but the second commit holds the job across the write anyway, so it no longer depends on that.
  • Not run: the Playwright e2e against a real Engine. The local Engine checkout needs pnpm install, so otome-forge-browser.yml's first CI run is its first real run.

To verify by hand (first with only a text connection, then with an image connection):

  • Manually verify creating a world with two card love interests and one archetype, and that it reaches ready.
  • Manually verify that the bibles stay behind the spoiler gate, can be edited, and refuse an age under 18.
  • Manually verify that a world with no image connection is fully usable, and that adding an image connection later offers "Paint the cast".
  • Manually verify that the cast paints only after the tap, and that a failure shows Retry and never repaints by itself.
  • Manually verify that picking NSFW Heat, Dark romance or an image rating above SFW asks for the 18+ confirmation, and that revoking it in Settings returns the worlds to SFW, Angst and SFW images.
  • Manually verify that Debug mode logs [debug/otome-forge/<label>] lines and the avatar prompt.
  • Manually verify that Gacha Forge installed alongside causes no errors.

🤖 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/1793 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/otome-forge-m1` --- ### 📝 Commits (8) - [`90deec7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/90deec72d5e40050b27a8daa04886d89e2de51dd) feat(otome-forge): 0.0.2 world setup, cast, bibles and content settings (M1, #1781) - [`2aca9e6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2aca9e61c223b61df24f2d47ef318888b0d4c948) fix(otome-forge): hold a forge job across the write that queues a retry or a paint - [`5525b48`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5525b485141cf5612c8a8667512f7f4329ac3072) Merge remote-tracking branch 'origin/staging' into feat/otome-forge-m1 - [`53d0241`](https://github.com/Pasta-Devs/Marinara-Agents/commit/53d0241af1ebac10ae158f3091b79d35344936fb) fix(otome-forge): M1 review fixes and the browser workflow's shared build - [`962f41f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/962f41fbeac3d0fc954cbb88c4c249be32a7aced) ci(otome-forge): let the browser fixture install a package still in no catalog - [`73d3b81`](https://github.com/Pasta-Devs/Marinara-Agents/commit/73d3b814dee02433e22c5396c70801c5a07c0b69) test(otome-forge): allow the host's 1px edge in the phone full-bleed check - [`9b2c3f6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9b2c3f6cc35baa19e963319a88320b428c1c494d) Merge remote-tracking branch 'origin/staging' into feat/otome-forge-m1 - [`e403181`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e4031815ae3ce7604da14cfe60c2e813fe84ec9f) build(otome-forge): rebuild on the kit options from M0b ### 📊 Changes **86 files changed** (+13850 additions, -242 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/otome-forge-browser.yml` (+90 -0) 📝 `README.md` (+1 -1) ➕ `artifacts/otome-forge-0.0.2.zip` (+0 -0) 📝 `package.json` (+1 -0) 📝 `packages/otome-forge/CHANGELOG.md` (+8 -0) 📝 `packages/otome-forge/README.md` (+6 -2) 📝 `packages/otome-forge/client.js` (+586 -108) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+38 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/OtomeForgeView.tsx` (+122 -21) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/api.ts` (+9 -0) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/AgeGateDialog.tsx` (+103 -0) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/Avatar.tsx` (+28 -0) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/CostHint.tsx` (+31 -0) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/Dialog.tsx` (+93 -0) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/PromptReviewDialog.tsx` (+96 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/Stage.tsx` (+24 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/TopBar.tsx` (+2 -11) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-engine-resources.ts` (+161 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-index.ts` (+10 -4) _...and 66 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. ## Linked issue Fixes #1792 (milestone M1 of #1781, Otome Forge release 1). ## Why this change The maintainer asked for Otome Forge to be built: a character-driven otome game with flawed, dynamic love interests, angst, opt-in dark romance and an NSFW/SFW switch behind an 18+ gate. This milestone lets a player create a world. Everything later (chapters, Home, the phone, banners, mini-games) reads what this creates: the world plan, the cast's character bibles and the content settings. ## What changed `otome-forge` 0.0.2 (still in no catalog): - **Setup wizard:** - premise, with "Surprise me"; - a protagonist from an Engine persona, with pronouns, traits and a goal; - 2–5 love interests from character cards (paged) or six archetypes, each with their own pronouns. The archetypes are Brilliant Monster, Gilded Tyrant, Gentle Liar, Loyal Blade, Ruined Saint and Laughing Stranger; - content settings and connections, with Edit opening the Engine's connection; - a review step with cost hints. The draft stays in this browser until the story is made. - **Forge:** - a world plan: a central mystery whose pieces each love interest hides for his own reason, and the web of history, stance and debt between them; - one character bible per love interest. Its fields: - age (at least 18); - wound, lie, want, need and fear; - mask, tells and true self; - flaws, moral code and red lines; - kinds of darkness; - voice, including how he cares, gets angry and gets jealous; - secrets, each with the arc stage that reveals it; - look lines. It is derived from the card and never contradicts it. A minor or a school role is refused after one repair turn. - Text steps run while the player watches. A failed step waits for Retry and says why. A step left running by a restart shows as stopped. - Base looks are painted only after the player taps "Paint the cast", go through prompt review when that Engine setting is on, and are never repainted on their own. A world made without images can add them later from Settings. - **Bibles:** hidden behind "Show spoilers". A form editor checks the rules the server enforces and names the one that fails. "Card canon wins" is noted. - **Content settings, enforced on the server:** - Heat: SFW (default), NSFW fade or NSFW explicit; - Darkness: Gentle, Angst (default) or Dark romance; - Lines & Veils: a catalog plus the player's own entries; - an image rating, separate from Heat. One 18+ confirmation ("I am 18 or older. Love interests are always adults. This is fiction.") is stored with a timestamp and unlocks NSFW Heat, Dark romance and image ratings above SFW. Only raising a setting asks for it. Revoking it returns every world to SFW, Angst and SFW images. Non-consent is a Line the player may change only under Dark with NSFW and the gate; pregnancy is a default Line. - **Generation core:** - structured JSON with zod and exactly one repair turn; - a refusal is reported as `declined`, a malformed reply as `bad-format`; - every call gets at least 8192 output tokens plus headroom, capped by the connection; - every prompt is logged through `debugOverride` with redaction when Debug mode or `DEBUG_AGENTS` is on; - a per-run serial queue that re-checks the cache, and background admission. - The content contract and the knowledge boundary reach every prompt that writes story. A 150–250-token scene card shows unrevealed secrets only as tells. - **Run admin:** a world picker; activate; delete (removes every document of the run and its gallery images); settings for content, images, connections and language. A Privacy & data screen covers backups and exports, `ADMIN_SECRET` and what stays in this browser. A Debug screen. - **CI:** `tests/package-otome-forge.e2e.ts` and `.github/workflows/otome-forge-browser.yml`. ### Choices made for the maintainer to confirm - Lines & Veils defaults for Gentle and Angst are a proposal; the design only listed Dark's. - Outside Dark, items aimed at the protagonist (violence toward the protagonist, dubious consent, non-consent) stay fixed Lines. - That limit is named `violence-to-protagonist`, so it assumes no gender. ## Package and security impact - Affected package IDs: `otome-forge` (in no catalog). - Engine compatibility impact: Capability API 1.386, unchanged. - New or changed permissions/entrypoints: none beyond `routes`, `storage`, `ui`. - Restart, storage, update, or uninstall impact: new documents under `otome-forge:`. Deleting a world removes all of them and its gallery images. ## 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: - Build: the package build is byte-identical on a second run, and the client and server host gates pass. - Checks that pass: `npm run check`, `npm run typecheck:packages`, the strict typecheck (26 server and shared files, 47 client files), `npm run test:otome-forge` (57 + 5 tests), `validate-package-locales`, `validate-package-locale-keys`, `test-catalog-lanes` and `git diff --check`. - `validate-catalog` passed with the catalog's zips materialized in this sparse worktree; it shows otome-forge in no catalog. - The regressions cover: - generation: one repair turn, `declined` versus `bad-format`, redacted prompt logs, no duplicate writes from the queue, background requeue; - the content contract; - setup: 2–5 love interests, the gate on create and settings, bible rules, card fields in prompts, the `otome-forge:` prefix, paint consent and no repaint, a stale running step becoming stopped; - the scene card: an unrevealed truth never appears. - A Chromium smoke ran the built client against the built server, with a scripted model and image provider. It covered: - a world with two card love interests and one archetype reaching ready; - the 18+ dialog when Explicit is picked; - the spoiler gate and editor; - a world with no images; - painting only after the tap; - prompt review; - focus surviving a host redraw; - no polling while a step waits on Retry. - An implementation workflow built this with three agents (core, setup and art, client) and a lead. An adversarial review then confirmed 26 findings (several duplicates), all fixed here. Among them: - an edited image prompt could drop the adult tags; - token budgets left reasoning models no room; - a gated draft was quietly lowered to SFW; - Retry skipped prompt review; - polling never stopped while a step waited on Retry; - assorted accessibility fixes. - CodeRabbit (local) raised one finding: a retry or paint consent could be taken for a stopped job between its write and its scheduling. Today's Engine store commits synchronously, so that window cannot open (the review's verifier showed this), but the second commit holds the job across the write anyway, so it no longer depends on that. - **Not run:** the Playwright e2e against a real Engine. The local Engine checkout needs `pnpm install`, so `otome-forge-browser.yml`'s first CI run is its first real run. To verify by hand (first with only a text connection, then with an image connection): - Manually verify creating a world with two card love interests and one archetype, and that it reaches ready. - Manually verify that the bibles stay behind the spoiler gate, can be edited, and refuse an age under 18. - Manually verify that a world with no image connection is fully usable, and that adding an image connection later offers "Paint the cast". - Manually verify that the cast paints only after the tap, and that a failure shows Retry and never repaints by itself. - Manually verify that picking NSFW Heat, Dark romance or an image rating above SFW asks for the 18+ confirmation, and that revoking it in Settings returns the worlds to SFW, Angst and SFW images. - Manually verify that Debug mode logs `[debug/otome-forge/<label>]` lines and the avatar prompt. - Manually verify that Gacha Forge installed alongside causes no errors. 🤖 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:23 +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#1968
No description provided.