[PR #1332] [MERGED] feat(slurp2): 0.3.28 — Deep details for chat messages #1406

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

📋 Pull Request Information

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

Base: staging ← Head: feat/slurp2-message-deep-details


📝 Commits (6)

  • 3293d81 feat(slurp2): Deep details for chat messages
  • bcad15c feat(slurp2): 0.3.28 — list kept record ids on the thread, own route file, rebuild
  • 91471f0 feat(slurp2): 0.3.28 splash note for message Deep details; rebuild
  • 433d99c fix(slurp2): review fixes for message Deep details; rebuild 0.3.28
  • 5145233 fix(slurp2): message Deep details polish from the live test; rebuild 0.3.28
  • 842f68c Merge remote-tracking branch 'origin/staging' into feat/slurp2-message-deep-details

📊 Changes

40 files changed (+1305 additions, -512 deletions)

View changed files

➕ artifacts/slurp2-0.3.28.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)
📝 package.json (+1 -1)
📝 packages/slurp2/CHANGELOG.md (+4 -0)
📝 packages/slurp2/client.js (+94 -91)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+335 -335)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpMessageBubble.tsx (+30 -1)
➕ packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpMessageDeepDetails.tsx (+155 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpThreadView.tsx (+7 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/messages/slp-messages-hooks.ts (+2 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+9 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/en.json (+2 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpDeepDetailsModal.tsx (+37 -19)
📝 packages/slurp2/src/engine/packages/server/src/db/schema/slurp.ts (+10 -0)

...and 20 more files

📄 Description

Pull request

Linked issue

Closes #1331

Why this change

  • A post has "Deep details"; a chat message had nothing. When a Creator answers in an unexpected way in a chat, the player could not see what went into that reply. Nothing was stored per message, and the drawer's prompt view only previews the next prompt in debug mode.

What changed

Package slurp2, 0.3.27 → 0.3.28 (patch).

  • Record. Each generated Creator reply (normal reply and scheduled follow-up) writes one record: the prompt as sent, the model and sampling values, the model's answer, and the chat facts the generator had (relationship tier and score, subscribed, request, stance with its evidence layers, posture and heat, the Creator's feeling and intent, memories). Nothing is re-read later. A thread between an AI fan and a Creator keeps no record, because no persona can open it.
  • Storage. New file table slurp2_message_deep_details. A chat keeps its newest 50 records. Chat clear, persona cleanup, account delete and the two data resets remove the records. The table is in the backup registry.
  • Route. GET /slurp/messages/:messageId/deep-details?personaId=. Only a persona with a seat in the thread reads a record. It serves reply bubbles only (not a paid message or a post card), and a record only through the thread it was written in.
  • Client. One new item "Deep details" in the existing Message sheet of SlpMessageBubble, only on Creator replies that still have a record. The thread and compose responses carry deepDetailIds (ids only). The window reuses the post Deep details frame (SlpDeepDetailsFrame, extracted without change) and its parts.
  • Tests. New tests/slurp2-message-deep-details.regression.ts (real storage and route on a file database). Honest inventory updates: one route, one query.
  • Generated outputs. packages/slurp2/client.js, server.mjs, manifest.json, artifacts/slurp2-0.3.28.zip, catalogs and notes, rebuilt with node scripts/build-feature-packages.mjs slurp2.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none. engine.min, the Capability API version and the catalog lanes are unchanged.
  • New or changed permissions/entrypoints: no new permission. One new HTTP route under the package's existing privileged prefix (above). Client and server entrypoints are rebuilt.
  • Restart, storage, update, or uninstall impact: one new package-owned file table, created on first write. No migration. Old messages have no record and no menu item.

Security notes (the record holds the Character card text and private notes):

  • Core claim: record content leaves the server only through the seat-gated route.
  • Positive cases tested: the persona of the chat reads the record; every bubble of one reply leads to the same record.
  • Negative cases tested: another persona gets 404; a missing persona gets 400; the player's own line gets 404; a locked paid message gets 404 and its caption is not in the answer; a record that belongs to another thread is not served; the thread payload contains no prompt text.
  • The recorded answer gets the same identity protection as the prompt, for a concealed Creator.
  • Known and accepted by the maintainer: the persona in the fan seat can read the relationship score, the memories and the prompt, which the chat screen itself hides. The recorded answer can contain the picture prompt of a paid picture the fan has not bought.
  • Backups include the records, like post records.

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

Run by the coding agent (the boxes above stay for a human):

  • npm run test:slurp:regressions: 287 of 287 files pass after the merge with staging.
  • npm run check: 0 errors. 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, tests/slurp2-architecture.regression.ts, node scripts/typecheck-packages.mjs slurp2: pass.
  • Mutation check: with the seat check removed from the route, the new regression fails.
  • Independent read-only review before this PR; its confirmed findings are fixed (paid-message text through the route, missing ids on the compose response, answer redaction, test gaps).
  • Live test on a dev Engine (2.5.0, sideload of the built artifact, before the merge with staging): one real message, one generated reply, record present with real facts; seat gate 404/400 as listed above; chat clear removed the records; the box was restored afterwards.
  • Browser at 390, 768 and 1440 px: the Creator reply offers "Deep details", the player's own line does not; the window opens with five sections; no horizontal scroll; no package console errors; focus returns to the bubble after close.

Not verified:

  • Install, update and uninstall through the catalog (sideload only).
  • A real TypeScript compile (the package typecheck finds syntax errors and missing names only).
  • Long-press with real touch input (right-click and the Menu key were used).
  • A reply with several bubbles, a scheduled follow-up and a Slurp Support chat on a live Engine (covered by the regression through source checks only).
  • The light theme and the second visual theme.
  • The live test was not repeated after the merge with staging; the merge changed no file of this feature except the two inventories.

Known limits: when the fallback connection writes the reply, the record names the primary model (post records have the same limit). The window has no Flowchart or Canvas view for messages. Section labels are English in the code, like the post window; the two new locale keys are in en.json only.

Documentation impact

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

packages/slurp2/CHANGELOG.md and the in-app release list have the 0.3.28 entry.

UI evidence (if applicable)

Screenshots at 390, 768 and 1440 px were taken and inspected (menu on the Creator reply, menu on the player's own line, window top, middle, end). They are not attached here; the coding agent cannot upload images. A maintainer can add them.

🤖 Generated with Claude Code


🔄 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/1332 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/12/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/slurp2-message-deep-details` --- ### 📝 Commits (6) - [`3293d81`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3293d81da9848d3915824cf0e1d1bb8b4987dea3) feat(slurp2): Deep details for chat messages - [`bcad15c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bcad15c395f50d18ef3c05c89d65b89fae60dedb) feat(slurp2): 0.3.28 — list kept record ids on the thread, own route file, rebuild - [`91471f0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/91471f0b55f01e0f861cef4677a8814fa84da05b) feat(slurp2): 0.3.28 splash note for message Deep details; rebuild - [`433d99c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/433d99c04d11206b466425a1422e85c3a415905b) fix(slurp2): review fixes for message Deep details; rebuild 0.3.28 - [`5145233`](https://github.com/Pasta-Devs/Marinara-Agents/commit/514523303bc14171749955b4e3465df26193f943) fix(slurp2): message Deep details polish from the live test; rebuild 0.3.28 - [`842f68c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/842f68c30bad7580e209a97c2eada539479a09bb) Merge remote-tracking branch 'origin/staging' into feat/slurp2-message-deep-details ### 📊 Changes **40 files changed** (+1305 additions, -512 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.28.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) 📝 `package.json` (+1 -1) 📝 `packages/slurp2/CHANGELOG.md` (+4 -0) 📝 `packages/slurp2/client.js` (+94 -91) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+335 -335) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpMessageBubble.tsx` (+30 -1) ➕ `packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpMessageDeepDetails.tsx` (+155 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpThreadView.tsx` (+7 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/messages/slp-messages-hooks.ts` (+2 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+9 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/en.json` (+2 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpDeepDetailsModal.tsx` (+37 -19) 📝 `packages/slurp2/src/engine/packages/server/src/db/schema/slurp.ts` (+10 -0) _...and 20 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1331 ## Why this change - A post has "Deep details"; a chat message had nothing. When a Creator answers in an unexpected way in a chat, the player could not see what went into that reply. Nothing was stored per message, and the drawer's prompt view only previews the next prompt in debug mode. ## What changed Package `slurp2`, 0.3.27 → 0.3.28 (patch). - **Record.** Each generated Creator reply (normal reply and scheduled follow-up) writes one record: the prompt as sent, the model and sampling values, the model's answer, and the chat facts the generator had (relationship tier and score, subscribed, request, stance with its evidence layers, posture and heat, the Creator's feeling and intent, memories). Nothing is re-read later. A thread between an AI fan and a Creator keeps no record, because no persona can open it. - **Storage.** New file table `slurp2_message_deep_details`. A chat keeps its newest 50 records. Chat clear, persona cleanup, account delete and the two data resets remove the records. The table is in the backup registry. - **Route.** `GET /slurp/messages/:messageId/deep-details?personaId=`. Only a persona with a seat in the thread reads a record. It serves reply bubbles only (not a paid message or a post card), and a record only through the thread it was written in. - **Client.** One new item "Deep details" in the existing Message sheet of `SlpMessageBubble`, only on Creator replies that still have a record. The thread and compose responses carry `deepDetailIds` (ids only). The window reuses the post Deep details frame (`SlpDeepDetailsFrame`, extracted without change) and its parts. - **Tests.** New `tests/slurp2-message-deep-details.regression.ts` (real storage and route on a file database). Honest inventory updates: one route, one query. - **Generated outputs.** `packages/slurp2/client.js`, `server.mjs`, `manifest.json`, `artifacts/slurp2-0.3.28.zip`, catalogs and notes, rebuilt with `node scripts/build-feature-packages.mjs slurp2`. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none. `engine.min`, the Capability API version and the catalog lanes are unchanged. - New or changed permissions/entrypoints: no new permission. One new HTTP route under the package's existing privileged prefix (above). Client and server entrypoints are rebuilt. - Restart, storage, update, or uninstall impact: one new package-owned file table, created on first write. No migration. Old messages have no record and no menu item. Security notes (the record holds the Character card text and private notes): - Core claim: record content leaves the server only through the seat-gated route. - Positive cases tested: the persona of the chat reads the record; every bubble of one reply leads to the same record. - Negative cases tested: another persona gets 404; a missing persona gets 400; the player's own line gets 404; a locked paid message gets 404 and its caption is not in the answer; a record that belongs to another thread is not served; the thread payload contains no prompt text. - The recorded answer gets the same identity protection as the prompt, for a concealed Creator. - Known and accepted by the maintainer: the persona in the fan seat can read the relationship score, the memories and the prompt, which the chat screen itself hides. The recorded answer can contain the picture prompt of a paid picture the fan has not bought. - Backups include the records, like post records. ## 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 Run by the coding agent (the boxes above stay for a human): - `npm run test:slurp:regressions`: 287 of 287 files pass after the merge with staging. - `npm run check`: 0 errors. `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`, `tests/slurp2-architecture.regression.ts`, `node scripts/typecheck-packages.mjs slurp2`: pass. - Mutation check: with the seat check removed from the route, the new regression fails. - Independent read-only review before this PR; its confirmed findings are fixed (paid-message text through the route, missing ids on the compose response, answer redaction, test gaps). - Live test on a dev Engine (2.5.0, sideload of the built artifact, before the merge with staging): one real message, one generated reply, record present with real facts; seat gate 404/400 as listed above; chat clear removed the records; the box was restored afterwards. - Browser at 390, 768 and 1440 px: the Creator reply offers "Deep details", the player's own line does not; the window opens with five sections; no horizontal scroll; no package console errors; focus returns to the bubble after close. Not verified: - Install, update and uninstall through the catalog (sideload only). - A real TypeScript compile (the package typecheck finds syntax errors and missing names only). - Long-press with real touch input (right-click and the Menu key were used). - A reply with several bubbles, a scheduled follow-up and a Slurp Support chat on a live Engine (covered by the regression through source checks only). - The light theme and the second visual theme. - The live test was not repeated after the merge with staging; the merge changed no file of this feature except the two inventories. Known limits: when the fallback connection writes the reply, the record names the primary model (post records have the same limit). The window has no Flowchart or Canvas view for messages. Section labels are English in the code, like the post window; the two new locale keys are in `en.json` only. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation `packages/slurp2/CHANGELOG.md` and the in-app release list have the 0.3.28 entry. ## UI evidence (if applicable) Screenshots at 390, 768 and 1440 px were taken and inspected (menu on the Creator reply, menu on the player's own line, window top, middle, end). They are not attached here; the coding agent cannot upload images. A maintainer can add them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:10:55 +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#1406
No description provided.