[PR #1053] [MERGED] Feature/modern life sim #1266

Closed
opened 2026-10-21 05:07:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1053
Author: @SonaGat3
Created: 9/23/2026
Status: ✅ Merged
Merged: 9/27/2026
Merged by: @SonaGat3

Base: staging ← Head: feature/modern-life-sim


📝 Commits (6)

  • 4a16a89 feat: Modern Life Sim 0.1.0 — a life sim in its own Home tab, staging only
  • 281866a feat(modern-life-sim): Professor Mari at her desk as the catalog cover
  • 948285b fix(modern-life-sim): the documentation link points at staging, where a staging-only package's README lives
  • e7335a3 Merge origin/staging into feature/modern-life-sim
  • 62a5505 style: format the staging-only package list
  • 4718b64 Merge branch 'staging' into feature/modern-life-sim

📊 Changes

20 files changed (+3954 additions, -1 deletions)

View changed files

📝 README.md (+1 -0)
➕ artifacts/modern-life-sim-0.1.0.zip (+0 -0)
➕ artwork/agent-covers/modern-life-sim.png (+0 -0)
📝 catalog/preview/catalog.json (+78 -0)
📝 catalog/preview/notes.json (+10 -0)
📝 catalog/preview/v2/catalog.json (+78 -0)
📝 catalog/preview/v2/notes.json (+10 -0)
📝 catalog/preview/v3/catalog.json (+78 -0)
📝 catalog/preview/v3/notes.json (+10 -0)
➕ packages/modern-life-sim/CHANGELOG.md (+7 -0)
➕ packages/modern-life-sim/README.md (+25 -0)
➕ packages/modern-life-sim/agents.json (+22 -0)
➕ packages/modern-life-sim/client.js (+3375 -0)
➕ packages/modern-life-sim/life-sim-icon.png (+0 -0)
➕ packages/modern-life-sim/locales/en.json (+17 -0)
➕ packages/modern-life-sim/manifest.json (+68 -0)
➕ packages/modern-life-sim/server.mjs (+94 -0)
➕ scripts/build-modern-life-sim-package.mjs (+71 -0)
📝 scripts/catalog-incomplete.mjs (+6 -1)
📝 scripts/catalog-package-guidance.mjs (+4 -0)

📄 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 #1052

Why this change

Marinara Engine has nowhere the user's own characters simply live alongside them. Modern Life Sim is
that: a town on a clock, a life with a job and bills, and the user's character cards as neighbours,
friends and partners whose relationships grow through quick moments and longer scenes. It lands whole
(not as a first slice) and staging only, because it is an alpha.

What changed

  • packages/modern-life-sim/ (new): manifest.json (schema v2, Capability API 1.9, home-browser-tab
    with its own icon), agents.json (one feature Agent, runtimeDisabled and libraryHidden like Gacha
    Forge's), client.js and server.mjs (pre-built, minified esbuild bundles from the package's source
    tree, which lives outside this repository), life-sim-icon.png, README.md, CHANGELOG.md (0.1.0) and
    the generated locales/en.json.
  • scripts/build-modern-life-sim-package.mjs (new): the Gacha Forge builder — it never regenerates the
    bundles; it re-derives the manifest hashes, the English locale, the deterministic artifact and the
    catalog entry from the committed bytes.
  • scripts/catalog-incomplete.mjs: modern-life-sim joins STAGING_ONLY_PACKAGE_IDS, so its entry is
    routed to catalog/preview/ and the published lanes stay at 38 packages.
  • scripts/catalog-package-guidance.mjs: modes and the activation line (Install it, restart Marinara
    Engine when prompted, then open Home → Life Sim.
    ).
  • artwork/agent-covers/modern-life-sim.png (new): the 512 × 512 catalog cover, Professor Mari at her
    desk in the catalog's medallion style.
  • README.md: a row in In development with availability Staging only.

Generated outputs

packages/modern-life-sim/manifest.json, locales/en.json, artifacts/modern-life-sim-0.1.0.zip, the
preview catalogs (catalog/preview/, v2/, v3/) and their release-notes sidecars were re-derived by
node scripts/build-modern-life-sim-package.mjs from the committed payload bytes. Nothing was hand-edited;
re-running the builder after the commit leaves the tree clean.

Package and security impact

  • Affected package IDs: modern-life-sim (new). No other package's manifest, payload or artifact moved.
  • Engine compatibility impact: engine >=2.4.4 <4.0.0, builtAgainst Engine 2.4.6 at 06bf1a6d6
    (current staging); Capability API 1.9. Staging only: stable Engines never see it.
  • New permissions/entrypoints: network, routes, storage, ui; entrypoints agents, client,
    server; restartRequired: true.
    • routes: 59 routes under /api/modern-life-sim/*, registered with registerPrivilegedRoutes.
    • storage: one document per life, plus three shared documents (the backgrounds library, the paint
      queue, the bank of activity lines). Deleting a life asks for its name (or id) back in the request body.
    • network: only the Engine itself. Text goes through runtime.languageModels with the connection the
      life picks; the rest is loopback to the Engine's own API — persona and character reads for the cast,
      /api/connections and /api/app-settings/ui for the settings screens, /api/characters/avatar-generation
      for backgrounds and outfit pictures, /api/global-gallery/upload to keep them. No external service.
    • server.mjs is one Node ES module: no file reads at run time, no child processes, no dynamic imports.
      client.js is one classic script that defines the marinara-capability-modern-life-sim element. The
      embedded Anton font carries its SIL OFL 1.1 licence inside the bundle.
    • Text from the model is never parsed as prose: every decision (bonds, money, time, outcomes) is made by
      the package's code from ids, numbers and booleans the model is asked for.
  • Restart, storage, update, or uninstall impact: restartRequired: true, like every Home tab: the tab
    and its routes appear after the restart that follows install, and go after the one that follows
    uninstall.
  • Payload: client.js 458,692 bytes, server.mjs 231,656, life-sim-icon.png 7,106, agents.json
    678; artifact 700,398 bytes. The diff is +3,949 lines, 3,375 of them the minified client.

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

⚠️ Why the fourth box is unticked. 0.1.0 is not published, so it cannot be installed through the
Engine's download path: the Engine only fetches catalogs and artifacts from a public https URL, and the
catalog entry points at Pasta-Devs/Marinara-Agents/main/artifacts/, where this artifact exists only once
the PR lands. The same bytes were installed by sideload into a staging Engine: the artifact zip,
every file checked against its manifest hash, came up active/ready after a restart, and a life was
played on it. The fifth box waits for the same reason: uninstall goes through the Engine's package
manager, which acts on what it installed itself.

Manual verification notes

  • Branch hygiene. Branched from the current origin/staging (6baf3a78); none of the new files carries
    CRLF (git ls-files --eol → 0 w/crlf); git diff --check "origin/staging...HEAD" clean; the build is
    reproducible.
  • Repo checks run locally, in the workflow's own order (pull-request-checks.yml at origin/staging):
    22 of 23 green — npm run check (0 errors), typecheck:packages, the Calls, Memory Nag, Pixelforge
    and Beholder regressions, vendored-engine, test-catalog-lanes, the locale validators,
    validate-package-locale-keys, validate-catalog (v2=38, v3=38; preview overlay: modern-life-sim,
    ruleset-5e-2014), catalog-generatedat-determinism, catalog-release-notes, ruleset-package, the
    World Maps and Long-Term Memory UI contracts, validate-pr-triage, test-owner-approval,
    git diff --check. ⚠️ npm run test:security fails on Windows for a reason unrelated to this change
    (catalog-path-safety.regression.mjs expects a POSIX path and gets D:\tmp\package\assets\icon.png);
    its log never names modern-life-sim, and it is the same Windows-only failure noted in the Gacha Forge
    1.8.2 and 1.8.5 PRs. npm ci was not re-run: the checkout shares the locked
    node_modules of the main clone.
  • Package's own suite: 461 tests (core rules, server routes against a fake Engine, the screens as HTML),
    all green.
  • Sideloaded into Engine staging (06bf1a6d6) from artifacts/modern-life-sim-0.1.0.zip: all four
    files matched their manifest hashes; the package came up active/ready; the Life Sim tab showed its
    icon; on the minified bundles a life opened, walked across the map, did an activity (its card), opened
    the phone, contacts and a sheet, and woke a sleeping character with the model writing her line through
    the Engine's own connection.

Documentation impact

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

packages/modern-life-sim/README.md describes the package, its alpha status and its requirements;
CHANGELOG.md has the 0.1.0 entry. The repository README gains its In development row.

UI evidence (if applicable)

image image image image image

Summary by CodeRabbit

  • New Features
    • Added Modern Life Sim, an alpha life-simulation experience available to Engine staging testers from Home → Life Sim.
    • Build a life in a town with changing seasons, work, rent, daily needs, skills, a home, and shops.
    • Create a cast from character cards and develop relationships through shared activities and narrated visual-novel scenes.
  • Important Notes
    • A restart is required after installation. The experience is staging-only, and opening an older save may show a compatibility warning.

🔄 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/1053 **Author:** [@SonaGat3](https://github.com/SonaGat3) **Created:** 9/23/2026 **Status:** ✅ Merged **Merged:** 9/27/2026 **Merged by:** [@SonaGat3](https://github.com/SonaGat3) **Base:** `staging` ← **Head:** `feature/modern-life-sim` --- ### 📝 Commits (6) - [`4a16a89`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4a16a8995ee951ca63f9f8b0c6914a7c538ba2e3) feat: Modern Life Sim 0.1.0 — a life sim in its own Home tab, staging only - [`281866a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/281866ac3fb1a215007c13c413ac599523451aa1) feat(modern-life-sim): Professor Mari at her desk as the catalog cover - [`948285b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/948285b1c8c27bf7441cb3d38b662e54aa45ba50) fix(modern-life-sim): the documentation link points at staging, where a staging-only package's README lives - [`e7335a3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e7335a3145f5dba70bdc0b033edc8885defc99ee) Merge origin/staging into feature/modern-life-sim - [`62a5505`](https://github.com/Pasta-Devs/Marinara-Agents/commit/62a55057fb4478bfe949262dc7b0094701d32676) style: format the staging-only package list - [`4718b64`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4718b640efb011e25873f936221eaed8fe6ceb98) Merge branch 'staging' into feature/modern-life-sim ### 📊 Changes **20 files changed** (+3954 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) ➕ `artifacts/modern-life-sim-0.1.0.zip` (+0 -0) ➕ `artwork/agent-covers/modern-life-sim.png` (+0 -0) 📝 `catalog/preview/catalog.json` (+78 -0) 📝 `catalog/preview/notes.json` (+10 -0) 📝 `catalog/preview/v2/catalog.json` (+78 -0) 📝 `catalog/preview/v2/notes.json` (+10 -0) 📝 `catalog/preview/v3/catalog.json` (+78 -0) 📝 `catalog/preview/v3/notes.json` (+10 -0) ➕ `packages/modern-life-sim/CHANGELOG.md` (+7 -0) ➕ `packages/modern-life-sim/README.md` (+25 -0) ➕ `packages/modern-life-sim/agents.json` (+22 -0) ➕ `packages/modern-life-sim/client.js` (+3375 -0) ➕ `packages/modern-life-sim/life-sim-icon.png` (+0 -0) ➕ `packages/modern-life-sim/locales/en.json` (+17 -0) ➕ `packages/modern-life-sim/manifest.json` (+68 -0) ➕ `packages/modern-life-sim/server.mjs` (+94 -0) ➕ `scripts/build-modern-life-sim-package.mjs` (+71 -0) 📝 `scripts/catalog-incomplete.mjs` (+6 -1) 📝 `scripts/catalog-package-guidance.mjs` (+4 -0) </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 #1052 ## Why this change Marinara Engine has nowhere the user's own characters simply live alongside them. **Modern Life Sim** is that: a town on a clock, a life with a job and bills, and the user's character cards as neighbours, friends and partners whose relationships grow through quick moments and longer scenes. It lands whole (not as a first slice) and **staging only**, because it is an alpha. ## What changed - **`packages/modern-life-sim/`** (new): `manifest.json` (schema v2, Capability API 1.9, `home-browser-tab` with its own icon), `agents.json` (one feature Agent, `runtimeDisabled` and `libraryHidden` like Gacha Forge's), `client.js` and `server.mjs` (pre-built, minified esbuild bundles from the package's source tree, which lives outside this repository), `life-sim-icon.png`, `README.md`, `CHANGELOG.md` (0.1.0) and the generated `locales/en.json`. - **`scripts/build-modern-life-sim-package.mjs`** (new): the Gacha Forge builder — it never regenerates the bundles; it re-derives the manifest hashes, the English locale, the deterministic artifact and the catalog entry from the committed bytes. - **`scripts/catalog-incomplete.mjs`**: `modern-life-sim` joins `STAGING_ONLY_PACKAGE_IDS`, so its entry is routed to `catalog/preview/` and the published lanes stay at **38** packages. - **`scripts/catalog-package-guidance.mjs`**: modes and the activation line (*Install it, restart Marinara Engine when prompted, then open Home → Life Sim.*). - **`artwork/agent-covers/modern-life-sim.png`** (new): the 512 × 512 catalog cover, Professor Mari at her desk in the catalog's medallion style. - **`README.md`**: a row in *In development* with availability *Staging only*. ### Generated outputs `packages/modern-life-sim/manifest.json`, `locales/en.json`, `artifacts/modern-life-sim-0.1.0.zip`, the preview catalogs (`catalog/preview/`, `v2/`, `v3/`) and their release-notes sidecars were **re-derived** by `node scripts/build-modern-life-sim-package.mjs` from the committed payload bytes. Nothing was hand-edited; re-running the builder after the commit leaves the tree clean. ## Package and security impact - **Affected package IDs:** `modern-life-sim` (new). No other package's manifest, payload or artifact moved. - **Engine compatibility impact:** `engine` `>=2.4.4 <4.0.0`, `builtAgainst` Engine 2.4.6 at `06bf1a6d6` (current `staging`); Capability API 1.9. Staging only: stable Engines never see it. - **New permissions/entrypoints:** `network`, `routes`, `storage`, `ui`; entrypoints `agents`, `client`, `server`; `restartRequired: true`. - `routes`: **59** routes under `/api/modern-life-sim/*`, registered with `registerPrivilegedRoutes`. - `storage`: one document per life, plus three shared documents (the backgrounds library, the paint queue, the bank of activity lines). Deleting a life asks for its name (or id) back in the request body. - `network`: only the Engine itself. Text goes through `runtime.languageModels` with the connection the life picks; the rest is loopback to the Engine's own API — persona and character reads for the cast, `/api/connections` and `/api/app-settings/ui` for the settings screens, `/api/characters/avatar-generation` for backgrounds and outfit pictures, `/api/global-gallery/upload` to keep them. No external service. - `server.mjs` is one Node ES module: no file reads at run time, no child processes, no dynamic imports. `client.js` is one classic script that defines the `marinara-capability-modern-life-sim` element. The embedded Anton font carries its SIL OFL 1.1 licence inside the bundle. - Text from the model is never parsed as prose: every decision (bonds, money, time, outcomes) is made by the package's code from ids, numbers and booleans the model is asked for. - **Restart, storage, update, or uninstall impact:** `restartRequired: true`, like every Home tab: the tab and its routes appear after the restart that follows install, and go after the one that follows uninstall. - **Payload:** `client.js` 458,692 bytes, `server.mjs` 231,656, `life-sim-icon.png` 7,106, `agents.json` 678; artifact 700,398 bytes. The diff is +3,949 lines, 3,375 of them the minified client. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] 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 - [x] Read and followed `CONTRIBUTING.md` > ⚠️ **Why the fourth box is unticked.** 0.1.0 is not published, so it cannot be installed *through* the > Engine's download path: the Engine only fetches catalogs and artifacts from a public https URL, and the > catalog entry points at `Pasta-Devs/Marinara-Agents/main/artifacts/`, where this artifact exists only once > the PR lands. The same bytes were installed by sideload into a `staging` Engine: the artifact zip, > every file checked against its manifest hash, came up `active`/`ready` after a restart, and a life was > played on it. The fifth box waits for the same reason: uninstall goes through the Engine's package > manager, which acts on what it installed itself. ### Manual verification notes - **Branch hygiene.** Branched from the current `origin/staging` (`6baf3a78`); none of the new files carries CRLF (`git ls-files --eol` → 0 `w/crlf`); `git diff --check "origin/staging...HEAD"` clean; the build is reproducible. - **Repo checks run locally, in the workflow's own order** (`pull-request-checks.yml` at `origin/staging`): **22 of 23 green** — `npm run check` (0 errors), `typecheck:packages`, the Calls, Memory Nag, Pixelforge and Beholder regressions, `vendored-engine`, `test-catalog-lanes`, the locale validators, `validate-package-locale-keys`, `validate-catalog` (v2=38, v3=38; preview overlay: modern-life-sim, ruleset-5e-2014), `catalog-generatedat-determinism`, `catalog-release-notes`, `ruleset-package`, the World Maps and Long-Term Memory UI contracts, `validate-pr-triage`, `test-owner-approval`, `git diff --check`. ⚠️ `npm run test:security` fails on Windows for a reason unrelated to this change (`catalog-path-safety.regression.mjs` expects a POSIX path and gets `D:\tmp\package\assets\icon.png`); its log never names modern-life-sim, and it is the same Windows-only failure noted in the Gacha Forge 1.8.2 and 1.8.5 PRs. `npm ci` was not re-run: the checkout shares the locked `node_modules` of the main clone. - **Package's own suite:** 461 tests (core rules, server routes against a fake Engine, the screens as HTML), all green. - **Sideloaded into Engine `staging` (`06bf1a6d6`)** from `artifacts/modern-life-sim-0.1.0.zip`: all four files matched their manifest hashes; the package came up `active`/`ready`; the Life Sim tab showed its icon; on the minified bundles a life opened, walked across the map, did an activity (its card), opened the phone, contacts and a sheet, and woke a sleeping character with the model writing her line through the Engine's own connection. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation `packages/modern-life-sim/README.md` describes the package, its alpha status and its requirements; `CHANGELOG.md` has the 0.1.0 entry. The repository README gains its *In development* row. ## UI evidence (if applicable) <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/da33de77-af7a-4b32-8061-b8ada2b4b08f" /> <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/167a1414-64cf-4705-9afd-ed4cd7c4efad" /> <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/76f90eac-3540-4599-a502-bf7f2a12c75b" /> <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/6af52512-4b12-4d6d-8ccd-3eb28ed019c0" /> <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/52b5a6e7-3f5e-4fe7-b6d5-1f764c2439a5" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Modern Life Sim, an alpha life-simulation experience available to Engine staging testers from **Home → Life Sim**. * Build a life in a town with changing seasons, work, rent, daily needs, skills, a home, and shops. * Create a cast from character cards and develop relationships through shared activities and narrated visual-novel scenes. * **Important Notes** * A restart is required after installation. The experience is staging-only, and opening an older save may show a compatibility warning. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:07:22 +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#1266
No description provided.