[PR #1121] [MERGED] fix(modern-life-sim): 0.2.3 — pictures of one person, PORTRAIT SIZE, clothes for who you play, reaching Marinara on https #1302

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

📋 Pull Request Information

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

Base: staging ← Head: staging


📝 Commits (1)

  • 407425e fix(modern-life-sim): 0.2.3 — pictures of one person, PORTRAIT SIZE, clothes for who you play, reaching Marinara on https

📊 Changes

12 files changed (+219 additions, -178 deletions)

View changed files

➕ artifacts/modern-life-sim-0.2.3.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+6 -0)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+6 -0)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+6 -0)
📝 packages/modern-life-sim/CHANGELOG.md (+7 -0)
📝 packages/modern-life-sim/README.md (+2 -0)
📝 packages/modern-life-sim/client.js (+45 -31)
📝 packages/modern-life-sim/manifest.json (+5 -5)
📝 packages/modern-life-sim/server.mjs (+118 -118)

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

Why this change

Staging testers reported six problems with Modern Life Sim 0.2.1, gathered in the linked issue:

  • pictures of the wrong gender, or of strangers;
  • clothes that did not fit the player;
  • no reads on an Engine served over https behind Tailscale;
  • three screens that got in the way.

Players also asked to choose the size of pictures of one person. 0.2.3 fixes all of it.

What changed

  • packages/modern-life-sim/server.mjs and client.js: rebuilt from the package's source tree as pre-built, minified esbuild bundles, as before.
    • Pictures of one person. Outfits, work clothes and seasons lead with the character's name, as Gacha Forge does: a tag-trained model knows a known character by name. They also carry 1girl/1boy, or "a woman"/"a man" in prose. The gender is the one the game already knows (the card's reading or the player's setting), never a guess from the looks.
    • PORTRAIT SIZE. The size those pictures are drawn at, next to PICTURE SIZE in Settings and in the creation's step 6.
      • Shortcuts 2:3 (832 × 1216, the default, and what older lives keep), 3:4 and 9:16, or any size the Engine takes.
      • Off the default, the box warns that the screens are laid out for 832 × 1216.
      • One new route: POST /lives/:id/portrait-size.
    • The season's clothes are for the player. The prompt says who wears them: menswear, womenswear, or unisex when unknown. The list records it (wearer) under ids of its own. A male protagonist's life with a list written before this rewrites it once. What the player already bought keeps its card and picture.
    • Screens.
      • In every shop, only the list scrolls; the head stays and the place's picture stays whole.
      • A result card shows over the backpack, and the backpack stays open.
      • The sharp-text scroller fix now leaves a scroller alone when a positioned layer paints under it.
    • Reaching the Engine.
      • The package takes the port, the address and https-or-not from the requests the Engine hands it, and stays on loopback whenever the Engine listens there.
      • Over https it connects with node:https and checks the certificate against the Host name the player reached the Engine by.
      • A failure now says where it tried and why.
      • MARINARA_PORT, which the Engine never reads, is no longer read.
  • packages/modern-life-sim/manifest.json: version 0.2.3, with the payload hashes and sizes re-derived. builtAgainst, permissions, entrypoints and the engine range are unchanged.
  • packages/modern-life-sim/CHANGELOG.md and README.md: the 0.2.3 entry, and a line about it.
  • artifacts/modern-life-sim-0.2.3.zip (new).

Generated outputs

node scripts/build-modern-life-sim-package.mjs re-derived these from the committed payload bytes:

  • the manifest;
  • the artifact;
  • the preview catalogs (catalog/preview/, v2/, v3/) and their release-notes sidecars.

Nothing was edited by hand, and re-running the builder after the commit leaves the tree clean. No script changed.

