[PR #1158] [MERGED] Slurp 0.3.8: Drama — packs, friends, People map #1323

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1158
Author: @Gunterlie
Created: 9/30/2026
Status: ✅ Merged
Merged: 9/30/2026
Merged by: @Gunterlie

Base: staging ← Head: slurp2-drama-packs


📝 Commits (10+)

  • 7a11e19 docs(slurp2): drama design — situations and dramas as Story Pack data
  • 9cd5a41 docs(slurp2): drama design — People map and edge history
  • 9aa1b4d feat(slurp2): bonds — friends, roommates, coworkers and exes between Creators
  • adcd9ab feat(slurp2): People map in Stir, bond routes, 0.3.8
  • 77a201c feat(slurp2): People map as a living network
  • 77bee99 feat(slurp2): friends, roommates and coworkers show up in posts and on Pages
  • d6d85b0 feat(slurp2): drama pack format — situations and dramas in Story Packs
  • d36a419 feat(slurp2): drama runtime — casting, stages, choices, join and leave
  • d63e6b4 feat(slurp2): drama on the world clock — channels, choices, outcomes
  • a4fbacb fix(slurp2): the player's page as a partner (persona audit)

📊 Changes

84 files changed (+7858 additions, -569 deletions)

View changed files

➕ artifacts/slurp2-0.3.8.zip (+0 -0)
📝 catalog/catalog.json (+14 -14)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+14 -14)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+14 -14)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+10 -0)
📝 packages/slurp2/client.js (+86 -86)
➕ packages/slurp2/docs/DRAMA.md (+354 -0)
📝 packages/slurp2/docs/architecture/DECISIONS.md (+22 -0)
📝 packages/slurp2/docs/architecture/README.md (+2 -1)
📝 packages/slurp2/manifest.json (+11 -11)
📝 packages/slurp2/server.mjs (+332 -332)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpScreenMessages.tsx (+4 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/backstage/slp-backstage-label-keys.ts (+1 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/backstage/slp-backstage-placement.ts (+1 -0)
➕ packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpDramaChoiceCard.tsx (+68 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpThreadView.tsx (+5 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/notifications/slp-notifications-contract.ts (+2 -1)

...and 64 more files

📄 Description

Pull request

Linked issue

Closes #1157

Why this change

Slurp's dramas were hard-coded, the player could not be part of them, and the world had no friends, roommates or exes. This release makes drama data: packs of situations and dramas that a small, generic engine casts and runs, so a new kind of drama is a pack, not code. It also gives the content a reason: a drama adds one line of why to an ordinary post (who it is for, who shot it), and lives mostly in DMs, comments and notifications. Nothing runs until the player switches a pack on. Design: packages/slurp2/docs/DRAMA.md (with an "As built" section).

What changed

  • Bonds: friends, roommates, coworkers and exes on the ties clock (cards seed them once, breakups leave an ex, rivalries make a bond tense, friends grow and drift within caps, player-set bonds are locked). Friends show up in about one ordinary post in five and on the Page's People block.
  • Stir › People: a living map of ties (several people open at once, drag, search) with the reason for each tie; set or end friends, roommates, coworkers, exes, or a partner.
  • Pack format: situations and dramas in Story Packs (shared/src/slp/slp-drama.ts), strict validation, own library, import/export. Old packs import unchanged.
  • Runtime: pure and seeded (modules/world/events/slp-drama-runtime.ts): late casting with a bounded search, stages, choices (player DM with answer chips; fans; a role), spice ceilings, join/leave rules, level caps. Service on the world scheduler and catch-up; channels: post line via the post planner, DM openers, comments, a drama notification kind, coin gifts, tie outcomes through the ties' own rules.
  • The player as a partner (persona audit, plus: she texts the player like a partner a few times a day through the follow-up writer, and the chat's rapport starts close — +60 for a partner, +25 for a crush, named "your partner" in the reply prompt): a couple with the player's page starts together and the clock never breaks it up; persona text is not read as a card; the player is never the jealous one; no shared page with the player; Stir pair pickers hide other personas' pages.
  • Screens: Settings › Stir › Drama (level, switches, situation dials), Stir › Drama (what runs, start, end).
  • Starter set: 2 situations, 10 dramas, all off by default.
  • Version 0.3.8; changelog and What's new.

Package and security impact

  • Affected package IDs: slurp2 (0.3.7 → 0.3.8; manifest, client.js, server.mjs, artifact and catalog entries rebuilt).
  • Engine compatibility impact: none; minEngineVersion stays 2.4.6.
  • New or changed permissions/entrypoints: no new permissions. Six new routes: GET /slurp/drama, POST /slurp/drama/choice, /slurp/drama/start, /slurp/drama/runs/:id/end, POST /slurp/ties/bonds, /slurp/ties/bonds/:id/end.
  • Restart, storage, update, or uninstall impact: new app settings slurp2.drama.state and slurp2.drama.library; a bonds list in slurp2.creator-ties; a drama object in the Slurp settings. All optional and read leniently, so an update needs no migration and old data loads unchanged.
  • New routes validate input with zod and require a resolved viewer persona for every write; a choice answer is accepted only from the persona whose thread holds it, once.
  • Coin gifts to the player use a receipt id per job (no double credit); money amounts are bounded by the pack schema.
  • No new permissions, no archive or install changes.

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

What the author (an AI agent) ran; the boxes above are left for a human.

  • New regressions: slurp2-bonds, slurp2-drama, slurp2-drama-runtime (60- and 90-day simulations with joins and leaves, level caps, determinism, every starter drama casts and runs), slurp2-player-partner.
  • All 176 slurp2-* regressions compared per file against a clean origin/staging worktree after the last commit: the same 16 files fail on both (pre-existing), no new failures; the four new files pass.
  • Pre-PR review (marinara-reviewer): 7 findings (stale choice answers, double sends on overlapping ticks, switched-off runs still sending, comment jobs blocking DMs, world load per tick, double-tap "late", ex bond coming back), all fixed with regressions.
  • node scripts/test-catalog-lanes.mjs, validate-package-locales.mjs, validate-catalog.mjs, tests/catalog-release-notes.regression.mjs, architecture regression, package typecheck: pass.
  • Live: sideloaded to the production instance; screenshots at 390/768/1440 px of Stir › People, Stir › Drama and Settings › Stir › Drama led to three UI fixes (Coworker color, People intro, the Stir section hint that showed a raw key on phones).

Documentation impact

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

Package docs updated: packages/slurp2/docs/DRAMA.md (design + As built), docs/architecture/DECISIONS.md, docs/architecture/README.md, CHANGELOG.md.

UI evidence (if applicable)

Screenshots at 390, 768 and 1440 px of Stir › People (one and two people open), Stir › Drama and Settings › Stir › Drama were taken on the live instance and reviewed; they led to the Coworker colour, People intro and Stir section-hint fixes. Not attached here.

Summary by CodeRabbit

  • New Features
    • Added optional interactive Drama storylines, situations, player choices, and Story Pack import/export support.
    • Added the Stir People map to explore Creator relationships, add or update bonds, and end bonds.
    • Added partner-style Creator messages and relationship-aware labels and story moments.
    • Added Drama and relationship notifications, settings, and translations in English, German, Korean, and Polish.
  • Release
    • Updated Slurp to version 0.3.8.

🔄 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/1158 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/30/2026 **Status:** ✅ Merged **Merged:** 9/30/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `slurp2-drama-packs` --- ### 📝 Commits (10+) - [`7a11e19`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7a11e194bf07e4990c7011a56df4b0dc002d70c1) docs(slurp2): drama design — situations and dramas as Story Pack data - [`9cd5a41`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9cd5a412e0389ad627b78618be6310f52d132fc7) docs(slurp2): drama design — People map and edge history - [`9aa1b4d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9aa1b4db590ad7be2c7766004ad3568006709696) feat(slurp2): bonds — friends, roommates, coworkers and exes between Creators - [`adcd9ab`](https://github.com/Pasta-Devs/Marinara-Agents/commit/adcd9abc6756e1aa01ac28c3ce589344def9a114) feat(slurp2): People map in Stir, bond routes, 0.3.8 - [`77a201c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/77a201c5591828ce2160d1298e6fd30258f7730c) feat(slurp2): People map as a living network - [`77bee99`](https://github.com/Pasta-Devs/Marinara-Agents/commit/77bee994cdba6148f6fbb21f7b105cd3b3177772) feat(slurp2): friends, roommates and coworkers show up in posts and on Pages - [`d6d85b0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d6d85b071d289a55fefe8a354303de2f5da20d5a) feat(slurp2): drama pack format — situations and dramas in Story Packs - [`d36a419`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d36a4194cb436c658790a353bc492440cb37a33d) feat(slurp2): drama runtime — casting, stages, choices, join and leave - [`d63e6b4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d63e6b494cbeb373b46170cbe1936d8f431f935f) feat(slurp2): drama on the world clock — channels, choices, outcomes - [`a4fbacb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a4fbacba239d6a9870cf84a479bad13b460f4831) fix(slurp2): the player's page as a partner (persona audit) ### 📊 Changes **84 files changed** (+7858 additions, -569 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.8.zip` (+0 -0) 📝 `catalog/catalog.json` (+14 -14) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+14 -14) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+14 -14) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+10 -0) 📝 `packages/slurp2/client.js` (+86 -86) ➕ `packages/slurp2/docs/DRAMA.md` (+354 -0) 📝 `packages/slurp2/docs/architecture/DECISIONS.md` (+22 -0) 📝 `packages/slurp2/docs/architecture/README.md` (+2 -1) 📝 `packages/slurp2/manifest.json` (+11 -11) 📝 `packages/slurp2/server.mjs` (+332 -332) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpScreenMessages.tsx` (+4 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/backstage/slp-backstage-label-keys.ts` (+1 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/backstage/slp-backstage-placement.ts` (+1 -0) ➕ `packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpDramaChoiceCard.tsx` (+68 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpThreadView.tsx` (+5 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/notifications/slp-notifications-contract.ts` (+2 -1) _...and 64 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1157 ## Why this change Slurp's dramas were hard-coded, the player could not be part of them, and the world had no friends, roommates or exes. This release makes drama **data**: packs of situations and dramas that a small, generic engine casts and runs, so a new kind of drama is a pack, not code. It also gives the content a reason: a drama adds one line of *why* to an ordinary post (who it is for, who shot it), and lives mostly in DMs, comments and notifications. Nothing runs until the player switches a pack on. Design: `packages/slurp2/docs/DRAMA.md` (with an "As built" section). ## What changed - **Bonds:** friends, roommates, coworkers and exes on the ties clock (cards seed them once, breakups leave an ex, rivalries make a bond tense, friends grow and drift within caps, player-set bonds are locked). Friends show up in about one ordinary post in five and on the Page's People block. - **Stir › People:** a living map of ties (several people open at once, drag, search) with the reason for each tie; set or end friends, roommates, coworkers, exes, or a partner. - **Pack format:** `situations` and `dramas` in Story Packs (`shared/src/slp/slp-drama.ts`), strict validation, own library, import/export. Old packs import unchanged. - **Runtime:** pure and seeded (`modules/world/events/slp-drama-runtime.ts`): late casting with a bounded search, stages, choices (player DM with answer chips; fans; a role), spice ceilings, join/leave rules, level caps. Service on the world scheduler and catch-up; channels: post line via the post planner, DM openers, comments, a `drama` notification kind, coin gifts, tie outcomes through the ties' own rules. - **The player as a partner** (persona audit, plus: she texts the player like a partner a few times a day through the follow-up writer, and the chat's rapport starts close — +60 for a partner, +25 for a crush, named "your partner" in the reply prompt): a couple with the player's page starts together and the clock never breaks it up; persona text is not read as a card; the player is never the jealous one; no shared page with the player; Stir pair pickers hide other personas' pages. - **Screens:** Settings › Stir › Drama (level, switches, situation dials), Stir › Drama (what runs, start, end). - **Starter set:** 2 situations, 10 dramas, all off by default. - Version 0.3.8; changelog and What's new. ## Package and security impact - Affected package IDs: `slurp2` (0.3.7 → 0.3.8; manifest, `client.js`, `server.mjs`, artifact and catalog entries rebuilt). - Engine compatibility impact: none; `minEngineVersion` stays 2.4.6. - New or changed permissions/entrypoints: no new permissions. Six new routes: `GET /slurp/drama`, `POST /slurp/drama/choice`, `/slurp/drama/start`, `/slurp/drama/runs/:id/end`, `POST /slurp/ties/bonds`, `/slurp/ties/bonds/:id/end`. - Restart, storage, update, or uninstall impact: new app settings `slurp2.drama.state` and `slurp2.drama.library`; a `bonds` list in `slurp2.creator-ties`; a `drama` object in the Slurp settings. All optional and read leniently, so an update needs no migration and old data loads unchanged. - New routes validate input with zod and require a resolved viewer persona for every write; a choice answer is accepted only from the persona whose thread holds it, once. - Coin gifts to the player use a receipt id per job (no double credit); money amounts are bounded by the pack schema. - No new permissions, no archive or install changes. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 What the author (an AI agent) ran; the boxes above are left for a human. - New regressions: `slurp2-bonds`, `slurp2-drama`, `slurp2-drama-runtime` (60- and 90-day simulations with joins and leaves, level caps, determinism, every starter drama casts and runs), `slurp2-player-partner`. - All 176 `slurp2-*` regressions compared per file against a clean `origin/staging` worktree after the last commit: the same 16 files fail on both (pre-existing), no new failures; the four new files pass. - Pre-PR review (marinara-reviewer): 7 findings (stale choice answers, double sends on overlapping ticks, switched-off runs still sending, comment jobs blocking DMs, world load per tick, double-tap "late", ex bond coming back), all fixed with regressions. - `node scripts/test-catalog-lanes.mjs`, `validate-package-locales.mjs`, `validate-catalog.mjs`, `tests/catalog-release-notes.regression.mjs`, architecture regression, package typecheck: pass. - Live: sideloaded to the production instance; screenshots at 390/768/1440 px of Stir › People, Stir › Drama and Settings › Stir › Drama led to three UI fixes (Coworker color, People intro, the Stir section hint that showed a raw key on phones). ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Package docs updated: `packages/slurp2/docs/DRAMA.md` (design + As built), `docs/architecture/DECISIONS.md`, `docs/architecture/README.md`, `CHANGELOG.md`. ## UI evidence (if applicable) Screenshots at 390, 768 and 1440 px of Stir › People (one and two people open), Stir › Drama and Settings › Stir › Drama were taken on the live instance and reviewed; they led to the Coworker colour, People intro and Stir section-hint fixes. Not attached here. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added optional interactive Drama storylines, situations, player choices, and Story Pack import/export support. * Added the Stir People map to explore Creator relationships, add or update bonds, and end bonds. * Added partner-style Creator messages and relationship-aware labels and story moments. * Added Drama and relationship notifications, settings, and translations in English, German, Korean, and Polish. * **Release** * Updated Slurp to version 0.3.8. <!-- 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:08:49 +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#1323
No description provided.