[PR #1790] [MERGED] feat(otome-forge): 0.0.1 development skeleton and frame (M0c) #1967

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/1790
Author: @SpicyMarinara
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/otome-forge


📝 Commits (3)

  • 4b4d21e feat(otome-forge): 0.0.1 development skeleton and frame (M0c, #1781)
  • 40ec730 fix(otome-forge): ship the fonts' OFL licence in the package
  • 48ac179 fix(otome-forge): keep the loaded screen when a background refetch fails

📊 Changes

54 files changed (+3313 additions, -8 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+3 -0)
📝 README.md (+1 -0)
➕ artifacts/otome-forge-0.0.1.zip (+0 -0)
➕ artwork/agent-covers/otome-forge.png (+0 -0)
📝 package.json (+2 -1)
➕ packages/otome-forge/CHANGELOG.md (+6 -0)
➕ packages/otome-forge/README.md (+19 -0)
➕ packages/otome-forge/agents.json (+22 -0)
➕ packages/otome-forge/client.js (+341 -0)
➕ packages/otome-forge/fonts/OFL.txt (+95 -0)
➕ packages/otome-forge/fonts/caveat-500-latin-ext.woff2 (+0 -0)
➕ packages/otome-forge/fonts/caveat-500-latin.woff2 (+0 -0)
➕ packages/otome-forge/fonts/cormorant-garamond-600-italic-latin-ext.woff2 (+0 -0)
➕ packages/otome-forge/fonts/cormorant-garamond-600-italic-latin.woff2 (+0 -0)
➕ packages/otome-forge/fonts/cormorant-garamond-600-latin-ext.woff2 (+0 -0)
➕ packages/otome-forge/fonts/cormorant-garamond-600-latin.woff2 (+0 -0)
➕ packages/otome-forge/fonts/nunito-sans-variable-latin-ext.woff2 (+0 -0)
➕ packages/otome-forge/fonts/nunito-sans-variable-latin.woff2 (+0 -0)
➕ packages/otome-forge/locales/en.json (+17 -0)
➕ packages/otome-forge/manifest.json (+64 -0)

...and 34 more files

📄 Description

Pull request

Important

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

Linked issue

Fixes #1791 (milestone M0c of #1781, Otome Forge release 1).

Why this change

The maintainer asked for Otome Forge to be built: an otome game made from Gacha Forge's parts, with love interests, outfit and memory banners, mini-games including the Claw Machine, a character-driven story and a period tracker. The design is #1781, and the implementation plan splits release 1 into reviewable milestones.

This first milestone ships the foundation everything else builds on: a buildable package, a storage layer that coexists with Gacha Forge, and the portrait frame every screen will live in. It stays out of every catalog (INCOMPLETE_PACKAGE_IDS) until the story milestone makes it playable.

What changed

New package otome-forge 0.0.1 (source-built like Story Writer):

  • Server (src/engine/packages/server/src/services/otome-forge):
    • Every document id starts with otome-forge:. capability_documents ids are shared by all packages, so Gacha Forge's index row would block an unprefixed one.
    • store.ts creates a document when it is missing, retries revision conflicts and create races, and answers 409 conflict once 4 attempts run out.
    • GET /index and POST /index/opened.
    • Typed errors return {error, code}; anything else is logged once without the request body and returned as a plain 500.
    • selfCheck reads the index.
  • Client (src/engine/packages/client/src/features/otome-forge):
    • A 9:16 portrait stage, centred over a blurred backdrop on desktop and full-bleed on phones, with fullscreen through the Engine's browserFullscreen.
    • The top bar (love interest chip, Starlight, fullscreen, settings) and the dock: Story · Dates · Wish (raised) · Wardrobe · Album. Screens not built yet say they arrive in a later build.
    • Midnight and Pearl looks, with "Follow system" as the default, kept in this browser only.
    • OFL font subsets as data: URIs (the CSP allows only font-src 'self' data:): Cormorant Garamond, Nunito Sans and Caveat. Their sources and OFL.txt are in packages/otome-forge/fonts/.
    • Calm crossfades, all off under prefers-reduced-motion. Focus moves to each new screen and the screen is announced.
    • Every string has a flat ui.otomeForge.* key in the English catalog. Text direction follows the language actually rendered.
  • Build and CI:
    • The @forge-kit esbuild alias (and its tsconfig path) points at packages/gacha-forge/src until the shared-kit move lands; a ponytail: note names the switch.
    • Added to typecheck:packages and the strict typecheck, a test:otome-forge script run by CI, the locale-key validator, the official package guidance and the README package table ("In development (not listed)"). A placeholder cover is in artwork/agent-covers/otome-forge.png.
  • Tests: tests/otome-forge-store.regression.ts (9 tests: Gacha Forge's index row present, conflict retry with no lost write, create race, 409 after 4 attempts, prefix rule, normalizer, error replies) and tests/otome-forge-server-bundle.regression.mjs (activates the committed server.mjs: routes, selfCheck, prefix, retries, 409/400/500).

Package and security impact

  • Affected package IDs: otome-forge (new; not in any catalog).
  • Engine compatibility impact: needs Capability API 1.386 (as Story Writer).
  • New or changed permissions/entrypoints: routes, storage, ui; slot home-browser-tab.
  • Restart, storage, update, or uninstall impact: restart required on install, as for every package. Documents use the otome-forge: prefix.

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:

  • MARINARA_ENGINE_ROOT=<engine> node scripts/build-feature-packages.mjs otome-forge exits 0 with the client and server host gates passing; a second build is byte-identical (client.js, server.mjs, zip). The local Engine checkout's install lacks zod-v3, so builds used a symlink shim adding that alias onto the installed zod 3.25.76.

  • npm run check, npm run typecheck:packages, the strict typecheck (6 server/shared and 17 client files, no errors), npm run test:otome-forge (9 + 5 tests), validate-package-locales, validate-package-locale-keys, test-catalog-lanes and git diff --check pass. validate-catalog passed when run with the catalog's zips materialized (this worktree is sparse); it shows otome-forge in no catalog.

  • A Chromium and WebKit smoke test mounted the built client against the built server: centred stage at 1280×800, full-bleed at 390×844, fonts rendering with no CSP errors, both looks, reduced motion stopping every transition.

  • An implementation workflow built this with one agent on the server and build and one on the client frame, then a lead integrated it. An adversarial review with a refuting verifier per finding confirmed six findings, all fixed here: focus lost on navigation, lang set to the Engine's locale while the text is English, physical padding in RTL, bundle test coverage of selfCheck and retries, the 4-attempt budget not pinned, and the index normalizer dropping a whole run on one bad field.

  • CodeRabbit (local) found one issue, fixed in the second commit: the fonts' OFL.txt now ships in the package archive (assetPaths).

To verify by hand:

  • Manually verify that a development catalog built with MARINARA_CATALOG_INCLUDE_INCOMPLETE=1 installs Otome Forge, and that Home → Otome Forge opens the welcome screen after the restart.
  • Manually verify that "Look around" shows the Home preview with the dock, that each dock item opens its placeholder, and that Back returns.
  • Manually verify that Settings switches between Midnight, Pearl and Follow system, and that the choice survives a reload.
  • Manually verify fullscreen enter and exit, and that the stage stays portrait on a phone in landscape.
  • Manually verify keyboard navigation through the dock and top bar, with a visible focus ring.

🤖 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/1790 **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` --- ### 📝 Commits (3) - [`4b4d21e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4b4d21e0d1cf55512526555ca79b3d1d92d8fcea) feat(otome-forge): 0.0.1 development skeleton and frame (M0c, #1781) - [`40ec730`](https://github.com/Pasta-Devs/Marinara-Agents/commit/40ec73007a47b45d377949600e82c88ca07955ef) fix(otome-forge): ship the fonts' OFL licence in the package - [`48ac179`](https://github.com/Pasta-Devs/Marinara-Agents/commit/48ac1792770ab13eccbcbd27b532a9e8a5fbabc5) fix(otome-forge): keep the loaded screen when a background refetch fails ### 📊 Changes **54 files changed** (+3313 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) 📝 `README.md` (+1 -0) ➕ `artifacts/otome-forge-0.0.1.zip` (+0 -0) ➕ `artwork/agent-covers/otome-forge.png` (+0 -0) 📝 `package.json` (+2 -1) ➕ `packages/otome-forge/CHANGELOG.md` (+6 -0) ➕ `packages/otome-forge/README.md` (+19 -0) ➕ `packages/otome-forge/agents.json` (+22 -0) ➕ `packages/otome-forge/client.js` (+341 -0) ➕ `packages/otome-forge/fonts/OFL.txt` (+95 -0) ➕ `packages/otome-forge/fonts/caveat-500-latin-ext.woff2` (+0 -0) ➕ `packages/otome-forge/fonts/caveat-500-latin.woff2` (+0 -0) ➕ `packages/otome-forge/fonts/cormorant-garamond-600-italic-latin-ext.woff2` (+0 -0) ➕ `packages/otome-forge/fonts/cormorant-garamond-600-italic-latin.woff2` (+0 -0) ➕ `packages/otome-forge/fonts/cormorant-garamond-600-latin-ext.woff2` (+0 -0) ➕ `packages/otome-forge/fonts/cormorant-garamond-600-latin.woff2` (+0 -0) ➕ `packages/otome-forge/fonts/nunito-sans-variable-latin-ext.woff2` (+0 -0) ➕ `packages/otome-forge/fonts/nunito-sans-variable-latin.woff2` (+0 -0) ➕ `packages/otome-forge/locales/en.json` (+17 -0) ➕ `packages/otome-forge/manifest.json` (+64 -0) _...and 34 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. ## Linked issue Fixes #1791 (milestone M0c of #1781, Otome Forge release 1). ## Why this change The maintainer asked for Otome Forge to be built: an otome game made from Gacha Forge's parts, with love interests, outfit and memory banners, mini-games including the Claw Machine, a character-driven story and a period tracker. The design is #1781, and the implementation plan splits release 1 into reviewable milestones. This first milestone ships the foundation everything else builds on: a buildable package, a storage layer that coexists with Gacha Forge, and the portrait frame every screen will live in. It stays out of every catalog (`INCOMPLETE_PACKAGE_IDS`) until the story milestone makes it playable. ## What changed New package `otome-forge` 0.0.1 (source-built like Story Writer): - **Server** (`src/engine/packages/server/src/services/otome-forge`): - Every document id starts with `otome-forge:`. `capability_documents` ids are shared by all packages, so Gacha Forge's `index` row would block an unprefixed one. - `store.ts` creates a document when it is missing, retries revision conflicts and create races, and answers 409 `conflict` once 4 attempts run out. - `GET /index` and `POST /index/opened`. - Typed errors return `{error, code}`; anything else is logged once without the request body and returned as a plain 500. - `selfCheck` reads the index. - **Client** (`src/engine/packages/client/src/features/otome-forge`): - A 9:16 portrait stage, centred over a blurred backdrop on desktop and full-bleed on phones, with fullscreen through the Engine's `browserFullscreen`. - The top bar (love interest chip, Starlight, fullscreen, settings) and the dock: Story · Dates · **Wish** (raised) · Wardrobe · Album. Screens not built yet say they arrive in a later build. - Midnight and Pearl looks, with "Follow system" as the default, kept in this browser only. - OFL font subsets as `data:` URIs (the CSP allows only `font-src 'self' data:`): Cormorant Garamond, Nunito Sans and Caveat. Their sources and `OFL.txt` are in `packages/otome-forge/fonts/`. - Calm crossfades, all off under `prefers-reduced-motion`. Focus moves to each new screen and the screen is announced. - Every string has a flat `ui.otomeForge.*` key in the English catalog. Text direction follows the language actually rendered. - **Build and CI:** - The `@forge-kit` esbuild alias (and its tsconfig path) points at `packages/gacha-forge/src` until the shared-kit move lands; a `ponytail:` note names the switch. - Added to `typecheck:packages` and the strict typecheck, a `test:otome-forge` script run by CI, the locale-key validator, the official package guidance and the README package table ("In development (not listed)"). A placeholder cover is in `artwork/agent-covers/otome-forge.png`. - **Tests:** `tests/otome-forge-store.regression.ts` (9 tests: Gacha Forge's index row present, conflict retry with no lost write, create race, 409 after 4 attempts, prefix rule, normalizer, error replies) and `tests/otome-forge-server-bundle.regression.mjs` (activates the committed `server.mjs`: routes, `selfCheck`, prefix, retries, 409/400/500). ## Package and security impact - Affected package IDs: `otome-forge` (new; not in any catalog). - Engine compatibility impact: needs Capability API 1.386 (as Story Writer). - New or changed permissions/entrypoints: `routes`, `storage`, `ui`; slot `home-browser-tab`. - Restart, storage, update, or uninstall impact: restart required on install, as for every package. Documents use the `otome-forge:` prefix. ## 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: - `MARINARA_ENGINE_ROOT=<engine> node scripts/build-feature-packages.mjs otome-forge` exits 0 with the client and server host gates passing; a second build is byte-identical (`client.js`, `server.mjs`, zip). The local Engine checkout's install lacks `zod-v3`, so builds used a symlink shim adding that alias onto the installed zod 3.25.76. - `npm run check`, `npm run typecheck:packages`, the strict typecheck (6 server/shared and 17 client files, no errors), `npm run test:otome-forge` (9 + 5 tests), `validate-package-locales`, `validate-package-locale-keys`, `test-catalog-lanes` and `git diff --check` pass. `validate-catalog` passed when run with the catalog's zips materialized (this worktree is sparse); it shows otome-forge in no catalog. - A Chromium and WebKit smoke test mounted the built client against the built server: centred stage at 1280×800, full-bleed at 390×844, fonts rendering with no CSP errors, both looks, reduced motion stopping every transition. - An implementation workflow built this with one agent on the server and build and one on the client frame, then a lead integrated it. An adversarial review with a refuting verifier per finding confirmed six findings, all fixed here: focus lost on navigation, `lang` set to the Engine's locale while the text is English, physical padding in RTL, bundle test coverage of `selfCheck` and retries, the 4-attempt budget not pinned, and the index normalizer dropping a whole run on one bad field. - CodeRabbit (local) found one issue, fixed in the second commit: the fonts' `OFL.txt` now ships in the package archive (`assetPaths`). To verify by hand: - Manually verify that a development catalog built with `MARINARA_CATALOG_INCLUDE_INCOMPLETE=1` installs Otome Forge, and that Home → Otome Forge opens the welcome screen after the restart. - Manually verify that "Look around" shows the Home preview with the dock, that each dock item opens its placeholder, and that Back returns. - Manually verify that Settings switches between Midnight, Pearl and Follow system, and that the choice survives a reload. - Manually verify fullscreen enter and exit, and that the stage stays portrait on a phone in landscape. - Manually verify keyboard navigation through the dock and top bar, with a visible focus ring. 🤖 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#1967
No description provided.