[PR #1399] [MERGED] feat(slurp2): 0.3.42 chat bridge — story status in Engine chats, carryover status, At Depth lore, first-try scenes #1443

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1399
Author: @Gunterlie
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @Gunterlie

Base: staging ← Head: slurp-chat-bridge


📝 Commits (7)

  • 1b89f94 feat(slurp2): chat bridge sends story, love life, rapport and ledger facts into Engine chats
  • 3d86374 fix(slurp2): scenes run on the planner's connection, the planner retries once, a missing scene host shows an error
  • 95ec6c5 fix(slurp2): DM lore keeps At Depth entries and Deep details lists the lore a reply used
  • e3f165a feat(slurp2): carryover settings show in how many Creator chats Include Slurp activity is on
  • 4676d89 chore(slurp2): release 0.3.42
  • 6f4e02a fix(slurp2): chat bridge keeps secret couples and couples with any player page out; route and lore tests follow the new contract
  • 8151a4e Merge remote-tracking branch 'origin/staging' into slurp-chat-bridge

📊 Changes

35 files changed (+972 additions, -534 deletions)

View changed files

➕ artifacts/slurp2-0.3.42.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+10 -0)
📝 packages/slurp2/client.js (+65 -65)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+319 -319)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpMessageDeepDetails.tsx (+31 -3)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/messages/scenes/SlpSceneStartSheet.tsx (+2 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+10 -9)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/SlpConnectionsPanel.tsx (+10 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-hooks.ts (+9 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/en.json (+4 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/data/host/slp-lore-context.ts (+60 -24)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/creators/slp-chat-context.ts (+133 -20)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/creators/slp-creators-routes.ts (+3 -0)

...and 15 more files

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

Why this change

  • Users with "Carryover to chats" on found that a character in an Engine chat knew nothing about their Slurp storyline, love life or history with the player: none of that was sent.
  • Carryover needs a second switch in every chat ("Include Slurp activity", off by default), and the Slurp settings could not show whether it was on anywhere.
  • Lorebook entries set to "At Depth" were silently dropped from Slurp DMs/posts, and users could not see which lore a reply used.
  • Scenes started from a DM often failed on the first try: the scene origin passed Slurp's raw connection setting (often empty) instead of the connection Slurp planned with, so the Engine fell back to its plain default connection.

What changed

  • features/creators/slp-chat-context.ts: standing lines (ranked above single events, so they survive a tight item cap):
    • the character's ongoing storyline (slurpArcLifeLine, the same summary DMs use — no future beats);
    • love life with other Creators (slurpChatBridgeLoveLines); secret couples and couples with any page the player runs stay out;
    • rapport as a tier phrase (slurpChatBridgeRapportLine), never the score; none for strangers or partners;
    • up to 5 continuity-ledger facts read through listSlurpContinuityFor(…, "fan_thread", …), so thread-private facts need that fan's thread and nothing private leaks without a persona.
    • Every new read is best-effort: a failed read costs the chat that line, never the whole block.
  • Carryover status: GET /settings/carryover-reach (pure slurpCarryoverReach + reader) and a status line in Settings → Carryover to chats ("Turned on in N of M chats with your Creators").
  • Lore: data/host/slp-lore-context.ts returns { text, report }; At Depth entries are appended after the world info. DM Deep details records the report and shows a "Lore" section (used / no room / toggle off).
  • Scenes: the scene origin passes resolveSlurpTextConnection(...) (explicit → agent default → default); the planner retries once on an unusable answer; the start sheet shows an error when the scene host is missing.
  • Release: slurp2 0.3.41 → 0.3.42 (CHANGELOG, slp-release.ts, rebuilt client.js/server.mjs/manifest/artifact/catalogs). Merged current staging and rebuilt; the tree was clean after the rebuild.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none; uses processLorebooks fields (depthEntries, activatedEntryIds, budgetSkippedEntries) present at the current engine.min.
  • New or changed permissions/entrypoints: one new read-only route GET /slurp2/settings/carryover-reach (counts chats; returns two numbers). No permission changes.
  • Restart, storage, update, or uninstall impact: none. No new storage; Deep details records gain an optional chat.lore field.

Privacy notes for reviewers: paid/locked content still never reaches chats; rapport score is never rendered; ledger facts go through the existing slurpContinuityReadable rules; secret couples are excluded.

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-run on devbox (boxes left for a human to tick):

  • npm run test:slurp:regressions: 292 passed, 0 failed.
  • tests/slurp2-architecture.regression.ts and node scripts/typecheck-packages.mjs slurp2: pass.
  • npm run check, node scripts/test-catalog-lanes.mjs, node scripts/validate-package-locales.mjs, node scripts/validate-catalog.mjs, node scripts/tests/catalog-release-notes.regression.mjs, git diff --check: pass.
  • New/updated regressions: slurp2-chat-context (story, love, rapport without score, ledger with/without persona, secret couple, other player page, cap, carryover reach), slurp2-roleplay-scenes (origin returns the resolved agents-default connection), slurp2-message-lore-locked (depth entries + report), route/client-hook inventories.
  • Not done by the agent: an install through a live Marinara Engine.

Documentation impact

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

UI evidence (if applicable)

Not captured: one status line in Settings → Carryover to chats and one Deep details section, both using existing components.

Summary by CodeRabbit

  • New Features
    • Slurp chat carryover now includes additional story, relationship, and continuity context. Settings show how many chats have Slurp activity included or excluded.
    • Deep details now lists lorebook entries used or skipped for space.
  • Bug Fixes
    • Improved scene connections for DM-started scenes, added a retry when a scene plan can’t be read, and clarified errors when a scene host is missing.
    • “At Depth” lorebook entries now apply in DMs and posts.

🔄 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/1399 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `slurp-chat-bridge` --- ### 📝 Commits (7) - [`1b89f94`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1b89f9467fdd07bc79eb556c9d190758fe57722b) feat(slurp2): chat bridge sends story, love life, rapport and ledger facts into Engine chats - [`3d86374`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3d863742a0d611e00c82464fc3e84c00d1e30d69) fix(slurp2): scenes run on the planner's connection, the planner retries once, a missing scene host shows an error - [`95ec6c5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/95ec6c556bcf4d6b679cc98cd6476dee3aa965e8) fix(slurp2): DM lore keeps At Depth entries and Deep details lists the lore a reply used - [`e3f165a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e3f165a992a59c3a1f059e89f54e070c70158267) feat(slurp2): carryover settings show in how many Creator chats Include Slurp activity is on - [`4676d89`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4676d89699cdfba3726f487cb156f303aa116f50) chore(slurp2): release 0.3.42 - [`6f4e02a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6f4e02a1118b9e313bc123e5db5500b11fc573a0) fix(slurp2): chat bridge keeps secret couples and couples with any player page out; route and lore tests follow the new contract - [`8151a4e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8151a4e6bd73a40627300ddae8566527ef9c22d6) Merge remote-tracking branch 'origin/staging' into slurp-chat-bridge ### 📊 Changes **35 files changed** (+972 additions, -534 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.42.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+10 -0) 📝 `packages/slurp2/client.js` (+65 -65) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+319 -319) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpMessageDeepDetails.tsx` (+31 -3) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/messages/scenes/SlpSceneStartSheet.tsx` (+2 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+10 -9) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/SlpConnectionsPanel.tsx` (+10 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-hooks.ts` (+9 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/en.json` (+4 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/data/host/slp-lore-context.ts` (+60 -24) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/creators/slp-chat-context.ts` (+133 -20) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/creators/slp-creators-routes.ts` (+3 -0) _...and 15 more files_ </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 #1398 ## Why this change - Users with "Carryover to chats" on found that a character in an Engine chat knew nothing about their Slurp storyline, love life or history with the player: none of that was sent. - Carryover needs a second switch in every chat ("Include Slurp activity", off by default), and the Slurp settings could not show whether it was on anywhere. - Lorebook entries set to "At Depth" were silently dropped from Slurp DMs/posts, and users could not see which lore a reply used. - Scenes started from a DM often failed on the first try: the scene origin passed Slurp's raw connection setting (often empty) instead of the connection Slurp planned with, so the Engine fell back to its plain default connection. ## What changed - `features/creators/slp-chat-context.ts`: standing lines (ranked above single events, so they survive a tight item cap): - the character's ongoing storyline (`slurpArcLifeLine`, the same summary DMs use — no future beats); - love life with other Creators (`slurpChatBridgeLoveLines`); secret couples and couples with any page the player runs stay out; - rapport as a tier phrase (`slurpChatBridgeRapportLine`), never the score; none for strangers or partners; - up to 5 continuity-ledger facts read through `listSlurpContinuityFor(…, "fan_thread", …)`, so thread-private facts need that fan's thread and nothing private leaks without a persona. - Every new read is best-effort: a failed read costs the chat that line, never the whole block. - Carryover status: `GET /settings/carryover-reach` (pure `slurpCarryoverReach` + reader) and a status line in Settings → Carryover to chats ("Turned on in N of M chats with your Creators"). - Lore: `data/host/slp-lore-context.ts` returns `{ text, report }`; At Depth entries are appended after the world info. DM Deep details records the report and shows a "Lore" section (used / no room / toggle off). - Scenes: the scene origin passes `resolveSlurpTextConnection(...)` (explicit → agent default → default); the planner retries once on an unusable answer; the start sheet shows an error when the scene host is missing. - Release: slurp2 0.3.41 → 0.3.42 (CHANGELOG, `slp-release.ts`, rebuilt `client.js`/`server.mjs`/manifest/artifact/catalogs). Merged current `staging` and rebuilt; the tree was clean after the rebuild. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none; uses `processLorebooks` fields (`depthEntries`, `activatedEntryIds`, `budgetSkippedEntries`) present at the current `engine.min`. - New or changed permissions/entrypoints: one new read-only route `GET /slurp2/settings/carryover-reach` (counts chats; returns two numbers). No permission changes. - Restart, storage, update, or uninstall impact: none. No new storage; Deep details records gain an optional `chat.lore` field. Privacy notes for reviewers: paid/locked content still never reaches chats; rapport score is never rendered; ledger facts go through the existing `slurpContinuityReadable` rules; secret couples are excluded. ## 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 Agent-run on devbox (boxes left for a human to tick): - `npm run test:slurp:regressions`: 292 passed, 0 failed. - `tests/slurp2-architecture.regression.ts` and `node scripts/typecheck-packages.mjs slurp2`: pass. - `npm run check`, `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-package-locales.mjs`, `node scripts/validate-catalog.mjs`, `node scripts/tests/catalog-release-notes.regression.mjs`, `git diff --check`: pass. - New/updated regressions: `slurp2-chat-context` (story, love, rapport without score, ledger with/without persona, secret couple, other player page, cap, carryover reach), `slurp2-roleplay-scenes` (origin returns the resolved agents-default connection), `slurp2-message-lore-locked` (depth entries + report), route/client-hook inventories. - Not done by the agent: an install through a live Marinara Engine. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not captured: one status line in Settings → Carryover to chats and one Deep details section, both using existing components. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Slurp chat carryover now includes additional story, relationship, and continuity context. Settings show how many chats have Slurp activity included or excluded. * Deep details now lists lorebook entries used or skipped for space. * **Bug Fixes** * Improved scene connections for DM-started scenes, added a retry when a scene plan can’t be read, and clarified errors when a scene host is missing. * “At Depth” lorebook entries now apply in DMs and posts. <!-- 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:11:30 +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#1443
No description provided.