Package and security impact

  • Affected package IDs: modern-life-sim only.
  • Engine compatibility impact: none. The engine range stays >=2.4.4 <4.0.0 and Capability API 1.9. The package stays staging only.
  • New permissions/entrypoints: none. The package already declares network. server.mjs now imports node:https besides node:crypto, and uses it only to reach the Engine itself. It stays on loopback unless the Engine is bound to one other address, and there is still no external service.
  • Restart, storage, update, or uninstall impact: restartRequired: true, as before.
    • Saves from 0.2.1 open unchanged.
    • A life without the new field paints at the old size.
    • A male protagonist's life rewrites its season's clothes once, in the background, when it is opened (one model call).
  • Payload:
    • server.mjs 879,807 bytes;
    • client.js 844,040 bytes;
    • the artifact, 1,733,897 bytes;
    • the diff, +219 / −178 lines.

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 and fifth boxes are unticked.

  • The Engine fetches artifacts only from a public https URL, and this one exists there only after the PR lands. The same bytes were installed by sideload instead: the artifact zip, with every file checked against its manifest hash.
  • Uninstall goes through the Engine's package manager, which acts only on what it installed itself.

Manual verification notes

  • Branch hygiene:

    • branched from the current origin/staging (ed61260d);
    • no CRLF in any changed file;
    • git diff --check "origin/staging...HEAD" is clean;
    • no script changed;
    • the build is reproducible.
  • Repo checks, run locally in the workflow's own order (pull-request-checks.yml, after a fresh npm ci). All green except one known Windows-only failure:

    • npm run check and typecheck:packages;
    • the Calls, Memory Nag, Pixelforge, Beholder and Quartermaster regressions;
    • vendored-engine and test-catalog-lanes;
    • the locale validators;
    • validate-catalog, catalog-generatedat-determinism, catalog-release-notes and ruleset-package;
    • the World Maps and Long-Term Memory UI contracts;
    • validate-pr-triage and test-owner-approval;
    • git diff --check.

    ⚠️ The exception is the first half of npm run test:security, catalog-path-safety.regression.mjs. It expects a POSIX path and gets D:\tmp\… on Windows. That file is identical to staging. The second half, long-term-memory-index-keys, passes.

  • Package's own suite: 1,263 tests, all green. The new ones cover:

    • the name and gender in the prompt;
    • PORTRAIT SIZE end to end (creation, view, route, a bad size), and that every picture of one person uses it;
    • the season's prompt for a man, a woman and unknown;
    • that a man's life rewrites a stale season once and a woman's life keeps it;
    • the shop's layout;
    • the result card over the backpack;
    • the scroller left alone over a picture layer;
    • reaching the Engine by port, address and https, including a Tailscale-style host.
  • Against a real https server: a certificate issued for a Tailscale-style name, with the connection made to 127.0.0.1.

    • With the name, the answer is 200 and a multipart gallery upload goes through.
    • Without it, ERR_TLS_CERT_ALTNAME_INVALID, which is the tester's error.
  • Against the real Engine over http, with the new client, these cases all read the personas:

    • the same machine, with and without PORT;
    • from the network with HOST=0.0.0.0 (it stays on loopback);
    • with a stray MARINARA_PORT;
    • an injected request with no socket port, which changes nothing.
  • Sideloaded into Engine staging (3ec25a04e) from artifacts/modern-life-sim-0.2.3.zip:

    • all four files matched their manifest hashes;
    • the package came up active/ready at 0.2.3;
    • it read 14 personas and 42 cards with no problem;
    • WHAT'S NEW shows 0.2.3 above 0.2.1 and 0.2.0;
    • POST /lives/:id/portrait-size answered;
    • the Engine logged no error.
  • In mockups on the real client, by eye:

    • the result card over the backpack, and closing it leaves the backpack open;
    • the supermarket and the clothes store, where the list scrolls and the picture stays whole.

Documentation impact

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

The package's README.md and CHANGELOG.md describe 0.2.3. In game, the GUIDE (PORTRAIT SIZE) and WHAT'S NEW do too.

UI evidence (if applicable)

Summary by CodeRabbit

  • New Features
    • Character portraits now better reflect each character, with an option to adjust portrait size.
    • Player characters can wear seasonal clothing.
    • Marinara can now be discovered when playing from another device or over a secure connection.
  • Improvements
    • Improved scrolling and display behavior in the shop, backpack, and clothing store.

