[PR #1352] [MERGED] fix(slurp2): 0.3.34 — Creator sees her own locked posts in chats; lorebook reaches messages #1416

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

📋 Pull Request Information

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

Base: staging ← Head: fix/slurp2-message-prompt-posts-and-lore


📝 Commits (3)

  • d2c7eec fix(slurp2): 0.3.34 — Creator sees her own locked post text in chats; lorebook entries reach messages (#1351)
  • 85a330d fix(slurp2): mask unlocked-by-nobody paid bodies in the fan's Deep details; explain locked post fields (#1351)
  • a571234 fix(slurp2): Deep details mask skips bodies under 8 characters (#1351)

📊 Changes

26 files changed (+567 additions, -435 deletions)

View changed files

➕ artifacts/slurp2-0.3.34.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 (+6 -0)
📝 packages/slurp2/client.js (+1 -1)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+301 -301)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+8 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/data/host/slp-lore-context.ts (+8 -11)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-generation-service.ts (+3 -3)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-follow-up-scheduler-service.ts (+2 -1)
➕ packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-message-budget-error.ts (+7 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-message-deep-details-record.ts (+3 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-message-deep-details-routes.ts (+8 -3)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-message-generation-service.ts (+29 -63)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-message-operation.ts (+2 -1)

...and 6 more files

📄 Description

Pull request

Linked issue

Closes #1351

Why this change

Discord report (Slurp 0.3.31): a Creator could not see what was inside her own locked posts, and lorebook entries never reached messages.

  • The DM prompt replaced every locked post body with "[paid post, contents not repeated here]", even when the fan had unlocked it. The placeholder came in with the slice-5 server split and has no earlier reason on record; its comment says it stopped a free chat giving paid content away. The Creator wrote the post, so she now gets the real (identity-protected) text. The existing access and fanAlreadyUnlocked fields already say whether this fan has seen it, and one sentence on the existing recent-posts prompt line tells her not to quote text this fan has not seen. No new guard paragraph. I did not add a length cap: unlocked and public bodies are not capped either. Siblings (fan reply, scenes, schedule, Stir) have no such placeholder.
  • Only posts scanned lore. DM generation now uses the same helper: same enableLorebookContext gate, same Creator scoping, scan text is the recent conversation, a failed scan returns "" and never fails the message. The lore is a worldLore field in the prompt, so it shows in the message Deep details. No new setting.

Decision: giving the Creator the text would also expose it in Deep details, which the fan seat can read. The fan seat's view now masks bodies of locked posts that fan has not unlocked (paidBodies, stored with the record, never sent).

What changed

  • slp-post-lore.ts moved to data/host/slp-lore-context.ts (resolveSlurpLoreContext, takes texts) so features/messages can use it without a cross-feature import; the post generator calls it.
  • slp-message-generation-service.ts: real locked content, lore scan and worldLore, paidBodies. File was at the 800-line cap, so the budget error class and SlurpMessagePromptInput moved to their own files.
  • modules/messages/slp-deep-details-mask.ts plus the Deep details route apply the fan-seat mask.
  • slurp2 0.3.34: rebuilt client.js, server.mjs, manifest, artifact, catalogs; changelog and splash notes.
  • Tests: tests/slurp2-message-lore-locked.regression.ts (new; the model call needs the host Engine, so the prompt wiring is source-read and the mask is run).

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: Deep details records gain an optional server-only paidBodies list; older records have none. Security note: paid post text now enters the prompt, and the fan-seat Deep details masks it unless the fan unlocked it.

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

Automated only, not installed on an Engine: npm run check (0 errors), catalog lanes, locales, catalog and release-note validators, slurp2 typecheck, architecture regression, and all 288 Slurp regressions pass.

Summary by CodeRabbit

  • Bug Fixes
    • Locked-post content is now handled appropriately in creator chats and hidden from fans’ Deep details until unlocked.
    • Lorebook entries can inform chat replies; a lore scan failure no longer prevents a reply from being sent.
  • Release
    • Updated Slurp to version 0.3.34.

🔄 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/1352 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/13/2026 **Status:** ✅ Merged **Merged:** 10/13/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/slurp2-message-prompt-posts-and-lore` --- ### 📝 Commits (3) - [`d2c7eec`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d2c7eecb88f58d86c1cc405c9ca225688b9695bb) fix(slurp2): 0.3.34 — Creator sees her own locked post text in chats; lorebook entries reach messages (#1351) - [`85a330d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/85a330df8562ca74ab9be63b6bf3ea2fe77b3b9f) fix(slurp2): mask unlocked-by-nobody paid bodies in the fan's Deep details; explain locked post fields (#1351) - [`a571234`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a571234825f67c15dc9d846f3c0091feefeea2e9) fix(slurp2): Deep details mask skips bodies under 8 characters (#1351) ### 📊 Changes **26 files changed** (+567 additions, -435 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.34.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` (+6 -0) 📝 `packages/slurp2/client.js` (+1 -1) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+301 -301) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+8 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/data/host/slp-lore-context.ts` (+8 -11) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-generation-service.ts` (+3 -3) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-follow-up-scheduler-service.ts` (+2 -1) ➕ `packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-message-budget-error.ts` (+7 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-message-deep-details-record.ts` (+3 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-message-deep-details-routes.ts` (+8 -3) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-message-generation-service.ts` (+29 -63) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-message-operation.ts` (+2 -1) _...and 6 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1351 ## Why this change Discord report (Slurp 0.3.31): a Creator could not see what was inside her own locked posts, and lorebook entries never reached messages. - The DM prompt replaced every locked post body with "[paid post, contents not repeated here]", even when the fan had unlocked it. The placeholder came in with the slice-5 server split and has no earlier reason on record; its comment says it stopped a free chat giving paid content away. The Creator wrote the post, so she now gets the real (identity-protected) text. The existing `access` and `fanAlreadyUnlocked` fields already say whether this fan has seen it, and one sentence on the existing recent-posts prompt line tells her not to quote text this fan has not seen. No new guard paragraph. I did not add a length cap: unlocked and public bodies are not capped either. Siblings (fan reply, scenes, schedule, Stir) have no such placeholder. - Only posts scanned lore. DM generation now uses the same helper: same `enableLorebookContext` gate, same Creator scoping, scan text is the recent conversation, a failed scan returns "" and never fails the message. The lore is a `worldLore` field in the prompt, so it shows in the message Deep details. No new setting. Decision: giving the Creator the text would also expose it in Deep details, which the fan seat can read. The fan seat's view now masks bodies of locked posts that fan has not unlocked (`paidBodies`, stored with the record, never sent). ## What changed - `slp-post-lore.ts` moved to `data/host/slp-lore-context.ts` (`resolveSlurpLoreContext`, takes `texts`) so `features/messages` can use it without a cross-feature import; the post generator calls it. - `slp-message-generation-service.ts`: real locked content, lore scan and `worldLore`, `paidBodies`. File was at the 800-line cap, so the budget error class and `SlurpMessagePromptInput` moved to their own files. - `modules/messages/slp-deep-details-mask.ts` plus the Deep details route apply the fan-seat mask. - slurp2 0.3.34: rebuilt `client.js`, `server.mjs`, manifest, artifact, catalogs; changelog and splash notes. - Tests: `tests/slurp2-message-lore-locked.regression.ts` (new; the model call needs the host Engine, so the prompt wiring is source-read and the mask is run). ## Package and security impact - Affected package IDs: slurp2 - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: Deep details records gain an optional server-only `paidBodies` list; older records have none. Security note: paid post text now enters the prompt, and the fan-seat Deep details masks it unless the fan unlocked it. ## 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 Automated only, not installed on an Engine: `npm run check` (0 errors), catalog lanes, locales, catalog and release-note validators, slurp2 typecheck, architecture regression, and all 288 Slurp regressions pass. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Locked-post content is now handled appropriately in creator chats and hidden from fans’ Deep details until unlocked. * Lorebook entries can inform chat replies; a lore scan failure no longer prevents a reply from being sent. * **Release** * Updated Slurp to version 0.3.34. <!-- 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:06 +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#1416
No description provided.