🔄 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/1121 **Author:** [@SonaGat3](https://github.com/SonaGat3) **Created:** 9/28/2026 **Status:** ✅ Merged **Merged:** 9/28/2026 **Merged by:** [@SonaGat3](https://github.com/SonaGat3) **Base:** `staging` ← **Head:** `staging` --- ### 📝 Commits (1) - [`407425e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/407425e1af2262ea48411235bf78ee35448800c2) fix(modern-life-sim): 0.2.3 — pictures of one person, PORTRAIT SIZE, clothes for who you play, reaching Marinara on https ### 📊 Changes **12 files changed** (+219 additions, -178 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/modern-life-sim-0.2.3.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+6 -0) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+6 -0) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+6 -0) 📝 `packages/modern-life-sim/CHANGELOG.md` (+7 -0) 📝 `packages/modern-life-sim/README.md` (+2 -0) 📝 `packages/modern-life-sim/client.js` (+45 -31) 📝 `packages/modern-life-sim/manifest.json` (+5 -5) 📝 `packages/modern-life-sim/server.mjs` (+118 -118) </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 #1120 ## Why this change Staging testers reported six problems with Modern Life Sim 0.2.1, gathered in the linked issue: - pictures of the wrong gender, or of strangers; - clothes that did not fit the player; - no reads on an Engine served over https behind Tailscale; - three screens that got in the way. Players also asked to choose the size of pictures of one person. 0.2.3 fixes all of it. ## What changed - **`packages/modern-life-sim/server.mjs`** and **`client.js`**: rebuilt from the package's source tree as pre-built, minified esbuild bundles, as before. - **Pictures of one person.** Outfits, work clothes and seasons lead with the character's name, as Gacha Forge does: a tag-trained model knows a known character by name. They also carry `1girl`/`1boy`, or "a woman"/"a man" in prose. The gender is the one the game already knows (the card's reading or the player's setting), never a guess from the looks. - **PORTRAIT SIZE.** The size those pictures are drawn at, next to PICTURE SIZE in Settings and in the creation's step 6. - Shortcuts 2:3 (832 × 1216, the default, and what older lives keep), 3:4 and 9:16, or any size the Engine takes. - Off the default, the box warns that the screens are laid out for 832 × 1216. - One new route: `POST /lives/:id/portrait-size`. - **The season's clothes are for the player.** The prompt says who wears them: menswear, womenswear, or unisex when unknown. The list records it (`wearer`) under ids of its own. A male protagonist's life with a list written before this rewrites it once. What the player already bought keeps its card and picture. - **Screens.** - In every shop, only the list scrolls; the head stays and the place's picture stays whole. - A result card shows over the backpack, and the backpack stays open. - The sharp-text scroller fix now leaves a scroller alone when a positioned layer paints under it. - **Reaching the Engine.** - The package takes the port, the address and https-or-not from the requests the Engine hands it, and stays on loopback whenever the Engine listens there. - Over https it connects with `node:https` and checks the certificate against the Host name the player reached the Engine by. - A failure now says where it tried and why. - `MARINARA_PORT`, which the Engine never reads, is no longer read. - **`packages/modern-life-sim/manifest.json`**: `version` 0.2.3, with the payload hashes and sizes re-derived. `builtAgainst`, permissions, entrypoints and the `engine` range are unchanged. - **`packages/modern-life-sim/CHANGELOG.md`** and **`README.md`**: the 0.2.3 entry, and a line about it. - **`artifacts/modern-life-sim-0.2.3.zip`** (new). ### Generated outputs `node scripts/build-modern-life-sim-package.mjs` re-derived these from the committed payload bytes: - the manifest; - the artifact; - the preview catalogs (`catalog/preview/`, `v2/`, `v3/`) and their release-notes sidecars. Nothing was edited by hand, and re-running the builder after the commit leaves the tree clean. No script changed. ## Package and security impact - **Affected package IDs:** `modern-life-sim` only. - **Engine compatibility impact:** none. The `engine` range stays `>=2.4.4 <4.0.0` and Capability API 1.9. The package stays staging only. - **New permissions/entrypoints:** none. The package already declares `network`. `server.mjs` now imports `node:https` besides `node:crypto`, and uses it only to reach the Engine itself. It stays on loopback unless the Engine is bound to one other address, and there is still no external service. - **Restart, storage, update, or uninstall impact:** `restartRequired: true`, as before. - Saves from 0.2.1 open unchanged. - A life without the new field paints at the old size. - A male protagonist's life rewrites its season's clothes once, in the background, when it is opened (one model call). - **Payload:** - `server.mjs` 879,807 bytes; - `client.js` 844,040 bytes; - the artifact, 1,733,897 bytes; - the diff, +219 / −178 lines. ## 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 and fifth boxes are unticked.** > - The Engine fetches artifacts only from a public https URL, and this one exists there only after the PR lands. The same bytes were installed by sideload instead: the artifact zip, with every file checked against its manifest hash. > - Uninstall goes through the Engine's package manager, which acts only on what it installed itself. ### Manual verification notes - **Branch hygiene:** - branched from the current `origin/staging` (`ed61260d`); - no CRLF in any changed file; - `git diff --check "origin/staging...HEAD"` is clean; - no script changed; - the build is reproducible. - **Repo checks, run locally in the workflow's own order** (`pull-request-checks.yml`, after a fresh `npm ci`). All green except one known Windows-only failure: - `npm run check` and `typecheck:packages`; - the Calls, Memory Nag, Pixelforge, Beholder and Quartermaster regressions; - `vendored-engine` and `test-catalog-lanes`; - the locale validators; - `validate-catalog`, `catalog-generatedat-determinism`, `catalog-release-notes` and `ruleset-package`; - the World Maps and Long-Term Memory UI contracts; - `validate-pr-triage` and `test-owner-approval`; - `git diff --check`. ⚠️ The exception is the first half of `npm run test:security`, `catalog-path-safety.regression.mjs`. It expects a POSIX path and gets `D:\tmp\…` on Windows. That file is identical to `staging`. The second half, `long-term-memory-index-keys`, passes. - **Package's own suite:** 1,263 tests, all green. The new ones cover: - the name and gender in the prompt; - PORTRAIT SIZE end to end (creation, view, route, a bad size), and that every picture of one person uses it; - the season's prompt for a man, a woman and unknown; - that a man's life rewrites a stale season once and a woman's life keeps it; - the shop's layout; - the result card over the backpack; - the scroller left alone over a picture layer; - reaching the Engine by port, address and https, including a Tailscale-style host. - **Against a real https server:** a certificate issued for a Tailscale-style name, with the connection made to 127.0.0.1. - With the name, the answer is 200 and a multipart gallery upload goes through. - Without it, `ERR_TLS_CERT_ALTNAME_INVALID`, which is the tester's error. - **Against the real Engine over http, with the new client**, these cases all read the personas: - the same machine, with and without `PORT`; - from the network with `HOST=0.0.0.0` (it stays on loopback); - with a stray `MARINARA_PORT`; - an injected request with no socket port, which changes nothing. - **Sideloaded into Engine `staging` (`3ec25a04e`)** from `artifacts/modern-life-sim-0.2.3.zip`: - all four files matched their manifest hashes; - the package came up `active`/`ready` at 0.2.3; - it read 14 personas and 42 cards with no problem; - WHAT'S NEW shows 0.2.3 above 0.2.1 and 0.2.0; - `POST /lives/:id/portrait-size` answered; - the Engine logged no error. - **In mockups on the real client, by eye:** - the result card over the backpack, and closing it leaves the backpack open; - the supermarket and the clothes store, where the list scrolls and the picture stays whole. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The package's `README.md` and `CHANGELOG.md` describe 0.2.3. In game, the GUIDE (PORTRAIT SIZE) and WHAT'S NEW do too. ## UI evidence (if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Character portraits now better reflect each character, with an option to adjust portrait size. * Player characters can wear seasonal clothing. * Marinara can now be discovered when playing from another device or over a secure connection. * **Improvements** * Improved scrolling and display behavior in the shop, backpack, and clothing store. <!-- 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:53 +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#1302
No description provided.